:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --ink: #243033;
  --muted: #667579;
  --line: #e5ded4;
  --accent: #80b7a2;
  --accent-2: #f2c9b5;
  --accent-3: #f7e8bf;
  --shadow: 0 20px 50px rgba(48, 39, 28, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff7e8 0, transparent 34%), var(--bg);
  color: var(--ink);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px) 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.05em; }
.subtitle { max-width: 780px; margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

button {
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
button:hover { transform: translateY(-1px); }
.primary-btn { padding: 15px 20px; background: #243033; color: #fff; box-shadow: 0 12px 28px rgba(36, 48, 51, 0.22); white-space: nowrap; }
.secondary-btn { padding: 12px 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tiny-btn { padding: 8px 10px; border-radius: 999px; background: var(--journal-soft2, #eaf1ee); color: var(--ink); font-size: 12px; }

.app-shell { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; padding: 20px clamp(18px, 5vw, 64px) 60px; align-items: start; }
.control-panel { position: sticky; top: 18px; display: grid; gap: 16px; }
.panel-card, .preview-area { background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(229, 222, 212, 0.92); border-radius: 28px; box-shadow: var(--shadow); }
.panel-card { padding: 22px; }
.panel-card h2 { font-size: 18px; margin-bottom: 18px; }
.section-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.section-heading-row h2 { margin-bottom: 0; }

label { display: grid; gap: 8px; margin: 14px 0; color: #405054; font-size: 13px; font-weight: 800; }
input, select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 13px; color: var(--ink); font: inherit; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 700; line-height: 1.25; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.hint-card p { color: var(--muted); line-height: 1.55; margin: 0 0 12px; }
.hint-card p:last-child { margin-bottom: 0; }

.preview-area { padding: 22px; overflow: auto; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.preview-toolbar h2 { font-size: 24px; letter-spacing: -0.03em; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.journal-preview { display: grid; gap: 22px; justify-items: center; padding: 14px 0 30px; }
.page {
  position: relative;
  width: 8.5in;
  height: 11in;
  padding: 0.36in;
  padding-bottom: 0.62in;
  background: #fffdf9;
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(52, 43, 34, 0.16);
  overflow: hidden;
  page-break-after: always;
  display: flex;
  flex-direction: column;
}
.letter-size .page { width: 8.5in; height: 11in; }
.a4-size .page { width: 8.27in; height: 11.69in; }
.a5-size .page { width: 5.83in; height: 8.27in; padding: 0.28in; padding-bottom: 0.5in; }
.page::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--journal-line, #dfe8df); border-radius: 22px; pointer-events: none; }
.a5-size .page::before { inset: 9px; border-radius: 18px; }

.cover-page { display: flex; flex-direction: column; justify-content: center; text-align: center; background: radial-gradient(circle at 18% 18%, var(--journal-soft, #f8e2d3) 0 90px, transparent 92px), radial-gradient(circle at 84% 24%, var(--journal-soft2, #dceee8) 0 110px, transparent 112px), #fffdf9; }
.cover-badge { margin: 0 auto 28px; width: 118px; height: 118px; border-radius: 38px; display: grid; place-items: center; background: var(--journal-accent, #80b7a2); color: #fff; font-size: 46px; box-shadow: 0 18px 40px rgba(51, 87, 74, 0.18); }
.cover-page h1 { font-size: 52px; max-width: 650px; margin: 0 auto 18px; }
.cover-owner { font-size: 24px; color: var(--journal-accent, #80b7a2); font-weight: 800; }
.cover-dates { color: var(--muted); font-weight: 700; margin-top: 14px; }

.page-header { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 14px; border-bottom: 2px solid var(--journal-line, #dfe8df); padding-bottom: 12px; margin-bottom: 14px; flex: 0 0 auto; }
.page-header h2 { font-size: 28px; letter-spacing: -0.04em; }
.page-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.pill { align-self: start; background: var(--journal-soft2, #dceee8); color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.content-grid { position: relative; z-index: 1; display: grid; gap: 14px; flex: 1 1 auto; min-height: 0; }
.two-col { grid-template-columns: 1fr 1fr; }
.three-col { grid-template-columns: repeat(3, 1fr); }
.four-col { grid-template-columns: repeat(4, 1fr); }
.box { border: 1.5px solid var(--journal-line, #dfe8df); border-radius: 18px; padding: 14px; min-height: 0; background: rgba(255,255,255,0.74); }
.box.tall { min-height: 0; }
.box h3 { font-size: 15px; margin-bottom: 12px; }
.line-stack { display: grid; gap: 14px; }
.blank-line { border-bottom: 1.5px solid #d8d8d8; height: 20px; }

.tracker-table { width: 100%; border-collapse: collapse; font-size: 12px; overflow: hidden; border-radius: 14px; position: relative; z-index: 1; background: rgba(255,255,255,0.75); flex: 1 1 auto; table-layout: fixed; }
.tracker-table th, .tracker-table td { border: 1px solid var(--journal-line, #dfe8df); padding: 8px 7px; height: 40px; text-align: left; vertical-align: top; }
.tracker-table th { background: var(--journal-soft2, #e8f2ed); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.tracker-table.big-rows td { height: 66px; }
.day-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; flex: 1 1 auto; min-height: 0; }
.day-cell { min-height: 0; border: 1.5px solid var(--journal-line, #dfe8df); border-radius: 16px; padding: 10px; background: rgba(255,255,255,0.75); font-size: 12px; }
.day-cell strong { display: block; margin-bottom: 10px; }
.day-cell span { display: block; height: 22px; border-bottom: 1px solid #d8d8d8; }
.habit-grid, .chore-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr repeat(7, 1fr); border: 1px solid var(--journal-line, #dfe8df); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.76); flex: 1 1 auto; min-height: 0; }
.habit-grid > div, .chore-grid > div { border-right: 1px solid var(--journal-line, #dfe8df); border-bottom: 1px solid var(--journal-line, #dfe8df); min-height: 44px; padding: 10px; display: grid; place-items: center; font-size: 12px; text-align: center; }
.habit-grid .head, .chore-grid .head { background: var(--journal-soft2, #e8f2ed); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 11px; }
.circle { font-size: 22px !important; color: var(--journal-accent, #80b7a2); }
.reward-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.star-box { border: 1.5px solid var(--journal-line); border-radius: 12px; min-height: 54px; display: grid; place-items: center; font-size: 24px; color: var(--journal-accent); }
.footer-note { position: absolute; z-index: 1; bottom: 26px; left: 0; right: 0; text-align: center; color: #a0a0a0; font-size: 10px; font-weight: 700; }

.a5-size .cover-badge { width: 78px; height: 78px; border-radius: 26px; font-size: 32px; margin-bottom: 18px; }
.a5-size .cover-page h1 { font-size: 31px; max-width: 4.7in; }
.a5-size .cover-owner { font-size: 17px; }
.a5-size .page-header h2 { font-size: 20px; }
.a5-size .page-header p, .a5-size .pill { font-size: 9px; }
.a5-size .content-grid { gap: 9px; }
.a5-size .box { border-radius: 14px; padding: 10px; }
.a5-size .box h3 { font-size: 11px; margin-bottom: 7px; }
.a5-size .line-stack { gap: 7px; }
.a5-size .blank-line { height: 13px; }
.a5-size .tracker-table { font-size: 8.5px; }
.a5-size .tracker-table th, .a5-size .tracker-table td { padding: 5px 4px; height: 25px; }
.a5-size .tracker-table.big-rows td { height: 40px; }
.a5-size .day-grid { gap: 5px; }
.a5-size .day-cell { border-radius: 12px; padding: 6px; font-size: 8.5px; }
.a5-size .day-cell span { height: 13px; }
.a5-size .habit-grid > div, .a5-size .chore-grid > div { min-height: 28px; padding: 5px; font-size: 8.5px; }
.a5-size .habit-grid .head, .a5-size .chore-grid .head { font-size: 8px; }
.a5-size .circle { font-size: 15px !important; }
.a5-size .footer-note { bottom: 16px; font-size: 7px; }

.theme-pastel { --journal-accent: #80b7a2; --journal-soft: #f8e2d3; --journal-soft2: #dceee8; --journal-line: #dce8df; }
.theme-minimal { --journal-accent: #4e5960; --journal-soft: #eeeeee; --journal-soft2: #f5f5f5; --journal-line: #d8dde0; }
.theme-bold { --journal-accent: #29324f; --journal-soft: #ffe0a7; --journal-soft2: #dfe7ff; --journal-line: #cbd4ef; }
.theme-cute { --journal-accent: #d9829d; --journal-soft: #ffe0ef; --journal-soft2: #fff1b9; --journal-line: #f0d5df; }
.theme-school { --journal-accent: #5c7ac8; --journal-soft: #dff0ff; --journal-soft2: #fff0b8; --journal-line: #d7e2ff; }
.theme-home { --journal-accent: #b87950; --journal-soft: #f3dfc9; --journal-soft2: #e6f0d5; --journal-line: #ead9c7; }


/* ------------------------------------------------------------
   Template redesign overrides
   These rules make writing areas breathe, reduce wasted bottom space,
   and give each printable type a more specific layout.
------------------------------------------------------------ */

.box h3,
.note-card h3,
.kanban-card h3,
.routine-card h3,
.money-box h3 {
  margin-bottom: 16px;
}

.box {
  display: flex;
  flex-direction: column;
}

.line-stack {
  gap: 11px;
  flex: 1 1 auto;
  align-content: start;
}

.blank-line {
  height: 17px;
}

.wide-note {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.compact-bottom {
  margin-top: 14px;
  flex: 0 0 auto;
}

.metric-row,
.goal-strip,
.money-summary-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.money-summary-row {
  grid-template-columns: repeat(3, 1fr);
}

.mini-metric,
.money-box,
.note-card {
  border: 1.5px solid var(--journal-line, #dfe8df);
  background: rgba(255,255,255,0.78);
  border-radius: 16px;
  padding: 12px;
  min-height: 70px;
}

.mini-metric span,
.money-box h3 {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mini-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink);
}

.money-line {
  border-bottom: 2px solid #d8d8d8;
  height: 28px;
  font-weight: 900;
  color: var(--journal-accent);
}

.checklist {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}

.checklist > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  border-bottom: 1px solid #d8d8d8;
  font-size: 13px;
  font-weight: 700;
}

.check-square {
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--journal-accent);
  border-radius: 5px;
  flex: 0 0 auto;
}

/* Fitness */
.hero-goal-box {
  position: relative;
  z-index: 1;
  border: 2px solid var(--journal-line);
  background: var(--journal-soft2);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
}

.goal-layout .box { min-height: 1.8in; }
.measurement-table { min-height: 4.85in; }
.bottom-notes { margin-top: 14px; flex: 0 0 auto; }
.weekly-focus-grid { grid-template-columns: 1fr 1fr; flex: 0 0 auto; }
.fitness-week-days { flex: 0 0 1.55in; margin-top: 14px; }
.daily-workout-page .daily-workout-table { flex: 1 1 auto; min-height: 6.75in; }
.daily-workout-page .daily-workout-table tbody tr { height: calc(6.25in / 7); }
.daily-reflection-box { position: relative; z-index: 1; flex: 0 0 auto; margin-top: 0.16in; }
.daily-reflection-box .box { min-height: 1.28in; }
.box.compact .line-stack { gap: 8px; }
.box.compact .blank-line { height: 13px; }
.reflection-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.reflection-grid .box { min-height: 2.15in; }

/* Daily planner */
.weekly-dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.priority-box ol {
  margin: 10px 0 0 22px;
  padding: 0;
}
.priority-box li {
  height: 34px;
  border-bottom: 1.5px solid #d8d8d8;
}
.planner-week-days { flex: 1 1 auto; min-height: 3in; }
.daily-plan-table { min-height: 7.45in; }
.daily-plan-table tbody tr { height: calc(6.85in / 7); }
.kanban-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1 1 auto;
}
.kanban-card {
  border: 1.5px solid var(--journal-line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.78);
}
.reflection-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1 1 auto;
}
.reflection-layout .box { min-height: 3.15in; }

/* Reading */
.book-review-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.rating-stars {
  font-size: 25px;
  letter-spacing: 3px;
  color: var(--journal-accent);
  margin-top: 10px;
}
.book-review-main .box { min-height: 2.25in; }
.challenge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  flex: 1 1 auto;
}
.challenge-box {
  border: 1.5px solid var(--journal-line);
  background: rgba(255,255,255,0.78);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--journal-accent);
}
.reading-log-table,
.wishlist-table,
.quote-table { min-height: 7.3in; }

/* Kids chore */
.routine-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1 1 auto;
}
.routine-card {
  border: 1.5px solid var(--journal-line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.78);
}
.routine-card.morning { background: linear-gradient(180deg, var(--journal-soft2), rgba(255,255,255,0.76)); }
.routine-card.evening { background: linear-gradient(180deg, var(--journal-soft), rgba(255,255,255,0.76)); }
.chore-page .chore-grid { min-height: 7.25in; }
.reward-row { position: relative; z-index: 1; }

/* Meal planner */
.grocery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1 1 auto;
}
.grocery-grid .box { min-height: 2.55in; }
.prep-layout,
.recipe-layout,
.training-layout,
.milestone-layout,
.pet-profile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1 1 auto;
}
.prep-layout .box,
.training-layout .box,
.milestone-layout .box { min-height: 3.15in; }
.recipe-layout .box:nth-child(1) { grid-column: 1 / -1; min-height: 1.05in; }
.recipe-layout .box { min-height: 2.15in; }
.meal-table { min-height: 7.4in; }

/* Budget */
.budget-table,
.bill-table,
.expense-table,
.debt-table { min-height: 6.65in; }
.savings-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.savings-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  flex: 1 1 auto;
}
.savings-grid div {
  border: 1.5px solid var(--journal-line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--journal-accent);
  font-weight: 900;
  background: rgba(255,255,255,0.78);
}
.budget-summary-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1 1 auto;
}
.budget-summary-layout .box { min-height: 2.4in; }

/* Pet and baby */
.pet-profile-grid .box { min-height: 1.95in; }
.pet-table,
.sleep-table,
.diaper-table { min-height: 7.2in; }
.baby-table,
.pumping-table,
.medicine-table,
.pet-health-table,
.vet-table { min-height: 7.1in; }

/* A5 keeps the same structure but tighter and readable */
.a5-size .box h3,
.a5-size .note-card h3,
.a5-size .kanban-card h3,
.a5-size .routine-card h3,
.a5-size .money-box h3 {
  margin-bottom: 9px;
}

.a5-size .blank-line { height: 10px; }
.a5-size .line-stack { gap: 5px; }
.a5-size .mini-metric,
.a5-size .money-box,
.a5-size .note-card {
  min-height: 45px;
  padding: 7px;
  border-radius: 11px;
}
.a5-size .mini-metric span,
.a5-size .money-box h3 { font-size: 7px; }
.a5-size .mini-metric strong { font-size: 10px; margin-top: 4px; }
.a5-size .metric-row,
.a5-size .goal-strip,
.a5-size .money-summary-row { gap: 6px; margin-bottom: 8px; }
.a5-size .daily-workout-page .daily-workout-table { min-height: 4.55in; }
.a5-size .daily-workout-page .daily-workout-table tbody tr { height: calc(4.2in / 7); }
.a5-size .daily-reflection-box { margin-top: 0.11in; }
.a5-size .daily-reflection-box .box { min-height: 0.9in; }
.a5-size .daily-plan-table { min-height: 4.75in; }
.a5-size .daily-plan-table tbody tr { height: calc(4.35in / 7); }
.a5-size .weekly-dashboard,
.a5-size .weekly-focus-grid,
.a5-size .reflection-layout,
.a5-size .grocery-grid,
.a5-size .prep-layout,
.a5-size .recipe-layout,
.a5-size .training-layout,
.a5-size .milestone-layout,
.a5-size .pet-profile-grid,
.a5-size .budget-summary-layout { gap: 8px; }
.a5-size .challenge-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.a5-size .challenge-box { border-radius: 10px; font-size: 11px; }
.a5-size .checklist { gap: 5px; }
.a5-size .checklist > div { min-height: 17px; font-size: 8px; gap: 5px; }
.a5-size .check-square { width: 10px; height: 10px; border-radius: 3px; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 1fr; }
  .control-panel { position: static; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .page { transform: scale(0.82); transform-origin: top center; margin-bottom: -1.8in; }
}
@media (max-width: 760px) {
  .grid-2, .two-col, .three-col, .four-col { grid-template-columns: 1fr; }
  .preview-toolbar { align-items: flex-start; flex-direction: column; }
  .page { transform: scale(0.56); margin-bottom: -4.6in; }
}

@media print {
  body { background: #fff; }
  .site-header, .control-panel, .preview-toolbar { display: none !important; }
  .app-shell, .preview-area, .journal-preview { display: block; padding: 0; margin: 0; box-shadow: none; border: 0; background: #fff; }
  .page { border-radius: 0; box-shadow: none; margin: 0; transform: none !important; break-after: page; page-break-after: always; }
  .letter-size .page { width: 8.5in; height: 11in; }
  .a4-size .page { width: 8.27in; height: 11.69in; }
  .a5-size .page { width: 5.83in; height: 8.27in; }
}


/* ============================================================
   v5 practical layout fix
   Main goal: no more writing lines stuck at the top with huge empty bottoms.
   Lines now distribute through the available writing area.
============================================================ */

.page {
  padding: 0.32in 0.32in 0.52in;
}

.page-header {
  margin-bottom: 0.18in;
}

.box h3,
.note-card h3,
.kanban-card h3,
.routine-card h3,
.money-box h3,
.followup-panel h3 {
  margin-bottom: 0.16in !important;
}

/* Make lined writing areas use the whole available height */
.box .line-stack,
.hero-goal-box .line-stack,
.kanban-card .line-stack {
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 0 !important;
  flex: 1 1 auto;
  min-height: 0.9in;
  padding-top: 0.04in;
}

.blank-line {
  height: 0 !important;
  min-height: 0;
  flex: 1 1 auto;
  border-bottom: 1.4px solid #d8d8d8;
}

.box {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Task-board rows look more useful than plain line stacks */
.task-rows {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 0.09in;
  flex: 1 1 auto;
}

.task-rows > div {
  display: grid;
  grid-template-columns: 0.2in 1fr;
  align-items: center;
  gap: 0.08in;
  min-height: 0.34in;
  border-bottom: 1.4px solid #d8d8d8;
}

/* Priority page: real task board, not three nearly-empty columns */
.pro-priority-page .priority-instructions {
  position: relative;
  z-index: 1;
  background: var(--journal-soft2);
  border: 1.5px solid var(--journal-line);
  border-radius: 14px;
  padding: 0.11in 0.14in;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.14in;
}

.pro-priority-page .kanban-grid {
  flex: 1 1 auto;
  min-height: 5.95in;
}

.pro-priority-page .kanban-card {
  display: flex;
  flex-direction: column;
  padding: 0.18in;
}

.pro-priority-page .followup-panel {
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--journal-line);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  padding: 0.15in 0.18in;
  margin-top: 0.14in;
  min-height: 1.35in;
  display: flex;
  flex-direction: column;
}

/* Fitness weekly page: fill the page with useful scheduling areas */
.pro-weekly-fitness .fitness-top-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.1in;
  margin-bottom: 0.13in;
}

.pro-weekly-fitness .weekly-fitness-main {
  grid-template-columns: 1.1fr 0.9fr;
  flex: 0 0 1.65in;
  margin-bottom: 0.14in;
}

.pro-weekly-fitness .weekly-schedule-table {
  flex: 1 1 auto;
  min-height: 3.45in;
  margin-bottom: 0.14in;
}

.pro-weekly-fitness .weekly-schedule-table tbody tr {
  height: calc(3.05in / 7);
}

.pro-weekly-fitness .weekly-fitness-bottom {
  flex: 0 0 1.35in;
}

.pro-weekly-fitness .checklist {
  gap: 0.07in;
}

/* Budget summary should feel like a budget worksheet */
.pro-budget-summary .budget-category-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.1in;
  margin-bottom: 0.14in;
}

.pro-budget-summary .budget-review-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.14in;
  flex: 1 1 auto;
}

.pro-budget-summary .budget-review-row .box {
  min-height: 2.15in;
}

/* Better default for many big tables */
.tracker-table {
  border-spacing: 0;
}

.tracker-table th {
  height: 0.36in;
}

.tracker-table td {
  line-height: 1.25;
}

/* Prevent pages from appearing half empty when one element is meant to fill space */
.reading-log-table,
.wishlist-table,
.quote-table,
.budget-table,
.bill-table,
.expense-table,
.debt-table,
.pet-table,
.sleep-table,
.diaper-table,
.baby-table,
.pumping-table,
.medicine-table,
.pet-health-table,
.vet-table,
.meal-table {
  flex: 1 1 auto;
}

/* A5 version */
.a5-size .page {
  padding: 0.24in 0.24in 0.42in;
}

.a5-size .page-header {
  margin-bottom: 0.12in;
}

.a5-size .box h3,
.a5-size .note-card h3,
.a5-size .kanban-card h3,
.a5-size .routine-card h3,
.a5-size .money-box h3,
.a5-size .followup-panel h3 {
  margin-bottom: 0.09in !important;
}

.a5-size .box .line-stack,
.a5-size .hero-goal-box .line-stack,
.a5-size .kanban-card .line-stack {
  min-height: 0.55in;
}

.a5-size .task-rows {
  gap: 0.04in;
}

.a5-size .task-rows > div {
  grid-template-columns: 0.13in 1fr;
  min-height: 0.2in;
  gap: 0.04in;
}

.a5-size .pro-priority-page .priority-instructions {
  font-size: 8px;
  padding: 0.07in;
  margin-bottom: 0.08in;
}

.a5-size .pro-priority-page .kanban-grid {
  min-height: 3.6in;
}

.a5-size .pro-priority-page .kanban-card {
  padding: 0.1in;
}

.a5-size .pro-priority-page .followup-panel {
  padding: 0.09in;
  min-height: 0.82in;
  margin-top: 0.08in;
}

.a5-size .pro-weekly-fitness .fitness-top-strip {
  gap: 0.05in;
  margin-bottom: 0.08in;
}

.a5-size .pro-weekly-fitness .weekly-fitness-main {
  flex-basis: 1.05in;
  margin-bottom: 0.08in;
}

.a5-size .pro-weekly-fitness .weekly-schedule-table {
  min-height: 2.25in;
  margin-bottom: 0.08in;
}

.a5-size .pro-weekly-fitness .weekly-schedule-table tbody tr {
  height: calc(2in / 7);
}

.a5-size .pro-weekly-fitness .weekly-fitness-bottom {
  flex-basis: 0.86in;
}

.a5-size .pro-budget-summary .budget-category-grid {
  gap: 0.05in;
  margin-bottom: 0.08in;
}

.a5-size .pro-budget-summary .budget-review-row {
  gap: 0.08in;
}



/* ============================================================
   v6 added planner categories: wedding, party, travel, moving,
   home, student, teacher, Etsy, social, self-care, garden, recipe, goals
============================================================ */

.specialty-page .page-header {
  margin-bottom: 0.18in;
}

.specialty-page .specialty-table {
  flex: 1 1 auto;
  min-height: 7.25in;
}

.specialty-page .specialty-table tbody tr {
  height: 0.42in;
}

.specialty-box-grid .box {
  min-height: 3.05in;
}

.category-grid,
.journal-prompt-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.14in;
  flex: 1 1 auto;
}

.category-grid .box,
.journal-prompt-grid .box {
  min-height: 2.4in;
}

.big-checklist {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.12in 0.16in;
  flex: 1 1 auto;
}

.big-checklist > div {
  border: 1.5px solid var(--journal-line);
  background: rgba(255,255,255,0.78);
  border-radius: 16px;
  padding: 0.13in;
  display: grid;
  grid-template-columns: 0.22in 1fr;
  gap: 0.1in;
  align-items: start;
}

.big-checklist > div > span:last-child {
  grid-column: 1 / -1;
  border-bottom: 1.4px solid #d8d8d8;
  min-height: 0.38in;
}

.timeline-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.11in;
  flex: 1 1 auto;
}

.timeline-list > div {
  border: 1.5px solid var(--journal-line);
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  padding: 0.12in 0.15in;
  display: grid;
  grid-template-columns: 1.1in 1fr;
  gap: 0.13in;
  align-items: start;
}

.timeline-list strong {
  color: var(--journal-accent);
  font-size: 13px;
}

.project-top,
.project-middle,
.project-bottom,
.budget-review-row {
  position: relative;
  z-index: 1;
}

.project-top,
.project-middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.14in;
  margin-bottom: 0.14in;
}

.project-top .box {
  min-height: 1.15in;
}

.project-middle {
  flex: 1 1 auto;
}

.project-middle .box {
  min-height: 3.2in;
}

.project-bottom .box {
  min-height: 1.6in;
}

.recipe-card-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.14in;
  flex: 1 1 auto;
}

.recipe-card-layout .box:first-child {
  grid-column: 1 / -1;
  min-height: 1in;
}

.recipe-card-layout .box {
  min-height: 2.45in;
}

.recipe-card-layout .box:last-child {
  grid-column: 1 / -1;
  min-height: 1.35in;
}

.budget-worksheet-table {
  flex: 1 1 auto;
  min-height: 6.15in;
}

.overview-specialty .metric-row {
  margin-bottom: 0.16in;
}

.table-specialty .tracker-table,
.contact-specialty .tracker-table,
.schedule-specialty .tracker-table {
  flex: 1 1 auto;
}

/* Make new categories feel slightly different by using useful worksheet blocks */
.checklist-specialty .wide-note {
  flex: 0 0 1.35in;
}

.grid-specialty .specialty-box-grid {
  flex: 1 1 auto;
}

/* A5 adjustments for the added templates */
.a5-size .specialty-page .specialty-table {
  min-height: 4.55in;
}

.a5-size .specialty-page .specialty-table tbody tr {
  height: 0.26in;
}

.a5-size .specialty-box-grid .box {
  min-height: 1.85in;
}

.a5-size .category-grid,
.a5-size .journal-prompt-grid {
  gap: 0.08in;
}

.a5-size .category-grid .box,
.a5-size .journal-prompt-grid .box {
  min-height: 1.45in;
}

.a5-size .big-checklist {
  gap: 0.06in;
}

.a5-size .big-checklist > div {
  border-radius: 11px;
  padding: 0.07in;
  grid-template-columns: 0.14in 1fr;
  gap: 0.05in;
}

.a5-size .big-checklist > div > span:last-child {
  min-height: 0.22in;
}

.a5-size .timeline-list {
  gap: 0.06in;
}

.a5-size .timeline-list > div {
  border-radius: 11px;
  padding: 0.07in;
  grid-template-columns: 0.72in 1fr;
  gap: 0.06in;
}

.a5-size .timeline-list strong {
  font-size: 8px;
}

.a5-size .project-top,
.a5-size .project-middle,
.a5-size .recipe-card-layout {
  gap: 0.08in;
  margin-bottom: 0.08in;
}

.a5-size .project-top .box {
  min-height: 0.7in;
}

.a5-size .project-middle .box,
.a5-size .recipe-card-layout .box {
  min-height: 1.55in;
}

.a5-size .recipe-card-layout .box:first-child {
  min-height: 0.62in;
}

.a5-size .recipe-card-layout .box:last-child {
  min-height: 0.85in;
}


/* v7 categorized planner dropdown */
select optgroup {
  font-weight: 800;
  color: var(--ink);
}

select option {
  font-weight: 600;
}

.category-hint {
  display: block;
  margin-top: 4px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--journal-soft2, #eaf1ee);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.a5-size .category-hint {
  font-size: 9px;
}


/* ============================================================
   v8 sidebar scroll fix
   Prevents the bottom control cards from being cut off when the
   planner selector + sections list is taller than the browser window.
============================================================ */

.control-panel {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.control-panel::-webkit-scrollbar {
  width: 8px;
}

.control-panel::-webkit-scrollbar-track {
  background: rgba(229, 222, 212, 0.35);
  border-radius: 999px;
}

.control-panel::-webkit-scrollbar-thumb {
  background: rgba(128, 183, 162, 0.65);
  border-radius: 999px;
}

.hint-card {
  margin-bottom: 18px;
}

@media (max-width: 1120px) {
  .control-panel {
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }
}


/* ============================================================
   v9 cover selections + color personalization
============================================================ */

input[type="color"] {
  min-height: 44px;
  padding: 5px;
  cursor: pointer;
}

.toggle-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.cover-page {
  padding: 0.42in;
  overflow: hidden;
  isolation: isolate;
}

.cover-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 6.8in;
  margin: auto;
  text-align: center;
}

.cover-kicker {
  display: inline-block;
  margin-bottom: 0.28in;
  padding: 0.09in 0.16in;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1.5px solid var(--journal-line);
  color: var(--journal-accent);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cover-note {
  margin: 0.24in auto 0;
  max-width: 4.8in;
  padding: 0.14in 0.2in;
  border-radius: 18px;
  border: 1.5px solid var(--journal-line);
  background: rgba(255,255,255,0.68);
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}

.cover-art {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.cover-art-top {
  top: 0.8in;
  left: 0.7in;
  width: 1.5in;
  height: 1.5in;
  border-radius: 50%;
  background: var(--journal-soft);
}

.cover-art-bottom {
  right: 0.65in;
  bottom: 1.8in;
  width: 1.9in;
  height: 1.9in;
  border-radius: 50%;
  background: var(--journal-soft2);
}

.cover-badge {
  position: relative;
}

.cover-monogram {
  display: none;
}

/* Cover style: minimal frame */
.cover-minimalFrame {
  background: #fffdf9;
}

.cover-minimalFrame .cover-art {
  display: none;
}

.cover-minimalFrame::after {
  content: "";
  position: absolute;
  inset: 0.62in;
  z-index: 1;
  border: 3px double var(--journal-line);
  border-radius: 34px;
}

.cover-minimalFrame .cover-badge {
  background: transparent;
  color: var(--journal-accent);
  border: 2px solid var(--journal-accent);
  box-shadow: none;
}

/* Cover style: corner florals */
.cover-cornerFlorals .cover-art-top,
.cover-cornerFlorals .cover-art-bottom {
  border-radius: 30% 70% 45% 55%;
  background:
    radial-gradient(circle at 30% 30%, var(--journal-accent) 0 0.11in, transparent 0.12in),
    radial-gradient(circle at 62% 36%, var(--journal-soft2) 0 0.18in, transparent 0.19in),
    radial-gradient(circle at 42% 68%, var(--journal-soft) 0 0.2in, transparent 0.21in);
  opacity: 0.95;
}

.cover-cornerFlorals .cover-art-top {
  width: 2.1in;
  height: 2.1in;
  top: 0.45in;
  left: 0.35in;
}

.cover-cornerFlorals .cover-art-bottom {
  width: 2.3in;
  height: 2.3in;
  right: 0.25in;
  bottom: 0.65in;
}

/* Cover style: bold block */
.cover-boldBlock {
  background:
    linear-gradient(135deg, var(--journal-soft2) 0 34%, transparent 34% 100%),
    linear-gradient(315deg, var(--journal-soft) 0 36%, transparent 36% 100%),
    #fffdf9;
}

.cover-boldBlock .cover-art {
  display: none;
}

.cover-boldBlock .cover-content {
  background: rgba(255,255,255,0.82);
  border: 2px solid var(--journal-line);
  border-radius: 32px;
  padding: 0.45in;
  box-shadow: 0 20px 55px rgba(52,43,34,0.10);
}

/* Cover style: doodle stars */
.cover-doodleStars {
  background:
    radial-gradient(circle at 15% 20%, var(--journal-soft) 0 0.5in, transparent 0.51in),
    radial-gradient(circle at 84% 28%, var(--journal-soft2) 0 0.65in, transparent 0.66in),
    radial-gradient(circle at 25% 82%, var(--journal-soft2) 0 0.4in, transparent 0.41in),
    #fffdf9;
}

.cover-doodleStars::after {
  content: "✦  ☆  ✧  ✦  ☆";
  position: absolute;
  z-index: 2;
  inset: auto 0 1.1in;
  text-align: center;
  color: var(--journal-accent);
  font-size: 34px;
  letter-spacing: 0.18in;
  opacity: 0.85;
}

/* Cover style: classic monogram */
.cover-classicMonogram .cover-icon {
  display: none;
}

.cover-classicMonogram .cover-monogram {
  display: inline;
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 1;
}

.cover-classicMonogram .cover-badge {
  border-radius: 50%;
  background: #fffdf9;
  border: 3px solid var(--journal-accent);
  color: var(--journal-accent);
  box-shadow: none;
}

.cover-classicMonogram .cover-art {
  display: none;
}

.cover-classicMonogram::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0.5in;
  border-radius: 32px;
  border: 2px solid var(--journal-line);
}

/* More color palette themes */
.theme-lavender { --journal-accent: #9b87c9; --journal-soft: #eee7fb; --journal-soft2: #e4f0ff; --journal-line: #ddd3f2; }
.theme-sage { --journal-accent: #78956f; --journal-soft: #edf3e6; --journal-soft2: #e4efe0; --journal-line: #d5e2ce; }
.theme-rose { --journal-accent: #c98091; --journal-soft: #fde8ee; --journal-soft2: #fff1dc; --journal-line: #efd0d9; }
.theme-sky { --journal-accent: #6d9bc3; --journal-soft: #e7f4ff; --journal-soft2: #e9f0ff; --journal-line: #cfdeef; }
.theme-sunset { --journal-accent: #d88a5c; --journal-soft: #ffe6d4; --journal-soft2: #fff1c9; --journal-line: #f0d2bc; }
.theme-ink { --journal-accent: #27313a; --journal-soft: #eeeeee; --journal-soft2: #f7f7f7; --journal-line: #cfd4d8; }

.a5-size .cover-content {
  max-width: 4.75in;
}

.a5-size .cover-kicker {
  font-size: 8px;
  margin-bottom: 0.16in;
  padding: 0.06in 0.1in;
}

.a5-size .cover-note {
  max-width: 3.5in;
  font-size: 10px;
  padding: 0.09in 0.12in;
  margin-top: 0.15in;
}

.a5-size .cover-boldBlock .cover-content {
  padding: 0.25in;
  border-radius: 22px;
}

.a5-size .cover-minimalFrame::after,
.a5-size .cover-classicMonogram::after {
  inset: 0.36in;
  border-radius: 22px;
}

.a5-size .cover-doodleStars::after {
  bottom: 0.65in;
  font-size: 20px;
  letter-spacing: 0.1in;
}


/* ============================================================
   v10 cover cleanup
   Removes the decorative circles, top kicker text, note box,
   and middle icon/badge for a cleaner cover.
============================================================ */

.clean-cover {
  background: #fffdf9 !important;
}

.clean-cover .cover-art,
.clean-cover .cover-kicker,
.clean-cover .cover-note,
.clean-cover .cover-badge,
.clean-cover .cover-icon,
.clean-cover .cover-monogram,
.clean-cover::after {
  display: none !important;
}

.simple-cover-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  max-width: 6.2in;
  margin: 0 auto;
  text-align: center;
}

.clean-cover h1 {
  margin: 0 0 0.3in;
}

.clean-cover .cover-owner {
  margin-bottom: 0.14in;
}

.clean-cover .cover-dates {
  margin-top: 0;
}

.a5-size .simple-cover-content {
  max-width: 4.5in;
}

.a5-size .clean-cover h1 {
  margin-bottom: 0.18in;
}


/* ============================================================
   v12 larger planner library additions
   Keeps the longer categorized selector usable and supports the 23 new planners.
============================================================ */

#plannerType {
  max-height: 360px;
}

select optgroup {
  padding: 6px 0;
}

.specialty-page .page-header h2 {
  letter-spacing: -0.035em;
}

/* A little more space for large worksheet libraries */
.specialty-page .tracker-table th {
  line-height: 1.2;
}

.specialty-page .tracker-table td {
  word-break: normal;
}

/* Make project pages and journal prompts useful for the added niche planners */
.project-specialty .project-middle .box,
.journal-specialty .journal-prompt-grid .box,
.grid-specialty .specialty-box-grid .box {
  overflow: hidden;
}

/* Some added trackers have more rows; keep print clean */
.table-specialty .specialty-table td,
.schedule-specialty .specialty-table td,
.contact-specialty .specialty-table td {
  vertical-align: top;
}

/* Preserve sidebar scrolling with many categories */
.control-panel {
  overscroll-behavior: contain;
}


/* ============================================================
   v13 polished template gallery
   Replaces the long planner dropdown with category tabs + template cards.
============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.template-gallery-control {
  display: grid;
  gap: 14px;
  margin: 4px 0 18px;
}

.gallery-heading {
  margin-bottom: 0;
  align-items: flex-start;
}

.gallery-heading h2 {
  margin-bottom: 4px;
}

.mini-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.template-search-wrap input {
  margin: 0;
  border-radius: 18px;
  padding: 13px 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 7px;
  scrollbar-width: thin;
}

.category-tabs::-webkit-scrollbar {
  height: 6px;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: rgba(128, 183, 162, 0.5);
  border-radius: 999px;
}

.category-tab {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
}

.category-tab:hover {
  transform: translateY(-1px);
  color: var(--ink);
  background: var(--journal-soft2, #eaf1ee);
}

.category-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.planner-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
}

.planner-gallery::-webkit-scrollbar {
  width: 7px;
}

.planner-gallery::-webkit-scrollbar-thumb {
  background: rgba(128, 183, 162, 0.58);
  border-radius: 999px;
}

.planner-card {
  width: 100%;
  display: grid;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(229, 222, 212, 0.95);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, var(--journal-soft2, #eaf1ee) 0 42px, transparent 44px),
    #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(48, 39, 28, 0.07);
  color: var(--ink);
}

.planner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(48, 39, 28, 0.11);
  border-color: var(--journal-accent, var(--accent));
}

.planner-card.selected {
  border: 2px solid var(--journal-accent, var(--accent));
  background:
    radial-gradient(circle at top right, var(--journal-soft2, #eaf1ee) 0 56px, transparent 58px),
    linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.82) 100%);
  box-shadow: 0 16px 34px rgba(48, 39, 28, 0.14);
}

.planner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.planner-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--journal-accent, var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(48, 39, 28, 0.12);
}

.planner-card-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--journal-soft2, #eaf1ee);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.planner-card-body h3 {
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.planner-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 12px;
  font-weight: 650;
}

.planner-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
}

.planner-card-footer strong {
  color: var(--journal-accent, var(--accent));
  white-space: nowrap;
}

.empty-gallery {
  border: 1px dashed var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 1180px) {
  .planner-gallery {
    max-height: 456px;
  }
}

@media (max-width: 1120px) {
  .planner-gallery {
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

@media (max-width: 760px) {
  .planner-gallery {
    grid-template-columns: 1fr;
  }
}
