/*
  Printable Planners & Trackers. Plain CSS, not built by Tailwind. The settings
  panel and preview take their colours from the site's theme tokens; the sheet
  itself stays white like paper in dark mode too, and is sized in real units
  (app.js sets inches and points), so everything inside it is in em.
*/

.planner-app { --planner-line: var(--color-base-300); }
.planner-app [hidden] { display: none !important; }
.planner-loading { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.planner-error { color: var(--color-error); }

.planner { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* On phones the page and its print button come first; the settings follow. */
@media (max-width: 59.99rem) { .planner-preview { order: -1; } }
@media (min-width: 60rem) {
  .planner { grid-template-columns: minmax(21rem, 25rem) minmax(0, 1fr); }
  .planner-preview { position: sticky; top: 5.5rem; }
}

.planner-icon { display: inline-flex; flex: none; }
.planner-icon svg { width: 1rem; height: 1rem; }

/* ---- Settings panel ------------------------------------------------------- */

.planner-panel {
  min-width: 0;
  border: 1px solid var(--planner-line);
  border-radius: var(--r-md, 0.875rem);
  background: var(--color-base-100);
}
.planner-panel-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.1rem 0.75rem; }
.planner-panel-title { font-size: 1.0625rem; font-weight: 650; }
.planner-reset { margin-left: auto; }

.planner-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.2rem;
  margin: 0 1.1rem;
  padding: 0.22rem;
  border-radius: 0.7rem;
  background: var(--color-base-200);
}
.planner-tab {
  padding: 0.42rem 0.4rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--color-base-content) 68%, transparent);
  transition: background-color 0.12s, color 0.12s;
}
.planner-tab:hover { color: var(--color-base-content); }
.planner-tab[aria-selected="true"] {
  background: var(--color-base-100);
  color: var(--color-base-content);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 1px var(--planner-line);
}
.planner-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }

.planner-pane { padding: 0.2rem 1.1rem 1.15rem; }
.planner-pane > .planner-group { padding-top: 1rem; }
.planner-pane > .planner-group + .planner-group { margin-top: 1.1rem; border-top: 1px solid var(--planner-line); }
.planner-group { display: flex; flex-direction: column; gap: 1.05rem; min-width: 0; margin: 0; padding: 0; border: 0; }
/* A floated legend is laid out as the group's first flex item, so the group's gap spaces it. */
.planner-group-title { float: left; width: 100%; padding: 0; font-size: 0.8125rem; font-weight: 650; }
.planner-group .planner-group { gap: 0.5rem; }

.planner-field { display: flex; flex-direction: column; gap: 0.42rem; min-width: 0; }
.planner-label { font-size: 0.8125rem; font-weight: 650; }
.planner-hint { font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.planner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Segmented choice */
.planner-seg {
  display: flex;
  gap: 0.2rem;
  min-width: 0;
  margin: 0;
  padding: 0.2rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--color-base-200);
}
.planner-seg.is-wrapping { flex-wrap: wrap; }
.planner-seg-option { position: relative; flex: 1 1 0; min-width: max-content; cursor: pointer; }
.planner-seg-option input { position: absolute; opacity: 0; pointer-events: none; }
.planner-seg-option > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 550;
  white-space: nowrap;
  color: color-mix(in oklab, var(--color-base-content) 72%, transparent);
  transition: background-color 0.12s, color 0.12s;
}
.planner-seg-option:hover > span { color: var(--color-base-content); }
.planner-seg-option input:checked + span {
  background: var(--color-base-100);
  color: var(--color-base-content);
  font-weight: 650;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 0 0 1px var(--planner-line);
}
.planner-seg-option input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.planner-seg .pp-mark { width: 0.95rem; height: 0.95rem; --mark: currentColor; }
.planner-font-modern { font-family: "Archivo", sans-serif; }
.planner-font-serif { font-family: Georgia, "Times New Roman", serif; }
.planner-font-rounded { font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.planner-font-mono { font-family: "Courier New", ui-monospace, monospace; }

/* On/off rows, grouped like a settings list */
.planner-toggles {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--planner-line);
  border-radius: 0.65rem;
}
.planner-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.planner-toggle + .planner-toggle { border-top: 1px solid var(--planner-line); }
.planner-toggle:hover { background: color-mix(in oklab, var(--color-base-content) 3%, transparent); }
.planner-toggle .toggle { flex: none; }

/* Number with − and + */
.planner-stepper {
  display: inline-flex;
  align-items: stretch;
  width: max-content;
  overflow: hidden;
  border: 1px solid var(--planner-line);
  border-radius: 0.6rem;
  background: var(--color-base-100);
}
.planner-stepper-btn { display: grid; place-items: center; width: 2.2rem; color: var(--color-base-content); }
.planner-stepper-btn:hover:not(:disabled) { background: var(--color-base-200); }
.planner-stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.planner-stepper .planner-stepper-input {
  width: 3.6rem;
  height: 2.1rem;
  border: 0;
  border-inline: 1px solid var(--planner-line);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.planner-stepper-input::-webkit-inner-spin-button,
.planner-stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Date with ‹ › */
.planner-date { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.planner-date-inputs { display: flex; flex: 1; gap: 0.35rem; min-width: 0; }
.planner-date-inputs > * { flex: 1 1 auto; min-width: 0; }
.planner-date-inputs .planner-year { flex: 0 0 5.2rem; }
.planner-date-step {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--planner-line);
  border-radius: 0.55rem;
  background: var(--color-base-100);
}
.planner-date-step:hover { background: var(--color-base-200); }
.planner-today { flex: none; padding-inline: 0.55rem; }

/* Row labels */
.planner-rows { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.planner-rows li { display: flex; align-items: center; gap: 0.35rem; }
.planner-rows .input { flex: 1; min-width: 0; }
.planner-row-num { flex: none; width: 1.3rem; text-align: right; font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.planner-row-remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  color: var(--muted);
}
.planner-row-remove:hover { background: var(--color-base-200); color: var(--color-error); }
.planner-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-left: 1.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--color-primary);
}
.planner-add:hover:not(:disabled) { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.planner-add:disabled { opacity: 0.4; }
.planner-ideas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.planner-ideas-label { margin-right: 0.15rem; font-size: 0.75rem; font-weight: 650; color: var(--muted); }
.planner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.55rem 0.18rem 0.4rem;
  border: 1px dashed color-mix(in oklab, var(--color-base-content) 28%, transparent);
  border-radius: 999px;
  font-size: 0.78rem;
}
.planner-chip:hover {
  border-style: solid;
  border-color: var(--color-primary);
  background: color-mix(in oklab, var(--color-primary) 8%, transparent);
  color: var(--color-primary);
}
.planner-chip .planner-icon svg { width: 0.75rem; height: 0.75rem; }

/* Design tiles: a tiny sheet drawn in each design */
.planner-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.planner-theme { position: relative; display: flex; flex-direction: column; gap: 0.35rem; cursor: pointer; }
.planner-theme input { position: absolute; opacity: 0; pointer-events: none; }
.planner-theme-name { font-size: 0.75rem; font-weight: 600; text-align: center; }
.planner-theme-art {
  --ink: #1b2130;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 5;
  padding: 7px 6px 6px;
  border-radius: 0.55rem;
  background: #fff;
  box-shadow: 0 0 0 1px var(--planner-line);
  transition: box-shadow 0.12s;
}
.planner-theme input:checked + .planner-theme-art { box-shadow: 0 0 0 2px var(--color-primary); }
.planner-theme input:focus-visible + .planner-theme-art { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.planner-theme-art i { display: block; }
.planner-theme-art .t-title { width: 62%; height: 5px; margin-bottom: 5px; border-radius: 2px; background: var(--accent); }
.planner-theme-art .t-head { height: 7px; background: var(--accent); }
.planner-theme-art .t-row { flex: 1; border: 1px solid #d3d8e2; border-top: 0; }
.planner-theme-art.theme-soft .t-title { background: var(--ink); }
.planner-theme-art.theme-soft .t-head { border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--accent) 22%, #fff); }
.planner-theme-art.theme-soft .t-row { border: 0; }
.planner-theme-art.theme-soft .t-row:nth-child(even) { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.planner-theme-art.theme-soft .t-row:last-child { border-radius: 0 0 3px 3px; }
.planner-theme-art.theme-minimal .t-title { width: 50%; height: 4px; background: var(--ink); }
.planner-theme-art.theme-minimal .t-head { height: 5px; background: none; border-bottom: 2px solid var(--accent); }
.planner-theme-art.theme-minimal .t-row { border: 0; border-bottom: 1px solid #d3d8e2; }
.planner-theme-art.theme-bold .t-title { width: auto; height: 9px; margin: -1px -1px 5px; border-radius: 2px; }
.planner-theme-art.theme-bold .t-head { background: var(--ink); }
.planner-theme-art.theme-bold .t-row { border-color: var(--ink); border-width: 0 1.5px 1px; }
.planner-theme-art.theme-bold .t-row:last-child { border-bottom-width: 1.5px; }

/* Colour swatches */
.planner-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0.15rem 0.1rem; border: 0; }
.planner-swatch {
  position: relative;
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
  cursor: pointer;
}
.planner-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.planner-swatch:has(input:checked),
.planner-swatch.is-on { box-shadow: 0 0 0 2px var(--color-base-100), 0 0 0 4px var(--swatch, var(--color-base-content)); }
.planner-swatch:has(input:focus-visible) { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.planner-swatch-custom { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #ef4444); }
.planner-field.is-muted .planner-swatches { opacity: 0.4; }

.planner-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px dashed color-mix(in oklab, var(--color-primary) 45%, transparent);
  border-radius: 0.65rem;
  font-size: 0.8125rem;
}
.planner-suggest-btn { font-weight: 650; color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

.planner-tip {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.7rem;
  background: color-mix(in oklab, var(--color-primary) 9%, transparent);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.planner-tip .planner-icon { margin-top: 0.1rem; color: var(--color-primary); }

/* ---- Preview -------------------------------------------------------------- */

.planner-preview { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.planner-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; min-height: 2.3rem; }
.planner-pager {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem;
  border: 1px solid var(--planner-line);
  border-radius: 0.65rem;
  background: var(--color-base-100);
}
.planner-page-btn { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 0.45rem; }
.planner-page-btn:hover:not(:disabled) { background: var(--color-base-200); }
.planner-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.planner-page-text { padding-inline: 0.25rem; font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.planner-status { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }
.planner-stage {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: clamp(0.75rem, 3vw, 1.75rem);
  border-radius: var(--r-md, 0.875rem);
  background: color-mix(in oklab, var(--color-base-content) 7%, var(--color-base-200));
}
.planner-scaler { position: relative; flex: none; }
.planner-scaler > .planner-sheet {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 12px 32px rgb(0 0 0 / 0.16);
}
.planner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.planner-print-btn { gap: 0.5rem; min-width: 12rem; }
.planner-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.35rem 0.3rem 0.8rem;
  border-radius: 0.6rem;
  background: var(--color-base-content);
  color: var(--color-base-100);
  font-size: 0.8125rem;
}
.planner-undo { padding: 0.2rem 0.55rem; border-radius: 0.4rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.planner-undo:hover { background: rgb(255 255 255 / 0.12); }

/* ---- The sheet ------------------------------------------------------------ */

.planner-sheet {
  --ink: #1b2130;
  --ink-2: #576071;
  --ink-3: #8c95a5;
  --rule: #d3d8e2;
  --rule-soft: #e7eaf0;
  --line: #d8dce5;
  --dot: #a9b1bf;
  --mark: #9ea7b6;
  --tint: color-mix(in srgb, var(--accent) 13%, #fff);
  --tint-soft: color-mix(in srgb, var(--accent) 5%, #fff);
  --accent-ink: color-mix(in srgb, var(--accent) 80%, #000);
  --weekend: #f3f4f7;
  --zebra: #f7f8fa;
  --head-bg: var(--accent);
  --head-ink: #fff;
  --head-rule: rgb(255 255 255 / 0.3);
  --head-line: var(--accent);
  --head-weekend: color-mix(in srgb, var(--accent) 84%, #000);
  --frame: var(--rule);
  --r: 0px;
  --gap: 2.25em;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15em;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-family: var(--pp-font);
  line-height: 1.3;
  text-align: left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.planner-sheet *, .planner-sheet *::before, .planner-sheet *::after { box-sizing: border-box; }
.planner-sheet.is-light-accent { --head-ink: var(--ink); --head-rule: rgb(0 0 0 / 0.12); --accent-ink: color-mix(in srgb, var(--accent) 45%, #000); }
.planner-sheet.is-light-accent .pp-title,
.planner-sheet.is-light-accent .pp-daynum,
.planner-sheet.is-light-accent .pp-panel-title,
.planner-sheet.is-light-accent .pp-section-title,
.planner-sheet.is-light-accent .pp-num { color: var(--accent-ink); }

.font-modern { --pp-font: "Archivo", "Helvetica Neue", Arial, sans-serif; --pp-title-stretch: 116%; }
.font-serif { --pp-font: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; }
.font-rounded { --pp-font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.font-mono { --pp-font: "Courier Prime", "Courier New", ui-monospace, Menlo, Consolas, monospace; }

/* Typing: anything with data-k. Outlines show on screen only. */
.pp-ed { display: block; min-height: 1.3em; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
span.pp-ed { display: inline-block; }
@media screen {
  .planner-stage .pp-ed { border-radius: 2px; transition: box-shadow 0.12s, background-color 0.12s; }
  .planner-stage .pp-ed:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
  .planner-stage .pp-ed:focus { background-color: color-mix(in srgb, var(--accent) 7%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
  .planner-stage thead .pp-ed:hover,
  .planner-stage .pp-block-head .pp-ed:hover,
  .planner-stage .pp-mx-head .pp-ed:hover { box-shadow: inset 0 0 0 1px currentColor; }
  .planner-stage thead .pp-ed:focus,
  .planner-stage .pp-block-head .pp-ed:focus,
  .planner-stage .pp-mx-head .pp-ed:focus { background-color: color-mix(in srgb, currentColor 12%, transparent); box-shadow: inset 0 0 0 1.5px currentColor; }
}

/* Writing lines */
.pp-lined { padding: 0 0.35em; line-height: var(--gap); }
.lines-ruled .pp-lined { background: linear-gradient(to top, var(--line) 1px, transparent 1px) 0 0 / 100% var(--gap); }
.lines-dotted .pp-lined { background: radial-gradient(circle at 50% calc(100% - 1px), var(--dot) 0.6px, transparent 1px) 0 0 / 0.55em var(--gap); }

/* Header */
.pp-head {
  display: flex;
  flex: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5em;
  padding-bottom: 0.75em;
  border-bottom: 2px solid var(--accent);
}
.pp-head-main { flex: 1; min-width: 0; }
.pp-title {
  min-height: 1.05em;
  font-size: 2.35em;
  font-weight: 760;
  font-stretch: var(--pp-title-stretch, 100%);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.pp-sub { margin-top: 0.35em; font-size: 1.1em; font-weight: 500; color: var(--ink-2); }
.pp-head-side { display: flex; flex: none; align-items: flex-end; gap: 1.3em; }
.pp-fields { display: flex; flex-direction: column; gap: 0.65em; min-width: 14em; }
.pp-field { display: flex; align-items: baseline; gap: 0.55em; }
.pp-field-label { flex: none; font-size: 0.75em; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.pp-field-line { flex: 1; min-width: 6em; min-height: 1.45em; padding: 0 0.2em; border-bottom: 1px solid var(--rule); }
.pp-badge { padding: 0.35em 0.8em; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 0.85em; font-weight: 750; }

.pp-minis { display: flex; gap: 1.1em; }
.pp-mini { border-collapse: collapse; font-size: 0.6em; line-height: 1.15; color: var(--ink-2); }
.pp-mini caption { padding-bottom: 0.35em; text-align: left; font-size: 1.1em; font-weight: 750; color: var(--ink); }
.pp-mini th { padding: 0 0.32em 0.2em; text-align: center; font-weight: 750; color: var(--ink-3); }
.pp-mini td { padding: 0.14em 0.32em; text-align: center; font-variant-numeric: tabular-nums; }
.pp-mini td.is-on { border-radius: 50%; background: var(--accent); color: var(--head-ink); font-weight: 750; }

/* Body building blocks */
.pp-body { display: flex; flex: 1 1 0; flex-direction: column; min-height: 0; }
.pp-body > * { flex: 1 1 0; min-height: 0; }
.pp-grow { flex: 1 1 0; min-width: 0; min-height: 0; }
.pp-grow-2 { flex-grow: 2; }
.pp-stack { display: flex; flex-direction: column; gap: 1em; min-height: 0; }
.pp-below { display: flex; flex: 0 0 26%; gap: 1em; min-height: 0; }
.pp-below > * { flex: 1 1 0; min-width: 0; }
.pp-below-short { flex-basis: 17%; }
.pp-below-tall { flex-basis: 33%; }
.pp-below-key { flex: none; }
.pp-split { display: flex; gap: 1em; min-height: 0; }
.pp-split.is-flipped { flex-direction: row-reverse; }
.pp-aside { display: flex; flex: 0 0 31%; flex-direction: column; gap: 0.9em; min-width: 0; min-height: 0; }
.pp-day-split .pp-aside { flex-basis: 39%; }
.pp-pixels-split .pp-aside { flex-basis: 24%; }
.pp-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--frame);
  border-radius: var(--r);
  background: #fff;
}
.pp-frame > * { flex: 1 1 auto; min-height: 0; }
.pp-fill > table { position: absolute; inset: 0; height: 100%; }

/* Panels: notes, to-dos, priorities */
.pp-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.55em 0.75em 0.4em;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
}
.pp-panel-title {
  flex: none;
  margin-bottom: 0.2em;
  font-size: 0.76em;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pp-panel > .pp-lined { flex: 1 1 0; min-height: 0; margin: 0 -0.35em; }

.pp-lines { display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 0; list-style: none; }
.pp-lines.pp-fit { position: relative; flex: 1 1 0; overflow: hidden; }
.pp-lines li { display: flex; flex: none; align-items: center; gap: 0.55em; height: var(--gap); border-bottom: 1px solid var(--line); }
.pp-lines.is-fitted li { flex: 1 1 0; height: auto; }
.lines-dotted .pp-lines li { border-bottom: 1.5px dotted var(--dot); }
.lines-blank .pp-lines li { border-bottom-color: transparent; }
.pp-lines .pp-ed { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pp-lines .pp-mark { flex: none; width: 0.95em; height: 0.95em; }
.pp-num { flex: none; width: 1.2em; text-align: right; font-weight: 800; color: var(--accent); }
.pp-line-label { flex: none; width: 6.2em; font-size: 0.74em; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.pp-water { display: flex; justify-content: space-between; gap: 0.3em; padding: 0.25em 0 0.15em; }
.pp-water .pp-mark { width: 1.55em; height: 1.55em; --mark: color-mix(in srgb, var(--accent) 55%, #fff); }

/* Marks to tick, star or colour in */
.pp-mark { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: middle; border: 1.2px solid var(--mark, #9ea7b6); }
.pp-mark-box { border-radius: 0.18em; }
.pp-mark-circle { border-radius: 50%; }
.pp-mark-shape { border: 0; }
.pp-mark-shape svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--mark, #9ea7b6); stroke-width: 1.45; stroke-linejoin: round; stroke-linecap: round; }
.pp-mark-shape circle[r=".5"] { fill: var(--mark, #9ea7b6); }

/* Tables */
.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pp-table th,
.pp-table td {
  padding: 0.3em 0.5em;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: middle;
}
.pp-table tr > :last-child { border-right: 0; }
.pp-table > :last-child > tr:last-child > * { border-bottom: 0; }
.pp-table thead th {
  height: 2.55em;
  padding: 0.45em 0.5em;
  border-right-color: var(--head-rule);
  border-bottom-color: var(--head-line);
  background: var(--head-bg);
  color: var(--head-ink);
  font-size: 0.76em;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.pp-table thead th.is-weekend { background: var(--head-weekend); }
.pp-table tbody th { font-weight: 650; }
.pp-table .pp-label { font-weight: 600; }
.pp-table td.is-weekend { background: var(--weekend); }
.pp-zebra tbody tr:nth-child(even) > * { background: var(--zebra); }
.pp-zebra tbody tr:nth-child(even) > .is-weekend { background: color-mix(in srgb, var(--weekend) 60%, var(--zebra)); }
.pp-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.pp-table .is-center { text-align: center; }
.pp-table tfoot td { border-top: 1.5px solid var(--ink-2); background: var(--tint-soft); font-weight: 750; }
.pp-table .pp-markcell { padding: 0.2em; text-align: center; }
.pp-dayhead { text-align: center !important; }
.pp-dayhead .pp-dow { display: block; }
.pp-dayhead .pp-dnum { display: block; margin-top: 0.1em; font-size: 1.3em; font-weight: 800; letter-spacing: 0; }
.pp-dense thead th { padding: 0.35em 0.05em; font-size: 0.66em; letter-spacing: 0; white-space: nowrap; overflow-wrap: normal; }
.pp-dense .pp-dayhead .pp-dnum { font-size: 1.15em; }
.pp-dense thead th.pp-label-head { padding-inline: 0.5em; letter-spacing: 0.06em; }
.pp-dense .pp-markcell .pp-mark { width: min(1.1em, 80%); height: auto; aspect-ratio: 1; }
.pp-total { background: var(--tint-soft); }
/* Roomy rows get marks big enough to tick with a pen. */
.pp-grid .pp-markcell .pp-mark,
.pp-tracker:not(.pp-dense) .pp-markcell .pp-mark,
.pp-log .pp-markcell .pp-mark { width: 1.4em; height: 1.4em; }

/* Monthly calendar, meal grid and year in pixels share one trick: 1px gaps over a ruled background. */
.pp-cal, .pp-matrix, .pp-pixels { display: grid; gap: 1px; height: 100%; background: var(--rule); }
.pp-cal > *, .pp-matrix > *, .pp-pixels > * { min-width: 0; min-height: 0; background: #fff; }
.pp-cal > .pp-cal-head,
.pp-matrix > .pp-mx-head,
.pp-matrix > .pp-mx-corner,
.pp-pixels > .pp-px-head,
.pp-pixels > .pp-px-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5em 0.3em;
  background: var(--head-bg);
  color: var(--head-ink);
  font-size: 0.76em;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.pp-cal > .pp-cal-head.is-weekend, .pp-matrix > .pp-mx-head.is-weekend { background: var(--head-weekend); }

.pp-cal > .pp-day { display: flex; flex-direction: column; padding: 0.35em 0.35em 0.1em; }
.pp-cal > .pp-day.is-weekend { background: var(--weekend); }
.pp-cal > .pp-day.is-out { background: #fafbfc; }
.pp-daynum { flex: none; margin-bottom: 0.1em; font-size: 1.05em; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pp-day.is-out .pp-daynum { font-weight: 500; color: var(--ink-3); }
.pp-day .pp-lined { padding: 0 0.1em; }
.pp-cal > .pp-wk { display: grid; place-items: center; background: var(--tint-soft); color: var(--ink-3); font-size: 0.7em; font-weight: 750; }
.pp-cal > .pp-cal-head.pp-wk { background: var(--head-bg); color: var(--head-ink); }

.pp-matrix > .pp-mx-cell { display: flex; flex-direction: column; padding: 0.05em 0.25em; }
.pp-matrix > .pp-mx-cell.is-weekend { background: var(--weekend); }
.pp-meals:not(.is-down) > .pp-meal-name,
.pp-meals.is-down > .pp-dayhead { background: var(--tint-soft); color: var(--accent-ink); }
.pp-meals.is-down > .pp-dayhead { align-items: flex-start; padding-left: 0.7em; }
.pp-meals.is-down > .pp-dayhead.is-weekend { background: color-mix(in srgb, var(--weekend) 50%, var(--tint-soft)); }
.pp-mx-head .pp-ed { width: 100%; text-align: inherit; }

.pp-pixels { grid-template-columns: 2.1em repeat(12, minmax(0, 1fr)); grid-template-rows: auto repeat(31, minmax(0, 1fr)); }
.pp-pixels > .pp-px-day { display: grid; place-items: center; background: var(--tint-soft); color: var(--ink-2); font-size: 0.66em; font-weight: 750; font-variant-numeric: tabular-nums; }
.pp-pixels > .pp-px.is-weekend { background: var(--weekend); }
.pp-pixels > .pp-px.is-void { background: repeating-linear-gradient(135deg, #eef0f4 0 1.5px, #fff 1.5px 5px); }

/* Weekly */
.pp-week-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85em; }
.pp-span2 { grid-column: 1 / -1; }
.pp-week-cols { display: grid; gap: 0.55em; }
.pp-week-rows { display: flex; flex-direction: column; gap: 0.55em; }
.pp-week-rows > * { flex: 1 1 0; min-height: 0; }
.pp-daybox {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: #fff;
}
.pp-daybox.is-weekend { background: var(--weekend); }
.pp-daybox-head { display: flex; flex: none; align-items: baseline; justify-content: space-between; gap: 0.5em; padding: 0.4em 0.6em; background: var(--head-bg); color: var(--head-ink); }
.pp-daybox-head .pp-dow { font-size: 0.78em; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.pp-daybox-head .pp-dnum { font-size: 1.3em; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-daybox > .pp-lined { flex: 1 1 0; min-height: 0; }
.pp-pair { display: flex; flex-direction: column; gap: 0.55em; min-width: 0; min-height: 0; }
.pp-pair > * { flex: 1 1 0; }
.pp-week-cols .pp-daybox-head { flex-direction: column; align-items: center; gap: 0.2em; padding-block: 0.5em; }
.pp-week-cols .pp-daybox-head .pp-dow { font-size: 0.68em; letter-spacing: 0.06em; }
.pp-week-rows .pp-daybox { flex-direction: row; }
.pp-week-rows .pp-daybox-head { flex: 0 0 6.6em; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.2em; }
.pp-week-rows .pp-pair { flex-direction: row; }
.pp-extras { display: flex; flex-direction: column; gap: 0.75em; min-height: 0; }

/* Day planner */
.pp-schedule tbody th.pp-time { background: var(--tint-soft); color: var(--ink-2); font-size: 0.82em; font-weight: 750; text-align: right; white-space: nowrap; }
.pp-schedule tbody tr:has(+ tr.is-half) > * { border-bottom-style: dashed; border-bottom-color: var(--rule-soft); }
.pp-schedule tbody tr.is-half th.pp-time { color: var(--ink-3); font-size: 0.7em; font-weight: 600; }
.pp-schedule td { padding-block: 0.1em; }

/* Reward chart */
.pp-reward tbody th { background: var(--tint-soft); font-size: 1.15em; font-weight: 750; }
.pp-reward .pp-markcell .pp-mark { --mark: color-mix(in srgb, var(--accent) 55%, #fff); width: min(3.4em, 72%); height: auto; aspect-ratio: 1; }
.pp-reward .pp-mark-box, .pp-reward .pp-mark-circle { border-width: 1.6px; }
.pp-reward-box > .pp-lined { font-size: 1.15em; }

/* Mood check-in */
.pp-scale { display: flex; justify-content: center; gap: 0.35em; }
.pp-dot {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.15em;
  height: 2.15em;
  border: 1.2px solid var(--mark);
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 0.62em;
  font-weight: 650;
  line-height: 1;
}
.pp-checkin .pp-dayname { font-weight: 500; white-space: nowrap; }
.pp-checkin .pp-dayname .pp-dow { margin-right: 0.4em; color: var(--ink-2); }
.pp-checkin .pp-dayname .pp-dnum { font-weight: 800; }
.pp-checkin tbody tr.is-weekend > * { background: var(--weekend); }
.pp-dense td, .pp-dense tbody th { padding-block: 0.05em; }
.pp-key { display: flex; flex-wrap: wrap; gap: 0.45em 1.4em; margin: 0; padding: 0.15em 0 0.1em; list-style: none; }
.pp-key li { display: flex; flex: 1 1 8em; align-items: center; gap: 0.5em; min-width: 0; }
.pp-key .pp-line { flex: 1; min-width: 0; min-height: 1.7em; line-height: 1.7em; border-bottom: 1px solid var(--line); }
.pp-key .pp-dot { font-size: 0.7em; }
.pp-swatch { flex: none; width: 1.4em; height: 1.4em; border: 1.2px solid var(--mark); border-radius: 0.2em; }
.pp-aside .pp-key { flex-direction: column; flex-wrap: nowrap; }
.pp-aside .pp-key li { flex: none; }

/* Grocery list */
.pp-blocks { display: grid; gap: 1em 1.4em; }
.pp-block { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pp-block-head { display: flex; flex: none; align-items: baseline; gap: 0.5em; padding: 0.35em 0.55em; border-radius: var(--r); background: var(--head-bg); color: var(--head-ink); }
.pp-block-title { flex: 1; min-width: 0; font-size: 0.82em; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.pp-col-head { flex: none; font-size: 0.68em; font-weight: 750; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; opacity: 0.85; }
.pp-col-head.pp-qty { width: calc(3.2em / 0.68); }
.pp-col-head.pp-price { width: calc(4em / 0.68); }
.pp-block .pp-lines { flex: 1 1 0; padding: 0 0.15em; }
.pp-lines .pp-qty, .pp-lines .pp-price { flex: none; align-self: stretch; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--rule-soft); }
.pp-lines .pp-qty { width: 3.2em; }
.pp-lines .pp-price { width: 4em; justify-content: flex-end; padding-right: 0.2em; }
.pp-columns { display: grid; flex: 1 1 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.2em; min-height: 0; }

/* Logs */
.pp-log-stack { gap: 0.65em; }
.pp-log-stack > .pp-section-title { flex: none; margin-bottom: -0.3em; }
.pp-section-title { font-size: 0.78em; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.pp-log .pp-hint { display: block; margin-top: 0.15em; font-size: 0.8em; font-weight: 500; letter-spacing: 0.02em; text-transform: none; opacity: 0.8; }
.pp-log thead .pp-ed { min-height: 1.2em; }
.pp-table td.pp-stars { text-align: center; white-space: nowrap; }
.pp-stars .pp-mark { width: 1.2em; height: 1.2em; margin: 0 0.05em; }
.pp-summary {
  display: grid;
  flex: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4em;
  padding: 0.75em 0.9em;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--tint-soft);
}
.pp-summary-item { display: flex; flex-direction: column; gap: 0.5em; }
.pp-summary-item .pp-field-line { min-height: 1.7em; border-bottom-color: var(--ink-3); }
.pp-notes-slot { display: flex; flex: 4 1 0 !important; min-height: 0; }
.pp-notes-slot > * { flex: 1; }

.pp-footnote { flex: none; padding-top: 0.1em; font-size: 0.76em; text-align: center; color: var(--ink-2); }

/* ---- Designs --------------------------------------------------------------- */
/* Classic is the defaults above: a filled heading band, ruled cells and an accent title. */

.theme-soft {
  --head-bg: var(--tint);
  --head-ink: var(--accent-ink);
  --head-rule: color-mix(in srgb, var(--accent) 20%, #fff);
  --head-line: color-mix(in srgb, var(--accent) 24%, #fff);
  --head-weekend: color-mix(in srgb, var(--accent) 19%, #fff);
  --rule: #e3e6ed;
  --frame: #e3e6ed;
  --zebra: var(--tint-soft);
  --weekend: color-mix(in srgb, var(--accent) 3%, #f6f7f9);
  --r: 0.7em;
}
.theme-soft .pp-head { padding-bottom: 0.25em; border-bottom: 0; }
.theme-soft .pp-title { color: var(--ink); }
.theme-soft .pp-sub { display: inline-block; margin-top: 0.5em; padding: 0.22em 0.8em; border-radius: 999px; background: var(--tint); color: var(--accent-ink); font-size: 0.95em; font-weight: 650; }
.theme-soft .pp-panel { border-color: transparent; background: var(--tint-soft); }
.theme-soft .pp-daynum { display: inline-grid; place-items: center; align-self: flex-start; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--tint); color: var(--accent-ink); font-size: 0.9em; }
.theme-soft .pp-day.is-out .pp-daynum { background: none; }
.theme-soft .pp-daybox { border-color: #e3e6ed; }
.theme-soft .pp-summary { border-color: transparent; }

.theme-minimal {
  --head-bg: #fff;
  --head-ink: var(--accent);
  --head-rule: transparent;
  --head-line: var(--accent);
  --head-weekend: #fff;
  --frame: transparent;
  --weekend: #f6f7f9;
  --zebra: #f8f9fa;
}
.theme-minimal .pp-head { border-bottom: 1px solid var(--ink); }
.theme-minimal .pp-title { color: var(--ink); font-weight: 600; letter-spacing: -0.005em; }
.theme-minimal .pp-sub { color: var(--accent); font-size: 0.85em; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.theme-minimal .pp-table th, .theme-minimal .pp-table td { border-right-color: transparent; }
.theme-minimal .pp-table thead th { border-bottom-width: 2px; }
.theme-minimal .pp-frame { border-width: 0 0 1px; border-color: var(--rule); }
.theme-minimal .pp-cal, .theme-minimal .pp-matrix, .theme-minimal .pp-pixels { column-gap: 0; }
.theme-minimal .pp-cal > .pp-cal-head,
.theme-minimal .pp-matrix > .pp-mx-head,
.theme-minimal .pp-matrix > .pp-mx-corner,
.theme-minimal .pp-pixels > .pp-px-head,
.theme-minimal .pp-pixels > .pp-px-corner { border-bottom: 2px solid var(--accent); }
.theme-minimal .pp-meals:not(.is-down) > .pp-meal-name,
.theme-minimal .pp-meals.is-down > .pp-dayhead { background: #fff; }
.theme-minimal .pp-panel,
.theme-minimal .pp-daybox { padding-inline: 0; border-width: 1.5px 0 0; border-color: var(--ink); border-radius: 0; background: none; }
.theme-minimal .pp-daybox-head { padding-inline: 0.1em; }
.theme-minimal .pp-week-rows .pp-daybox-head { padding-inline: 0.1em 0.6em; }
.theme-minimal .pp-block-head { padding-inline: 0.1em; border-bottom: 1.5px solid var(--accent); }
.theme-minimal .pp-summary { border-width: 1.5px 0 0; border-color: var(--ink); border-radius: 0; background: none; }
.theme-minimal .pp-reward tbody th, .theme-minimal .pp-schedule tbody th.pp-time { background: none; }

.theme-bold {
  --head-bg: var(--ink);
  --head-ink: #fff;
  --head-rule: rgb(255 255 255 / 0.22);
  --head-line: var(--ink);
  --head-weekend: #353c4c;
  --frame: var(--ink);
  --rule: #c7ccd6;
  --r: 0.3em;
}
.theme-bold .pp-head { align-items: center; padding: 0.85em 1.05em; border: 0; border-radius: 0.35em; background: var(--accent); color: #fff; }
.theme-bold .pp-title, .theme-bold .pp-head .pp-sub, .theme-bold .pp-head .pp-field-label { color: #fff; }
.theme-bold .pp-head .pp-sub { opacity: 0.88; }
.theme-bold .pp-head .pp-field-line { border-bottom-color: rgb(255 255 255 / 0.7); }
.theme-bold .pp-head .pp-mini, .theme-bold .pp-head .pp-mini caption { color: #fff; }
.theme-bold .pp-head .pp-mini th { color: rgb(255 255 255 / 0.7); }
.theme-bold .pp-head .pp-mini td.is-on { background: #fff; color: var(--accent-ink); }
.theme-bold .pp-head .pp-badge { background: rgb(255 255 255 / 0.2); color: #fff; }
.theme-bold.is-light-accent .pp-head,
.theme-bold.is-light-accent .pp-title,
.theme-bold.is-light-accent .pp-head .pp-sub,
.theme-bold.is-light-accent .pp-head .pp-field-label,
.theme-bold.is-light-accent .pp-head .pp-mini caption { color: var(--ink); }
.theme-bold .pp-frame { border-width: 1.5px; }
.theme-bold .pp-panel, .theme-bold .pp-daybox { border: 1.5px solid var(--ink); }
.theme-bold .pp-panel-title, .theme-bold .pp-section-title { color: var(--ink); }
.theme-bold .pp-daynum { color: var(--ink); }
.theme-bold .pp-summary { border: 1.5px solid var(--ink); }

/* Save ink: no filled backgrounds, everything in dark grey lines. */
.is-ink {
  --head-bg: #fff;
  --head-ink: var(--ink);
  --head-rule: var(--rule);
  --head-line: var(--ink);
  --head-weekend: #fff;
  --tint: #fff;
  --tint-soft: #fff;
  --zebra: #fff;
  --weekend: #fff;
}
.is-ink .pp-table thead th { border-bottom-width: 1.5px; }
.is-ink .pp-cal > .pp-cal-head,
.is-ink .pp-matrix > .pp-mx-head,
.is-ink .pp-matrix > .pp-mx-corner,
.is-ink .pp-pixels > .pp-px-head,
.is-ink .pp-pixels > .pp-px-corner,
.is-ink .pp-daybox-head,
.is-ink .pp-block-head { border-bottom: 1.5px solid var(--ink); }
.is-ink.theme-bold .pp-head { border-bottom: 2px solid var(--ink); border-radius: 0; background: none; padding-inline: 0; }
.is-ink.theme-bold .pp-title,
.is-ink.theme-bold .pp-head .pp-sub,
.is-ink.theme-bold .pp-head .pp-field-label,
.is-ink.theme-bold .pp-head .pp-mini caption,
.is-ink.theme-bold .pp-head .pp-mini td { color: var(--ink); }
.is-ink.theme-bold .pp-head .pp-field-line { border-bottom-color: var(--rule); }
.is-ink .pp-mini td.is-on,
.is-ink.theme-bold .pp-head .pp-mini td.is-on { background: none; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.is-ink .pp-badge, .is-ink.theme-bold .pp-head .pp-badge { border: 1px solid var(--ink); background: none; color: var(--ink); }
.is-ink .pp-pixels > .pp-px.is-void { background: #fff; }

/* ---- Printing ------------------------------------------------------------- */
/* app.js renders every page into .planner-print-root just before printing and sets @page to the paper size. */

.planner-print-root { position: fixed; top: 0; left: -300vw; visibility: hidden; pointer-events: none; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body > :not(.planner-print-root) { display: none !important; }
  .planner-print-root { position: static; visibility: visible; }
  .planner-print-root .planner-sheet { break-after: page; page-break-after: always; }
  .planner-print-root .planner-sheet:last-child { break-after: auto; page-break-after: auto; }
}

/* ---- Hub and page sections ------------------------------------------------ */

.planner-steps { counter-reset: step; display: grid; gap: 0.7rem; padding: 0; list-style: none; }
.planner-steps li { position: relative; padding-left: 2.4rem; line-height: 1.5; }
.planner-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.05rem;
  left: 0;
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in oklab, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  font-weight: 700;
}
.planner-features { display: grid; gap: 0.55rem; margin-top: 0.9rem; padding: 0; list-style: none; }
.planner-features li { position: relative; padding-left: 1.4rem; line-height: 1.5; color: var(--muted); }
.planner-features li::before { content: ""; position: absolute; top: 0.55em; left: 0.2rem; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-primary); }

.planner-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; padding: 0; list-style: none; }
.planner-card {
  display: flex;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--color-base-300);
  border-radius: 0.8rem;
  background: var(--color-base-100);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.planner-card:hover { border-color: var(--color-primary); box-shadow: 0 6px 18px rgb(0 0 0 / 0.07); transform: translateY(-1px); }
.planner-card-icon {
  display: grid;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.65rem;
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
}
.planner-card-name { display: block; margin-bottom: 0.18rem; font-weight: 700; }
.planner-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; }
