/* ==========================================================================
   bridge.css — Reconciles BEM class names from JS with CSS module naming
   Maps JS-generated classes to proper styles
   ========================================================================== */

/* ---- Top Bar (JS uses __ BEM, CSS uses -) ---- */
.top-bar__logo { display: flex; align-items: center; gap: var(--space-sm); }
.top-bar__logo-text {
  font-family: var(--font-pixel);
  font-size: var(--text-xs);
  color: var(--hotpink);
  letter-spacing: 1px;
  text-transform: lowercase;
}
.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.top-bar__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-soft);
  text-transform: lowercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.top-bar__nav-link:hover {
  color: var(--hotpink);
  background: rgba(255, 105, 180, 0.1);
}
.top-bar__right { display: flex; align-items: center; gap: var(--space-sm); }
.top-bar__state {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-transform: lowercase;
}

/* ---- Cover Banner ---- */
.cover-banner {
  position: relative;
  width: 100%;
  height: 140px;
  margin-top: 48px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}
.cover-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,228,236,0.15) 0%, rgba(253,244,255,0.3) 50%, rgba(255,255,255,0.6) 100%);
  pointer-events: none;
}

/* ---- Hamburger BEM ---- */
.hamburger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--hotpink);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}
.hamburger--active .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger--active .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Sidebar open state (JS: sidebar--open, CSS: sidebar.open) ---- */
.sidebar--open { transform: translateX(0) !important; box-shadow: 4px 0 24px rgba(120, 80, 160, 0.15); }

/* ---- Sidebar backdrop ---- */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 46, 0.3);
  backdrop-filter: blur(2px);
  z-index: 899;
}

/* ---- Sidebar sections ---- */
.sidebar__section {
  margin-bottom: var(--space-md);
}
.sidebar__heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--hotpink);
  text-transform: lowercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

/* ---- Sidebar quote ---- */
.sidebar-quote {
  text-align: center;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--pink-bg), var(--purple-bg));
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}
.sidebar-quote__text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}

/* ---- Sidebar divider (GIF images) ---- */
.sidebar-divider {
  display: block;
  width: 60%;
  max-width: 80px;
  margin: var(--space-md) auto;
  opacity: 0.7;
  border-radius: 4px;
  image-rendering: pixelated;
}
/* Specific GIFs that should be full-width */
.sidebar-divider--wide {
  width: 100%;
  max-width: 100%;
  opacity: 0.85;
}

/* ---- Sidebar toggle (collapsible) ---- */
.sidebar__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-soft);
  text-transform: lowercase;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.sidebar__toggle:hover { background: var(--pink-bg); color: var(--hotpink); }
.sidebar__toggle-arrow {
  font-size: 10px;
  transition: transform var(--transition-normal);
}

/* ---- Sidebar collapsible content ---- */
.sidebar__collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.sidebar__collapsible--open {
  max-height: 800px;
}

/* ---- Sidebar list ---- */
.sidebar-list {
  padding: var(--space-xs) 0 var(--space-xs) var(--space-sm);
}
.sidebar-list__item {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-soft);
  padding: 3px 0;
  border-bottom: 1px dotted var(--border-soft);
}
.sidebar-list__item:last-child { border-bottom: none; }
.sidebar-list__item--vision::before { content: '✨ '; font-size: 10px; }
.sidebar-list__item--goal::before { content: '🎯 '; font-size: 10px; }
.sidebar-list__item--done { text-decoration: line-through; color: var(--text-faint); }

/* ---- Quick Links ---- */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-soft);
  text-transform: lowercase;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.quick-link:hover { border-color: var(--hotpink); color: var(--hotpink); background: var(--pink-bg); }
.quick-link__icon { font-size: 12px; }
.quick-link__label { font-size: var(--text-xs); }

/* ---- Notebook Links ---- */
.notebook-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}
.notebook-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-soft);
  text-transform: lowercase;
  text-decoration: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.notebook-link:hover { border-color: var(--hotpink); color: var(--hotpink); background: var(--pink-bg); }
.notebook-link__icon { font-size: 12px; }
.notebook-link__label { flex: 1; }
.notebook-link__count {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  min-width: 18px;
  text-align: right;
}

/* ---- State Pills (BEM) ---- */
.state-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.state-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pill-color, var(--text-faint));
}
.state-pill__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
}
.state-pill--active {
  border-color: var(--pill-color) !important;
  background: var(--pill-bg) !important;
  color: var(--text);
  box-shadow: 0 0 8px var(--pill-color);
}

/* ---- CINDER Card (BEM) ---- */
.cinder-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--purple-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.cinder-card__orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #999;
  flex-shrink: 0;
}
.cinder-card__info { display: flex; flex-direction: column; gap: 2px; }
.cinder-card__state {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  color: var(--text);
}
.cinder-card__phase {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
}
.cinder-card__thought {
  width: 100%;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

/* ---- CINDER Rich Data ---- */
.cinder-card__rich {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-xs);
}
.cinder-rich__row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.cinder-rich__label {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  color: var(--text-faint);
  width: 52px;
  flex-shrink: 0;
}
.cinder-rich__bar {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.cinder-rich__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.cinder-rich__value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  width: 24px;
  text-align: right;
}
.cinder-rich__dots {
  display: flex;
  gap: 3px;
}
.cinder-rich__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.cinder-rich__dot--active {
  border-color: transparent;
}
.cinder-rich__badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.cinder-rich__badge {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--pink-bg);
  color: var(--hotpink);
  border: 1px solid var(--hotpink);
}
.cinder-rich__badge--movement {
  background: var(--purple-bg);
  color: var(--neon-purple);
  border-color: var(--neon-purple);
}
.cinder-rich__colors {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.cinder-rich__swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: help;
}

/* ---- Now Section ---- */
.section--now { margin-bottom: var(--space-lg); }
.now-header { text-align: center; margin-bottom: var(--space-md); }
.now-header__greeting {
  font-family: var(--font-pixel);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: var(--hotpink);
  text-transform: lowercase;
  letter-spacing: 1px;
  text-align: center;
}
.now-header__date {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-soft);
  margin-top: 4px;
}
.now-header__state { margin-top: var(--space-sm); }
.now-state-badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  border-radius: var(--radius-full);
}

/* ---- Quick Capture ---- */
.quick-capture {
  margin-bottom: var(--space-md);
}
.quick-capture__input {
  width: 100%;
  padding: 10px 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
  margin-bottom: var(--space-sm);
}
.quick-capture__input:focus { border-color: var(--hotpink); }
.quick-capture__input::placeholder { color: var(--text-faint); }
.quick-capture__actions {
  display: flex;
  gap: var(--space-xs);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  border: 1.5px dashed var(--hotpink);
  border-radius: var(--radius-sm);
  background: var(--pink-bg);
  color: var(--hotpink);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn:hover { background: var(--hotpink); color: white; }
.btn--capture { border-color: var(--hotpink); }
.btn--diary { border-color: var(--neon-purple); color: var(--neon-purple); background: var(--purple-bg); }
.btn--diary:hover { background: var(--neon-purple); color: white; }
.btn--task { border-color: #059669; color: #059669; background: var(--green-bg); }
.btn--task:hover { background: #059669; color: white; }
.btn--small {
  padding: 4px 10px;
  font-size: var(--text-xs);
}

/* ---- Split Section (two-column: GIF + content) ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  align-items: start;
}
.split-section--gif-right {
  grid-template-columns: 2fr 1fr;
}
.split-section__gif {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  max-height: 300px;
  overflow: hidden;
}
.split-section__gif img {
  width: 100%;
  max-width: 200px;
  max-height: 280px;
  border-radius: var(--radius-md);
  opacity: 0.9;
  object-fit: contain;
}
.split-section__content {
  margin-bottom: 0;
}
/* Mobile: stack vertically, gif on top */
@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-section__gif {
    max-height: 120px;
    overflow: hidden;
  }
  .split-section__gif img {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
  }
  .split-section--gif-right .split-section__gif {
    order: -1;
  }
}

/* ---- Section Banner (full-width GIF) ---- */
.section-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: var(--space-lg) 0;
  border-radius: var(--radius-md);
  opacity: 0.9;
}

/* ---- Section Backgrounds (candy-colored) ---- */
.section--now { background: #ffe4ec22; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #ff69b422; }
.section--tasks { background: #fdf4ff22; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #a855f722; }
.section--daily { background: #fffde822; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #eab30822; }
.section--areas { background: #f5f3ff33; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #818cf822; }
.section--uwg { background: #eff6ff22; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #6366f122; }
.section--places { background: #ecfdf522; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #22c55e22; }
.section--captures { background: #fff7ed22; padding: var(--space-md); border-radius: var(--radius-md); border: 1px dashed #f9731622; }

/* Sidebar section backgrounds */
.sidebar .sidebar__section { background: #fdf4ff18; padding: var(--space-sm); border-radius: var(--radius-sm); }
.sidebar-right .sidebar__section { background: #fff0f518; padding: var(--space-sm); border-radius: var(--radius-sm); }

/* ---- Section ---- */
.section { margin-bottom: var(--space-xl); }
.section__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px dotted var(--hotpink);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--hotpink);
  text-transform: lowercase;
  letter-spacing: 1px;
}
.section__subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-faint);
}

/* ---- Subsection ---- */
.subsection-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

/* ---- Refresh Bar (BEM active state) ---- */
.refresh-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
}
.refresh-bar--active,
.refresh-bar.active {
  background: var(--rainbow-gradient);
  background-size: 300% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ---- Toast (BEM visible state) ---- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 10px 20px;
  background: var(--hotpink);
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3000;
  pointer-events: none;
}
.toast--visible,
.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast__text { /* just a span, no extra styles needed */ }

/* ---- Task Items (BEM) ---- */
.task-list { margin-bottom: var(--space-md); }
.task-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 0;
  border-bottom: 1px dotted var(--border-soft);
}
.task-item:last-child { border-bottom: none; }
.task-item--done { opacity: 0.5; }
.task-item--done .task-item__name { text-decoration: line-through; }
.task-item__check { display: flex; align-items: center; flex-shrink: 0; }
.task-item__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--hotpink);
}
.task-item__checkmark { display: none; }
.task-item__name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text);
  flex: 1;
}
.task-item__body {
  flex: 1;
  min-width: 0;
}
.task-item__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
}
.task-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}
.task-item__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  text-transform: lowercase;
}
.task-item__tag--area { background: #fdf4ff; color: #a855f7; border: 1px solid #a855f733; }
.task-item__tag--goal { background: #fffde8; color: #ca8a04; border: 1px solid #eab30833; }
.task-item__tag--action { background: #ffe4ec; color: #ec4899; border: 1px solid #ff69b433; }
.task-item__tag--priority { background: #fef2f2; color: #ef4444; border: 1px solid #ef444433; font-weight: 700; }

/* ---- Task Add ---- */
.task-add {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}
.task-add__input {
  flex: 1;
  padding: 6px 10px;
  border: none;
  border-bottom: 1px dashed var(--border);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: transparent;
  color: var(--text);
  outline: none;
}
.task-add__input:focus { border-bottom-color: var(--hotpink); }
.task-add__input::placeholder { color: var(--text-faint); }

/* ---- Tab Switcher ---- */
.tab-switcher {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.tab-switcher__tab {
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-transform: lowercase;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tab-switcher__tab:hover { color: var(--hotpink); background: var(--pink-bg); }
.tab-switcher__tab--active {
  color: var(--hotpink);
  border-color: var(--hotpink);
  background: var(--pink-bg);
}

/* ---- Active Tasks Preview ---- */
.active-tasks { margin-bottom: var(--space-md); }
.recent-journal { margin-bottom: var(--space-md); }

/* ---- Journal Entries (BEM) ---- */
.journal-entry {
  padding: 10px 12px;
  background: var(--yellow-bg);
  border-left: 3px solid #eab308;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-sm);
}
.journal-entry__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 4px;
}
.journal-entry__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.journal-entry__mood {
  font-size: 14px;
}
.journal-entry__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-left: auto;
}
.journal-entry__content {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---- Area Cards (BEM) ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.area-card {
  background: var(--area-bg, var(--purple-bg));
  background-size: cover;
  background-position: center;
  border: 2px dashed var(--border);
  border-left: 4px solid var(--area-accent, var(--neon-purple));
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  min-height: 80px;
}
.area-card--has-cover {
  background-blend-mode: overlay;
}
.area-card--has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(253,244,255,0.65));
  z-index: 0;
  border-radius: inherit;
}
.area-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.area-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  position: relative;
  z-index: 1;
}
.area-card__header--expandable { cursor: pointer; }
.area-card__header--expandable:hover { background: rgba(255,255,255,0.3); }
.area-card__emoji { font-size: 1.2em; }
.area-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  color: var(--text);
  flex: 1;
  text-shadow: 0 0 4px rgba(255,255,255,0.8);
}
.area-card__expand-icon {
  font-size: 10px;
  color: var(--text-faint);
  transition: transform var(--transition-normal);
}
.area-card__body {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  position: relative;
  z-index: 1;
}
.area-card--expanded {
  grid-column: 1 / -1;
}
.area-card--expanded .area-card__body { display: block; }
.area-card__sub { margin-bottom: var(--space-sm); }
.area-card__sub-title {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.area-card__sub-item {
  font-size: var(--text-sm);
  padding: 3px 0;
  color: var(--text-soft);
  border-bottom: 1px dotted var(--border-soft);
}
.area-card__sub-item:last-child { border-bottom: none; }
.area-card__sub-item--done { text-decoration: line-through; color: var(--text-faint); }
.area-card__sub-item--vision::before { content: '→ '; color: var(--neon-purple); }
.area-card__sub-item--goal::before { content: '→ '; color: #eab308; }
.area-card__sub-item--action::before { content: '· '; color: var(--hotpink); }

/* ---- Visions Gallery ---- */
.visions-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
@media (max-width: 600px) {
  .visions-gallery { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
}
.vision-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 140px;
  background: var(--purple-bg);
  background-size: cover;
  background-position: center;
  border: 2px dashed var(--border);
  transition: all var(--transition-normal);
  cursor: default;
}
.vision-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vision-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,0,40,0.75) 0%, rgba(30,0,40,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}
.vision-card__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.3;
  text-transform: lowercase;
}
.vision-card__area {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  text-transform: lowercase;
}
.vision-card--no-cover {
  background: linear-gradient(135deg, #fdf4ff, #ffe4ec, #f5f3ff);
}
.vision-card--no-cover .vision-card__overlay {
  background: none;
}
.vision-card--no-cover .vision-card__name {
  color: var(--text);
  text-shadow: none;
}
.vision-card--no-cover .vision-card__area {
  color: var(--text-faint);
}

/* ---- UWG Cards ---- */
.uwg-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-sm);
}
.uwg-card {
  padding: var(--space-md);
  background: var(--blue-bg);
  border: 1px dashed var(--border);
  border-left: 3px solid #6366f1;
  border-radius: var(--radius-md);
}
.uwg-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.uwg-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text);
  text-transform: lowercase;
}
.uwg-card__status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6366f1;
  padding: 2px 6px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.uwg-card__score {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}
.uwg-card__links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}
.uwg-card__link {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: #6366f1;
  text-decoration: none;
}
.uwg-card__link:hover { text-decoration: underline; }

/* ---- Currently Tracker ---- */
.currently-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 100%;
  overflow: hidden;
}
@media (max-width: 480px) { .currently-grid { grid-template-columns: 1fr; } }
.currently-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.currently-field__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text-soft);
  text-transform: lowercase;
}
.currently-field__input {
  padding: 6px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.currently-field__input:focus { border-color: var(--hotpink); }
.currently-field__input::placeholder { color: var(--text-faint); }

/* ---- Places Gallery ---- */
.places-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}
.place-card {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}
.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.place-card__img {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.place-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  background: var(--purple-bg);
}
.place-card__info { padding: var(--space-sm); }
.place-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--text);
  text-transform: lowercase;
  display: block;
}
.place-card__city {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  display: block;
}
.place-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 8px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}
.place-card--visited .place-card__tag { background: var(--green-bg); color: #059669; }
.place-card--wishlist .place-card__tag { background: var(--purple-bg); color: var(--neon-purple); }

/* ---- Captures ---- */
.captures-list { /* container */ }
.capture-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  border-bottom: 1px dotted var(--border-soft);
}
.capture-item:last-child { border-bottom: none; }
.capture-item__top {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.capture-item__type {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  padding: 1px 6px;
  border: 1px dashed currentColor;
  flex-shrink: 0;
}
.capture-item__dest {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  opacity: 0.7;
}
.capture-item__text {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}
.capture-item__date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  white-space: nowrap;
  margin-left: auto;
}

/* ---- Daily Note ---- */
.daily-note {
  padding: var(--space-md);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.daily-note__content {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text);
}
.daily-note__editor {
  width: 100%;
  min-height: 120px;
  padding: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  background: rgba(255,255,255,0.5);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  line-height: 1.6;
  box-sizing: border-box;
}
.daily-note__editor:focus {
  outline: none;
  border-color: var(--hotpink);
  background: rgba(255,255,255,0.8);
}
.daily-note__save {
  margin-top: var(--space-xs);
}
.daily-note__content h1, .daily-note__content h2, .daily-note__content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--neon-purple);
  font-size: var(--text-xs);
  text-transform: lowercase;
  letter-spacing: 1px;
  margin: var(--space-sm) 0 var(--space-xs);
}

/* ---- Floating Emojis ---- */
.floating-emojis {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.floating-emoji {
  position: absolute;
  bottom: -40px;
  animation: emojiFloat linear forwards;
  pointer-events: none;
}
@keyframes emojiFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--float-opacity, 0.25); }
  90%  { opacity: var(--float-opacity, 0.25); }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ---- Text utilities ---- */
.text-faint { font-family: var(--font-mono); font-size: 15px; color: var(--text-faint); }
.text-small { font-size: var(--text-sm); }

/* ---- Markdown rendering ---- */
.md-h1, .md-h2, .md-h3, .md-h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--neon-purple);
  font-size: var(--text-xs);
  text-transform: lowercase;
  letter-spacing: 1px;
  margin: var(--space-sm) 0 var(--space-xs);
}
.md-code-block {
  padding: var(--space-sm);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-family: var(--font-code);
  font-size: var(--text-sm);
  overflow-x: auto;
}
.md-inline-code {
  padding: 2px 4px;
  background: var(--bg-alt);
  border-radius: 3px;
  font-family: var(--font-code);
  font-size: 0.9em;
}
.md-bq {
  border-left: 3px solid var(--thistle);
  padding-left: var(--space-md);
  color: var(--text-soft);
  font-style: italic;
}
.md-ul { padding-left: var(--space-md); }
.md-li { margin-bottom: 2px; }
.md-li--done { text-decoration: line-through; color: var(--text-faint); }
.md-hr { border: none; border-top: 1px dotted var(--border); margin: var(--space-md) 0; }
.md-img { max-width: 100%; border-radius: var(--radius-sm); margin: var(--space-sm) 0; }

/* ==========================================================================
   Heart Code — Ransom Note & Corruption Styles
   ========================================================================== */

/* Ransom-note header letters */
.section__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px;
  line-height: 1.4;
}

.section__title span {
  display: inline-block;
  border-radius: 2px;
  line-height: 1.3;
}

/* Sidebar headings with corruption */
.sidebar__heading {
  font-family: var(--font-display);
  text-transform: lowercase;
  letter-spacing: 1.5px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  transition: color 0.3s ease;
}

/* Subsection titles get ransom-note too */
.subsection-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.subsection-title span {
  display: inline-block;
  border-radius: 2px;
  line-height: 1.3;
}

/* Now header greeting — ransom note style */
.now-header__greeting {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1.4;
}

.now-header__greeting span {
  display: inline-block;
  border-radius: 2px;
  line-height: 1.3;
}

/* Date with colorized characters */
.now-header__date {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.now-header__date span {
  display: inline;
}

/* Top bar logo with subtle heart code accent */
.top-bar__logo-text {
  letter-spacing: 2px;
}

/* ==========================================================================
   Notebook Modal Overlay
   ========================================================================== */

.notebook-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.notebook-modal--open {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.notebook-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 46, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.notebook-modal__panel {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  margin: auto;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.notebook-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px dashed var(--border);
  background: var(--bg-alt);
}

.notebook-modal__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1px;
  font-size: var(--text-lg);
}

.notebook-modal__title span {
  display: inline-block;
  border-radius: 2px;
}

.notebook-modal__close {
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-soft);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.notebook-modal__close:hover {
  background: var(--pink-bg);
  color: var(--hotpink);
}

.notebook-modal__content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md) var(--space-lg);
}

.notebook-modal__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px dashed var(--border);
}

.notebook-modal__load-more {
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--hotpink);
  border: 1px dashed var(--hotpink);
  border-radius: var(--radius-full);
  background: var(--pink-bg);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.notebook-modal__load-more:hover {
  background: var(--hotpink);
  color: white;
}

.notebook-modal__nocodb-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  text-decoration: underline;
}

/* ==========================================================================
   Gallery View (inside modal)
   ========================================================================== */

.nb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.nb-gallery__card {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.nb-gallery__card.nb-record--expanded {
  overflow: visible;
  transform: none;
  grid-column: 1 / -1;
  z-index: 10;
}

.nb-gallery__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nb-gallery__img {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}

.nb-gallery__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--bg-alt);
}

.nb-gallery__info {
  padding: var(--space-sm);
}

.nb-gallery__name {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-gallery__status,
.nb-gallery__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  display: inline-block;
  margin-right: var(--space-xs);
}

/* ---- Tag Pills (notebook records) ---- */
.nb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}
.nb-tag {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   List View (inside modal)
   ========================================================================== */

.nb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nb-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.nb-list__item:hover {
  transform: translateX(2px);
}

.nb-list__item--done {
  opacity: 0.5;
}

.nb-list__item--done .nb-list__name {
  text-decoration: line-through;
}

.nb-list__bullet {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.nb-list__content {
  flex: 1;
  min-width: 0;
}

.nb-list__name {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

.nb-list__tag {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  display: inline-block;
  margin-top: 2px;
}

.nb-list__preview {
  font-size: var(--text-xs);
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.4;
}

.nb-list__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 2px;
}

/* ==========================================================================
   Right Sidebar Sections
   ========================================================================== */

.sidebar-right .sidebar__section {
  margin-bottom: var(--space-lg);
}

.sidebar-right .sidebar-divider {
  width: 60%;
  max-width: 80px;
  margin: var(--space-md) auto;
  display: block;
  opacity: 0.7;
  border-radius: 4px;
  image-rendering: pixelated;
}
.sidebar-right .sidebar-divider--wide {
  width: 100%;
  max-width: 100%;
  opacity: 0.85;
}

/* Notebook links in right sidebar — styled as clickable cards */
.sidebar-right .notebook-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 4px;
}

.sidebar-right .notebook-link:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .notebook-modal__panel {
    width: 96%;
    max-height: 95vh;
  }

  .nb-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* ==========================================================================
   Feeling Card (Right Sidebar — CINDER state)
   ========================================================================== */

.feeling-card {
  padding: var(--space-sm);
  background: var(--purple-bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.feeling-card__state {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: lowercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.feeling-card__meters {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-xs);
}
.feeling-card__meter {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.feeling-card__meter-label {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  color: var(--text-faint);
  width: 48px;
  flex-shrink: 0;
}
.feeling-card__meter-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.feeling-card__meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.feeling-card__meter-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
  width: 20px;
  text-align: right;
}
.feeling-card__meter-dots {
  display: flex;
  gap: 3px;
}
.feeling-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.feeling-dot--on {
  border-color: transparent;
}
.feeling-card__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}
.feeling-tag {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--pink-bg);
  color: var(--hotpink);
  border: 1px solid var(--hotpink);
}
.feeling-tag--alt {
  background: var(--purple-bg);
  color: var(--neon-purple);
  border-color: var(--neon-purple);
}
.feeling-card__colors {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}
.feeling-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.1);
  cursor: help;
}
.feeling-card__phase {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: lowercase;
}
.feeling-card__desc {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: var(--space-xs);
  font-style: italic;
}
.feeling-card__last-feeling {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-soft);
  font-style: italic;
  margin-top: var(--space-xs);
  padding: var(--space-xs);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.feeling-card__stale {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #ef4444;
  padding: 3px 8px;
  background: rgba(239,68,68,0.08);
  border: 1px dashed rgba(239,68,68,0.3);
  text-align: center;
  margin-bottom: var(--space-xs);
}
.feeling-card__updated {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  margin-top: 4px;
  text-align: right;
}
.feeling-card__field-link {
  display: block;
  text-align: center;
  margin-top: var(--space-sm);
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  color: var(--hotpink);
  border: 1.5px dashed var(--hotpink);
  border-radius: var(--radius-full);
  background: var(--pink-bg);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.feeling-card__field-link:hover {
  background: var(--hotpink);
  color: white;
}

/* ==========================================================================
   Expanded Record (Inline Editing)
   ========================================================================== */

.nb-record--expanded {
  grid-column: 1 / -1;
  z-index: 10;
  overflow: visible !important;
}
.nb-list__item.nb-record--expanded {
  flex-wrap: wrap;
  transform: none;
}

.nb-expanded {
  width: 100%;
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.nb-expanded__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 600px) {
  .nb-expanded__fields { grid-template-columns: 1fr; }
}

.nb-expanded__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nb-expanded__label {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  color: var(--text-faint);
}

.nb-expanded__input,
.nb-expanded__textarea {
  padding: 5px 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.nb-expanded__input:focus,
.nb-expanded__textarea:focus {
  border-color: var(--hotpink);
}

.nb-expanded__input[readonly],
.nb-expanded__textarea[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

.nb-expanded__textarea {
  min-height: 60px;
  resize: vertical;
}

.nb-expanded__checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--hotpink);
  cursor: pointer;
}

.nb-expanded__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  justify-content: flex-end;
}

.nb-expanded__cancel {
  border-color: var(--text-faint) !important;
  color: var(--text-faint) !important;
  background: transparent !important;
}

.nb-expanded__cancel:hover {
  background: var(--bg-alt) !important;
  color: var(--text) !important;
}

/* Expanded record — typed fields */
.nb-expanded__select {
  padding: 5px 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.nb-expanded__select:focus { border-color: var(--hotpink); }
.nb-expanded__input--date,
.nb-expanded__input--number {
  font-family: var(--font-mono);
}
.nb-expanded__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nb-expanded__link-pill {
  display: inline-block;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  background: var(--lavender-bg);
  color: var(--text-soft);
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-soft);
}
.nb-expanded__empty {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-style: italic;
}
.nb-expanded__attachments {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.nb-expanded__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

/* ==========================================================================
   Feeling Check-in Form
   ========================================================================== */
.feeling-form {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}
.feeling-form__input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  text-overflow: ellipsis;
}
.feeling-form__input:focus { border-color: var(--hotpink); }
.feeling-form__btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.feeling-form__response {
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--text-soft);
  min-height: 0;
}
.feeling-form__echo {
  padding: var(--space-sm);
  background: var(--lavender-bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-soft);
  font-style: italic;
  margin-top: var(--space-xs);
}

/* ==========================================================================
   Quote Controls (Sidebar)
   ========================================================================== */
.quote-add {
  display: flex;
  gap: 4px;
  margin-top: var(--space-sm);
}
.quote-add__input {
  flex: 1;
  padding: 4px 8px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
}
.quote-add__input:focus { border-color: var(--hotpink); }
.quote-add__btn { padding: 4px 8px; }
.quote-toggle {
  display: block;
  width: 100%;
  margin-top: var(--space-xs);
  padding: 4px;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: lowercase;
  color: var(--text-faint);
  cursor: pointer;
  text-align: left;
}
.quote-toggle:hover { color: var(--hotpink); }
.quote-all {
  margin-top: var(--space-xs);
  max-height: 200px;
  overflow-y: auto;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-xs);
}
.quote-all__item {
  font-size: var(--text-xs);
  color: var(--text-soft);
  padding: 3px 0;
  border-bottom: 1px dotted var(--border-soft);
}
.quote-all__item:last-child { border-bottom: none; }

/* ==========================================================================
   Calendar Widget (Right Sidebar)
   ========================================================================== */

.cal-day {
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-sm);
}

.cal-day__header {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.cal-event {
  padding: 3px var(--space-sm);
  margin-bottom: 3px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-event__time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.cal-event__title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

.cal-event__location {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ==========================================================================
   Now Section Labels & Feeling
   ========================================================================== */

.now-section-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin: var(--space-md) 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px dotted var(--border-soft);
}
.section-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-faint);
  opacity: 0.6;
}

.now-feeling {
  margin-bottom: var(--space-sm);
}
.now-feeling__content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.now-feeling-state {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  text-transform: lowercase;
  font-weight: 700;
}
.now-feeling-bar {
  flex: 1;
  min-width: 80px;
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.now-feeling-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.now-feeling-link {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--hotpink);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px dashed var(--hotpink);
  border-radius: var(--radius-full);
  background: var(--pink-bg);
  transition: all var(--transition-fast);
}
.now-feeling-link:hover {
  background: var(--hotpink);
  color: white;
}

.now-daily {
  margin-bottom: var(--space-md);
}
.now-daily .daily-note__editor {
  min-height: 80px;
}

/* ==========================================================================
   Journal Gallery Pages
   ========================================================================== */

.journal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-sm);
}
.journal-page {
  position: relative;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  min-height: 100px;
  overflow: hidden;
  transition: transform var(--transition-fast);
}
.journal-page:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.journal-page__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent;
  opacity: 0.4;
}
.journal-page__date {
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: 4px;
}
.journal-page__mood {
  font-size: 16px;
  margin-bottom: 4px;
}
.journal-page__title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.journal-page__content {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.4;
}
.journal-page { cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.journal-page:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.journal-page--open {
  grid-column: 1 / -1;
  min-height: 120px;
}
.journal-page__full {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--border-soft);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Vision Cards — Bold Solid Colors
   ========================================================================== */

/* Bold vision cards — solid neon backgrounds, no gradients */
.vision-card--bold {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 80px;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: default;
  border: none !important;
  border-image: none !important;
}
.vision-card--bold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  filter: brightness(1.1);
}
.vision-card--bold .vision-card__emoji {
  font-size: 32px;
  flex-shrink: 0;
}
.vision-card--bold .vision-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vision-card--bold .vision-card__name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.vision-card--bold .vision-card__area {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.7);
  text-transform: lowercase;
}
/* Full heartcode vision cards */
.vision-card--heartcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  padding: var(--space-md) var(--space-sm);
  border: 2px dashed;
  transition: all var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.vision-card--heartcode:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.vision-card__emojis {
  font-size: 20px;
  margin-bottom: 4px;
  letter-spacing: 2px;
}
.vision-card__name-hc {
  line-height: 1.5;
  margin-bottom: 4px;
  word-break: break-word;
}
.vision-card__sigils {
  margin-bottom: 4px;
  letter-spacing: 3px;
}
.vision-card__area-hc {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.8;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}
/* Keep old class names for compat */
.vision-card--colorful .vision-card__overlay { display: none; }

/* ==========================================================================
   Area Card — Compact (no expansion)
   ========================================================================== */

.area-card--compact {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  min-height: auto;
  background: var(--area-bg);
  border: 1.5px dashed var(--border);
  border-left: 4px solid var(--area-accent);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.area-card--compact:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.area-card--compact .area-card__emoji { font-size: 1em; }
.area-card--compact .area-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: lowercase;
  color: var(--text);
  flex: 1;
  text-shadow: none;
}
.area-card__counts {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.area-card__count {
  opacity: 0.7;
}

/* ==========================================================================
   Sidebar Cards (goals/visions — replaces lists)
   ========================================================================== */

.sidebar-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
}
.sidebar-card {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-soft);
  transition: transform var(--transition-fast);
}
.sidebar-card:hover {
  transform: translateX(2px);
}
.sidebar-card--done {
  opacity: 0.5;
}
.sidebar-card--done .sidebar-card__name {
  text-decoration: line-through;
}
.sidebar-card__icon {
  font-size: 12px;
  flex-shrink: 0;
}
.sidebar-card__name {
  flex: 1;
  line-height: 1.3;
}

/* ==========================================================================
   Area Images (Sidebar gallery)
   ========================================================================== */

.area-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}
.area-image-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.area-image-card img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}
.area-image-card__name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  font-family: var(--font-display);
  font-size: 7px;
  text-transform: lowercase;
  color: white;
  background: rgba(0,0,0,0.5);
  text-align: center;
}

/* ==========================================================================
   Tag Pill Differentiation
   ========================================================================== */

.nb-tag--status {
  font-weight: 600;
  border: 1.5px solid currentColor;
}
.nb-tag--done {
  text-decoration: line-through;
  opacity: 0.7;
}
.nb-tag--priority {
  font-weight: 700;
  border: 1.5px solid currentColor;
}

/* ==========================================================================
   Section Banner — Small variant
   ========================================================================== */

.section-banner--small {
  max-height: 120px;
  object-fit: cover;
  opacity: 0.7;
}

/* ==========================================================================
   Greeting — Heartcode class
   ========================================================================== */

.greeting--heartcode span {
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  padding: 2px 5px;
}

/* ==========================================================================
   State Timeline Visualization
   ========================================================================== */

.state-timeline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: var(--space-xs) 0;
  min-height: 48px;
  overflow-x: auto;
}
.st-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 28px;
}
.st-block__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.st-block:hover .st-block__dot {
  transform: scale(1.5);
}
.st-block__val {
  width: 100%;
  height: 20px;
  background: rgba(0,0,0,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.st-block__val-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}
.st-block__time {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ==========================================================================
   Clickable Sidebar Cards
   ========================================================================== */

.sidebar-card--clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sidebar-card--clickable:hover {
  transform: translateX(3px);
  box-shadow: -2px 0 8px rgba(255, 105, 180, 0.15);
}

/* ==========================================================================
   Dashboard Summary (cross-domain overview)
   ========================================================================== */

.dash-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.dash-summary__item {
  padding: var(--space-xs) var(--space-sm);
  border: 1px dashed var(--text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.dash-summary__state {
  border-color: currentColor;
  border-style: dashed;
}
.dash-summary__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-summary__icon {
  font-size: 14px;
  flex-shrink: 0;
}
.dash-summary__value {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
}
.dash-summary__meta {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-faint);
  margin-left: auto;
}
.dash-summary__tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-task {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: 1px dotted rgba(0,0,0,0.08);
}
.dash-task:last-child { border-bottom: none; }
.dash-task input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--hotpink);
  flex-shrink: 0;
}
.dash-task__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.dash-task__name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
}
.dash-task__tag {
  font-family: var(--font-display);
  font-size: 9px;
  padding: 1px 5px;
  border: 1px dashed;
}
.dash-task__tag--goal { color: #7c3aed; border-color: #7c3aed; }
.dash-task__tag--action { color: #0ea5e9; border-color: #0ea5e9; }
.dash-summary__uwg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-uwg {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border: 1px dashed var(--text-faint);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.dash-uwg:hover { border-color: var(--hotpink); }
.dash-uwg__icon { font-size: 12px; flex-shrink: 0; }
.dash-uwg__name { font-family: var(--font-display); font-size: var(--text-xs); }
.dash-uwg__status { font-family: var(--font-display); font-size: 9px; color: var(--text-faint); margin-left: auto; }

/* ==========================================================================
   Diary Entries
   ========================================================================== */

.journal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
}
.diary-entry {
  cursor: pointer;
  padding: var(--space-md);
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-md);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.diary-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.08);
  border-color: var(--hotpink);
}
.diary-entry--open {
  grid-column: 1 / -1;
  border-style: solid;
  border-color: var(--hotpink);
  background: var(--pink-bg);
}
.diary-entry__header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: 6px;
}
.diary-entry__emoji {
  font-size: 20px;
}
.diary-entry__mood {
  font-size: 13px;
  color: var(--text-soft);
}
.diary-entry__date {
  font-family: var(--font-display);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.diary-entry__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  border-bottom: 1px dotted rgba(0,0,0,0.08);
  padding-bottom: 4px;
}
.diary-entry__preview {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.5;
}
.diary-entry__full {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  padding-top: var(--space-xs);
}
.diary-entry__full p { margin-bottom: var(--space-xs); }
.diary-entry__full h1,.diary-entry__full h2,.diary-entry__full h3 { margin: var(--space-sm) 0 var(--space-xs); }
.diary-entry__full code { background: rgba(0,0,0,0.05); padding: 1px 4px; border-radius: 3px; }
.diary-entry__full blockquote { border-left: 2px dashed var(--hotpink); padding-left: var(--space-sm); color: var(--text-soft); }

/* ==========================================================================
   State Current Card (Hobonichi Navigation)
   ========================================================================== */

.state-current {
  border: 2px dashed;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-xs);
}
.state-current__header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.state-current__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.state-current__name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}
.state-current__desc {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
}
.state-current__cues {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.4;
}
.state-current__nav {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.5;
  padding-top: 6px;
  border-top: 1px dotted rgba(0,0,0,0.08);
}
