/* ─── App Layout ─────────────────────────────────────────────────────────── */

.app-body {
  background: var(--color-pearl);
}

.app-layout {
  display: block;
  min-height: 100vh;
}

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar {
  background: var(--color-understory);
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 1.5rem;
}

/* Logo */
.sidebar-logo-wrap {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(242, 238, 227, 0.1);
}

.sidebar-logo-link {
  text-decoration: none;
  display: block;
}

.sidebar-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
  /* Circle logo is square — cap so it doesn't dominate the 260px sidebar.
     Centered within the wrap. Old horizontal logo filled to full width;
     this keeps it tight and balanced with the user-info block below. */
  max-width: 130px;
  margin: 0 auto;
}

/* User info */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(242, 238, 227, 0.1);
}

.sidebar-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-curiositys-kiss);
  color: var(--color-ink-stained);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-pearl);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 238, 227, 0.5);
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  color: rgba(242, 238, 227, 0.72);
  transition: background var(--transition), color var(--transition), opacity var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav-item a:hover {
  background: var(--color-bloem-hover);
  color: var(--color-pearl);
}

.sidebar-nav-item.active a {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-pearl);
  font-weight: 700;
}

.sidebar-nav-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-nav-item.active svg,
.sidebar-nav-item a:hover svg {
  opacity: 1;
}

/* Category accents on active state */
.sidebar-nav-item.goals-nav.active a,
.sidebar-nav-item.goals-nav a:hover {
  border-left-color: var(--color-apricity);
}

.sidebar-nav-item.calendar-nav.active a,
.sidebar-nav-item.calendar-nav a:hover {
  border-left-color: var(--color-curiositys-kiss);
}

.sidebar-nav-item.admin-nav a {
  color: rgba(242, 238, 227, 0.5);
  font-size: 0.8rem;
}

.sidebar-nav-item.admin-nav.active a,
.sidebar-nav-item.admin-nav a:hover {
  color: rgba(242, 238, 227, 0.85);
}

.sidebar-nav-divider {
  height: 1px;
  background: rgba(242, 238, 227, 0.1);
  margin: 0.5rem 1.5rem;
}

/* Season in sidebar */
.sidebar-season-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(242, 238, 227, 0.55);
  transition: opacity 0.15s;
  line-height: 1;
}
.sidebar-season-link:hover { opacity: 0.8; }
.sidebar-season-link svg { flex-shrink: 0; }
.sidebar-season-label { font-style: italic; }

/* Season avatar overrides (sidebar + community) */
.season-avatar--spring { background: #D8B0AB !important; color: #100F10 !important; }
.season-avatar--summer { background: #F6C95C !important; color: #100F10 !important; }
.season-avatar--autumn { background: #D4956A !important; color: #FAFAFA !important; }
.season-avatar--winter { background: #a990a4 !important; color: #100F10 !important; }

/* Footer / logout */
.sidebar-footer {
  padding: 0 1.5rem;
  margin-top: auto;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(242, 238, 227, 0.45);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(242, 238, 227, 0.1);
}

.sidebar-logout:hover {
  color: rgba(242, 238, 227, 0.8);
}

/* ─── Main Content ────────────────────────────────────────────────────────── */

.main-content {
  margin-left: 260px;
  min-height: 100vh;
  padding: 3rem 3.5rem;
  background: var(--color-pearl);
}

/* ─── Dashboard Header ───────────────────────────────────────────────────── */

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.12);
}

.dash-greeting-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--color-ink-stained);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.dash-name {
  color: var(--color-bloem);
}

.dash-week-label {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.5);
  letter-spacing: 0.02em;
}

.integration-badge {
  display: inline-block;
  background: rgba(246, 201, 92, 0.25);
  color: #8a6f1a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  vertical-align: middle;
}

.dash-progress-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.dash-progress-count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-bloem);
  line-height: 1;
}

.dash-progress-label {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(16, 15, 16, 0.4);
}

/* ─── Dashboard Sections ─────────────────────────────────────────────────── */

.dash-section {
  margin-bottom: 2.5rem;
}

.dash-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dash-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-ink-stained);
}

.dash-section-link {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--color-bloem);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.dash-section-link:hover { opacity: 0.7; }

/* ─── Goal Cards ─────────────────────────────────────────────────────────── */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

.goal-card {
  border-radius: 24px;
  padding: 1.25rem;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.goal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.goal-card--curiosity { background: var(--color-curiositys-kiss); color: var(--color-ink-stained); }
.goal-card--create    { background: var(--color-apricity);        color: var(--color-ink-stained); }
.goal-card--share     { background: #76856C;                      color: var(--color-ink-stained); }
.goal-card--connect   { background: #a990a4;                      color: var(--color-ink-stained); }

/* ─── Seasonal texture overlays (::before) ───────────────────────────────── */

.goal-card--curiosity::before,
.goal-card--create::before,
.goal-card--share::before,
.goal-card--connect::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.0605;
  pointer-events: none;
  z-index: 0;
}

.goal-card--curiosity::before { background-image: url('/images/seasons/Spring%20-%20Curiosity.png'); }
.goal-card--create::before    { background-image: url('/images/seasons/Summer%20-%20Create.png'); }
.goal-card--share::before     { background-image: url('/images/seasons/Fall%20-%20Share.png'); }
.goal-card--connect::before   { background-image: url('/images/seasons/Winter%20-%20Connect.png'); }

.goal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.goal-card-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.goal-card-header-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.45rem;
  flex: 1;
  min-width: 0;
}

.goal-card-desc {
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  opacity: 0.65;
}

/* ── Custom square checkbox ───────────────────────────────────────────────── */

.goal-card-check-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.goal-card-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.goal-card-check-visual {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(16, 15, 16, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.goal-card-check-wrap:has(.goal-card-checkbox:checked) .goal-card-check-visual {
  background: rgba(16, 15, 16, 0.62);
  border-color: transparent;
}

.goal-card-check-wrap:has(.goal-card-checkbox:checked) .goal-card-check-visual::after {
  content: '✨';
  font-size: 10px;
  line-height: 1;
  display: block;
}

/* ── Card display / text ─────────────────────────────────────────────────── */

.goal-card-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 2rem;
}

.goal-card-text {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.55;
  flex: 1;
}

.goal-card-empty {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.55;
  font-style: italic;
  flex: 1;
  line-height: 1.4;
}

/* Completed state */
.goal-card.is-complete .goal-card-text {
  opacity: 0.45;
  text-decoration: line-through;
  text-decoration-color: currentColor;
}

.goal-card.is-complete .goal-card-empty {
  opacity: 0.3;
}

/* ── Inline edit textarea ─────────────────────────────────────────────────── */

.goal-card-edit-textarea {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(16, 15, 16, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  resize: none;
  outline: none;
  line-height: 1.55;
  width: 100%;
  min-height: 80px;
  flex: 1;
}

.goal-card-edit-textarea:focus {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(16, 15, 16, 0.32);
}

/* ── Checklist display ───────────────────────────────────────────────────── */

.goal-checklist-display {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.goal-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.goal-checklist-check-wrap {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.12rem;
}

.goal-checklist-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.goal-checklist-check-visual {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid rgba(16, 15, 16, 0.3);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.goal-checklist-check-wrap:has(.goal-checklist-checkbox:checked) .goal-checklist-check-visual {
  background: rgba(16, 15, 16, 0.55);
  border-color: transparent;
}

.goal-checklist-check-wrap:has(.goal-checklist-checkbox:checked) .goal-checklist-check-visual::after {
  content: '';
  display: block;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

.goal-checklist-item-text {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.45;
}

.goal-checklist-item-text.is-checked {
  text-decoration: line-through;
  opacity: 0.45;
}

/* ── Mode toggle ─────────────────────────────────────────────────────────── */

.goal-card-mode-toggle {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.goal-mode-btn {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(16, 15, 16, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(16, 15, 16, 0.45);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.6;
}

.goal-mode-btn.is-active {
  background: rgba(16, 15, 16, 0.6);
  border-color: transparent;
  color: white;
}

/* ── Always-editable checklist container ─────────────────────────────────── */

.goal-checklist-always-edit {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.goal-checklist-input-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.goal-checklist-edit-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.goal-checklist-edit-row .goal-checklist-check-wrap {
  margin-top: 0;
}

.goal-checklist-edit-row.is-checked .goal-checklist-edit-input {
  text-decoration: line-through;
  opacity: 0.45;
}

.goal-checklist-edit-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(16, 15, 16, 0.15);
  padding: 0.2rem 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  outline: none;
  transition: border-color 0.12s;
}

.goal-checklist-edit-input::placeholder {
  color: rgba(16, 15, 16, 0.28);
  font-style: italic;
}

.goal-checklist-edit-input:focus {
  border-bottom-color: rgba(16, 15, 16, 0.3);
}

.goal-checklist-add-btn {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.4);
  background: none;
  border: none;
  padding: 0.2rem 0;
  cursor: pointer;
  text-align: left;
  margin-top: 0.15rem;
  transition: color 0.12s;
}

.goal-checklist-add-btn:hover { color: rgba(16, 15, 16, 0.75); }

/* ── Reflection preview ──────────────────────────────────────────────────── */

.goal-card-reflection {
  margin-top: 0.75rem;
}

.goal-card-reflection-header {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.goal-card-reflection-label {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.goal-card-reflection-pencil {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: inherit;
  opacity: 0.4;
  transition: opacity 0.15s;
  line-height: 1;
}

.goal-card-reflection-pencil:hover { opacity: 0.85; }

.goal-card-reflection-preview {
  background: rgba(255, 255, 255, 0.22);
  border-left: 2px solid rgba(16, 15, 16, 0.18);
  border-radius: 0 6px 6px 0;
  padding: 0.5rem 0.625rem;
  padding-bottom: 1.625rem;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}

.goal-card-reflection-preview:hover {
  background: rgba(255, 255, 255, 0.36);
}

.goal-card-reflection-text {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.goal-card-reflection-prompt {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 300;
  opacity: 0.55;
}

.goal-card-reflection-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(16, 15, 16, 0.18);
  border-radius: 6px;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  resize: none;
  outline: none;
  line-height: 1.5;
}

.goal-card-reflection-textarea::placeholder {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.4);
}

.goal-card-reflection-textarea:focus {
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(16, 15, 16, 0.28);
}

/* ── Pencil edit button (inside .goal-card-display) ──────────────────────── */

.goal-card-edit-btn {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(16, 15, 16, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(16, 15, 16, 0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

.goal-card-edit-btn:hover {
  background: rgba(16, 15, 16, 0.18);
  color: rgba(16, 15, 16, 0.8);
}

.goal-card-arrow {
  position: absolute;
  bottom: 0.75rem;
  right: 0.875rem;
  z-index: 1;
  font-size: 0.875rem;
  color: rgba(16, 15, 16, 0.28);
  text-decoration: none;
  line-height: 1;
  transition: transform 0.15s, color 0.15s;
}

.goal-card-arrow:hover {
  color: rgba(16, 15, 16, 0.6);
  transform: translateX(3px);
}

/* Integration week */
.integration-week-card {
  background: var(--color-blank-page);
  border: 1.5px solid rgba(246, 201, 92, 0.4);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.integration-week-icon {
  font-size: 1.5rem;
  color: var(--color-apricity);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.integration-week-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-ink-stained);
}

.integration-week-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(16, 15, 16, 0.7);
}

/* ─── Continue Learning Card ─────────────────────────────────────────────── */

.lesson-continue-card {
  display: block;
  background: var(--color-blank-page);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  text-decoration: none;
  border: 1.5px solid rgba(112, 92, 108, 0.1);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.lesson-continue-card:hover {
  border-color: var(--color-bloem);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.lesson-continue-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bloem);
  opacity: 0.7;
  margin-bottom: 0.6rem;
}

.lesson-continue-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-ink-stained);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.lesson-continue-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.6);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.lesson-continue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.4);
}

.lesson-continue-arrow {
  color: var(--color-bloem);
  font-weight: 700;
}

.all-complete-card {
  background: var(--color-new-growth);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.all-complete-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-ink-stained);
}

/* ─── Daily Quote ─────────────────────────────────────────────────────────── */

.dash-quote {
  margin-top: 1rem;
  padding: 2rem 2.5rem;
  background: var(--color-bloem);
  border-radius: var(--radius-lg);
  position: relative;
}

.dash-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: rgba(242, 238, 227, 0.15);
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  pointer-events: none;
  user-select: none;
}

.dash-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-pearl);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.dash-quote-source {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 238, 227, 0.5);
  position: relative;
  z-index: 1;
}

/* ─── Coming Soon ─────────────────────────────────────────────────────────── */

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  gap: 1rem;
}

.coming-soon-icon {
  font-size: 2.5rem;
  color: var(--color-curiositys-kiss);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-ink-stained);
}

.coming-soon-text {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.55);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ─── Admin ──────────────────────────────────────────────────────────────── */

.admin-card {
  background: var(--color-blank-page);
  border: 1.5px solid rgba(112, 92, 108, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.admin-card-row {
  padding: 1.5rem 1.75rem;
}

.admin-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 480px;
}

.admin-field-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}

.admin-field-hint {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.55);
  line-height: 1.5;
}

.admin-field-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.admin-date-input {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  background: var(--color-pearl);
  border: 1.5px solid rgba(112, 92, 108, 0.2);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  outline: none;
  transition: border-color var(--transition);
}

.admin-date-input:focus { border-color: var(--color-bloem); }

.admin-save-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  background: var(--color-bloem);
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: opacity var(--transition);
  white-space: nowrap;
}

.admin-save-btn:hover { opacity: 0.85; }

.admin-save-status {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-understory);
}

.admin-count {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.45);
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.07);
}

.admin-user-row:last-child { border-bottom: none; }

.admin-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.admin-user-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}

.admin-user-email {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.5);
}

.admin-user-role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(16, 15, 16, 0.4);
  flex-shrink: 0;
}

.admin-role--admin {
  color: var(--color-bloem);
}

.admin-lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.07);
}

.admin-lesson-row:last-child { border-bottom: none; }

.admin-lesson-title {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  flex: 1;
  min-width: 0;
}

.admin-lesson-count {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.4);
  flex-shrink: 0;
}

.admin-section-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-add-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-bloem);
  background: var(--color-bloem-light);
  border: 1.5px solid rgba(112, 92, 108, 0.2);
  border-radius: 8px;
  padding: 0.4rem 0.875rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.admin-add-btn:hover {
  background: rgba(112, 92, 108, 0.14);
  border-color: var(--color-bloem);
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.admin-btn-icon {
  font-size: 0.9rem;
  color: rgba(16, 15, 16, 0.4);
  background: none;
  border: none;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
}
.admin-btn-icon:hover {
  color: var(--color-bloem);
  background: var(--color-bloem-light);
}
.admin-btn-icon--danger:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

.admin-lesson-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.07);
}
.admin-lesson-row:last-child { border-bottom: none; }

.admin-lesson-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-lesson-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bloem);
  background: var(--color-bloem-light);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  flex-shrink: 0;
}

.admin-move-btns {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.admin-move-btn {
  font-size: 0.7rem;
  color: rgba(16, 15, 16, 0.35);
  background: none;
  border: none;
  padding: 0.1rem 0.25rem;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.admin-move-btn:hover {
  color: var(--color-bloem);
  background: var(--color-bloem-light);
}
.admin-move-btn--ghost { display: inline-block; visibility: hidden; }

.admin-resource-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.07);
}
.admin-resource-row:last-child { border-bottom: none; }

.admin-resource-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-resource-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink-stained);
}

.admin-resource-desc {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.5);
}

.admin-resource-url {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--color-bloem);
  text-decoration: none;
  flex-shrink: 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-resource-url:hover { text-decoration: underline; }

.admin-empty {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.4);
  padding: 1rem 1.25rem;
  margin: 0;
}

/* ─── Admin dialogs ───────────────────────────────────────────────────────── */

.admin-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: min(480px, 92vw);
  box-shadow: 0 8px 48px rgba(16, 15, 16, 0.16);
  background: var(--color-blank-page);
  font-family: var(--font-body);
}
.admin-dialog--wide {
  width: min(680px, 94vw);
}
.admin-dialog::backdrop {
  background: rgba(16, 15, 16, 0.35);
  backdrop-filter: blur(2px);
}

.admin-dialog-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-ink-stained);
  margin: 0 0 1.5rem;
}

.admin-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}

.admin-form-hint {
  font-weight: 300;
  color: rgba(16, 15, 16, 0.45);
  font-size: 0.75rem;
}

.admin-input {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  background: var(--color-pearl);
  border: 1.5px solid rgba(112, 92, 108, 0.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.admin-input:focus { border-color: var(--color-bloem); }

.admin-input--short { width: 100px; }

.admin-select { cursor: pointer; }

.admin-textarea {
  resize: vertical;
  min-height: 120px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-dialog-error {
  font-size: 0.78rem;
  font-weight: 400;
  color: #c0392b;
  margin: 0.25rem 0 0.75rem;
}

.admin-dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.admin-dialog-cancel {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(16, 15, 16, 0.5);
  background: none;
  border: none;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.admin-dialog-cancel:hover {
  color: var(--color-ink-stained);
  background: var(--color-new-growth);
}

/* ─── Season selector ───────────────────────────────────────────────────── */

.season-first-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-bloem);
  margin: 0 0 1rem;
}

.season-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
}

.season-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.125rem 1.125rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: left;
  filter: grayscale(1);
  opacity: 0.6;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
              border-color 0.25s ease, padding 0.2s ease,
              filter 0.25s ease, opacity 0.25s ease;
  font-family: var(--font-body);
}

.season-card--spring { background: rgba(216, 176, 171, 0.10); }
.season-card--summer { background: rgba(246, 201, 92,  0.10); }
.season-card--autumn { background: rgba(118, 133, 108, 0.12); }
.season-card--winter { background: rgba(169, 144, 164, 0.10); }

.season-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(16, 15, 16, 0.09);
  filter: grayscale(0);
  opacity: 1;
}

.season-card.is-selected {
  filter: none;
  opacity: 1;
}

.season-card.is-selected.season-card--spring { background: rgba(216, 176, 171, 0.22); border-color: #D8B0AB; }
.season-card.is-selected.season-card--summer { background: rgba(246, 201, 92,  0.25); border-color: #F6C95C; }
.season-card.is-selected.season-card--autumn { background: rgba(118, 133, 108, 0.22); border-color: #76856C; }
.season-card.is-selected.season-card--winter { background: rgba(169, 144, 164, 0.22); border-color: #a990a4; }

.season-picker-help {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(16, 15, 16, 0.55);
  margin: 0.35rem 0 0.9rem;
}

.season-card-emoji {
  display: block;
  margin-bottom: 0.625rem;
  line-height: 0;
}

.season-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-ink-stained);
  display: block;
  margin-bottom: 0.2rem;
}

.season-card-category {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(16, 15, 16, 0.42);
  display: block;
  margin-bottom: 0.6rem;
}

.season-card-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.70);
  line-height: 1.55;
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease, margin-top 0.2s ease;
}
.season-card:hover .season-card-desc,
.season-card.is-selected .season-card-desc {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.5rem;
}

.season-card-check {
  position: absolute;
  top: 0.75rem;
  right: 0.875rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink-stained);
  opacity: 0;
  transition: opacity 0.15s;
}
.season-card.is-selected .season-card-check { opacity: 1; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .season-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .season-cards { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .season-card { padding: 1rem 0.875rem; }
}

/* ─── Hamburger + off-canvas drawer (mobile + tablet-portrait) ─────────── */
/* Toggle button + backdrop are always in the DOM (rendered by the sidebar
   partial); they're display:none at desktop widths and only appear inside
   the ≤900px media query below. */

.sidebar-toggle { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  /* Undo the fixed-left desktop sidebar: it becomes an off-canvas panel
     that slides in from the left when the hamburger is tapped. */
  .sidebar {
    width: min(300px, 82vw);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    z-index: 250;
    box-shadow: 4px 0 24px rgba(16, 15, 16, 0);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(16, 15, 16, 0.18);
  }

  .sidebar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 4.5rem 0 1rem;
    height: 100%;
    flex-wrap: nowrap;
    gap: 0;
    overflow-y: auto;
  }

  /* Restore vertical-column list styling that the old horizontal-strip
     rules had flattened. */
  .sidebar-logo-wrap { display: block; padding: 0 1.25rem 1rem; }
  .sidebar-user {
    padding: 0.75rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(242, 238, 227, 0.15);
    border-right: none;
  }
  .sidebar-nav { flex: 1; padding: 1rem 0; }
  .sidebar-nav ul { flex-direction: column; flex-wrap: nowrap; }
  .sidebar-nav-item a {
    padding: 0.7rem 1.25rem;
    font-size: 0.92rem;
    gap: 0.8rem;
  }
  .sidebar-nav-item svg { width: 17px; height: 17px; }
  .sidebar-nav-divider {
    display: block;
    height: 1px;
    background: rgba(242, 238, 227, 0.15);
    margin: 0.5rem 1rem;
  }
  .sidebar-footer {
    padding: 0.5rem 1.25rem 0.75rem;
    border-top: 1px solid rgba(242, 238, 227, 0.15);
  }
  .sidebar-logout {
    padding: 0.65rem 0;
    font-size: 0.92rem;
    gap: 0.6rem;
    border-top: none;
  }
  .sidebar-logout svg { width: 15px; height: 15px; }

  /* Backdrop: dims the page behind the drawer. Rendered by the partial
     with the `hidden` attribute; JS toggles it. */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(16, 15, 16, 0.45);
    z-index: 240;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
  }
  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-backdrop[hidden] { display: none; }

  /* Hamburger button — top-left, fixed, always tappable (higher z-index
     than the drawer + backdrop). */
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-understory);
    color: var(--color-pearl);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 300;
    box-shadow: 0 2px 10px rgba(16, 15, 16, 0.18);
    transition: background 0.15s ease;
  }
  .sidebar-toggle:hover,
  .sidebar-toggle:focus-visible {
    background: #5f6d56;
    outline: none;
  }
  .sidebar-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(112, 92, 108, 0.35);
  }

  /* Morph the hamburger into an X when the drawer is open. */
  .sidebar-toggle-icon {
    transition: transform 220ms ease;
  }
  .sidebar-toggle-line {
    transition: transform 220ms ease, opacity 180ms ease;
    transform-origin: center;
  }
  body.sidebar-open .sidebar-toggle-line--top {
    transform: translateY(5px) rotate(45deg);
  }
  body.sidebar-open .sidebar-toggle-line--mid {
    opacity: 0;
  }
  body.sidebar-open .sidebar-toggle-line--bottom {
    transform: translateY(-5px) rotate(-45deg);
  }

  /* Page content: no left margin (sidebar is off-canvas), but keep enough
     top padding to clear the fixed hamburger. */
  .main-content {
    margin-left: 0;
    padding: 4.5rem 1.25rem 3rem;
  }

  /* Body scroll lock while the drawer is open — prevents the page behind
     the backdrop from scrolling under the touch. */
  body.sidebar-open {
    overflow: hidden;
  }

  .dash-header {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
  }

  .dash-progress-pill { align-items: flex-start; }
}

@media (max-width: 480px) {
  .goals-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Admin: Course Controls ─────────────────────────────────────────────── */

.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.25rem 0;
}

.admin-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-toggle-text strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}

.admin-toggle-text span {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.5);
}

.admin-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(16, 15, 16, 0.4);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--transition);
}

.admin-toggle-btn.is-active { color: var(--color-understory); }

.admin-toggle-track {
  width: 40px;
  height: 22px;
  background: rgba(16, 15, 16, 0.15);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background var(--transition);
}

.admin-toggle-btn.is-active .admin-toggle-track { background: var(--color-understory); }

.admin-toggle-thumb {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.admin-toggle-btn.is-active .admin-toggle-thumb { transform: translateX(18px); }

/* ─── Admin: Student Seeds ───────────────────────────────────────────────── */

.admin-seeds-user-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.07);
}

.admin-seeds-user-row:last-child { border-bottom: none; }

.admin-seeds-user-info {
  flex: 1;
  min-width: 0;
}

.admin-seeds-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-stained);
  margin-bottom: 0.5rem;
}

.admin-seeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
}

.admin-seed-item {
  background: rgba(112, 92, 108, 0.04);
  border-radius: 10px;
  padding: 0.625rem 0.75rem;
}

.admin-seed-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-bloem);
  opacity: 0.65;
  margin-bottom: 0.3rem;
}

.admin-seed-text {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  line-height: 1.5;
  margin-bottom: 0.2rem;
}

.admin-seed-empty {
  color: rgba(16, 15, 16, 0.3);
  font-style: italic;
}

@media (max-width: 680px) {
  .admin-seeds-grid { grid-template-columns: 1fr; }
  .admin-toggle-row { flex-direction: column; align-items: flex-start; gap: 0.625rem; }
}

/* ─── Admin: Assessment Table ────────────────────────────────────────────── */

.admin-assess-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-assess-table th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(16,15,16,0.4);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(112,92,108,0.1);
}
.admin-assess-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(112,92,108,0.07);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  vertical-align: middle;
}
.admin-assess-table tr:last-child td { border-bottom: none; }
.assess-name-cell { display: flex; align-items: center; gap: 0.625rem; font-weight: 500; }
.assess-status { font-size: 0.78rem; font-weight: 600; }
.assess-status--done { color: var(--color-understory); }
.assess-status--pending { color: rgba(16,15,16,0.3); font-weight: 300; }
.assess-status--partial { color: var(--color-apricity); filter: brightness(0.8); }

/* ─── Sidebar avatar link + photo ───────────────────────────────────────── */
.sidebar-avatar-link {
  display: block;
  text-decoration: none;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.sidebar-avatar-link:hover { opacity: 0.85; }
.sidebar-avatar--photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.sidebar-avatar--sm.sidebar-avatar--photo {
  width: 30px;
  height: 30px;
}

/* ─── Admin: Course Simulation ───────────────────────────────────────────── */
.admin-sim-divider {
  margin: 1.5rem -1.5rem 0;
  border: none;
  border-top: 1px solid rgba(112,92,108,0.12);
}
.admin-sim-box {
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-new-growth);
  border-radius: 12px;
}
.admin-sim-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.admin-sim-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0 0 0.2rem;
  color: var(--color-ink-stained);
}
.admin-sim-subtitle {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(16,15,16,0.5);
  margin: 0;
  line-height: 1.5;
}
.admin-sim-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(16,15,16,0.45);
  background: rgba(16,15,16,0.07);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.admin-sim-status {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(16,15,16,0.55);
  margin: 0 0 1rem;
}
.admin-sim-status strong {
  font-weight: 600;
  color: var(--color-bloem);
}
.admin-sim-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-sim-btn {
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--color-bloem);
  background: transparent;
  color: var(--color-bloem);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.admin-sim-btn:hover { background: rgba(112,92,108,0.08); }
.admin-sim-btn--active {
  background: var(--color-bloem);
  color: #FAFAFA;
}
.admin-sim-btn--active:hover {
  background: var(--color-bloem-mid);
  border-color: var(--color-bloem-mid);
  color: #FAFAFA;
}
.admin-sim-btn--reset {
  border-color: rgba(16,15,16,0.25);
  color: rgba(16,15,16,0.5);
}
.admin-sim-btn--reset:hover { background: rgba(16,15,16,0.06); }
.admin-sim-btn--reset.admin-sim-btn--active {
  background: rgba(16,15,16,0.12);
  border-color: rgba(16,15,16,0.3);
  color: var(--color-ink-stained);
}
.admin-sim-btn--reset.admin-sim-btn--active:hover {
  background: rgba(16,15,16,0.18);
}

.admin-sim-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-sim-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(112,92,108,0.08);
}
.admin-sim-row-item:last-child { border-bottom: none; padding-bottom: 0; }

.admin-sim-row-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-sim-row-label strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink-stained);
}

.admin-sim-row-hint {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(16,15,16,0.45);
}

.admin-sim-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-sim-active {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-understory);
}

/* ─── Sidebar profile link ───────────────────────────────────────────────── */
.sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0;
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: opacity var(--transition);
}
.sidebar-profile-link:hover { opacity: 0.8; }
.sidebar-avatar--sm {
  width: 26px !important;
  height: 26px !important;
  font-size: 0.72rem !important;
  flex-shrink: 0;
}
.sidebar-profile-name {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}

/* ─── Admin homework editor ───────────────────────────────────────────────── */
.admin-hw-item {
  border: 1px solid rgba(112, 92, 108, 0.15);
  border-radius: 8px;
  padding: 0.875rem;
  margin-bottom: 0.625rem;
  background: var(--color-new-growth);
}

.admin-hw-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.admin-hw-item-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(16, 15, 16, 0.4);
}

.admin-hw-item-controls {
  display: flex;
  gap: 0.25rem;
}

.admin-hw-move, .admin-hw-remove {
  background: none;
  border: 1px solid rgba(16, 15, 16, 0.15);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: rgba(16, 15, 16, 0.5);
  transition: border-color 0.15s, color 0.15s;
}
.admin-hw-move:hover:not(:disabled) { border-color: var(--color-bloem); color: var(--color-bloem); }
.admin-hw-move:disabled { opacity: 0.3; cursor: not-allowed; }
.admin-hw-remove:hover { border-color: #c0392b; color: #c0392b; }

.admin-hw-title {
  width: 100%;
  margin-bottom: 0.5rem;
  resize: vertical;
  box-sizing: border-box;
}

.admin-hw-link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* ─── Admin Time Travel ───────────────────────────────────────────────────── */
.admin-tt-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #fef3c7;
  border: 1.5px solid #f59e0b;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: #92400e;
}

.admin-tt-banner-link {
  color: #92400e;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

/* Header badge — quiet reminder that this only affects admin/test views. */
.admin-tt-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #f6d78a;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  letter-spacing: 0.01em;
}

/* Time-travel card = stacked sections with breathing room. */
.admin-tt { display: flex; flex-direction: column; gap: 1.25rem; }

/* Status row — calm when off, amber when actively time-traveling. */
.admin-tt-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
}
.admin-tt-status.is-off {
  background: var(--color-new-growth);
  border-color: rgba(118, 133, 108, 0.25);
}
.admin-tt-status.is-active {
  background: #fef3c7;
  border-color: #f59e0b;
}
.admin-tt-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.admin-tt-status.is-off .admin-tt-status-dot    { background: var(--color-understory); }
.admin-tt-status.is-active .admin-tt-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.admin-tt-status-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.admin-tt-status-text strong { font-size: 0.9rem; color: var(--color-ink-stained); }
.admin-tt-status-text span   { font-size: 0.8rem; font-weight: 300; color: rgba(16,15,16,0.65); }
.admin-tt-status-text b      { font-weight: 700; color: var(--color-ink-stained); }
.admin-tt-reset {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #92400e;
  background: transparent;
  border: 1px solid #d9a441;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-tt-reset:hover { background: #92400e; color: #fff; border-color: #92400e; }

.admin-tt-jumps { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-tt-jumps-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(16, 15, 16, 0.55);
}
.admin-tt-jumps-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-btn-sm {
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--color-bloem);
  background: transparent;
  color: var(--color-bloem);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.admin-btn-sm:hover {
  background: var(--color-bloem);
  color: #fff;
}
.admin-btn-sm--danger {
  border-color: #dc2626;
  color: #dc2626;
}
.admin-btn-sm--danger:hover {
  background: #dc2626;
  color: #fff;
}

/* ─── Admin Seed Table ────────────────────────────────────────────────────── */
.admin-seed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.admin-seed-table th {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1.5px solid var(--color-new-growth);
  font-weight: 600;
  color: rgba(16, 15, 16, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-seed-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--color-new-growth);
  vertical-align: middle;
}
.admin-seed-table tr:last-child td {
  border-bottom: none;
}
.admin-seed-feeling {
  color: rgba(16, 15, 16, 0.55);
  font-style: italic;
}
.admin-seed-edit-row {
  background: var(--color-new-growth);
  padding: 0.5rem 0.75rem !important;
}
.admin-seed-edit-row input[type="date"] {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ─── Sidebar Time Travel bar ─────────────────────────────────────────────── */
.sidebar-tt-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  margin: 0 0.875rem 0.75rem;
  padding: 0.45rem 0.6rem;
}

.sidebar-tt-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-tt-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  flex: 1;
  min-width: 0;
}

.sidebar-tt-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  opacity: 0.8;
  line-height: 1;
}

.sidebar-tt-date {
  font-size: 0.75rem;
  color: #fef3c7;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-tt-clear {
  background: none;
  border: 1px solid rgba(254, 243, 199, 0.35);
  border-radius: 4px;
  color: rgba(254, 243, 199, 0.7);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  flex-shrink: 0;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}
.sidebar-tt-clear:hover {
  border-color: #fef3c7;
  color: #fef3c7;
}

/* ─── Weekly Reflection ────────────────────────────────────────────────────── */

.weekly-reflection {
  background: var(--color-pearl);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(16, 15, 16, 0.07);
}

.weekly-reflection-title {
  font-family: 'Goldage', serif;
  font-size: 1.2rem;
  color: var(--color-ink-stained);
  margin: 0 0 0.4rem;
  font-weight: 400;
}

.weekly-reflection-prompt {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--color-ink-stained);
  opacity: 0.65;
  margin: 0 0 1rem;
}

.weekly-reflection-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--color-ink-stained);
  background: var(--color-blank-page);
  border: 1px solid rgba(16, 15, 16, 0.12);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.weekly-reflection-textarea:focus {
  outline: none;
  border-color: var(--color-bloem);
}

.reflection-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.cohort-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-ink-stained);
  user-select: none;
}

.cohort-toggle-cb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--color-bloem);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s;
}

.cohort-toggle-cb:checked {
  background: var(--color-bloem);
}

.cohort-toggle-cb:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.save-weekly-reflection {
  background: var(--color-bloem);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}

.save-weekly-reflection:hover {
  background: var(--color-bloem-mid);
}

.reflection-helper {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--color-ink-stained);
  opacity: 0.5;
  font-style: italic;
  margin: 0;
}

.reflection-saved-msg {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--color-understory);
  margin-top: 0.625rem;
  margin-bottom: 0;
}

/* ─── Curricular season label (shared, used on Dashboard, Goals, Lesson, Greenhouse) */

.curricular-season-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: inherit;
  color: var(--color-understory);
  font-weight: 400;
}

.week-nav-week-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--color-understory);
  display: block;
  margin-top: 0.1rem;
}

/* ─── Daily recording practice card ─────────────────────────────────────── */

.recording-card {
  background: var(--color-blank-page);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.recording-card-season {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-understory);
  margin: 0 0 0.5rem;
}

.recording-card-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-bloem);
  margin: 0 0 0.85rem;
}

.recording-card-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(16, 15, 16, 0.78);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.recording-card-state.is-hidden { display: none; }

.recording-card-btn {
  background: var(--color-bloem);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.15s;
}
.recording-card-btn:hover    { background: var(--color-bloem-mid); }
.recording-card-btn:disabled { opacity: 0.5; cursor: default; }

.recording-card-btn-secondary {
  background: transparent;
  color: var(--color-bloem);
  border: none;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.recording-card-btn-secondary:hover { opacity: 0.7; }

/* "About this season" quiet disclosure link on the recording card. */
.recording-about-toggle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-bloem);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0 0 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.recording-about-toggle:hover  { opacity: 1; }
.recording-about-toggle:focus-visible {
  outline: 2px solid var(--color-bloem);
  outline-offset: 3px;
  border-radius: 2px;
  opacity: 1;
}

.recording-about-panel {
  margin: 0 0 1.25rem;
  max-width: 38rem;
}
.recording-about-panel.is-hidden { display: none; }
.recording-about-panel .recording-card-prompt { margin: 0; }
/* Vertical (portrait) wrapper for the "How to do the daily recording" video. */
.recording-howto-video {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-ink-stained);
}
.recording-howto-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.recording-about-panel p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(16, 15, 16, 0.78);
  margin: 0;
}

/* Each prompt+textarea group inside the reflect form. Multiple of these
   stack vertically — generous gap so the four fields breathe. */
.recording-reflect-field {
  margin-bottom: 1.5rem;
}
.recording-reflect-field:last-of-type {
  margin-bottom: 1rem;
}

.recording-reflect-q {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-bloem);
  margin: 0 0 0.2rem;
}

.recording-reflect-help {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(16, 15, 16, 0.55);
  margin: 0 0 0.6rem;
}

.recording-reflect-textarea {
  width: 100%;
  background: rgba(112, 92, 108, 0.04);
  border: 1.5px solid rgba(112, 92, 108, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--color-ink-stained);
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 0.85rem;
}
.recording-reflect-textarea:focus { border-color: var(--color-bloem); }

.recording-reflect-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recording-done-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(16, 15, 16, 0.55);
  margin: 0;
}

/* ─── Backdating: log a previous day's recording ──────────────────────── */

.recording-backdate {
  margin-top: 1rem;
  text-align: center;
}
.recording-backdate-toggle {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-bloem);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.recording-backdate-toggle:hover { opacity: 1; }

.recording-backdate-panel {
  background: var(--color-blank-page);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem 1.25rem;
  margin-top: 0.75rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.recording-backdate-panel.is-hidden { display: none; }

.recording-backdate-date-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-bloem);
  margin: 0 0 0.35rem;
}
.recording-backdate-date-input {
  width: 100%;
  max-width: 14rem;
  background: rgba(112, 92, 108, 0.04);
  border: 1.5px solid rgba(112, 92, 108, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-ink-stained);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 1.5rem;
}
.recording-backdate-date-input:focus { border-color: var(--color-bloem); }

.recording-backdate-saved {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-understory);
  margin-left: 0.5rem;
}

/* ─── Mid-course check-in card (dashboard, anonymous feedback) ──────────── */

.mid-card {
  position: relative;
  background: linear-gradient(180deg, #FBF6E8 0%, var(--color-blank-page) 100%);
  border: 1.5px solid rgba(112, 92, 108, 0.18);
  border-radius: 14px;
  padding: 1.5rem 1.75rem 1.6rem;
  box-shadow: 0 2px 14px rgba(16, 15, 16, 0.05);
}

/* ─── Season cards: watercolor illustration banner ───────────────────────── */
.mid-card-season-art {
  display: block;
  width: 42%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 1.15rem;
}
/* Tall/portrait season art (Spring, Autumn) — cap the height and centre it
   so it shows in full without towering over the card. */
.mid-card-season-art--tall {
  width: auto;
  max-width: 100%;
  max-height: 156px;
  margin: 0 auto 1.15rem;
}

/* Spring/Fall cards: illustration to the LEFT of the text (a touch larger). */
.mid-card-split {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.mid-card-split .mid-card-season-art--tall {
  flex-shrink: 0;
  max-height: 172px;
  margin: 0;
}
.mid-card-split-text { min-width: 0; }
@media (max-width: 560px) {
  .mid-card-split { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .mid-card-split .mid-card-season-art--tall { align-self: center; }
}
/* The ✕ sits over the illustration on season cards — give it a backdrop. */
.mid-card--season .mid-card-x {
  background: rgba(255, 255, 255, 0.78);
  color: rgba(16, 15, 16, 0.55);
}
.mid-card--season .mid-card-x:hover { background: #fff; color: rgba(16, 15, 16, 0.8); }

/* ─── Dismiss control (✕ → snooze / remove) on dashboard cards ────────────── */
.mid-card-dismiss {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}
.mid-card-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: rgba(16, 15, 16, 0.35);
  transition: color 0.15s, background 0.15s;
}
.mid-card-x:hover { color: rgba(16, 15, 16, 0.7); background: rgba(16, 15, 16, 0.05); }
.mid-card-dismiss-menu {
  position: absolute;
  top: calc(100% + 0.3rem);
  right: 0;
  min-width: 210px;
  background: var(--color-blank-page);
  border: 1px solid rgba(112, 92, 108, 0.2);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(112, 92, 108, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mid-card-dismiss-menu.is-hidden { display: none; }
.mid-card-dismiss-opt {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-ink-stained);
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
  transition: background 0.12s;
}
.mid-card-dismiss-opt + .mid-card-dismiss-opt { border-top: 1px solid rgba(112, 92, 108, 0.1); }
.mid-card-dismiss-opt:hover { background: var(--color-new-growth); }
.mid-card-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--color-understory);
  margin: 0 0 0.4rem;
}
.mid-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--color-bloem);
  margin: 0 0 0.55rem;
}
.mid-card-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(16, 15, 16, 0.7);
  margin: 0 0 1rem;
  max-width: 560px;
}
.mid-card-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-pearl);
  background: var(--color-bloem);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.mid-card-cta:hover { background: var(--color-bloem-mid); }

/* Ghost variant + horizontal actions row — used by the season-intro card
   which pairs a primary "Got it" with a soft link to /profile. */
.mid-card-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
button.mid-card-cta {
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}
.mid-card-cta--ghost {
  background: transparent;
  color: var(--color-bloem);
  border: 1px solid rgba(112, 92, 108, 0.3);
}
.mid-card-cta--ghost:hover {
  background: rgba(112, 92, 108, 0.06);
  color: var(--color-bloem-mid);
  border-color: var(--color-bloem);
}

/* ─── Admin: per-user course start date editor ─────────────────────────── */

.admin-user-start-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.admin-user-start-input {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(112, 92, 108, 0.25);
  border-radius: 4px;
  background: var(--color-pearl);
  color: var(--color-ink-stained);
  outline: none;
  transition: border-color 0.15s;
}
.admin-user-start-input:focus { border-color: var(--color-bloem); }
.admin-user-start-input:disabled { opacity: 0.5; cursor: wait; }
.admin-user-start-fallback {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(16, 15, 16, 0.45);
}

/* ─── Who needs tending — per-gardener recording activity ─────────────────── */
.admin-user-activity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(16, 15, 16, 0.6);
}
.admin-activity-last { font-weight: 400; }
.admin-activity-recent {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--color-new-growth);
  color: rgba(16, 15, 16, 0.6);
}
.admin-activity-flag {
  color: var(--color-curiositys-kiss);
  font-size: 0.7rem;
  line-height: 1;
}
/* Gone quiet: no recording in 7+ days — mute + flag so it stands out. */
.admin-user-activity--quiet {
  color: var(--color-bloem);
  font-weight: 400;
}
.admin-user-activity--quiet .admin-activity-last { font-weight: 700; }
.admin-user-activity--quiet .admin-activity-flag { color: #b5654a; }
.admin-user-activity--quiet .admin-activity-recent {
  background: rgba(181, 101, 74, 0.12);
  color: #8a4a34;
}

/* ─── Admin private note indicator (row) ─────────────────────────────────── */
.admin-user-note {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(112, 92, 108, 0.1);
  color: var(--color-bloem);
  cursor: help;
}

/* ─── Admin enrollments overview ─────────────────────────────────────────── */
.admin-enroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.admin-enroll-tier {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--color-blank-page);
  border: 1px solid rgba(112, 92, 108, 0.18);
  border-radius: 8px;
}
.admin-enroll-tier--free { background: var(--color-pearl); }
.admin-enroll-tier-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}
.admin-enroll-tier-price {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(16, 15, 16, 0.5);
}
.admin-enroll-tier-count {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-bloem);
  margin-top: 0.15rem;
}
.admin-enroll-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(112, 92, 108, 0.18);
}
.admin-enroll-total-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(16, 15, 16, 0.5);
}
.admin-enroll-total-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-ink-stained);
}

/* ─── Admin temp-password reveal box ─────────────────────────────────────── */
.admin-temp-pw-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-new-growth);
  border: 1px solid rgba(112, 92, 108, 0.25);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.admin-temp-pw-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink-stained);
  user-select: all;
}

/* ─── Share-intentions toggle (near intention cards on dashboard + /goals) ── */
.share-intentions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  background: var(--color-new-growth);
  border: 1px solid rgba(118, 133, 108, 0.25);
  border-radius: 14px;
}
.share-intentions-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.share-intentions-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}
.share-intentions-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(16, 15, 16, 0.6);
}
.share-intentions-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.share-intentions-saved {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-understory);
  white-space: nowrap;
}
.share-intentions-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.share-intentions-track {
  width: 42px;
  height: 24px;
  background: rgba(16, 15, 16, 0.18);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background var(--transition, 0.15s ease);
}
.share-intentions-toggle.is-on .share-intentions-track { background: var(--color-understory); }
.share-intentions-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform var(--transition, 0.15s ease);
}
.share-intentions-toggle.is-on .share-intentions-thumb { transform: translateX(18px); }
.share-intentions-toggle:focus-visible { outline: 2px solid var(--color-bloem); outline-offset: 3px; border-radius: 999px; }

@media (max-width: 560px) {
  .share-intentions { flex-direction: row; align-items: flex-start; }
  .share-intentions-right { padding-top: 0.15rem; }
}

/* ─── Admin: Course Settings blocks ───────────────────────────────────────── */
.admin-settings { display: flex; flex-direction: column; gap: 1.5rem; }
.admin-settings-block { display: flex; flex-direction: column; gap: 0.4rem; }
.admin-settings-block + .admin-settings-block {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(112, 92, 108, 0.12);
}
.admin-settings-block-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink-stained);
}

/* ─── Admin: collapsible section (quotes) ─────────────────────────────────── */
.admin-collapse { margin-top: 0.75rem; }
.admin-collapse-summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-bloem);
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(112, 92, 108, 0.25);
  border-radius: 8px;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s;
}
.admin-collapse-summary:hover { background: rgba(112, 92, 108, 0.06); }
.admin-collapse-summary::-webkit-details-marker { display: none; }
.admin-collapse-summary::before { content: '▸'; font-size: 0.75rem; transition: transform 0.15s; }
.admin-collapse[open] > .admin-collapse-summary::before { transform: rotate(90deg); }

/* ─── Admin: assessment question + answer pairs (View dialog) ─────────────── */
.admin-assess-qa {
  margin: 0 0 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(112, 92, 108, 0.1);
}
.admin-assess-qa:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.admin-assess-q {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(16, 15, 16, 0.6);
  margin-bottom: 0.25rem;
}
.admin-assess-a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-ink-stained);
  line-height: 1.5;
  white-space: pre-wrap;
}
