/* ═══════════════════════════════════════════════════
   FlorDePlan — Calendario de cultivo
   Premium Dark Design System v2.0
═══════════════════════════════════════════════════ */

/* ── 1. TOKENS ── */
:root {
  --bg: #060b0a;
  --bg-1: #0c1210;
  --bg-2: #121a17;
  --bg-3: #182420;
  --surface: #131c18;
  --surface-hi: #1a2722;
  --surface-glass: rgba(18, 26, 23, .72);
  --border: #1e2e28;
  --border-hi: #2a4038;
  --border-glow: rgba(16, 185, 129, .22);
  --text: #f0fdf4;
  --text-2: #c8e6d0;
  --muted: #7a9485;
  --accent: #10b981;
  --accent-hi: #34d399;
  --accent-lo: #059669;
  --accent-glow: rgba(16, 185, 129, .35);
  --accent-surface: rgba(16, 185, 129, .08);
  --danger: #ef4444;
  --danger-lo: #7f1d1d;
  --danger-surface: rgba(239, 68, 68, .1);
  --warn: #f59e0b;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .45);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --c-agua: #60a5fa;
  --bg-agua: rgba(59, 130, 246, .18);
  --c-bio: #fbbf24;
  --bg-bio: rgba(245, 158, 11, .18);
  --c-te: #f87171;
  --bg-te: rgba(239, 68, 68, .18);
  --c-lavado: #38bdf8;
  --bg-lavado: rgba(14, 165, 233, .18);
  --c-obs: #c084fc;
  --bg-obs: rgba(168, 85, 247, .18);
  --c-cosecha: #34d399;
  --bg-cosecha: rgba(34, 197, 94, .18);
}

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

/* Quita el subrayado a todos los enlaces */
a {
  text-decoration: none;
}

/* Opcional: Que aparezca solo cuando pasás el mouse (hover) */
a:hover {
  text-decoration: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-size: 14px
}

h1,
h2,
h3,
.outfit {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  margin: 0
}

.ambient-bg,
.sidebar {
  display: none
}

.muted {
  color: var(--muted)
}

::selection {
  background: rgba(16, 185, 129, .28);
  color: #fff
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px
}

/* ── 3. NAVBAR ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 11, 10, .97), rgba(6, 11, 10, .88));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  box-shadow: var(--shadow-md);
  padding: 0;
  isolation: isolate
}

.top-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .5) 50%, transparent);
  opacity: .6
}

.top-nav .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px
}

.top-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(16, 185, 129, .3), rgba(6, 60, 42, .95));
  border: 1px solid rgba(110, 231, 183, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), var(--shadow-md);
  color: #d1fae5;
  flex-shrink: 0
}

.brand-mark .material-symbols-outlined {
  font-size: 24px
}

.brand-copy {
  display: grid;
  gap: 1px
}

.brand-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(167, 243, 208, .6)
}

.brand-name {
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 800
}

.nav-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0
}

.nav-cluster-primary {
  flex: 1 1 auto;
  justify-content: center
}

.nav-cluster-account {
  flex: 0 0 auto;
  justify-content: flex-end
}

.cycle-stage-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.cycle-stage-chip {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s var(--ease)
}

.cycle-stage-chip:hover {
  background: rgba(255, 255, 255, .05);
  color: #f3fff8
}

.cycle-stage-chip.is-active {
  background: linear-gradient(180deg, rgba(16, 185, 129, .16), rgba(16, 185, 129, .08));
  border-color: rgba(16, 185, 129, .18);
  color: #d1fae5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04)
}

.cycle-stage-chip.is-empty {
  opacity: .68
}

.sync-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0 0 14px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  transition: color .22s, transform .22s
}

.sync-status-detail-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  min-width: 0
}

.sync-status-icon-wrap {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.sync-status-icon-wrap .material-symbols-outlined {
  font-size: 17px;
  color: currentColor;
  transition: transform .22s var(--ease), opacity .22s
}

.sync-status-chip.is-idle {
  color: #b9c8bf
}

.sync-status-chip.is-sync {
  color: #93c5fd
}

.sync-status-chip.is-sync .sync-status-icon-wrap .material-symbols-outlined {
  animation: sync-status-spin 1s linear infinite
}

.sync-status-chip.is-ok {
  color: #86efac
}

.sync-status-chip.is-local {
  color: #fcd34d
}

.sync-status-chip.is-error {
  color: #fca5a5
}

.nav-buttons,
.nav-cluster-account {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.nav-cluster-account .nav-btn {
  min-width: 0
}

.app-logout-form {
  display: inline-flex;
  margin: 0
}

.app-nav {
  isolation: isolate
}

.app-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: background .2s, border-color .2s;
  -webkit-appearance: none;
  appearance: none
}

.app-nav-toggle:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--border-glow)
}

.app-nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #d1fae5;
  transition: transform .25s var(--ease), opacity .2s
}

.app-nav.is-open .app-nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.app-nav.is-open .app-nav-toggle-line:nth-child(2) {
  opacity: 0
}

.app-nav.is-open .app-nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: 0;
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all .25s var(--ease);
  position: relative;
  text-align: left;
  overflow: hidden
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, .06) 50%, transparent 75%);
  background-size: 200% 100%;
  background-position: -100% center;
  transition: background-position .5s;
  border-radius: inherit;
  pointer-events: none
}

.nav-btn:hover::before {
  background-position: 100% center
}

.nav-btn:hover {
  background: rgba(255, 255, 255, .06);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .07);
  box-shadow: var(--shadow-sm)
}

.nav-btn:active {
  transform: translateY(0)
}

.nav-btn .material-symbols-outlined {
  font-size: 17px;
  color: var(--accent);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-surface);
  border: 1px solid rgba(16, 185, 129, .14);
  flex-shrink: 0
}

.nav-btn-copy {
  display: grid;
  gap: 1px
}

.nav-btn-copy strong {
  color: #f3fff8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1
}

.nav-btn-copy small {
  color: rgba(167, 243, 208, .55);
  font-size: 10px;
  line-height: 1.2
}

.nav-btn-danger .material-symbols-outlined {
  color: #fca5a5;
  background: var(--danger-surface);
  border-color: rgba(239, 68, 68, .18)
}

.nav-btn-danger:hover {
  background: rgba(127, 29, 29, .18);
  border-color: rgba(239, 68, 68, .15)
}

/* ── 4. LAYOUT ── */
.wrap {
  max-width: 1180px;
  margin: 16px auto;
  padding: 16px 20px;
  width: 100%;
  flex: 1 0 auto
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start
}

.layout.has-info-widget {
  grid-template-columns: minmax(0, 1fr) 300px;
  column-gap: 16px
}

.layout.has-info-widget>* {
  align-self: start
}

/* ── 5. CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color .25s
}

.card:hover {
  border-color: var(--border-hi)
}

.card.calendar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01)), radial-gradient(circle at top left, rgba(16, 185, 129, .06), transparent 40%), var(--surface);
  border: 1px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), var(--shadow-sm)
}

.calendar-context-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012)), radial-gradient(circle at top left, rgba(16, 185, 129, .08), transparent 34%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.calendar-context-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0
}

.calendar-context-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 14px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .16);
  color: #d1fae5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04)
}

.calendar-context-icon .material-symbols-outlined {
  font-size: 20px
}

.calendar-context-copy-body {
  display: grid;
  gap: 2px;
  min-width: 0
}

.calendar-context-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .62)
}

.calendar-context-title {
  font-size: 16px;
  line-height: 1.15;
  color: #f3fff8
}

.calendar-context-subtitle {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted)
}

.calendar-context-controls {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: end;
  gap: 12px
}

.calendar-context-toolbar .cycle-stage-switch {
  background: rgba(255, 255, 255, .04)
}

.calendar-context-toolbar .sync-status-chip {
  justify-self: start;
  border-left: 1px solid rgba(255, 255, 255, .06)
}

/* ── 6. EMPTY STATE ── */
#placeholder {
  text-align: center;
  color: var(--muted);
  padding: 80px 20px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, .02);
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: var(--radius)
}

#placeholder.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  gap: 24px;
  min-height: 520px;
  width: 100%;
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1
}

#placeholder.empty-state.is-loading {
  justify-content: center
}

.empty-state-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(16, 185, 129, .28), rgba(6, 60, 42, .95));
  border: 1px solid rgba(110, 231, 183, .3);
  box-shadow: 0 0 50px rgba(16, 185, 129, .15), inset 0 1px 0 rgba(255, 255, 255, .15);
  margin: 0 auto 4px;
  position: relative
}

.empty-state-icon .material-symbols-outlined {
  font-size: 38px;
  color: #d1fae5
}

.empty-state-icon::before,
.empty-state-icon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none
}

.empty-state-icon::before {
  inset: -14px;
  border: 1.5px dashed rgba(16, 185, 129, .18);
  animation: orbit-spin 14s linear infinite
}

.empty-state-icon::after {
  inset: -6px;
  border: 1px solid transparent;
  border-top-color: rgba(16, 185, 129, .4);
  border-right-color: rgba(16, 185, 129, .15);
  animation: orbit-spin 3s linear infinite
}

.empty-state-title {
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 800;
  color: var(--text);
  margin: 0 auto;
  max-width: 15ch;
  line-height: 1.1
}

.empty-state-text {
  font-size: 16px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.65;
  margin: 0 auto
}

.empty-state-cta {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 14px 28px;
  border-radius: 16px;
  background: var(--accent);
  color: #021a0e;
  border: 1px solid rgba(16, 185, 129, .4);
  transition: all .25s var(--ease);
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: ctaPulse 2s ease-in-out infinite
}

.empty-state-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, .4);
  animation-play-state: paused
}

.empty-state-cta .material-symbols-outlined {
  font-size: 22px
}

.loading-spinner::before,
.loading-spinner::after {
  animation-play-state: paused
}

.loading-spinner .material-symbols-outlined {
  animation: orbit-spin 1.6s linear infinite
}

.calendar-loading-grid {
  width: min(340px, 100%);
  display: grid;
  gap: 10px
}

.loading-skeleton-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .04);
  background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025)
}

.loading-line {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .18), rgba(255, 255, 255, .08));
  background-size: 220% 100%;
  animation: loading-shimmer 1.2s ease-in-out infinite
}

.loading-line.is-short {
  width: 64%
}

.logs-sidebar-list.is-loading .loading-skeleton-card,
.actions-sidebar-list.is-loading .loading-skeleton-card,
.logs-list.is-loading .loading-skeleton-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .036), rgba(255, 255, 255, .012));
  border-color: rgba(255, 255, 255, .05)
}

/* ── 7. INFO WIDGET (SIDEBAR) ── */
.info-widget {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  position: sticky;
  height: fit-content;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  border: 1px solid rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.info-widget[hidden] {
  display: none
}

.summary-sidebar-section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), radial-gradient(circle at top left, rgba(16, 185, 129, .07), transparent 40%);
  border: 1px solid rgba(255, 255, 255, .05)
}

.summary-sidebar-section.is-hidden-by-toggle {
  display: none !important
}

.info-panel-head {
  display: grid;
  gap: 8px;
  padding-bottom: 0
}

.sidebar-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .18);
  color: #a7f3d0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase
}

.sidebar-section-badge .material-symbols-outlined {
  font-size: 13px
}

.sidebar-section-badge-amber {
  background: rgba(245, 158, 11, .1);
  border-color: rgba(245, 158, 11, .2);
  color: #fcd34d
}

.info-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .04);
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008))
}

.info-hero-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .15);
  color: #d1fae5;
  flex-shrink: 0
}

.info-hero-icon .material-symbols-outlined {
  font-size: 22px
}

.info-hero-copy {
  display: grid;
  gap: 3px;
  min-width: 0
}

.info-hero-copy strong {
  color: #f3fff8;
  font-size: 16px;
  overflow-wrap: anywhere
}

.info-hero-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere
}

.info-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.info-metric-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .04);
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  min-width: 0;
  overflow: hidden;
  position: relative
}

.info-metric-card .material-symbols-outlined {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(16, 185, 129, .1);
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0
}

.info-metric-card div {
  display: grid;
  gap: 3px;
  min-width: 0
}

.info-metric-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.info-metric-card strong {
  color: #f3fff8;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere
}

.info-progress-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .04);
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008))
}

.info-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.info-progress-head strong {
  color: #f3fff8;
  font-size: 12px
}

.info-complete-pill {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .18);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em
}

.info-divider {
  margin: 2px 0 0
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px
}

#progressInner,
#widgetProgressInner {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 1s ease-out
}

/* Widget compact overrides */
.info-widget .info-panel-head {
  padding-bottom: 0
}

.info-widget .info-panel-title {
  font-size: 14px
}

.info-widget .sidebar-section-badge {
  padding: 4px 8px;
  font-size: 9px
}

.info-widget .info-hero {
  padding: 8px 10px;
  gap: 6px;
  border-color: rgba(255, 255, 255, .04)
}

.info-widget .info-hero-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 8px
}

.info-widget .info-hero-icon .material-symbols-outlined {
  font-size: 13px
}

.info-widget .info-hero-copy strong {
  font-size: 12px;
  line-height: 1.2
}

.info-widget .info-hero-copy span {
  font-size: 10px;
  line-height: 1.3
}

.info-widget .info-metrics {
  grid-template-columns: 1fr;
  gap: 5px
}

.info-widget .info-metric-card {
  padding: 7px 8px;
  gap: 6px;
  align-items: center;
  border-radius: 10px
}

.info-widget .info-metric-card .material-symbols-outlined {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 12px
}

.info-widget .info-metric-card small {
  font-size: 9px
}

.info-widget .info-metric-card strong {
  font-size: 11px;
  line-height: 1.2
}

#widgetCycleHeadline {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .8)
}

.info-widget .info-progress-card {
  padding: 8px 10px;
  gap: 5px;
  border-radius: 10px
}

.info-widget .info-progress-head {
  font-size: 10px
}

.info-widget .info-progress-head strong {
  font-size: 11px
}

#widgetCompletedBadge {
  display: none;
  align-items: center
}

#completedBadge {
  display: none;
  align-items: center
}

/* ── 8. LOGS & ACTIONS SIDEBAR ── */
.logs-sidebar-section {
  display: none;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), radial-gradient(circle at top left, rgba(245, 158, 11, .06), transparent 40%);
  border: 1px solid rgba(255, 255, 255, .05)
}

.actions-sidebar-section {
  display: none;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), radial-gradient(circle at top left, rgba(16, 185, 129, .06), transparent 40%);
  border: 1px solid rgba(255, 255, 255, .05)
}

.logs-sidebar-section.is-visible,
.actions-sidebar-section.is-visible {
  display: grid
}

.logs-sidebar-head {
  display: grid;
  gap: 0
}

.logs-sidebar-head strong {
  font-size: 15px
}

.logs-sidebar-head small {
  color: var(--muted);
  font-size: 11px
}

.logs-sidebar-list,
.actions-sidebar-list {
  display: grid;
  gap: 5px
}

.logs-sidebar-list.is-loading,
.actions-sidebar-list.is-loading,
.logs-list.is-loading {
  gap: 8px
}

.actions-sidebar-items {
  display: grid;
  gap: 5px
}

.action-sidebar-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .04)
}

.action-sidebar-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--action-color, var(--accent));
  background: color-mix(in srgb, var(--action-color, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--action-color, var(--accent)) 25%, transparent)
}

.action-sidebar-icon .material-symbols-outlined {
  font-size: 13px
}

.action-sidebar-copy {
  display: grid;
  gap: 2px
}

.action-sidebar-copy strong {
  font-size: 11px;
  line-height: 1.2
}

.action-sidebar-copy small,
.sidebar-empty-state-copy {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35
}

.sidebar-empty-state {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  border: 1px dashed rgba(255, 255, 255, .08);
  text-align: left
}

.sidebar-empty-state-head {
  display: flex;
  align-items: center;
  gap: 10px
}

.sidebar-empty-state-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .14);
  color: #a7f3d0;
  flex-shrink: 0
}

.sidebar-empty-state-icon .material-symbols-outlined {
  font-size: 17px
}

.sidebar-empty-state-copy {
  display: grid;
  gap: 3px;
  min-width: 0
}

.sidebar-empty-state-copy strong {
  font-size: 11px;
  line-height: 1.2;
  color: #f3fff8
}

.sidebar-empty-state-copy span {
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted)
}

.logs-sidebar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px
}

.logs-sidebar-nav small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600
}

.logs-sidebar-nav .btn {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 10px
}

.note-item-compact {
  gap: 4px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .04)
}

.note-item-compact strong {
  font-size: 11px;
  line-height: 1.3
}

.note-item-compact small {
  font-size: 10px;
  line-height: 1.35
}

/* ── 9. FORMS & INPUTS ── */
input,
select,
textarea,
.dialog-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .9;
  cursor: pointer
}

input:focus,
select:focus,
textarea:focus,
.dialog-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .12), 0 0 16px rgba(16, 185, 129, .08)
}

textarea.dialog-input {
  min-height: 100px;
  resize: none
}

.controls {
  display: grid;
  gap: 14px
}

.controls label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  display: grid;
  gap: 6px
}

.fdp-import-file {
  display: none
}

/* ── 10. BUTTONS ── */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  position: relative
}

.btn:hover {
  background: var(--accent-lo);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, .25)
}

.btn:active {
  transform: translateY(0)
}

.btn.secondary {
  background: var(--bg-2);
  border-color: var(--border);
  color: var(--text)
}

.btn.secondary:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi)
}

.btn.danger {
  background: var(--danger-lo);
  border-color: var(--danger);
  color: #fff
}

.btn.danger:hover {
  background: #991b1b;
  box-shadow: 0 8px 20px rgba(239, 68, 68, .2)
}

.btn-hidden {
  display: none !important
}

.btn-compact {
  padding: 8px 12px;
  min-height: 34px
}

#configNextBtn {
  position: relative;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: ctaPulse 2s ease-in-out infinite
}

#configNextBtn:hover,
#configNextBtn:focus-visible {
  animation-play-state: paused;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(5, 150, 105, .22)
}

/* ── 11. DIALOGS ── */
.app-dialog {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(18, 22, 20, .96);
  backdrop-filter: blur(28px) saturate(1.2);
  padding: 28px;
  color: var(--text);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  font-family: 'Inter', sans-serif;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.app-dialog:not([open]) {
  display: none
}

.app-dialog::backdrop {
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px)
}

.dialog-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
  padding: 16px 56px 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(135deg, rgba(16, 185, 129, .08), rgba(255, 255, 255, .02) 40%, rgba(96, 165, 250, .04) 70%, rgba(16, 185, 129, .05));
  background-size: 200% 200%;
  animation: hero-light-sweep 8s ease infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  position: relative
}

.dialog-kicker {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .65)
}

.dialog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%
}

.dialog-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 100%
}

.icon-action-btn.dialog-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  align-self: start;
  justify-self: end;
  z-index: 2
}

.dialog-close-btn .material-symbols-outlined {
  font-size: 18px
}

.dialog-close-btn::after {
  display: none !important;
  content: none !important
}

.dialog-field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500
}

.dialog-field input {
  margin-top: 0
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
  flex-wrap: wrap
}

.dialog-actions-split {
  justify-content: space-between
}

.dialog-actions-split .dialog-spacer {
  display: none
}

.dialog-actions-single {
  justify-content: flex-end
}

.dialog-actions-danger .btn.danger {
  box-shadow: 0 12px 28px rgba(239, 68, 68, .18)
}

.dialog-actions-leading .btn-hidden {
  margin-right: auto
}

.dialog-spacer {
  flex: 1 1 auto
}

/* Config dialog */
.config-dialog {
  max-width: 820px;
  width: min(820px, calc(100vw - 32px));
  padding: 20px;
  max-height: calc(100vh - 32px);
  overflow: visible;
  position: relative;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(18, 22, 20, .98), rgba(12, 18, 14, .96)), radial-gradient(circle at top left, rgba(16, 185, 129, .06), transparent 24%)
}

.config-dialog[open] {
  display: grid
}

.config-dialog-body {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px
}

.config-dialog-hero {
  gap: 8px;
  padding: 14px 16px
}

.config-dialog-hero .dialog-title {
  font-size: 22px;
  align-items: center
}

.config-dialog-hero .dialog-title .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .16);
  color: #d1fae5;
  font-size: 20px
}

.config-dialog-hero .dialog-subtitle {
  max-width: 56ch
}

.config-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: visible
}

.config-modal-overlay.is-active {
  pointer-events: auto
}

/* Config tabs */
.config-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.config-tab {
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 1px solid transparent;
  background: 0;
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  transition: all .2s;
  justify-items: center;
  position: relative;
  z-index: 2;
  touch-action: manipulation
}

.config-tab .material-symbols-outlined {
  font-size: 17px
}

.config-tab span:last-child {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15
}

.config-tab:hover {
  background: rgba(255, 255, 255, .04);
  color: var(--text)
}

.config-tab.is-active {
  background: linear-gradient(180deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .06));
  border-color: rgba(16, 185, 129, .2);
  color: #d1fae5;
  box-shadow: var(--shadow-sm)
}

.config-sections {
  display: grid;
  overflow: visible;
  min-height: 0
}

.config-panel {
  display: none;
  gap: 14px;
  overflow: visible
}

.config-panel.is-active {
  display: grid;
  overflow: visible
}

.config-surface,
.config-block {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)), radial-gradient(circle at top left, rgba(16, 185, 129, .05), transparent 32%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  overflow: visible
}

.config-block {
  display: grid;
  gap: 14px;
  margin-top: 0
}

.config-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px
}

.config-block-title {
  font-size: 17px;
  line-height: 1.15
}

.config-divider {
  margin: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  border: 0
}

/* Wizard */
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .025);
  color: var(--muted)
}

.wizard-step strong,
.wizard-step small {
  display: block
}

.wizard-step strong {
  color: var(--text);
  font-size: 12px
}

.wizard-step small {
  font-size: 10px
}

.wizard-step.is-active {
  border-color: rgba(16, 185, 129, .28);
  background: linear-gradient(180deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .04))
}

.wizard-step-index {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  color: var(--text);
  font-size: 11px;
  font-weight: 700
}

.wizard-step.is-active .wizard-step-index {
  background: rgba(16, 185, 129, .18);
  color: #d1fae5
}

.wizard-flow {
  gap: 16px
}

.wizard-panel {
  display: none
}

.wizard-panel.is-active {
  display: grid;
  gap: 16px;
  min-width: 0
}

.wizard-copy {
  display: grid;
  gap: 5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.wizard-kicker {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .6)
}

.wizard-title {
  font-size: 20px;
  line-height: 1.1
}

.wizard-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55
}

.wizard-nav {
  margin-top: -4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: stretch
}

.wizard-nav .btn {
  min-height: 46px
}

.wizard-nav .btn.secondary {
  justify-content: center
}

.wizard-nav #configNextBtn {
  justify-content: center
}

/* Stage grid */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px
}

.stage-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.stage-card {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  cursor: pointer;
  transition: all .25s var(--ease)
}

.stage-card .material-symbols-outlined {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .15);
  color: #6ee7b7
}

.stage-card strong {
  font-size: 16px
}

.stage-card small {
  color: var(--muted);
  line-height: 1.45;
  font-size: 12px
}

.stage-option input:checked+.stage-card {
  border-color: rgba(16, 185, 129, .32);
  background: linear-gradient(180deg, rgba(16, 185, 129, .12), rgba(16, 185, 129, .04));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md)
}

/* Cycle form */
.config-summary {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4
}

.config-summary strong {
  color: var(--text)
}

.config-replace-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .18);
  color: #fde68a
}

.config-replace-alert .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  color: #fbbf24
}

.config-replace-alert strong {
  display: block;
  margin-bottom: 3px;
  color: #fffbeb
}

.config-replace-alert p {
  margin: 0;
  color: #fde68a
}

.cycle-replace-hero {
  background: linear-gradient(145deg, rgba(245, 158, 11, .12), rgba(255, 255, 255, .02));
  border-color: rgba(245, 158, 11, .18)
}

.cycle-replace-hero .dialog-kicker {
  color: #fcd34d
}

.cycle-replace-hero .dialog-title {
  color: #f59e0b
}

.cycle-replace-hero .dialog-title .material-symbols-outlined {
  color: #fbbf24
}

.cycle-replace-summary {
  margin-top: 14px;
  background: linear-gradient(145deg, rgba(120, 53, 15, .22), rgba(255, 255, 255, .018));
  border-color: rgba(245, 158, 11, .14)
}

.cycle-replace-summary .material-symbols-outlined {
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .18);
  color: #fbbf24
}

.cycle-replace-summary small {
  color: #fcd34d
}

.cycle-replace-summary strong {
  color: #fff7ed
}

.config-replace-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.config-replace-card {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025)
}

.config-replace-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.config-replace-card strong {
  color: #f3fff8;
  font-size: 13px;
  line-height: 1.45
}

.config-replace-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45
}

.btn-warning-soft {
  background: linear-gradient(180deg, rgba(245, 158, 11, .24), rgba(217, 119, 6, .24));
  border-color: rgba(245, 158, 11, .28);
  color: #fff7ed
}

.btn-warning-soft:hover {
  background: linear-gradient(180deg, rgba(245, 158, 11, .32), rgba(217, 119, 6, .3));
  border-color: rgba(251, 191, 36, .34)
}

.app-dialog#confirmCycleReplace {
  max-width: 520px;
  gap: 16px
}

.app-dialog#confirmCycleReplace[open] {
  display: grid
}

.app-dialog#confirmCycleReplace .dialog-actions-confirm {
  margin-top: 0;
  padding-top: 2px
}

.app-dialog#confirmCycleReplace .dialog-actions-confirm .btn {
  min-width: 176px
}

.import-backup-hero {
  background: linear-gradient(145deg, rgba(59, 130, 246, .12), rgba(255, 255, 255, .02));
  border-color: rgba(59, 130, 246, .18)
}

.import-backup-hero .dialog-kicker {
  color: #93c5fd
}

.import-backup-hero .dialog-title {
  color: #bfdbfe
}

.import-backup-hero .dialog-title .material-symbols-outlined {
  color: #93c5fd
}

.import-backup-summary {
  margin-top: 14px;
  background: linear-gradient(145deg, rgba(30, 58, 138, .22), rgba(255, 255, 255, .018));
  border-color: rgba(96, 165, 250, .14)
}

.import-backup-summary .material-symbols-outlined {
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #93c5fd
}

.import-backup-summary small {
  color: #93c5fd
}

.import-backup-summary strong {
  color: #eff6ff
}

.import-backup-compare {
  gap: 12px
}

.import-backup-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .012)), radial-gradient(circle at top left, rgba(59, 130, 246, .08), transparent 42%);
  border-color: rgba(255, 255, 255, .06)
}

.import-backup-card small {
  color: #bfdbfe
}

.import-backup-card strong {
  color: #f8fbff
}

.app-dialog#confirmImportBackup {
  max-width: 540px;
  gap: 16px
}

.app-dialog#confirmImportBackup[open] {
  display: grid
}

.app-dialog#confirmImportBackup .import-backup-actions {
  margin-top: 0;
  padding-top: 2px
}

.app-dialog#confirmImportBackup .import-backup-actions .btn {
  min-width: 176px
}

.cycle-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0
}

.cycle-field {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  min-width: 0
}

.cycle-field-wide {
  grid-column: 1/-1
}

.cycle-field-label {
  color: #f3fff8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em
}

.cycle-field .dialog-input {
  min-height: 40px;
  padding: 9px 11px
}

.cycle-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  align-items: stretch
}

.cycle-actions .btn {
  min-height: 46px
}

.cycle-actions .btn,
.wizard-nav .btn {
  width: 100%;
  min-width: 0
}

/* Config menu */
.config-menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .9fr);
  gap: 12px;
  align-items: start
}

.config-menu-pane {
  display: grid;
  gap: 8px;
  min-width: 0
}

.config-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px
}

.config-pane-caption {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase
}

.config-menu-list {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 4px
}

.config-inline-card {
  padding: 14px;
  background: rgba(0, 0, 0, .14);
  border: 1px dashed rgba(255, 255, 255, .1);
  position: relative;
  overflow: visible;
  z-index: 1;
  border-radius: var(--radius)
}

.config-inline-title {
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em
}

.config-inline-grid {
  display: grid;
  gap: 8px;
  overflow: visible
}

.config-inline-grid.compact {
  gap: 10px
}

.config-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px
}

.config-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: start;
  overflow: visible
}

.config-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .025)
}

.config-menu-item-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .035)
}

.config-menu-item-label {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3
}

.config-menu-item-delete {
  margin-left: auto;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 9px;
  background: rgba(127, 29, 29, .15);
  color: #f87171;
  cursor: pointer;
  transition: background .2s, transform .2s
}

.config-menu-item-delete:hover {
  background: rgba(127, 29, 29, .28);
  transform: translateY(-1px)
}

/* Icon picker */
.icon-picker-wrap {
  min-width: 0;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: visible;
  z-index: 40
}

.icon-picker {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 15, 12, .985), rgba(6, 10, 8, .985));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  width: min(360px, calc(100vw - 40px));
  max-height: min(360px, calc(100vh - 96px));
  overflow-y: auto;
  overscroll-behavior: contain
}

.icon-picker[hidden] {
  display: none
}

.icon-library-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(392px, calc(100vw - 32px));
  max-width: min(392px, calc(100vw - 32px));
  max-height: min(440px, calc(100vh - 96px));
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 15, 12, .985), rgba(6, 10, 8, .985));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  overflow: hidden
}

.icon-library-panel[hidden] {
  display: none
}

.icon-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.icon-library-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  cursor: pointer
}

.icon-library-close .material-symbols-outlined {
  font-size: 16px
}

.icon-library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding: 2px 2px 6px;
  overscroll-behavior: contain
}

.icon-picker-btn {
  width: 100%;
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s
}

.icon-picker-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  transform: translateY(-1px)
}

.icon-picker-btn.is-active {
  color: #d1fae5;
  border-color: rgba(16, 185, 129, .28);
  background: linear-gradient(180deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .06));
  box-shadow: var(--shadow-sm)
}

.icon-picker-btn .material-symbols-outlined {
  font-size: 20px
}

.icon-library-list .icon-picker-btn {
  width: 100%;
  max-width: none
}

.icon-picker-more {
  color: #d1fae5;
  border-color: rgba(16, 185, 129, .2);
  background: rgba(16, 185, 129, .06)
}

.icon-picker-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .18);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s
}

.icon-picker-trigger:hover {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .03)
}

.icon-picker-trigger-copy {
  color: var(--text);
  font-size: 12px;
  font-weight: 600
}

.icon-picker-trigger-caret {
  margin-left: auto;
  color: var(--muted);
  font-size: 17px
}

.color-field {
  display: grid;
  gap: 5px
}

.color-field-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.color-input {
  height: 76px;
  min-height: 76px;
  padding: 5px
}

.icon-action-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  cursor: pointer;
  transition: all .2s
}

.icon-action-btn:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12)
}

.icon-action-btn .material-symbols-outlined {
  font-size: 17px;
  color: var(--accent)
}

.icon-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(6, 11, 10, .96);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #f3fff8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  box-shadow: var(--shadow-md);
  z-index: 30
}

.icon-action-btn:hover::after,
.icon-action-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* Data section */
.data-layout {
  display: grid;
  gap: 12px
}

.data-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05)
}

.data-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.data-card-head .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .12);
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0
}

.data-card-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5
}

.data-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.data-import-btn {
  margin: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer
}

.danger-zone {
  border-color: rgba(239, 68, 68, .15);
  background: linear-gradient(180deg, rgba(127, 29, 29, .14), rgba(255, 255, 255, .015))
}

.danger-zone .material-symbols-outlined {
  background: var(--danger-surface);
  border-color: rgba(239, 68, 68, .15);
  color: #fca5a5
}

/* ── 12. SIDEBAR SETTINGS ── */
.sidebar-settings-grid {
  display: grid;
  gap: 10px
}

.sidebar-setting-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s
}

.sidebar-setting-card:hover {
  border-color: rgba(16, 185, 129, .18);
  background: linear-gradient(180deg, rgba(16, 185, 129, .06), rgba(255, 255, 255, .015));
  transform: translateY(-1px)
}

.sidebar-setting-card:has(input:checked) {
  border-color: rgba(16, 185, 129, .22);
  background: linear-gradient(180deg, rgba(16, 185, 129, .1), rgba(255, 255, 255, .015))
}

.sidebar-setting-copy {
  display: grid;
  gap: 3px;
  min-width: 0
}

.sidebar-setting-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .6)
}

.sidebar-setting-copy strong {
  font-size: 14px;
  line-height: 1.2
}

.sidebar-setting-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4
}

.sidebar-setting-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.sidebar-setting-order {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05);
  color: #d1fae5;
  font-size: 10px;
  font-weight: 700
}

.sidebar-order-btn {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 9px;
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s
}

.sidebar-order-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(16, 185, 129, .18)
}

.sidebar-order-btn:disabled {
  opacity: .3;
  cursor: not-allowed
}

.sidebar-order-btn .material-symbols-outlined {
  font-size: 16px
}

.sidebar-setting-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.sidebar-setting-control input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.sidebar-setting-card:has(input:checked) .toggle-track {
  background: var(--accent);
  border-color: var(--accent-lo);
  box-shadow: 0 0 12px rgba(16, 185, 129, .4)
}

.sidebar-setting-card:has(input:checked) .toggle-track::after {
  transform: translateX(16px);
  background: #fff
}

/* Toggle switch */
.info-widget-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s, background .2s, color .2s;
  position: relative
}

.info-widget-toggle:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1)
}

.info-widget-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.toggle-track {
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .08);
  position: relative;
  transition: background .25s, border-color .25s, box-shadow .25s;
  order: -1
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  transition: transform .25s var(--ease-spring), background .2s
}

.info-widget-toggle:has(input:checked) .toggle-track {
  background: var(--accent);
  border-color: var(--accent-lo);
  box-shadow: 0 0 10px rgba(16, 185, 129, .4)
}

.info-widget-toggle:has(input:checked) .toggle-track::after {
  transform: translateX(16px);
  background: #fff
}

.info-widget-toggle:has(input:checked) {
  color: #d1fae5;
  border-color: rgba(16, 185, 129, .2);
  background: rgba(16, 185, 129, .06)
}

/* ── 13. INFO DIALOG ── */
.info-dialog {
  max-width: 720px;
  display: grid;
  gap: 18px;
  padding: 28px
}

.info-dialog-hero {
  padding: 16px 18px;
  margin-bottom: 0
}

.info-panel-intro {
  display: grid;
  gap: 8px;
  min-width: 0
}

.info-panel-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 52ch
}

.info-panel-title {
  font-size: 20px
}

.info-dialog .info-hero {
  padding: 18px
}

.info-dialog .info-metrics {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

.info-dialog #harvestBadge {
  grid-column: 1/-1
}

.info-dialog .info-progress-card {
  padding: 18px
}

.info-dialog .dialog-actions {
  margin-top: 0;
  justify-content: flex-end;
  align-items: center
}

/* ── 14. LOGS DIALOG ── */
.logs-dialog {
  max-width: 760px;
  display: grid;
  gap: 16px
}

.logs-hero {
  margin-bottom: 0
}

.logs-list {
  display: grid;
  gap: 8px;
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 6px
}

.note-item {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: border-color .2s, transform .2s
}

.note-item:hover {
  border-color: var(--border-hi);
  transform: translateY(-1px)
}

.note-item strong {
  color: #f3fff8;
  font-size: 13px
}

.note-item small {
  color: var(--muted);
  line-height: 1.45
}

.note-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px
}

.note-icon-btn {
  min-width: 40px;
  width: 40px;
  height: 40px;
  padding: 0
}

.note-icon-btn .material-symbols-outlined {
  font-size: 17px
}

/* ── 15. NOTE DIALOG ── */
.note-dialog {
  max-width: 640px;
  display: grid;
  gap: 16px
}

.note-form {
  display: grid;
  gap: 16px
}

.note-dialog-hero {
  margin-bottom: 0
}

.note-form-surface {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.profile-dialog {
  max-width: 500px;
  width: min(500px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 18px
}

.profile-dialog .dialog-hero {
  padding: 12px 52px 12px 14px;
  position: relative
}

.profile-dialog .dialog-title {
  font-size: 18px
}

.profile-dialog .dialog-subtitle {
  font-size: 11px;
  line-height: 1.4
}

.profile-dialog-body {
  display: grid;
  gap: 10px
}

.profile-form {
  gap: 10px;
  padding: 14px
}

.profile-form:first-of-type {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.profile-form:first-of-type .cycle-field:first-child {
  grid-column: 1/-1
}

.profile-form:first-of-type .dialog-actions {
  grid-column: 1/-1
}

.profile-form:last-of-type {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.profile-form:last-of-type .profile-form-head,
.profile-form:last-of-type .dialog-actions {
  grid-column: 1/-1
}

.profile-form-head {
  display: grid;
  gap: 4px
}

.profile-form-head strong {
  font-size: 15px;
  color: var(--text)
}

.profile-form-head small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45
}

.profile-dialog .cycle-field {
  padding: 8px 10px
}

.profile-dialog .cycle-field .input {
  padding: 8px 10px;
  font-size: 13px;
  min-height: 38px
}

.profile-dialog .dialog-actions {
  margin-top: 0;
  gap: 8px;
  justify-content: flex-end
}

.profile-dialog .dialog-actions .btn {
  min-height: 38px;
  min-width: 160px
}

.profile-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px
}

.profile-dialog-close .material-symbols-outlined {
  font-size: 18px
}

.profile-dialog-close::after {
  display: none !important;
  content: none !important
}

.nav-btn-profile {
  opacity: .96
}

.nav-btn-profile .material-symbols-outlined {
  color: #d1fae5;
  background: rgba(16, 185, 129, .12)
}

.note-field-label {
  color: #d4ddd8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase
}

.note-form .dialog-field {
  margin-bottom: 0
}

.note-form textarea.dialog-input {
  min-height: 130px
}

/* Note delete dialog */
.note-delete-dialog {
  max-width: 500px;
  display: grid;
  gap: 16px
}

.note-delete-hero {
  margin-bottom: 0
}

.note-delete-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(145deg, rgba(127, 29, 29, .14), rgba(255, 255, 255, .018))
}

.note-delete-summary .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--danger-surface);
  color: #fca5a5;
  flex-shrink: 0
}

.app-dialog#confirmClear .dialog-actions {
  margin-top: 18px;
  padding-top: 6px
}

.app-dialog#confirmClear .dialog-actions .btn.danger {
  min-width: 170px
}

.note-delete-summary div {
  display: grid;
  gap: 4px
}

.note-delete-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.note-delete-summary strong {
  color: #f3fff8;
  font-size: 13px;
  line-height: 1.45
}

/* View dialog */
.view-dialog {
  max-width: 760px;
  display: grid;
  gap: 16px
}

.view-dialog-hero {
  margin-bottom: 0
}

.view-content {
  max-height: 50vh;
  overflow-y: auto;
  padding: 2px 8px 2px 2px;
  display: grid;
  gap: 12px
}

.view-note-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025)
}

.view-note-item.is-highlighted {
  border-color: rgba(16, 185, 129, .2);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .1)
}

.view-note-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px
}

.view-note-meta {
  display: grid;
  gap: 5px
}

.view-note-meta strong {
  color: #f3fff8;
  font-size: 14px;
  line-height: 1.4
}

.view-note-meta small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: .03em
}

.view-note-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0
}

.view-note-body {
  margin: 0;
  color: #dbe7df;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap
}

/* Week dialog */
.week-dialog-hero {
  background: linear-gradient(160deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012))
}

/* ── 16. SIDEBAR SECTION HEADER ── */
.sidebar-section-header {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)), radial-gradient(circle at top left, rgba(16, 185, 129, .08), transparent 34%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--shadow-sm)
}

.sidebar-section-copy {
  display: grid;
  gap: 3px;
  min-width: 0
}

.sidebar-section-copy .info-panel-title {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em
}

.sidebar-section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45
}

/* Misc */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px
}

.actions button:first-child {
  grid-column: 1/-1
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted)
}

.badge span:last-child {
  color: var(--text);
  font-weight: 600;
  margin-left: auto
}

.badge .material-symbols-outlined {
  font-size: 17px;
  color: var(--accent)
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.important-list {
  list-style: none;
  display: grid;
  gap: 10px
}

.important-item {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  line-height: 1.4
}

.important-check {
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0
}

.calendar-container {
  padding: 0 !important;
  background: 0;
  border: none;
  min-width: 0;
  width: 100%
}

.status-strip {
  position: sticky;
  top: 82px;
  z-index: 95;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: linear-gradient(180deg, rgba(6, 9, 8, .94), rgba(6, 9, 8, .82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px)
}

.status-strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .05);
  color: #d1fae5;
  flex-shrink: 0
}

.status-chip .material-symbols-outlined {
  font-size: 17px;
  color: var(--accent)
}

.status-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase
}

.status-detail {
  min-width: 0;
  color: #f3fff8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #e7fff2
}

.status-item .material-symbols-outlined {
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0
}

.status-item strong {
  color: #fff;
  font-weight: 700
}

.status-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, .1);
  flex-shrink: 0
}

.side-section {
  margin-bottom: 20px
}

.side-section h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em
}

.side-section h3 .material-symbols-outlined {
  font-size: 15px;
  color: var(--muted)
}

/* Context menu popup */
.menu-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: default
}

.menu-popup {
  position: absolute !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 9999 !important;
  background: rgba(18, 22, 20, .96) !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: 14px !important;
  padding: 5px !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: 'Inter', sans-serif !important;
  animation: zoomIn .2s var(--ease);
  min-width: 150px
}

.menu-popup button {
  color: var(--text) !important;
  border-radius: 9px !important;
  padding: 9px 13px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  background: 0 !important;
  border: none !important;
  text-align: left;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  transition: all .2s
}

.menu-popup button span.material-symbols-outlined {
  font-size: 17px !important;
  opacity: .8
}

.menu-popup button:hover {
  background: rgba(255, 255, 255, .06) !important;
  transform: translateX(2px)
}

.menu-popup hr {
  border-color: rgba(255, 255, 255, .04) !important;
  margin: 3px 0 !important
}

/* Toast */
.toast-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  left: auto;
  transform: none;
  display: grid;
  gap: 8px;
  z-index: 9999
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg)
}

.toast[hidden] {
  display: none !important
}

.toast-inline {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: min(300px, calc(100% - 40px));
  z-index: 2
}

.toast.ok {
  border-left: 3px solid var(--accent)
}

.toast.warn {
  border-left: 3px solid var(--warn)
}

.toast.err {
  border-left: 3px solid var(--danger)
}

/* ═══════════════════════════════════════════════════
   17. FULLCALENDAR OVERRIDES
═══════════════════════════════════════════════════ */
.fc {
  --fc-today-bg-color: transparent !important;
  background: 0;
  font-family: 'Inter', sans-serif
}

.fc-theme-standard th {
  background: 0 !important
}

.fc-theme-standard th,
.fc-theme-standard td,
.fc-theme-standard .fc-scrollgrid,
.fc-scrollgrid {
  border: none !important
}

.fc-toolbar {
  padding: 0 0 20px 0 !important;
  margin-bottom: 0 !important
}

.fc-toolbar-title {
  font-size: 24px !important;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: capitalize;
  text-shadow: 0 2px 8px rgba(255, 255, 255, .08)
}

.fc-button-group {
  background: rgba(255, 255, 255, .025);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .04)
}

.fc-button-primary {
  background: 0 !important;
  border: none !important;
  color: #7a9485 !important;
  text-transform: capitalize;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  box-shadow: none !important;
  transition: all .25s var(--ease)
}

.fc-button-primary:not(:disabled):hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .04) !important
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary.fc-button-active {
  background: var(--surface) !important;
  color: #fff !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important
}

.fc-button-primary:focus {
  box-shadow: none !important
}

.fc-prev-button,
.fc-next-button {
  font-size: 20px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  padding-inline: 12px !important
}

.fc-col-header-cell {
  background: 0 !important;
  padding: 10px 0 20px 0 !important
}

.fc-col-header-cell-cushion {
  color: #6b7280;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  padding: 7px 10px !important;
  background: rgba(0, 0, 0, .18);
  border-radius: 18px
}

.fc-daygrid-day {
  padding: 4px !important
}

.fc-daygrid-day-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  border: 1px solid rgba(16, 185, 129, .1);
  border-radius: 12px;
  min-height: 105px !important;
  transition: all .3s var(--ease);
  position: relative;
  overflow: visible
}

.fc-daygrid-day-frame.is-cycle-day-frame {
  border-color: rgba(52, 211, 153, .3);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .1), 0 0 0 1px rgba(16, 185, 129, .08), 0 0 6px rgba(16, 185, 129, .06);
  animation: cycleBorderGlow 3.4s ease-in-out infinite
}

.fc-daygrid-day-frame.has-corner-indicators {
  padding-bottom: 38px
}

.fc-daygrid-day-frame.has-corner-indicators .fc-daygrid-day-events {
  margin-bottom: 4px
}

.fc-daygrid-day:not(.fc-day-other):hover .fc-daygrid-day-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));
  border-color: rgba(16, 185, 129, .3);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .45), 0 0 14px -4px rgba(16, 185, 129, .15);
  cursor: pointer
}

.fc-day-other .fc-daygrid-day-frame {
  opacity: .25
}

.fc-day-today .fc-daygrid-day-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  border: 1px solid rgba(16, 185, 129, .2)
}

.fc-daygrid-day-top {
  padding: 8px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 6px
}

.fc-daygrid-day-number {
  color: #7a9485;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: .2s
}

.fc-daygrid-day:hover .fc-daygrid-day-number {
  color: #fff;
  background: rgba(255, 255, 255, .08)
}

.fc-day-today .fc-daygrid-day-number {
  color: #22c55e;
  background: 0;
  border: 1px solid #22c55e;
  animation: pulseNeonBorder 2s infinite ease-in-out
}

.fc-cycle-start-marker {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
  color: #d1fae5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05)
}

.fc-cycle-start-marker .material-symbols-outlined {
  font-size: 14px !important;
  line-height: 1 !important
}

.fc-cycle-start-marker.is-vegetativo {
  background: linear-gradient(180deg, rgba(16, 185, 129, .18), rgba(16, 185, 129, .08));
  border-color: rgba(16, 185, 129, .22);
  color: #a7f3d0
}

.fc-cycle-start-marker.is-floracion {
  background: linear-gradient(180deg, rgba(244, 114, 182, .18), rgba(244, 114, 182, .08));
  border-color: rgba(244, 114, 182, .22);
  color: #f9a8d4
}

.fc-event {
  border: none !important;
  margin: 0 !important;
  border-radius: 6px !important;
  transition: transform .2s var(--ease-spring), box-shadow .2s !important;
  font-family: 'Inter', sans-serif !important;
  overflow: hidden !important
}

.fc-event:hover {
  transform: scale(1.03);
  z-index: 10;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35) !important
}

.fc-event-main {
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: inherit !important;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2) !important
}

.fc-daygrid-day-events {
  margin: 0 !important;
  min-height: 0 !important;
  pointer-events: none
}

.fc-daygrid-event-harness {
  position: absolute !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  margin: 0 !important
}

.fc-daygrid-event-harness-abs {
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
  top: auto !important
}

.fc-event-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
  font-size: 10px !important;
  border: 1px solid rgba(255, 255, 255, .07) !important;
  backdrop-filter: blur(4px)
}

.fc-event-pill .fc-event-title-text {
  display: none !important
}

.fc-event-pill span.material-symbols-outlined {
  font-size: 15px !important
}

.fc-daygrid-day-events .fc-event {
  pointer-events: auto
}

.type-agua {
  background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(59, 130, 246, .08)) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, .25) !important
}

.type-bio {
  background: linear-gradient(135deg, rgba(245, 158, 11, .28), rgba(245, 158, 11, .08)) !important;
  color: #fcd34d !important;
  border-color: rgba(251, 191, 36, .25) !important
}

.type-te {
  background: linear-gradient(135deg, rgba(239, 68, 68, .28), rgba(239, 68, 68, .08)) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, .25) !important
}

.type-lavado {
  background: linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(14, 165, 233, .08)) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, .25) !important
}

.type-observacion {
  background: linear-gradient(135deg, rgba(168, 85, 247, .28), rgba(168, 85, 247, .08)) !important;
  color: #d8b4fe !important;
  border-color: rgba(192, 132, 252, .25) !important
}

.type-cosecha {
  background: linear-gradient(135deg, rgba(34, 197, 94, .28), rgba(34, 197, 94, .08)) !important;
  color: #6ee7b7 !important;
  border-color: rgba(74, 222, 128, .25) !important
}

.type-paso-flora {
  background: linear-gradient(135deg, rgba(236, 72, 153, .28), rgba(244, 114, 182, .1)) !important;
  color: #f9a8d4 !important;
  border-color: rgba(244, 114, 182, .22) !important
}

.fc-plan-indicators {
  position: absolute;
  left: 8px;
  bottom: 36px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  z-index: 5;
  flex-wrap: nowrap;
  max-width: calc(100% - 16px);
  overflow: visible;
  pointer-events: none
}

.fc-note-indicators {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  overflow: visible;
  pointer-events: none
}

.fc-note-indicator {
  color: rgba(255, 255, 255, .45);
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 7px;
  padding: 3px;
  display: grid;
  place-items: center;
  transition: all .3s var(--ease);
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  line-height: 1
}

.fc-note-indicator:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 255, 255, .15)
}

.fc-note-indicator .material-symbols-outlined {
  font-size: 14px !important
}

.fc-note-indicator .material-symbols-outlined,
.fc-plan-indicator .material-symbols-outlined {
  line-height: 1 !important;
  display: block
}

.fc-plan-indicator {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  cursor: pointer;
  pointer-events: auto;
  transition: all .3s var(--ease)
}

.fc-plan-indicator:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25)
}

.fc-plan-indicator .material-symbols-outlined {
  font-size: 14px !important
}

.fc-bg-event {
  display: none !important
}

@keyframes cycleBorderGlow {

  0%,
  100% {
    border-color: rgba(52, 211, 153, .25);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .08), 0 0 0 1px rgba(16, 185, 129, .06), 0 0 5px rgba(16, 185, 129, .04)
  }

  50% {
    border-color: rgba(110, 231, 183, .4);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .14), 0 0 0 1px rgba(16, 185, 129, .12), 0 0 10px rgba(16, 185, 129, .1)
  }
}

@keyframes pulseNeonBorder {

  0%,
  100% {
    box-shadow: 0 0 3px rgba(34, 197, 94, .25), inset 0 0 3px rgba(34, 197, 94, .15);
    border-color: rgba(34, 197, 94, .45)
  }

  50% {
    box-shadow: 0 0 10px rgba(34, 197, 94, .7), inset 0 0 6px rgba(34, 197, 94, .3);
    border-color: rgba(34, 197, 94, .9)
  }
}

/* ═══════════════════════════════════════════════════
   18. FOOTER (nf-*)
═══════════════════════════════════════════════════ */
.nf-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(16, 185, 129, .12), transparent), linear-gradient(180deg, rgba(6, 11, 10, .0), rgba(4, 6, 5, .98));
  border-top: 1px solid rgba(255, 255, 255, .05)
}

.nf-glow-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 85%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .7) 30%, rgba(110, 231, 183, .9) 50%, rgba(16, 185, 129, .7) 70%, transparent);
  box-shadow: 0 0 20px 2px rgba(16, 185, 129, .3)
}

.nf-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px
}

.nf-brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center
}

.nf-brand-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #d1fae5;
  background: linear-gradient(145deg, rgba(16, 185, 129, .28), rgba(6, 60, 42, .95));
  border: 1px solid rgba(110, 231, 183, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 28px rgba(16, 185, 129, .18), var(--shadow-md);
  animation: nf-icon-pulse 4s ease-in-out infinite
}

.nf-brand-icon .material-symbols-outlined {
  font-size: 30px
}

.nf-pre-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .5)
}

.nf-wordmark {
  font-size: clamp(44px, 8vw, 82px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: linear-gradient(130deg, #f0fdf4 20%, rgba(110, 231, 183, .85) 60%, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0
}

.nf-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65
}

.nf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center
}

.nf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .03);
  color: rgba(240, 253, 244, .65);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .25s var(--ease);
  user-select: none;
  cursor: default;
  backdrop-filter: blur(6px)
}

.nf-pill .material-symbols-outlined {
  font-size: 14px;
  color: var(--accent)
}

.nf-pill:hover {
  border-color: rgba(16, 185, 129, .25);
  background: rgba(16, 185, 129, .06);
  color: #d1fae5;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm)
}

.nf-divider {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, .05);
  overflow: visible
}

.nf-divider-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .12), 0 0 18px rgba(16, 185, 129, .45);
  animation: nf-orb-beat 2.8s ease-in-out infinite
}

.nf-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px
}

.nf-bottom-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: rgba(167, 243, 208, .4);
  font-weight: 600;
  letter-spacing: .04em
}

.nf-bottom-left .material-symbols-outlined {
  font-size: 13px
}

.nf-bottom-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center
}

.nf-bottom-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .45)
}

.nf-bottom-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(167, 243, 208, .3);
  flex-shrink: 0
}

.nf-bottom-right {
  display: flex;
  justify-content: flex-end
}

.nf-link {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(167, 243, 208, .4);
  text-decoration: none;
  transition: color .2s
}

.nf-link:hover {
  color: rgba(167, 243, 208, .85)
}

@keyframes nf-icon-pulse {

  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 28px rgba(16, 185, 129, .18), 0 16px 36px rgba(0, 0, 0, .25)
  }

  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 48px rgba(16, 185, 129, .4), 0 16px 36px rgba(0, 0, 0, .25)
  }
}

@keyframes nf-orb-beat {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .12), 0 0 16px rgba(16, 185, 129, .45)
  }

  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, .06), 0 0 28px rgba(16, 185, 129, .65)
  }
}

/* Old footer classes (compatibility) */
.site-footer {
  position: relative;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: linear-gradient(180deg, rgba(6, 11, 10, .92), rgba(4, 6, 5, .98));
  overflow: hidden
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: min(400px, 45vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(110, 231, 183, .6), transparent)
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap
}

.footer-lead {
  flex: 1 1 400px;
  display: grid;
  gap: 16px;
  min-width: 0
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0
}

.footer-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #d1fae5;
  background: linear-gradient(145deg, rgba(16, 185, 129, .25), rgba(6, 60, 42, .92));
  border: 1px solid rgba(110, 231, 183, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-md);
  flex-shrink: 0
}

.footer-mark .material-symbols-outlined {
  font-size: 28px
}

.footer-copy {
  display: grid;
  gap: 5px
}

.footer-kicker {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, .6)
}

.footer-copy strong {
  font-size: 22px;
  line-height: 1;
  color: #f3fff8
}

.footer-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  max-width: 56ch
}

.footer-meta {
  flex: 0 1 400px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px
}

.footer-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(16, 185, 129, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(110, 231, 183, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.footer-signal .material-symbols-outlined {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(16, 185, 129, .1);
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0
}

.footer-signal strong,
.footer-card strong {
  display: block;
  color: #f3fff8
}

.footer-signal span:last-child {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45
}

.footer-card {
  display: grid;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)), radial-gradient(circle at top left, rgba(16, 185, 129, .05), transparent 36%);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #d9fbe8;
  min-height: 110px;
  align-content: start
}

.footer-card .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .12);
  color: var(--accent);
  font-size: 18px
}

.footer-card strong {
  font-weight: 600;
  font-size: 13px
}

.footer-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .04)
}

.footer-caption {
  color: rgba(243, 255, 248, .7);
  font-size: 11px;
  letter-spacing: .03em
}

.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(167, 243, 208, .75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: rgba(167, 243, 208, .55)
}

/* ═══════════════════════════════════════════════════
   19. RESPONSIVE — DESKTOP (1200px)
═══════════════════════════════════════════════════ */
@media (max-width:1200px) {
  .wrap {
    padding: 16px 12px
  }

  .layout {
    gap: 0
  }
}

@media (max-width:1120px) {
  .top-nav .container {
    align-items: stretch
  }
}

/* ═══════════════════════════════════════════════════
   20. RESPONSIVE — TABLET (1000px)
═══════════════════════════════════════════════════ */
@media (max-width:1000px) {
  .wrap {
    margin: 10px auto;
    padding: 10px 8px
  }

  .card.calendar {
    padding: 10px
  }

  .fc-toolbar-title {
    font-size: 16px !important;
    line-height: 1.1
  }

  .fc-daygrid-day {
    padding: 1px !important
  }

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

  .fc-cycle-start-marker {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    border-radius: 6px
  }

  .fc-cycle-start-marker .material-symbols-outlined {
    font-size: 12px !important
  }

  .fc-daygrid-day-events {
    margin: 0 !important
  }

  .fc-dayGridMonth-view .fc-daygrid-day-frame {
    min-height: 74px !important;
    padding-bottom: 42px;
    border-radius: 8px
  }

  .fc-dayGridMonth-view .fc-daygrid-day-frame.has-corner-indicators {
    padding-bottom: 46px
  }

  .fc-plan-indicators {
    left: 5px;
    right: 5px;
    bottom: 24px;
    gap: 3px;
    max-width: calc(100% - 10px)
  }

  .fc-note-indicators {
    left: 5px;
    right: 5px;
    bottom: 5px;
    justify-content: flex-start
  }

  .fc-plan-indicator,
  .fc-note-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 6px
  }

  .fc-plan-indicator .material-symbols-outlined,
  .fc-note-indicator .material-symbols-outlined {
    font-size: 12px !important
  }
}

/* ═══════════════════════════════════════════════════
   20.5 RESPONSIVE — NAVBAR (1180px)
═══════════════════════════════════════════════════ */
@media (max-width:1180px) {
  body.app-nav-open {
    overflow: hidden
  }

  .app-nav .container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    align-items: center;
    padding: 12px 14px;
    gap: 10px
  }

  .app-nav .brand {
    min-width: 0;
    grid-area: brand
  }

  .app-nav-toggle {
    display: inline-flex;
    margin: 0;
    justify-self: end;
    align-self: center;
    grid-area: toggle
  }

  .app-nav .nav-toolbar {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: min(calc(100% - 28px), 420px);
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(6, 11, 10, .98), rgba(6, 11, 10, .94)), radial-gradient(circle at top left, rgba(16, 185, 129, .1), transparent 32%);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .25s, transform .25s, visibility .25s;
    z-index: 110
  }

  .app-nav.is-open .nav-toolbar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0)
  }

  .app-nav .nav-cluster {
    display: grid;
    gap: 8px
  }

  .app-nav .nav-buttons,
  .app-nav .nav-cluster-account {
    display: grid;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0
  }

  .app-nav .nav-cluster-account .app-logout-form {
    display: flex
  }

  .app-nav .nav-btn {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    flex: none
  }
}

/* ═══════════════════════════════════════════════════
   21. RESPONSIVE — MOBILE (768px)
═══════════════════════════════════════════════════ */
@media (max-width:768px) {
  body {
    font-size: 15px
  }

  .calendar-context-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: stretch
  }

  .calendar-context-copy {
    align-items: flex-start
  }

  .calendar-context-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px
  }

  .calendar-context-icon .material-symbols-outlined {
    font-size: 18px
  }

  .calendar-context-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
  }

  .calendar-context-controls .cycle-stage-switch {
    width: 100%;
    justify-content: center
  }

  .calendar-context-controls .cycle-stage-chip {
    flex: 1 1 0;
    min-width: 0
  }

  .calendar-context-controls .sync-status-chip {
    width: max-content;
    max-width: 100%;
    justify-self: center;
    padding: 0;
    border-left: none
  }

  .status-strip {
    top: 78px
  }

  .status-strip-inner {
    padding: 8px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px
  }

  .status-detail {
    font-size: 12px;
    align-items: flex-start;
    gap: 8px
  }

  .status-sep {
    display: none
  }

  .wizard-steps,
  .stage-grid,
  .cycle-form-grid,
  .cycle-actions,
  .config-menu-layout,
  .data-actions,
  .info-metrics,
  .config-inline-row {
    grid-template-columns: 1fr
  }

  .config-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px
  }

  .config-tab {
    justify-content: center;
    min-height: 52px;
    padding: 8px 6px
  }

  .config-tab span:last-child {
    line-height: 1.15
  }

  .config-pane-head {
    align-items: flex-start
  }

  .color-input {
    height: 44px;
    min-height: 44px
  }

  .icon-library-panel {
    width: min(360px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    max-height: calc(100vh - 24px);
    padding: 12px
  }

  .icon-picker {
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    width: min(320px, calc(100vw - 36px));
    padding: 12px
  }

  .icon-library-list {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    max-height: 260px
  }

  .config-dialog {
    width: calc(100% - 16px);
    padding: 14px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain
  }

  .layout.has-info-widget {
    grid-template-columns: 1fr
  }

  .info-widget {
    position: static
  }

  .info-panel-head {
    grid-template-columns: 1fr
  }

  .info-dialog {
    padding: 20px 16px;
    gap: 14px
  }

  .info-dialog .info-metrics {
    grid-template-columns: 1fr
  }

  .dialog-hero,
  .config-surface,
  .config-block {
    padding: 14px 52px 14px 14px;
    border-radius: 16px
  }

  .fc-toolbar {
    flex-direction: column !important;
    gap: 14px;
    align-items: stretch !important;
    padding: 0 0 14px 0 !important
  }

  .fc-toolbar-title {
    font-size: 18px !important;
    text-align: center
  }

  .fc-button-group {
    width: 100%;
    display: flex
  }

  #calendar {
    padding-top: 4px
  }

  .card.calendar,
  #calendar,
  #calendar .fc,
  #calendar .fc-view-harness,
  #calendar .fc-view-harness-active,
  #calendar .fc-scroller-harness,
  #calendar .fc-scroller,
  #calendar .fc-daygrid,
  #calendar .fc-daygrid-body,
  #calendar .fc-daygrid-body table {
    overflow: visible !important
  }

  #calendar .fc-daygrid-body tr:first-child .fc-daygrid-day {
    padding-top: 3px !important
  }

  .fc-daygrid-day {
    position: relative;
    overflow: visible !important
  }

  .fc-button {
    flex: 1;
    padding: 7px 0 !important;
    font-size: 13px !important
  }

  .fc-daygrid-day:not(.fc-day-other):hover .fc-daygrid-day-frame,
  .fc-daygrid-day:not(.fc-day-other):active .fc-daygrid-day-frame {
    transform: translateY(-2px);
    position: relative;
    z-index: 30;
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4), 0 0 10px -4px rgba(255, 255, 255, .04)
  }

  .wrap {
    padding: 12px 8px
  }

  .card.calendar {
    padding: 10px;
    border-radius: 14px
  }

  .fc-daygrid-day {
    padding: 2px !important
  }

  .fc-daygrid-day-top {
    padding: 4px !important;
    justify-content: space-between !important
  }

  .fc-daygrid-day-frame {
    min-height: 82px !important;
    border-radius: 9px;
    padding-bottom: 48px
  }

  .fc-daygrid-day-frame.has-corner-indicators {
    padding-bottom: 52px
  }

  .fc-daygrid-day-number {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 12px
  }

  .fc-event {
    margin: 2px !important;
    border-radius: 4px !important
  }

  .fc-event-main {
    font-size: 10px !important;
    padding: 2px 3px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.1
  }

  .fc-plan-indicators {
    left: 5px;
    right: 5px;
    bottom: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 20px));
    grid-auto-rows: 20px;
    align-items: end;
    justify-content: start;
    gap: 3px;
    max-width: none;
    overflow: visible
  }

  .fc-note-indicators {
    left: 5px;
    right: 5px;
    bottom: 6px;
    justify-content: flex-start
  }

  .fc-plan-indicator,
  .fc-note-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 6px;
    padding: 0;
    overflow: visible
  }

  .fc-plan-indicator .material-symbols-outlined,
  .fc-note-indicator .material-symbols-outlined {
    font-size: 12px !important
  }

  .toast-wrap {
    bottom: 16px;
    right: 16px;
    left: 16px
  }

  .site-footer-inner {
    padding: 18px 14px 22px;
    align-items: flex-start
  }

  .footer-meta {
    grid-template-columns: 1fr;
    width: 100%
  }

  .footer-bottom {
    padding: 0 14px 18px
  }

  .footer-line {
    flex-wrap: wrap
  }

  .sidebar-setting-card {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 12px;
    border-radius: 14px
  }

  .sidebar-setting-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    order: 3
  }

  .sidebar-setting-control {
    justify-self: end;
    align-self: center
  }

  .sidebar-setting-copy strong {
    font-size: 13px
  }

  .sidebar-setting-copy small {
    font-size: 11px;
    line-height: 1.4
  }

  .data-card {
    padding: 12px
  }

  .data-card-head {
    gap: 8px
  }

  .data-card-head .material-symbols-outlined {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 16px
  }

  .config-sections,
  .config-panel,
  .config-panel.is-active,
  .wizard-flow,
  .wizard-panel.is-active {
    min-width: 0
  }

  .config-surface,
  .config-block {
    padding: 12px;
    border-radius: 14px
  }

  .wizard-copy {
    gap: 4px
  }

  .wizard-title {
    font-size: 17px
  }

  .wizard-text {
    font-size: 12px;
    line-height: 1.45
  }

  .wizard-steps,
  .stage-grid,
  .cycle-form-grid,
  .cycle-actions,
  .config-menu-layout,
  .data-layout,
  .data-actions,
  .config-inline-row,
  .config-inline-actions {
    grid-template-columns: 1fr
  }

  .stage-grid {
    gap: 8px
  }

  .stage-card {
    min-height: auto;
    padding: 12px;
    gap: 7px;
    border-radius: 14px
  }

  .stage-card strong {
    font-size: 14px
  }

  .stage-card small {
    font-size: 12px;
    line-height: 1.4
  }

  .stage-card .material-symbols-outlined {
    width: 36px;
    height: 36px;
    font-size: 17px
  }

  .cycle-field {
    padding: 9px 11px;
    border-radius: 12px
  }

  .cycle-field-label {
    font-size: 10px
  }

  .wizard-nav,
  .cycle-actions {
    display: flex;
    flex-direction: column;
    gap: 7px
  }

  .wizard-nav .btn,
  .cycle-actions .btn,
  .dialog-actions .btn,
  .data-actions .btn,
  .data-import-btn {
    width: 100%
  }

  .config-pane-head {
    gap: 7px
  }

  .config-inline-title {
    font-size: 10px;
    letter-spacing: .07em
  }

  .config-inline-card {
    padding: 10px;
    border-radius: 12px
  }

  .config-menu-item {
    padding: 9px;
    border-radius: 10px
  }

  .config-menu-item-label {
    font-size: 11px
  }

  .icon-picker {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(336px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 18px;
    transform: translate(-50%, -50%);
    max-height: min(420px, calc(100dvh - 24px));
    overflow-y: auto
  }

  .icon-library-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 18px));
    max-width: calc(100vw - 18px);
    max-height: 78vh
  }

  .icon-library-list {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr))
  }

  .view-note-head {
    flex-direction: column
  }

  .view-note-actions {
    width: 100%;
    justify-content: flex-end
  }

  .note-form-surface {
    padding: 14px
  }

  .profile-dialog {
    width: calc(100% - 10px);
    padding: 12px
  }

  .profile-form:first-of-type,
  .profile-form:last-of-type {
    grid-template-columns: 1fr
  }

  .menu-popup {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    width: min(300px, calc(100vw - 24px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(500px, calc(100dvh - 24px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-radius: 16px !important;
    padding: 6px !important;
    box-shadow: var(--shadow-lg) !important;
    transform: translate(-50%, -50%) !important
  }

  .menu-popup button:hover {
    transform: none
  }

  .config-dialog-hero {
    padding: 12px;
    gap: 6px;
    border-radius: 14px
  }

  .config-dialog-hero .dialog-title {
    font-size: 18px
  }

  .config-dialog-hero .dialog-title .material-symbols-outlined {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 17px
  }

  .nf-main {
    padding: 44px 18px 36px;
    gap: 28px
  }

  .nf-wordmark {
    font-size: 48px
  }

  .nf-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 14px 18px 18px
  }

  .nf-bottom-left {
    justify-content: center
  }

  .nf-bottom-right {
    justify-content: center
  }
}

/* ═══════════════════════════════════════════════════
   22. RESPONSIVE — SMALL MOBILE (480px)
═══════════════════════════════════════════════════ */
@media (max-width:480px) {
  .top-nav .container {
    padding: 10px 12px;
    gap: 8px
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px
  }

  .brand-mark .material-symbols-outlined {
    font-size: 20px
  }

  .brand-name {
    font-size: 17px
  }

  .brand-kicker {
    font-size: 9px
  }

  .nav-buttons {
    gap: 3px;
    padding: 3px
  }

  .nav-btn {
    padding: 7px 8px;
    gap: 6px
  }

  .nav-btn .material-symbols-outlined {
    width: 26px;
    height: 26px;
    font-size: 15px;
    border-radius: 8px
  }

  .nav-btn-copy strong {
    font-size: 11px
  }

  .nav-btn-copy small {
    display: none
  }

  .wrap {
    padding: 8px 5px;
    margin: 8px auto
  }

  .layout {
    gap: 8px
  }

  .card {
    padding: 10px;
    border-radius: 12px
  }

  .fc-toolbar {
    gap: 8px !important
  }

  .fc-toolbar-title {
    font-size: 15px !important
  }

  .fc-button-group {
    gap: 3px
  }

  .fc-button {
    min-height: 36px;
    font-size: 12px !important
  }

  .fc-daygrid-day {
    padding: 1px !important
  }

  .fc-daygrid-day-top {
    padding: 3px 2px !important
  }

  .fc-cycle-start-marker {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    border-radius: 5px
  }

  .fc-cycle-start-marker .material-symbols-outlined {
    font-size: 11px !important
  }

  .fc-daygrid-day-frame {
    min-height: 74px !important;
    border-radius: 7px;
    padding-bottom: 46px
  }

  .fc-daygrid-day-frame.has-corner-indicators {
    padding-bottom: 50px
  }

  .fc-daygrid-day-number {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 10px
  }

  .fc-event {
    margin: 1px !important
  }

  .fc-event-main {
    font-size: 9px !important;
    padding: 1px 2px !important
  }

  .fc-col-header-cell-cushion {
    font-size: 10px !important;
    padding: 3px 2px !important
  }

  .fc-plan-indicators {
    left: 3px;
    right: 3px;
    bottom: 24px;
    grid-template-columns: repeat(2, minmax(0, 18px));
    grid-auto-rows: 18px;
    gap: 2px
  }

  .fc-note-indicators {
    left: 3px;
    right: 3px;
    bottom: 4px
  }

  .fc-plan-indicator,
  .fc-note-indicator {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 5px
  }

  .fc-plan-indicator .material-symbols-outlined,
  .fc-note-indicator .material-symbols-outlined {
    font-size: 11px !important
  }

  .app-dialog {
    width: calc(100% - 10px);
    padding: 12px;
    max-height: calc(100dvh - 10px);
    border-radius: 14px
  }

  .dialog-hero {
    padding: 12px 48px 12px 12px;
    border-radius: 12px;
    margin-bottom: 10px
  }

  .dialog-title {
    font-size: 16px;
    gap: 7px
  }

  .dialog-subtitle {
    font-size: 11px;
    line-height: 1.4
  }

  .btn {
    font-size: 13px;
    padding: 11px 14px
  }

  .config-dialog {
    width: calc(100% - 10px);
    padding: 10px;
    gap: 14px;
    max-height: calc(100dvh - 20px)
  }

  .config-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 3px
  }

  .config-tab {
    padding: 8px 4px;
    font-size: 10px;
    min-height: 48px;
    border-radius: 9px
  }

  .config-tab.is-active {
    background: rgba(255, 255, 255, .04);
    color: var(--accent)
  }

  .config-tab .material-symbols-outlined {
    font-size: 16px;
    margin-bottom: 1px
  }

  .wizard-steps {
    gap: 6px;
    margin-bottom: 10px
  }

  .wizard-step {
    padding: 10px;
    border-radius: 12px
  }

  .config-surface,
  .config-block {
    padding: 10px;
    border-radius: 14px
  }

  .wizard-title {
    font-size: 16px
  }

  .stage-card {
    min-height: 110px;
    padding: 12px
  }

  .stage-card strong {
    font-size: 14px
  }

  .stage-card .material-symbols-outlined {
    width: 34px;
    height: 34px;
    font-size: 16px
  }

  .dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px
  }

  .dialog-actions .btn {
    width: 100%
  }

  .wizard-nav,
  .config-inline-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px
  }

  .cycle-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%
  }

  .info-widget {
    position: static;
    width: 100%
  }

  .info-widget .info-panel-head {
    padding: 12px
  }

  .info-widget .info-metrics {
    grid-template-columns: 1fr;
    gap: 6px
  }

  .info-metrics {
    grid-template-columns: 1fr;
    gap: 6px
  }

  .config-menu-layout {
    grid-template-columns: 1fr !important
  }

  .config-menu-pane {
    order: 2
  }

  .config-inline-card {
    order: 1
  }

  .data-layout {
    grid-template-columns: 1fr !important;
    gap: 8px
  }

  .data-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px
  }

  .dialog-actions-split,
  .dialog-actions-leading {
    justify-content: stretch
  }

  .logs-dialog {
    padding: 14px;
    gap: 12px
  }

  .logs-list {
    max-height: 48vh
  }

  .note-form {
    gap: 12px
  }

  .toast-wrap {
    bottom: 10px;
    right: 8px;
    left: 8px
  }

  .toast {
    max-width: 100%;
    font-size: 12px
  }

  #placeholder.empty-state {
    padding: 40px 14px;
    gap: 16px;
    min-height: 350px
  }

  .empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px
  }

  .empty-state-icon .material-symbols-outlined {
    font-size: 26px
  }

  .empty-state-title {
    font-size: 20px
  }

  .empty-state-text {
    font-size: 13px
  }

  .nf-main {
    padding: 36px 14px 30px;
    gap: 24px
  }

  .nf-wordmark {
    font-size: 36px
  }

  .nf-pills {
    gap: 6px
  }

  .nf-pill {
    font-size: 10px;
    padding: 6px 10px
  }

  .nf-bottom {
    gap: 6px;
    padding: 12px 14px 16px;
    font-size: 9px
  }
}

/* ═══════════════════════════════════════════════════
   23. ANIMATIONS & KEYFRAMES
═══════════════════════════════════════════════════ */
@keyframes pulseGlow {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 8px var(--accent)
  }

  50% {
    opacity: .4
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-18px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(18px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(.95)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(18px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes ctaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .32);
    transform: translateY(0)
  }

  45% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    transform: translateY(-1px)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: translateY(0)
  }
}

@keyframes orbit-spin {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

/* Dialog glassmorphism rise */
@keyframes dialog-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 16px)) scale(.95);
    filter: blur(6px)
  }

  60% {
    filter: blur(0)
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(0)
  }
}

@keyframes dialog-backdrop-in {
  from {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0)
  }

  to {
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px)
  }
}

.app-dialog[open] {
  animation: dialog-rise .38s var(--ease-spring) both
}

.app-dialog[open]::backdrop {
  animation: dialog-backdrop-in .28s ease forwards;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px)
}

/* Progress shimmer */
@keyframes progress-shimmer {
  0% {
    background-position: -200% center
  }

  100% {
    background-position: 200% center
  }
}

@keyframes progress-glow-pulse {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(16, 185, 129, .35)
  }

  50% {
    box-shadow: 0 0 18px rgba(16, 185, 129, .65), 0 0 36px rgba(16, 185, 129, .14)
  }
}

.progress-bar span,
#progressInner,
#widgetProgressInner {
  background: linear-gradient(90deg, var(--accent), rgba(110, 231, 183, 1) 40%, rgba(255, 255, 255, .8) 50%, rgba(110, 231, 183, 1) 60%, var(--accent));
  background-size: 200% 100%;
  animation: progress-shimmer 2.6s linear infinite, progress-glow-pulse 3s ease-in-out infinite
}

/* Info metric cards stagger */
@keyframes card-from-left {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(.96)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes card-from-bottom {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.96)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes card-from-right {
  from {
    opacity: 0;
    transform: translateX(20px) scale(.96)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.app-dialog[open] .info-metric-card:nth-child(1) {
  animation: card-from-left .45s var(--ease) .1s both
}

.app-dialog[open] .info-metric-card:nth-child(2) {
  animation: card-from-bottom .45s var(--ease) .2s both
}

.app-dialog[open] .info-metric-card:nth-child(3) {
  animation: card-from-right .45s var(--ease) .3s both
}

/* Brand mark breathing */
@keyframes brand-breathe {

  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 rgba(16, 185, 129, 0), var(--shadow-md)
  }

  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 24px rgba(16, 185, 129, .25), 0 0 52px rgba(16, 185, 129, .08), var(--shadow-md)
  }
}

.brand-mark {
  animation: brand-breathe 4s ease-in-out infinite
}

/* Toast spring */
@keyframes toast-in {
  0% {
    opacity: 0;
    transform: translateX(36px) scale(.92)
  }

  65% {
    transform: translateX(-4px) scale(1.01)
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1)
  }
}

@keyframes toast-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1)
  }

  100% {
    opacity: 0;
    transform: translateY(-16px) scale(.96)
  }
}

@keyframes sync-status-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .75
  }

  50% {
    transform: scale(1.35);
    opacity: 1
  }
}

@keyframes sync-status-spin {
  from {
    transform: rotate(0)
  }

  to {
    transform: rotate(360deg)
  }
}

@keyframes loading-shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -20% 0
  }
}

.toast {
  animation: toast-in .4s var(--ease-spring) both
}

.toast.removing {
  animation: toast-out .28s ease forwards
}

/* Button ripple */
@keyframes btn-ripple-expand {
  0% {
    transform: scale(0);
    opacity: .45
  }

  100% {
    transform: scale(4);
    opacity: 0
  }
}

.btn-ripple-fx {
  position: absolute;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -28px;
  background: rgba(255, 255, 255, .2);
  pointer-events: none;
  animation: btn-ripple-expand .5s ease-out forwards
}

/* Config tab morphing indicator */
@keyframes tab-slide-in {
  from {
    opacity: 0;
    transform: scaleX(.4)
  }

  to {
    opacity: 1;
    transform: scaleX(1)
  }
}

.config-tab.is-active::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: var(--radius-pill);
  margin-top: 4px;
  animation: tab-slide-in .28s var(--ease) both;
  grid-column: 1/-1
}

/* Hero gradient sweep */
@keyframes hero-light-sweep {
  0% {
    background-position: 0% 0%
  }

  50% {
    background-position: 100% 100%
  }

  100% {
    background-position: 0% 0%
  }
}

/* Wizard step burst */
@keyframes step-burst {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .45)
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0)
  }
}

.wizard-step.is-active {
  animation: step-burst .5s ease forwards
}

/* Info hero icon hover */
@keyframes icon-hover-spin {
  from {
    transform: rotate(0deg) scale(1)
  }

  to {
    transform: rotate(8deg) scale(1.06)
  }
}

.info-hero-icon:hover {
  animation: icon-hover-spin .28s ease forwards
}

/* Metric card scanline */
@keyframes scanline {
  0% {
    top: -2px;
    opacity: .5
  }

  100% {
    top: 100%;
    opacity: 0
  }
}

.info-metric-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, .5), transparent);
  top: -2px;
  opacity: 0;
  pointer-events: none
}

.info-metric-card:hover::after {
  animation: scanline .5s ease forwards
}

/* Day cell glow */
@keyframes day-glow-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.fc-daygrid-day:hover>.fc-daygrid-day-frame {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .16), 0 0 14px rgba(16, 185, 129, .08);
  animation: day-glow-in .2s ease both
}

/* ═══════════════════════════════════════════════════
   24. PERFORMANCE — Reduce animations on mobile
   (preserves FullCalendar interactivity)
═══════════════════════════════════════════════════ */
@media (max-width:768px), (hover:none) and (pointer:coarse) {
  html {
    scroll-behavior: auto !important
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }

  /* Keep mobile interactions stable while removing cosmetic motion. */
  .brand-mark,
  .empty-state-icon,
  .empty-state-icon::before,
  .empty-state-icon::after,
  .empty-state-cta,
  .nf-brand-icon,
  .nf-divider-orb,
  #configNextBtn,
  .nav-btn::before,
  .wizard-step.is-active,
  .config-tab.is-active::after,
  .info-metric-card::after,
  .progress-bar span,
  #progressInner,
  #widgetProgressInner {
    animation: none !important
  }

  .btn-ripple-fx {
    display: none !important
  }

  /* Ensure FC controls are fully interactive on touch */
  .fc-button,
  .fc-button-group,
  .fc-toolbar-chunk,
  .fc-prev-button,
  .fc-next-button,
  .fc-today-button {
    touch-action: manipulation !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(16, 185, 129, .15)
  }

  .fc-daygrid-day {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(16, 185, 129, .1)
  }
}
