.eq-layout {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Left Sticky Sidebar */
.eq-sidebar {
  position: sticky;
  top: 76px;
  background: #ffffff;
  border: 1px solid #d7e1d4;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(29, 42, 31, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.eq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.eq-btn[hidden] { display: none; }
.eq-btn:focus-visible, .eq-pill:focus-visible, .eq-seg-btn:focus-visible, .eq-mode-btn:focus-visible {
  outline: 2px solid #216b43;
  outline-offset: 2px;
}
.eq-btn-panic {
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: #b83227;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(184, 50, 39, 0.22);
}
.eq-btn-panic:hover { background: #96261d; }
.eq-btn-panic small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.92;
}
.eq-btn-primary {
  background: #216b43;
  color: #ffffff;
}
.eq-btn-primary:hover { background: #185233; }
.eq-btn-saved {
  background: #eef3ec;
  color: #216b43;
  border-color: #216b43;
}
.eq-btn-outline {
  background: #ffffff;
  color: #1d2a1f;
  border-color: #c8d6c4;
}
.eq-btn-outline:hover { border-color: #216b43; color: #216b43; }
.eq-btn-sm {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 13px;
}

.eq-group-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #516354;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.eq-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f3f6f1;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #d7e1d4;
}
.eq-seg-btn {
  min-height: 34px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #516354;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.eq-seg-btn.is-selected {
  background: #216b43;
  color: #ffffff;
}

.eq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.eq-pill {
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #c8d6c4;
  background: #ffffff;
  color: #1d2a1f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.eq-pill:hover { border-color: #216b43; }
.eq-pill.is-selected {
  background: #216b43;
  color: #ffffff;
  border-color: #216b43;
}

.eq-nomess-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eq-more-filters {
  border: 1px dashed #a8bfa9;
  background: #f8faf7;
  border-radius: 10px;
  padding: 10px 12px;
}
.eq-more-filters summary {
  font-size: 13px;
  font-weight: 700;
  color: #216b43;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.eq-more-filters summary::-webkit-details-marker { display: none; }
.eq-more-filters summary::after { content: "▾"; font-size: 14px; }
.eq-more-filters[open] summary::after { content: "▴"; }
.eq-more-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eq-reset-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: #b83227;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  font-family: inherit;
}
.eq-reset-link[hidden] { display: none; }

/* Right Main Canvas */
.eq-canvas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.eq-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #d7e1d4;
  border-radius: 12px;
  padding: 10px 14px;
  flex-wrap: wrap;
}
.eq-mode-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.eq-mode-btn {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid #d7e1d4;
  background: #f3f6f1;
  color: #1d2a1f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.eq-mode-btn.is-active {
  background: #216b43;
  color: #ffffff;
  border-color: #216b43;
}

.eq-search-input {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid #c8d6c4;
  background: #ffffff;
  color: #1d2a1f;
  font-size: 14px;
  width: 230px;
  font-family: inherit;
}

.eq-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  color: #516354;
  padding-inline: 2px;
  flex-wrap: wrap;
}
.eq-status-line strong { color: #1d2a1f; }

/* Shimmer & Skeleton Loading */
@keyframes eq-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.eq-card-media,
.eq-spotlight-media,
.eq-skel-media,
.eq-skel-line {
  background: linear-gradient(90deg, #eef3ec 25%, #e1ebe0 50%, #eef3ec 75%);
  background-size: 200% 100%;
  animation: eq-shimmer 1.4s ease-in-out infinite;
}
.eq-card-media,
.eq-spotlight-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.eq-spotlight-media {
  border-radius: 10px;
}
.eq-card-media.is-loaded,
.eq-spotlight-media.is-loaded {
  animation: none;
  background: #eef3ec;
}
.eq-card-img,
.eq-spotlight-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.eq-card-media.is-loaded .eq-card-img,
.eq-spotlight-media.is-loaded .eq-spotlight-img {
  opacity: 1;
}

.eq-skel-media {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.eq-skel-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eq-skel-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  width: 100%;
}
.eq-skel-pill { width: 42%; height: 18px; border-radius: 999px; }
.eq-skel-title { width: 78%; height: 20px; }
.eq-skel-short { width: 64%; }

@media (prefers-reduced-motion: reduce) {
  .eq-card-media,
  .eq-spotlight-media,
  .eq-skel-media,
  .eq-skel-line {
    animation: none;
    background: #eef3ec;
  }
  .eq-card-img,
  .eq-spotlight-img {
    transition: none;
  }
}

.eq-spotlight {
  background: #fffaf2;
  border: 2px solid #b83227;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}
.eq-spotlight[hidden] { display: none; }
.eq-spotlight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.eq-spotlight-kicker {
  font-size: 12px;
  font-weight: 700;
  color: #b83227;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eq-close-btn {
  background: none;
  border: 1px solid #efc6c2;
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #7d1d15;
  cursor: pointer;
}
.eq-spotlight h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}

/* Slim Pinterest-Style Cards */
.eq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.eq-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d7e1d4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(29, 42, 31, 0.06);
}
.eq-card.is-done {
  border-color: #216b43;
  box-shadow: 0 0 0 1px #216b43;
}
.eq-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.eq-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.eq-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3ec;
  color: #216b43;
}
.eq-badge-gold { background: #fdf6e7; color: #8f5c11; }
.eq-badge-red { background: #fdf1f0; color: #b83227; }

.eq-card-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 19px;
  line-height: 1.25;
  margin: 0;
  color: #1d2a1f;
}
.eq-card-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #516354;
}

.eq-card-steps {
  border-top: 1px solid #eef3ec;
  padding-top: 8px;
  font-size: 13px;
}
.eq-card-steps summary {
  font-weight: 600;
  color: #216b43;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.eq-card-steps summary::-webkit-details-marker { display: none; }
.eq-card-steps summary::after { content: "▾"; }
.eq-card-steps[open] summary::after { content: "▴"; }

.eq-steps {
  margin: 8px 0;
  padding-left: 18px;
  color: #1d2a1f;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eq-swap {
  font-size: 12px;
  color: #516354;
  background: #f3f6f1;
  padding: 7px 9px;
  border-radius: 8px;
  margin: 6px 0;
}
.eq-note-quote {
  font-size: 12px;
  font-style: italic;
  color: #216b43;
  border-left: 3px solid #216b43;
  padding-left: 8px;
  margin: 6px 0 0;
}

.eq-card-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  gap: 6px;
}
.eq-card-actions .eq-btn { flex: 1; }

.eq-load-wrap {
  text-align: center;
  margin-top: 8px;
}

/* Printable Notes & Planner Panels */
.eq-panel-box {
  background: #ffffff;
  border: 1px solid #d7e1d4;
  border-radius: 14px;
  padding: 20px;
}
.eq-print-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.eq-note-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f3f6f1;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #d7e1d4;
}
.eq-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}
.eq-input, .eq-select, .eq-textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid #c8d6c4;
  background: #ffffff;
  color: #1d2a1f;
  font-size: 14px;
  font-family: inherit;
}
.eq-textarea { min-height: 92px; resize: vertical; }

.eq-printable-sheet {
  background: #ffffff;
  border: 3px dashed #216b43;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.eq-printable-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b83227;
  border: 1px solid #b83227;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.eq-printable-heading {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  line-height: 1.2;
  color: #1d2a1f;
  margin: 0 0 10px;
}
.eq-printable-salutation {
  font-size: 15px;
  font-weight: 700;
  color: #216b43;
  margin: 0 0 10px;
}
.eq-printable-body {
  font-size: 15px;
  line-height: 1.6;
  color: #1d2a1f;
  margin: 0 0 18px;
  white-space: pre-line;
}
.eq-printable-sign {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 20px;
  color: #b83227;
  margin: 0;
}

.eq-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.eq-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.eq-day-card {
  background: #f3f6f1;
  border: 1px solid #d7e1d4;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eq-day-card.is-filled { background: #ffffff; border-color: #216b43; }
.eq-day-num { font-size: 11px; font-weight: 700; color: #b83227; text-transform: uppercase; }
.eq-day-title { font-size: 14px; font-weight: 700; color: #1d2a1f; }
.eq-day-meta { font-size: 12px; color: #516354; }

.eq-panel[hidden] { display: none; }

@media (max-width: 1024px) {
  .eq-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .eq-layout { grid-template-columns: 1fr; }
  .eq-sidebar { position: static; }
  .eq-spotlight, .eq-print-layout { grid-template-columns: 1fr; }
  .eq-search-input { width: 100%; }
  .eq-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .eq-grid, .eq-plan-grid { grid-template-columns: 1fr; }
}