.hd-planner,
.hp-folio {
  --hp-paper: light-dark(#ffffff, #202b33);
  --hp-quiet: light-dark(#f6f8f9, #25323b);
  --hp-ink: light-dark(#202a32, #ecf2f5);
  --hp-muted: light-dark(#687780, #a9bac5);
  --hp-rule: light-dark(#e4e9ec, #364650);
  --hp-teal: light-dark(#284f50, #acd7cf);
  --hp-active: light-dark(#edf5f3, #293e40);
  color: var(--hp-ink);
  font-family: inherit;
  line-height: 1.4;
  word-break: keep-all;
}
.hd-planner [data-owner=older], .hp-folio [data-owner=older], .hp-folio[data-owner=older] {
  --hp-owner: light-dark(#7d69a2, #cbb8eb);
  --hp-tint: light-dark(#f2eef8, #3b354b);
}
.hd-planner [data-owner=younger], .hp-folio [data-owner=younger], .hp-folio[data-owner=younger] {
  --hp-owner: light-dark(#388676, #a2d9c8);
  --hp-tint: light-dark(#eaf5f0, #2c443e);
}
.hd-planner [data-owner=dad], .hp-folio [data-owner=dad], .hp-folio[data-owner=dad] {
  --hp-owner: light-dark(#4b6d9e, #b1cbef);
  --hp-tint: light-dark(#eef2fa, #2e3e54);
}
.hd-planner [data-owner=mom], .hp-folio [data-owner=mom], .hp-folio[data-owner=mom] {
  --hp-owner: light-dark(#b46650, #efbaaa);
  --hp-tint: light-dark(#fcf0e9, #503b36);
}
.hd-planner [data-owner=all], .hp-folio [data-owner=all], .hp-folio[data-owner=all] {
  --hp-owner: light-dark(#9a773b, #e6cc9f);
  --hp-tint: light-dark(#faf4e8, #494133);
}
.hd-planner *, .hd-planner *::before, .hd-planner *::after,
.hp-folio *, .hp-folio *::before, .hp-folio *::after { box-sizing: border-box; }
.hd-planner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.65fr);
  align-items: stretch;
  gap: 1rem;
  container: hd-planner / inline-size;
  min-width: 0;
}
.hd-planner :where(button:not(.dash-control)), .hp-folio :where(button:not(.dash-control), input, select) {
  font: inherit;
  color: inherit;
}
.hd-planner button, .hp-folio button {
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hd-planner :is(h2,h3,h4,p,ol,ul), .hp-folio :is(h2,h3,p,dl,dd,fieldset) { margin: 0; }
.hd-planner :is(button,input,select):focus-visible,
.hp-folio :is(button,input,select,summary):focus-visible {
  outline: 2px solid var(--hp-teal);
  outline-offset: 3px;
  z-index: 2;
}
/* A filter on .hp-date would shrink its full-cell absolute hit target. */
.hd-planner button:not(.dash-control,.hp-date):is(:active,[data-pressed]):not(:disabled,[aria-disabled=true]),
.hp-folio button:not(.dash-control):is(:active,[data-pressed]):not(:disabled) { filter: brightness(.94); }
.hp-sheet {
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--hp-rule);
  border-radius: 1.25rem;
  background: var(--surface-wash), var(--hp-paper);
  box-shadow: var(--panel-shadow);
  font-size: 1rem;
}
.hp-month { grid-column: 1 / -1; }
.hp-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.hp-heading > div:first-child { display: flex; flex-direction: column; gap: .22rem; min-width: 0; }
.hp-heading h2 { font-size: 1.16rem; font-weight: 720; line-height: 1.25; letter-spacing: -.035em; }
.hp-heading small { color: var(--hp-muted); font-size: .8rem; font-weight: 500; }
.hp-month .hp-heading {
  display: grid;
  grid-template-areas: "title legend controls";
  grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr);
  gap: 1rem;
  padding-bottom: .75rem;
}
.hp-month .hp-heading .hp-month-title { grid-area: title; flex-direction: row; align-items: baseline; gap: .7rem; }
.hp-month-title h2 { color: var(--hp-teal); font-size: 2.25rem; font-weight: 650; letter-spacing: -.06em; }
.hp-month-title small { font-size: .82rem; white-space: nowrap; }
.hp-legend { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; color: var(--hp-muted); font-size: .76rem; }
.hp-month .hp-legend { grid-area: legend; }
.hp-legend span { display: inline-flex; align-items: center; gap: .3em; }
.hp-legend i, .hp-dots i { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--hp-owner); }
.hp-month-nav {
  grid-area: controls;
  justify-self: end;
  display: grid;
  align-items: stretch;
  grid-template-columns: max(44px, 2.65rem) max-content max(44px, 2.65rem);
  gap: .4rem;
}
.hp-month-nav .dash-control { min-width: 0; min-height: max(44px, 2.65rem); padding-inline: 0; font-size: .82rem; line-height: 1; white-space: nowrap; }
.hp-month-nav [data-p-go=today] { --control-fill: var(--hp-active); padding-inline: 1rem; }
.hp-nav-arrow { display: block; width: .55em; height: .55em; border: solid currentColor; border-width: 0 .13em .13em 0; border-radius: .03em; }
[data-p-go=prev] .hp-nav-arrow { transform: translateX(.12em) rotate(135deg); }
[data-p-go=next] .hp-nav-arrow { transform: translateX(-.12em) rotate(-45deg); }
.hp-weekdays, .hp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hp-weekdays { padding: .5rem 0; color: var(--hp-muted); font-size: .77rem; font-weight: 550; border-top: 1px solid var(--hp-rule); border-radius: .55rem .55rem 0 0; background: var(--surface-wash), var(--hp-quiet); }
.hp-weekdays span { padding-left: .55rem; }
.hp-weekdays span:last-child { color: light-dark(#b66a60, #e6b2a9); }
.hp-days { border-top: 1px solid var(--hp-rule); grid-auto-rows: minmax(4.5rem, auto); }
.hp-day {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .15rem .3rem .3rem;
  border-right: 1px solid var(--hp-rule);
  border-bottom: 1px solid var(--hp-rule);
}
.hp-day:nth-child(7n) { border-right: 0; }
.hp-day[data-weekday="0"], .hp-day[data-weekday="6"] { background: light-dark(#fafbfc, #222e36); }
.hp-day.hp-day-edge { color: var(--hp-muted); }
.hp-day-edge .hp-number { opacity: .45; }
.hp-day.hp-day-selected { background: linear-gradient(180deg, var(--hp-active), color-mix(in srgb, var(--hp-active) 45%, var(--hp-paper))); }
.hp-day:has(> .hp-date:is(:active,[data-pressed])) { background: color-mix(in srgb, var(--hp-teal) 14%, var(--hp-paper)); }
.hp-date {
  display: flex;
  align-items: center;
  gap: .2rem;
  min-width: 0;
  min-height: 1.55rem;
  padding: 0 .1rem .16rem;
  border: 0;
  border-radius: .45rem;
  background: transparent;
  text-align: left;
}
.hp-date::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.hp-number {
  display: grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding-inline: .2rem;
  border-radius: .5rem;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color 120ms ease, color 120ms ease;
}
.hp-day[data-weekday="0"] .hp-number { color: light-dark(#b66a60, #e6b2a9); }
.hp-date[aria-current=date] .hp-number { color: var(--hp-paper); background: var(--key-sheen), var(--hp-teal); opacity: 1; }
.hp-date[aria-pressed=true]:not([aria-current=date]) .hp-number { background: color-mix(in srgb, var(--hp-teal) 13%, var(--hp-paper)); color: var(--hp-teal); }
.hp-date:is(:active,[data-pressed]) .hp-number { background: color-mix(in srgb, var(--hp-teal) 25%, var(--hp-paper)); color: var(--hp-teal); transition-duration: 0s; }
.hd-planner .hp-date:focus-visible { outline: none; z-index: auto; }
.hp-date:focus-visible::after { outline: 2px solid var(--hp-teal); outline-offset: -3px; border-radius: .3rem; }
.hp-today, .hp-count { color: var(--hp-muted); font-size: .65rem; font-weight: 550; }
.hp-today { color: var(--hp-teal); }
.hp-count { margin-left: auto; }
.hp-count span, .hp-dots { display: none; }
.hp-count span:first-child { display: inline; }
.hp-chips { display: grid; gap: .18rem; pointer-events: none; }
.hp-chip, .hp-lesson, .hp-track-item {
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--hp-owner) 12%, transparent);
  border-radius: .4rem;
  background: var(--surface-wash), var(--hp-tint);
  color: var(--hp-owner) !important;
  text-align: start;
}
.hp-chip {
  display: flex;
  align-items: center;
  gap: .28rem;
  z-index: 1;
  pointer-events: auto;
  min-height: 1.25rem;
  padding: .08rem .35rem;
  font-size: max(.73rem, 12px) !important;
  line-height: 1.2;
  font-weight: 600 !important;
}
.hp-chip time { flex: none; font-size: .86em; font-weight: 500; font-variant-numeric: tabular-nums; }
.hp-chip span, .hp-lesson strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hp-heading :is(.hp-add, .hp-light) { flex: none; font-size: .78rem; white-space: nowrap; }
.hp-agenda { display: flex; flex-direction: column; }
.hp-agenda .hp-heading { flex-wrap: wrap; }
.hp-agenda .hp-heading h2 { font-size: 1.05rem; }
.hp-agenda ol {
  flex: 1 1 0;
  min-height: 12rem;
  max-height: 16.5rem;
  margin-top: .8rem;
  padding: 0 .2rem 0 0;
  list-style: none;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--hp-rule) transparent;
}
.hp-agenda li + li { border-top: 1px solid var(--hp-rule); }
.hp-agenda li { position: relative; }
.hp-agenda li::before { content: ''; position: absolute; top: 0; bottom: 0; left: 3.8rem; width: 1px; background: var(--hp-rule); pointer-events: none; }
.hp-agenda li:first-child::before { top: 1rem; }
.hp-agenda li:last-child::before { bottom: calc(100% - 1rem); }
.hp-agenda .hp-has-tasks li { display: grid; grid-template-columns: minmax(0,1fr) max(44px,2.3rem); align-items: center; }
.hp-agenda .hp-has-tasks li:not(:has(.hp-task-check)) { grid-template-columns: minmax(0,1fr); }
.hp-agenda-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0,1fr) auto;
  align-items: center;
  gap: .13rem .5rem;
  width: 100%;
  min-height: max(44px, 3.55rem);
  padding: .5rem .15rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  text-align: start;
}
.hp-agenda-row time { position: relative; align-self: start; grid-row: 1 / 3; padding-top: .08rem; color: var(--hp-muted); font-size: .84rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.hp-agenda-row time::after { content: ''; position: absolute; right: -.4rem; top: .4rem; width: .32rem; height: .32rem; border-radius: 50%; background: var(--hp-owner); box-shadow: 0 0 0 .08rem var(--hp-paper); }
.hp-subject { display: flex; align-items: center; gap: .35rem; min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
.hp-subject strong { font-size: .91rem; font-weight: 650; letter-spacing: -.025em; }
.hp-kind { color: var(--hp-muted); font-size: .65rem; font-weight: 500; }
.hp-place { grid-row: 2; grid-column: 2 / -1; color: var(--hp-muted); font-size: .72rem; overflow-wrap: anywhere; }
.hp-place:empty { display: none; }
.hp-owner { justify-self: end; grid-column: 3; grid-row: 1; padding: .15rem .4rem; border-radius: .35rem; color: var(--hp-owner); background: var(--hp-tint); font-size: .69rem; font-weight: 600; white-space: nowrap; }
.hp-task-check { display: grid; place-items: center; width: 100%; min-height: max(44px,2.3rem); padding: 0; border: 0; border-radius: .5rem; background: transparent; }
.hp-task-check span { display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border: 1.5px solid var(--hp-owner); border-radius: .3rem; color: var(--hp-paper); font-weight: 700; line-height: 1; }
.hp-task-check[aria-checked=true] span { background: var(--hp-owner); }
.hp-task-check[aria-disabled=true] { cursor: default; opacity: .6; }
.hp-agenda-row[data-done=true] .hp-subject strong, .hp-chip[data-done=true] span { text-decoration: line-through; opacity: .65; }
.hp-chip[data-done=true] time::before { content: "✓ "; }
.hp-dots i[data-done=true] { background: transparent; box-shadow: inset 0 0 0 1px var(--hp-owner); }
.hp-task-status:not(:empty) { margin-top: .4rem; color: var(--hp-muted); font-size: .82rem; }
.hp-empty { padding: 1.5rem .2rem; color: var(--hp-muted); font-size: .88rem; }
.hp-academy table { table-layout: fixed; width: 100%; margin-top: .65rem; border-collapse: collapse; }
.hp-academy table th, .hp-academy table td { vertical-align: top; text-align: left; }
.hp-academy th:first-child { width: 2.5rem; }
.hp-academy th button, .hp-mobile-week button { width: 100%; min-height: max(44px,2.8rem); gap: .3rem; padding-inline: .08rem; font-size: .74rem; text-align: center; }
.hp-academy thead th { padding: 0 .1rem .25rem; }
.hp-academy thead th:first-child { vertical-align: middle; color: var(--hp-muted); font-size: .66rem; font-weight: 500; }
.hp-academy tbody th { padding: .65rem .2rem; color: var(--hp-owner); font-size: .8rem; font-weight: 650; }
.hp-academy tbody :is(td,th) { border-top: 1px solid var(--hp-rule); }
.hp-academy td { padding: .2rem .15rem; border-inline-start: 1px solid var(--hp-rule); }
.hp-academy td.hp-active-day { background: linear-gradient(180deg, var(--hp-active), color-mix(in srgb, var(--hp-active) 40%, var(--hp-paper))); }
.hp-academy .hp-lesson { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: .22rem; min-height: max(44px,2.6rem); padding: .25rem .3rem; }
.hp-lesson + .hp-lesson { margin-top: .2rem; }
.hp-lesson strong { font-size: .76rem; font-weight: 650; }
.hp-lesson-time {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: .1em;
  min-width: 0;
  color: var(--hp-muted);
  font-size: max(.7rem, 12px);
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.hp-lesson-time time, .hp-lesson-end { white-space: nowrap; }
.hp-dash { display: block; padding: .5rem .2rem; color: var(--hp-rule); font-size: .8rem; text-align: center; }
.hp-mobile-week, .hp-week-detail { display: none; }
.hp-week-open .hp-week-detail { display: block; }
.hp-week-detail { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--hp-rule); }
.hp-week-detail header { display: flex; align-items: center; justify-content: space-between; }
.hp-week-detail h3 { font-size: .95rem; }
.hp-week-detail header button { font-size: .8rem; }
.hp-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: .75rem; }
.hp-track { min-width: 0; }
.hp-track h4 { color: var(--hp-owner); font-size: .9rem; }
.hp-track p, .hp-track small { color: var(--hp-muted); font-size: .8rem; }
.hp-track-item { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); align-items: center; gap: .2rem .5rem; min-height: 44px; margin-top: .5rem; padding: .65rem .6rem; }
.hp-track-item time { font-size: .78rem; font-variant-numeric: tabular-nums; }
.hp-track-item strong { font-size: .9rem; }
.hp-track-item span { grid-column: 2; color: var(--hp-muted); font-size: .75rem; }
.hp-gap { display: block; margin: .35rem 0 0 .6rem; font-size: .74rem; }
.hd-planner .hp-origin:not(.dash-control) { outline: 2px solid color-mix(in srgb,var(--hp-owner,var(--hp-teal)) 50%,transparent); outline-offset: -2px; }
.hp-origin { position: relative; }
#occasions .hp-origin, [data-hero-entry].hp-origin { outline: 2px solid var(--hp-teal,var(--teal)); outline-offset: -2px; }
@media (hover:hover) and (pointer:fine) {
  :root:not([data-pointer=touch]) :is(.hp-agenda-row,.hp-track-item,.hp-lesson,.hp-chip):hover { background: color-mix(in srgb,var(--hp-owner) 14%,var(--hp-paper)); }
  :root:not([data-pointer=touch]) .hp-date:hover:not(:active,[data-pressed],[aria-pressed=true],[aria-current=date]) .hp-number { background: color-mix(in srgb,var(--hp-teal) 9%,var(--hp-paper)); }
}
@container hd-planner (max-width:900px) {
  .hp-chip time { display: none; }
  .hp-month .hp-heading { grid-template-columns: minmax(0,1fr) max-content; grid-template-areas: "title controls" "legend legend"; }
}
@media (max-width:899px) {
  .hd-planner { grid-template-columns: minmax(0,1fr); }
  .hp-agenda ol { flex: auto; min-height: 0; max-height: 24rem; }
}
@container hd-planner (max-width:620px) {
  .hp-sheet { padding: 1rem .85rem; }
  .hp-month .hp-heading { gap: .75rem; }
  .hp-month-title h2 { font-size: 1.8rem; }
  .hp-month .hp-heading .hp-month-title { flex-direction: column; gap: .15rem; }
  .hp-month-title small { font-size: .72rem; }
  .hp-days { grid-auto-rows: minmax(3.7rem,auto); }
  .hp-day { padding: 0; }
  .hp-chips, .hp-count, .hp-today { display: none; }
  .hp-date { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; min-height: 52px; padding: .3rem .05rem; gap: .3rem; }
  .hp-number { min-width: 1.7rem; height: 1.7rem; font-size: .85rem; }
  .hp-weekdays span { text-align: center; padding-left: 0; }
  .hp-dots { display: flex; justify-content: center; gap: .16rem; }
  .hp-dots i { width: .25rem; height: .25rem; }
  .hp-academy table { display: none; }
  .hp-mobile-week { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .2rem; margin-top: 1rem; }
  .hp-mobile-week button { display: grid; align-content: center; gap: .2rem; min-height: 56px; }
  .hp-mobile-week button b { font-size: .68rem; font-weight: 500; }
  .hp-mobile-week button span { font-size: .88rem; font-weight: 650; }
  .hp-week-detail { display: block; }
  .hp-week-detail header button { display: none; }
  .hp-tracks { grid-template-columns: 1fr; gap: .9rem; }
}
@container hd-planner (max-width:340px) {
  .hp-month-title small { font-size: .68rem; }
  .hp-month-nav { gap: .2rem; grid-template-columns: 44px max-content 44px; }
  .hp-month-nav [data-p-go=today] { padding-inline: .7rem; }
  .hp-heading { flex-wrap: wrap; }
  .hp-heading :is(.hp-add,.hp-light) { font-size: .74rem; }
}
@media (pointer:coarse) {
  @container hd-planner (min-width:621px) and (max-width:1400px) {
    .hp-day { display: grid; grid-template-columns: 38px minmax(0,1fr); align-content: start; gap: .15rem; }
    .hp-date { align-self: start; min-height: 44px; flex-wrap: wrap; align-items: start; padding: .2rem 0; }
    .hp-today { display: none; }
    .hp-count { margin: 0 .3rem; }
    .hp-chip.hp-chip-1, .hp-count span:first-child { display: none; }
    .hp-count span:nth-child(2) { display: inline; }
    .hp-chip { min-height: 44px; display: grid; align-content: center; gap: .1rem; }
  }
  @container hd-planner (min-width:1401px) {
    .hp-chip { min-height: 44px; }
    .hp-date { min-height: 44px; }
  }
}

/* Floating forms share the same typography and spacing as the board. */
.hp-folio {
  --hp-owner: var(--hp-teal);
  --hp-tint: var(--hp-active);
  position: fixed;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: clamp(338px,44vw,680px);
  overflow: hidden;
  border: 1px solid var(--hp-rule);
  border-radius: 1.25rem;
  background: var(--hp-paper);
  box-shadow: var(--floating-shadow);
  font-size: clamp(16px,1.3vw,25px);
}
.hp-folio-head { display: flex; align-items: center; justify-content: space-between; gap: .7em; flex: none; padding: 1em 1.2em .7em; background: linear-gradient(180deg, var(--hp-quiet), transparent); }
.hp-folio-head h2 { display: flex; align-items: center; gap: .5em; color: var(--hp-ink); font-size: 1.05em; font-weight: 700; letter-spacing: -.025em; }
.hp-folio-head h2 i { width: .42em; height: .42em; border-radius: 50%; background: var(--hp-owner); }
.hp-folio-head .dash-control { width: max(44px,2.2em); height: max(44px,2.2em); padding: 0; font-size: 1em; }
.hp-folio-form { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; margin: 0; }
.hp-folio-body { display: grid; align-content: start; gap: 1em; min-height: 0; padding: .3em 1.2em 1.2em; overflow: auto; overscroll-behavior: contain; }
.hp-folio label, .hp-folio legend, .hp-folio summary { color: var(--hp-muted); font-size: .83em; font-weight: 600; }
.hp-folio input:not([type=radio]), .hp-folio select {
  display: block; width: 100%; min-width: 0; min-height: max(44px,2.7em); padding: .5em .65em;
  border: 1px solid var(--hp-rule); border-radius: .6em; background: var(--hp-quiet); color: var(--hp-ink); font-size: max(16px,1em); line-height: 1.3;
}
.hp-folio small { font-size: .78em; font-weight: 500; }
.hp-kinds, .hp-people > div { display: flex; align-items: center; flex-wrap: wrap; gap: .35em; }
.hp-kinds button, .hp-presets button { font-size: .83em; }
.hp-folio .hp-title-input { position: relative; font-size: 1em; }
.hp-folio .hp-title-input input { min-height: max(48px,1.6em); padding: .2em .8em .4em 0; border: 0; border-bottom: 1px solid var(--hp-rule); border-radius: 0; background: transparent; font-size: 1.75em; font-weight: 650; letter-spacing: -.045em; }
.hp-folio .hp-title-input input:focus-visible { outline: 0; border-bottom-color: var(--hp-owner); }
.hp-title-input i { position: absolute; top: 30%; right: 0; color: var(--hp-muted); font-style: normal; pointer-events: none; }
.hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp-dates { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap: .5em; padding: .65em; border-radius: .8em; background: var(--hp-quiet); }
.hp-dates label { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.hp-dates label small { color: var(--hp-muted); }
.hp-folio .hp-dates input { border: 0; padding-inline: .05em; background: transparent; font-size: max(16px,.95em); font-variant-numeric: tabular-nums; }
.hp-folio .hp-scope { display: flex; align-items: center; gap: .5em; }
.hp-folio .hp-scope select { width: auto; flex: 1; }
.hp-people { min-width: 0; padding: 0; border: 0; }
.hp-people legend { margin-bottom: .5em; padding: 0; }
.hp-people label { position: relative; display: inline-flex; }
.hp-people label input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.hp-people label span { display: flex; align-items: center; justify-content: center; gap: .3em; min-width: 44px; min-height: 44px; padding: .35em .8em; border: 1px solid var(--hp-rule); border-radius: .6em; color: var(--hp-muted); background: var(--hp-paper); }
.hp-people input:checked + span { background: var(--hp-tint); color: var(--hp-owner); border-color: var(--hp-owner); }
.hp-people input:checked + span::before { content: "✓"; }
.hp-people input:focus-visible + span { outline: 2px solid var(--hp-owner); outline-offset: 2px; }
.hp-folio .hp-location { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: .6em; }
.hp-folio details { padding: .05em 0; border-top: 1px solid var(--hp-rule); }
.hp-folio details summary { min-height: 44px; padding: .7em .1em; cursor: pointer; align-content: center; }
.hp-repeats summary span { margin-left: .5em; color: var(--hp-owner); }
.hp-repeats label, .hp-presets div { display: block; margin: .25em 0 .65em; }
.hp-presets div { display: flex; flex-wrap: wrap; gap: .4em; }
.hp-presets button { --control-accent: var(--hp-owner); display: grid; justify-items: start; gap: .15em; padding: .5em .75em; text-align: start; }
.hp-presets button small { color: var(--hp-muted); }
.hp-folio .hp-delete { --control-accent: light-dark(#ab5249,#efb6ad); justify-self: start; font-size: .82em; }
.hp-folio-footer { flex: none; padding: .9em 1.2em; border-top: 1px solid var(--hp-rule); }
.hp-folio-actions, .hp-confirm > div { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.hp-folio-actions button, .hp-confirm button { font-size: .9em; }
.hp-folio-actions button[type=submit], .hp-confirm [data-f-confirm] { min-width: min(9.6em,63%); }
.hp-folio [hidden] { display: none !important; }
.hp-feedback:not(:empty), .hp-confirm p { padding: .2em .05em .6em; color: var(--hp-muted); font-size: .83em; }
.hp-feedback[role=alert]:not(:empty) { color: light-dark(#a64b43,#efb6ad); }
.hp-confirm:not([hidden]) + .hp-folio-actions { display: none; }
.hp-confirm [data-f-confirm=delete] { --control-accent: light-dark(#ab5249,#efb6ad); }
.hp-view { padding-top: .3em; padding-bottom: 1.2em; }
.hp-view h3 { font-size: 1.75em; line-height: 1.25; font-weight: 650; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hp-view dl { display: grid; gap: .5em; }
.hp-view dl > div { display: grid; grid-template-columns: 3.8em minmax(0,1fr); gap: .6em; padding: .45em 0; border-bottom: 1px solid var(--hp-rule); }
.hp-view dt { color: var(--hp-muted); font-size: .83em; }
.hp-folio [disabled] { opacity: .6; cursor: wait; }
@media (max-width:650px) {
  .hp-folio { width: min(430px,calc(100vw - 16px)); font-size: 16px; }
  .hp-folio-head, .hp-folio-body, .hp-folio-footer { padding-inline: 1em; }
  .hp-dates { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hp-dates label:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion:reduce) {
  .hd-planner *, .hp-folio * { scroll-behavior: auto !important; }
  .hp-number { transition: none; }
}
