/* Huishoudbord 3.3.4 - zichtbare dagtaken, ochtendbeheer en gedeelde reminders */
:root {
  --hhfp-purple: #7c5ce5;
  --hhfp-pink: #e85c9d;
  --hhfp-teal: #1ba69a;
  --hhfp-ink: #172033;
  --hhfp-muted: #667085;
  --hhfp-line: rgba(20, 31, 51, .12);
  --hhfp-surface: #ffffff;
  --hhfp-soft: #f5f7fb;
  --hhfp-gold: #f2ad26;
  --hhfp-danger: #b42318;
  --hhfp-success: #15803d;
  --hhfp-shadow: 0 18px 52px rgba(23, 32, 51, .22);
}

.hhfp-hidden-morning-task,
.hhfp-hidden-finn-task,
.hhfp-morning-row-collapsed {
  display: none !important;
}

.hhfp-card-popup-protected {
  position: relative !important;
}

.hhfp-card-open-arrow {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(23, 32, 51, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--hhfp-ink);
  box-shadow: 0 5px 16px rgba(23, 32, 51, .16);
  font: 900 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.hhfp-card-open-arrow:active {
  transform: scale(.92);
  box-shadow: 0 2px 8px rgba(23, 32, 51, .16);
}

.hhfp-card-open-arrow:focus-visible {
  outline: 3px solid rgba(124, 92, 229, .28);
  outline-offset: 2px;
}

.hhfp-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px 0 6px;
  color: var(--hhfp-muted);
  font: 800 11px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hhfp-section-tab {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 43px;
  margin: 8px 0 6px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 32, 51, .13);
  border-radius: 13px;
  color: var(--hhfp-ink);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 10px rgba(23, 32, 51, .06);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.hhfp-section-tab:active {
  transform: scale(.985);
}

.hhfp-morning-tab {
  background: #fff7d9;
  border-color: rgba(221, 157, 13, .28);
}

.hhfp-day-tab {
  background: #eef2ff;
  border-color: rgba(124, 92, 229, .24);
}

.hhfp-section-tab-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, .06);
}

.hhfp-section-tab-label,
.hhfp-card-day-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.01em;
}

.hhfp-section-tab-summary,
.hhfp-card-day-summary {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 3px 5px 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--hhfp-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, .07);
}

.hhfp-section-tab-chevron,
.hhfp-card-day-chevron {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  background: rgba(23, 32, 51, .07);
  color: var(--hhfp-ink);
  font-size: 13px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .18s ease;
}

.hhfp-morning-tab.hhfp-open .hhfp-section-tab-chevron,
.hhfp-card-day[open] .hhfp-card-day-chevron {
  transform: rotate(180deg);
}

.hhfp-child-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 3px 36px 5px 0;
  padding: 5px 8px;
  border: 1px solid var(--hhfp-line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--hhfp-ink);
  font: 800 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 4px 14px rgba(23,32,51,.07);
}

.hhfp-child-mini-avatar {
  font-size: 17px;
  line-height: 1;
}

.hhfp-child-mini-points {
  color: var(--hhfp-gold);
}

.hhfp-card-day {
  margin-top: 5px;
  border-top: 0;
  padding-top: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhfp-card-day > summary {
  list-style: none;
}

.hhfp-card-day > summary::-webkit-details-marker {
  display: none;
}

.hhfp-card-day-title::before {
  content: none;
}

.hhfp-day-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  max-height: 236px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 4px;
}

.hhfp-day-task {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 5px 7px 5px 5px;
  border: 1px solid var(--hhfp-line);
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  color: var(--hhfp-ink);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.hhfp-day-task:active {
  transform: scale(.985);
}

.hhfp-day-task.hhfp-checked {
  border-color: rgba(21,128,61,.28);
  background: rgba(220,252,231,.72);
}

.hhfp-day-task.hhfp-locked {
  cursor: default;
  opacity: .72;
}

.hhfp-day-task-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hhfp-day-task-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(124,92,229,.11);
  font-size: 17px;
}

.hhfp-day-task-label {
  min-width: 0;
  font-size: 11px;
  line-height: 1.18;
  font-weight: 760;
}

.hhfp-day-task-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hhfp-day-task-points {
  color: var(--hhfp-gold);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.hhfp-day-task-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid rgba(102,112,133,.45);
  border-radius: 7px;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.hhfp-checked .hhfp-day-task-check {
  border-color: var(--hhfp-success);
  background: var(--hhfp-success);
  color: #fff;
}

.hhfp-parent-hint {
  margin: 6px 1px 0;
  color: var(--hhfp-muted);
  font-size: 9px;
  line-height: 1.3;
}

.hhfp-message-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px auto 10px;
  width: min(940px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(242,173,38,.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,248,224,.97), rgba(255,238,244,.97));
  color: var(--hhfp-ink);
  box-shadow: 0 8px 24px rgba(23,32,51,.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  z-index: 3;
}

.hhfp-message-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: #fff;
  font-size: 22px;
}

.hhfp-message-copy {
  min-width: 0;
  flex: 1;
}

.hhfp-message-kicker {
  color: #a25b00;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hhfp-message-text {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
}

.hhfp-message-heart {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #d92d6c;
  font-size: 20px;
  cursor: pointer;
}

.hhfp-launcher {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(23,32,51,.94);
  color: #fff;
  box-shadow: 0 12px 38px rgba(0,0,0,.28);
  font: 800 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hhfp-launcher-avatar {
  font-size: 20px;
}

.hhfp-launcher-lock {
  opacity: .72;
  font-size: 12px;
}

.hhfp-phone-launcher {
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
}

.hhfp-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: rgba(11,18,31,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhfp-overlay.hhfp-open {
  display: flex;
}

.hhfp-shell {
  width: min(1120px, 100%);
  height: 100%;
  max-height: 920px;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  overflow: hidden;
  border-radius: 24px;
  background: var(--hhfp-soft);
  color: var(--hhfp-ink);
  box-shadow: var(--hhfp-shadow);
}

.hhfp-shell-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 10px;
  background: #fff;
  border-bottom: 1px solid var(--hhfp-line);
}

.hhfp-shell-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
}

.hhfp-shell-subtitle {
  margin-top: 3px;
  color: var(--hhfp-muted);
  font-size: 11px;
  line-height: 1.25;
}

.hhfp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hhfp-sync-pill,
.hhfp-parent-button,
.hhfp-close,
.hhfp-button {
  border: 1px solid var(--hhfp-line);
  background: #fff;
  color: var(--hhfp-ink);
  border-radius: 12px;
  min-height: 40px;
  padding: 8px 11px;
  font: 800 12px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hhfp-sync-pill {
  cursor: default;
  color: var(--hhfp-muted);
  font-size: 10px;
}

.hhfp-sync-pill.hhfp-sync-online {
  color: var(--hhfp-success);
  border-color: rgba(21,128,61,.24);
  background: #f0fdf4;
}

.hhfp-sync-pill.hhfp-sync-local {
  color: #9a6700;
  background: #fffbeb;
}

.hhfp-parent-button.hhfp-unlocked {
  border-color: rgba(21,128,61,.26);
  background: #f0fdf4;
  color: var(--hhfp-success);
}

.hhfp-close {
  width: 42px;
  padding: 0;
  font-size: 23px;
  font-weight: 500;
}

.hhfp-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 9px 12px;
  background: #fff;
  border-bottom: 1px solid var(--hhfp-line);
  scrollbar-width: none;
}

.hhfp-tabs::-webkit-scrollbar {
  display: none;
}

.hhfp-tab {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 13px;
  background: var(--hhfp-soft);
  color: var(--hhfp-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

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

.hhfp-content {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px;
}

.hhfp-panel {
  display: none;
}

.hhfp-panel.hhfp-active {
  display: block;
}

.hhfp-person-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
}

.hhfp-person-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--hhfp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hhfp-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.hhfp-person-chip.hhfp-active {
  border-color: var(--hhfp-ink);
  box-shadow: 0 0 0 1px var(--hhfp-ink);
}

.hhfp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.hhfp-card,
.hhfp-story-card,
.hhfp-analytics-card,
.hhfp-inline-analytics {
  border: 1px solid var(--hhfp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(23,32,51,.06);
}

.hhfp-card {
  padding: 13px;
}

.hhfp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hhfp-card-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: var(--hhfp-soft);
  font-size: 28px;
}

.hhfp-card-name {
  font-size: 16px;
  font-weight: 900;
}

.hhfp-card-balance {
  color: var(--hhfp-gold);
  font-size: 12px;
  font-weight: 850;
}

.hhfp-card-progress {
  margin-left: auto;
  color: var(--hhfp-muted);
  font-size: 11px;
  font-weight: 800;
}

.hhfp-modal-task-list {
  display: grid;
  gap: 7px;
}

.hhfp-modal-task {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--hhfp-line);
  border-radius: 13px;
  background: var(--hhfp-soft);
  cursor: pointer;
}

.hhfp-modal-task.hhfp-checked {
  border-color: rgba(21,128,61,.28);
  background: #f0fdf4;
}

.hhfp-modal-task.hhfp-locked {
  opacity: .72;
  cursor: default;
}

.hhfp-modal-task-icon {
  font-size: 22px;
  text-align: center;
}

.hhfp-modal-task-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.hhfp-modal-task-meta {
  color: var(--hhfp-gold);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.hhfp-block-title {
  margin: 0 0 9px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.hhfp-block-subtitle {
  margin: -4px 0 11px;
  color: var(--hhfp-muted);
  font-size: 11px;
  line-height: 1.35;
}

.hhfp-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 11px;
}

.hhfp-reward {
  display: flex;
  flex-direction: column;
  min-height: 170px;
  padding: 14px;
  border: 1px solid var(--hhfp-line);
  border-radius: 18px;
  background: #fff;
}

.hhfp-reward-icon {
  font-size: 34px;
}

.hhfp-reward-name {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.hhfp-reward-cost {
  margin-top: 4px;
  color: var(--hhfp-gold);
  font-size: 12px;
  font-weight: 850;
}

.hhfp-reward .hhfp-button {
  margin-top: auto;
  width: 100%;
}

.hhfp-button-primary {
  border-color: var(--hhfp-ink);
  background: var(--hhfp-ink);
  color: #fff;
}

.hhfp-button-success {
  border-color: var(--hhfp-success);
  background: var(--hhfp-success);
  color: #fff;
}

.hhfp-button-danger {
  border-color: rgba(180,35,24,.3);
  color: var(--hhfp-danger);
  background: #fff5f3;
}

.hhfp-button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.hhfp-request-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.hhfp-request {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--hhfp-line);
  border-radius: 14px;
  background: #fff;
}

.hhfp-request-title {
  font-size: 12px;
  font-weight: 850;
}

.hhfp-request-meta {
  margin-top: 3px;
  color: var(--hhfp-muted);
  font-size: 10px;
}

.hhfp-request-actions {
  display: flex;
  gap: 6px;
}

.hhfp-story-card,
.hhfp-analytics-card,
.hhfp-inline-analytics {
  padding: 15px;
  margin-bottom: 12px;
}

.hhfp-story-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.58;
  font-weight: 650;
}

.hhfp-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.hhfp-stat {
  padding: 10px;
  border-radius: 14px;
  background: var(--hhfp-soft);
}

.hhfp-stat-value {
  font-size: 19px;
  font-weight: 950;
}

.hhfp-stat-label {
  margin-top: 2px;
  color: var(--hhfp-muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 750;
}

.hhfp-ranking {
  display: grid;
  gap: 7px;
}

.hhfp-rank-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(80px, 35%) 56px;
  gap: 9px;
  align-items: center;
  font-size: 11px;
}

.hhfp-rank-label {
  min-width: 0;
  font-weight: 800;
}

.hhfp-rank-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf5;
}

.hhfp-rank-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--hhfp-purple);
}

.hhfp-rank-value {
  color: var(--hhfp-muted);
  text-align: right;
  font-size: 10px;
  font-weight: 800;
}

.hhfp-avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hhfp-avatar-option {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--hhfp-line);
  border-radius: 15px;
  background: #fff;
  font-size: 29px;
  cursor: pointer;
}

.hhfp-avatar-option.hhfp-active {
  border-color: var(--hhfp-ink);
  box-shadow: 0 0 0 2px var(--hhfp-ink);
}

.hhfp-sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 9px;
  margin-top: 13px;
}

.hhfp-sticker {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--hhfp-line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.hhfp-sticker-icon {
  font-size: 31px;
}

.hhfp-sticker-label {
  color: var(--hhfp-muted);
  font-size: 9px;
  font-weight: 750;
}

.hhfp-sticker.hhfp-locked {
  filter: grayscale(1);
  opacity: .42;
}

.hhfp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px;
}

.hhfp-field {
  display: grid;
  gap: 5px;
}

.hhfp-field label,
.hhfp-field-title {
  color: var(--hhfp-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hhfp-field input,
.hhfp-field select,
.hhfp-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--hhfp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hhfp-ink);
  padding: 9px 10px;
  font: 700 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.hhfp-field textarea {
  min-height: 88px;
  resize: vertical;
}

.hhfp-settings-task {
  display: grid;
  grid-template-columns: 35px minmax(0,1fr) 74px;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--hhfp-line);
}

.hhfp-settings-task:last-child {
  border-bottom: 0;
}

.hhfp-morning-settings {
  display: grid;
  gap: 0;
}

.hhfp-morning-setting-row {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--hhfp-line);
}

.hhfp-morning-setting-row:last-child {
  border-bottom: 0;
}

.hhfp-morning-setting-label {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 850;
}

@media (max-width: 680px) {
  .hhfp-morning-setting-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

.hhfp-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.hhfp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--hhfp-line);
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.hhfp-divider {
  height: 1px;
  margin: 15px 0;
  background: var(--hhfp-line);
}

.hhfp-pin-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(11,18,31,.78);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhfp-pin-overlay.hhfp-open {
  display: grid;
}

.hhfp-pin-card {
  width: min(390px, 100%);
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  color: var(--hhfp-ink);
  box-shadow: var(--hhfp-shadow);
}

.hhfp-pin-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}

.hhfp-pin-dot {
  width: 15px;
  height: 15px;
  border: 2px solid #98a2b3;
  border-radius: 999px;
}

.hhfp-pin-dot.hhfp-filled {
  border-color: var(--hhfp-ink);
  background: var(--hhfp-ink);
}

.hhfp-pin-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hhfp-pin-key {
  min-height: 51px;
  border: 1px solid var(--hhfp-line);
  border-radius: 14px;
  background: var(--hhfp-soft);
  color: var(--hhfp-ink);
  font-size: 19px;
  font-weight: 850;
  cursor: pointer;
}

.hhfp-toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 2147483647;
  max-width: min(500px, calc(100% - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(23,32,51,.96);
  color: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  font: 800 13px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  transition: opacity .18s ease, transform .18s ease;
}

.hhfp-toast.hhfp-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hhfp-sticker-celebration {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  place-items: center;
  pointer-events: none;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hhfp-sticker-celebration.hhfp-show {
  display: grid;
  animation: hhfpFade .35s ease both;
}

.hhfp-celebration-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 230px;
  padding: 26px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--hhfp-shadow);
  animation: hhfpPop .42s cubic-bezier(.2,.9,.2,1.25) both;
}

.hhfp-celebration-icon {
  font-size: 78px;
}

.hhfp-celebration-title {
  font-size: 20px;
  font-weight: 950;
}

.hhfp-celebration-copy {
  color: var(--hhfp-muted);
  font-size: 12px;
  font-weight: 750;
}

.hhfp-empty {
  padding: 22px;
  border: 1px dashed var(--hhfp-line);
  border-radius: 16px;
  color: var(--hhfp-muted);
  background: rgba(255,255,255,.66);
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.hhfp-inline-analytics {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@keyframes hhfpPop {
  from { opacity: 0; transform: scale(.72) rotate(-3deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes hhfpFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 820px) {
  .hhfp-grid,
  .hhfp-reward-grid {
    grid-template-columns: 1fr;
  }

  .hhfp-stat-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .hhfp-sticker-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .hhfp-form-grid {
    grid-template-columns: 1fr;
  }

  .hhfp-shell {
    border-radius: 17px;
  }

  .hhfp-shell-header {
    grid-template-columns: 1fr;
  }

  .hhfp-header-actions {
    justify-content: space-between;
  }

  .hhfp-sync-pill {
    display: none;
  }
}

@media (max-width: 520px) {
  .hhfp-launcher {
    min-width: 47px;
    width: 47px;
    padding: 0;
    justify-content: center;
  }

  .hhfp-launcher-label,
  .hhfp-launcher-lock {
    display: none;
  }

  .hhfp-content {
    padding: 10px;
  }

  .hhfp-sticker-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .hhfp-rank-row {
    grid-template-columns: minmax(0,1fr) 72px 48px;
  }
}



/* Huishoudbord 3.3.4: popupknop linksboven en twee vaste, blijvend zichtbare taaktabbladen. */
.hhfp-card-tab-hidden {
  display: none !important;
}

.hhfp-card-open-arrow {
  left: 7px;
  right: auto;
}

.hhfp-child-mini {
  margin-right: 0;
  margin-left: 36px;
}

.hhfp-card-task-tabs {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 9px 0 8px;
  padding: 4px;
  border: 1px solid rgba(23, 32, 51, .11);
  border-radius: 15px;
  background: rgba(23, 32, 51, .055);
  box-shadow: inset 0 1px 2px rgba(23, 32, 51, .04);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhfp-card-task-tab {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--hhfp-muted);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hhfp-card-task-tab:active {
  transform: scale(.975);
}

.hhfp-card-task-tab-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .74);
  font-size: 16px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, .06);
}

.hhfp-card-task-tab-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.hhfp-card-task-tab-label {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hhfp-card-task-tab-count {
  color: inherit;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
  opacity: .78;
  white-space: nowrap;
}

.hhfp-card-task-tab.hhfp-active {
  color: var(--hhfp-ink);
  border-color: rgba(23, 32, 51, .10);
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 32, 51, .10);
}

.hhfp-card-task-tab-morning.hhfp-active {
  background: #fff4c8;
  border-color: rgba(221, 157, 13, .25);
}

.hhfp-card-task-tab-day.hhfp-active {
  background: #ebeefe;
  border-color: rgba(124, 92, 229, .22);
}

.hhfp-card-task-tab:focus-visible {
  outline: 3px solid rgba(124, 92, 229, .25);
  outline-offset: 2px;
}

.hhfp-card-task-panel[hidden],
.hhfp-card-day[hidden] {
  display: none !important;
}

.hhfp-card-day {
  margin-top: 0;
  padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hhfp-card-day-chevron,
  .hhfp-section-tab-chevron,
  .hhfp-card-open-arrow,
  .hhfp-card-task-tab,
  .hhfp-toast,
  .hhfp-sticker-celebration,
  .hhfp-celebration-card,
  .hhfp-day-task {
    animation: none !important;
    transition: none !important;
  }
}

/* Huishoudbord 3.3.4 - stabiliteits- en tikcorrecties */
html.hhfp-modal-open,
body.hhfp-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.hhfp-modal-open .hhfp-launcher,
body.hhfp-modal-open .hhfp-launcher {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hhfp-launcher {
  z-index: 2147483500 !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  isolation: isolate;
  min-height: 52px;
  min-width: 52px;
}

.hhfp-launcher:active,
.hhfp-button:active,
.hhfp-parent-button:active,
.hhfp-close:active,
.hhfp-person-chip:active,
.hhfp-tab:active,
.hhfp-pin-key:active {
  transform: scale(.97);
}

.hhfp-overlay {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hhfp-overlay.hhfp-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hhfp-overlay[hidden],
.hhfp-pin-overlay[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hhfp-card-task-tabs,
.hhfp-card-day {
  grid-column: 1 / -1 !important;
  min-width: 0;
  max-width: 100%;
}

.hhfp-overlay *,
.hhfp-pin-overlay * {
  box-sizing: border-box;
}

.hhfp-card-task-tabs {
  position: relative !important;
  z-index: 35 !important;
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  isolation: isolate;
  min-height: 58px;
}

.hhfp-card-task-tab {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.hhfp-card-task-tab > * {
  pointer-events: none;
}

.hhfp-card-day,
.hhfp-day-task,
.hhfp-card-open-arrow {
  touch-action: manipulation;
}

.hhfp-card-open-arrow {
  pointer-events: auto !important;
}

.hhfp-sync-pill.hhfp-sync-connecting {
  color: #5b46b2;
  border-color: rgba(124, 92, 229, .25);
  background: #f4f1ff;
}

.hhfp-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hhfp-suggestion-card {
  margin-top: 12px;
  background: linear-gradient(135deg, #fffdf4, #f7f3ff);
}

.hhfp-suggestion-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hhfp-mini-cost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--hhfp-muted);
  font-size: 10px;
  font-weight: 800;
}

.hhfp-mini-cost input {
  width: 68px;
  min-height: 40px;
  padding: 7px;
  border: 1px solid var(--hhfp-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hhfp-ink);
  font: 800 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhfp-task-delete {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 10px;
}

.hhfp-pin-overlay {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
}

.hhfp-pin-overlay.hhfp-open {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hhfp-pin-card {
  touch-action: manipulation;
}

.hhfp-pin-key {
  min-height: 62px;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hhfp-field input,
.hhfp-field select,
.hhfp-field textarea {
  font-size: 16px;
}

.hhfp-button,
.hhfp-parent-button,
.hhfp-close,
.hhfp-person-chip,
.hhfp-tab {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* De dagknoppen in 'Wat eten we' worden als groep iets naar links geschoven. */
.hhfp-meal-day-nav-group {
  position: relative !important;
  z-index: 25 !important;
  transform: translateX(var(--hhfp-meal-nav-shift, -38px)) !important;
}

.hhfp-meal-day-nav-button {
  z-index: 25 !important;
  touch-action: manipulation;
}

.hhfp-meal-day-nav-shift {
  transform: translateX(var(--hhfp-meal-nav-shift, -38px)) !important;
}

@media (max-width: 820px) {
  .hhfp-settings-grid {
    grid-template-columns: 1fr;
  }

  .hhfp-sync-pill {
    display: inline-flex;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hhfp-request,
  .hhfp-suggestion {
    grid-template-columns: 1fr;
  }

  .hhfp-request-actions,
  .hhfp-suggestion-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hhfp-launcher {
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
  }

  .hhfp-card-task-tabs {
    min-height: 62px;
  }

  .hhfp-card-task-tab {
    min-height: 54px;
    padding: 6px;
  }

  .hhfp-card-task-tab-label {
    font-size: 10px;
  }

  .hhfp-card-task-tab-count {
    font-size: 8px;
  }
}


/* Huishoudbord 3.3.4 - scroll, analyse, synchronisatie en avatars */
.hhfp-legacy-card-arrow-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.hhfp-morning-scroll,
.hhfp-day-list {
  max-height: min(242px, 31vh) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y !important;
  scroll-snap-type: none !important;
  overflow-anchor: none;
  scrollbar-gutter: stable;
  padding-right: 3px;
}

.hhfp-morning-scroll.hhfp-card-tab-panel-hidden {
  display: none !important;
}

.hhfp-morning-scroll .hhfp-morning-row,
.hhfp-day-list .hhfp-day-task {
  scroll-snap-align: none !important;
}

.hhfp-sync-pill {
  cursor: default !important;
  pointer-events: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.hhfp-sync-explanation {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 166, 154, .22);
  border-radius: 12px;
  background: #effcf8;
  color: var(--hhfp-ink);
  font-size: 11px;
  line-height: 1.35;
}

.hhfp-sync-explanation strong {
  font-size: 12px;
}

.hhfp-sync-explanation span {
  color: var(--hhfp-muted);
}

.hhfp-inline-analytics {
  min-height: 0 !important;
  padding: 12px !important;
}

.hhfp-inline-analytics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hhfp-inline-analytics-layout {
  display: grid;
  grid-template-columns: minmax(210px, .82fr) minmax(320px, 1.45fr);
  gap: 10px;
  align-items: stretch;
}

.hhfp-compact-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hhfp-compact-stat {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--hhfp-line);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f7f8fc);
  text-align: center;
}

.hhfp-compact-stat strong {
  overflow: hidden;
  color: var(--hhfp-ink);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hhfp-compact-stat span {
  overflow: hidden;
  color: var(--hhfp-muted);
  font-size: 9px;
  line-height: 1.15;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hhfp-compact-ranking {
  min-width: 0;
  max-height: 176px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 9px;
  border: 1px solid var(--hhfp-line);
  border-radius: 12px;
  background: #fff;
}

.hhfp-compact-ranking-title {
  margin-bottom: 5px;
  color: var(--hhfp-muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hhfp-compact-ranking .hhfp-ranking {
  gap: 4px;
}

.hhfp-compact-ranking .hhfp-rank-row {
  min-height: 27px;
  padding: 3px 0;
}

.hhfp-stitch-avatar {
  position: relative;
  display: inline-block;
  width: 1.45em;
  height: 1.2em;
  vertical-align: -.18em;
}

.hhfp-stitch-head {
  position: absolute;
  inset: .13em .25em 0;
  border-radius: 48% 48% 52% 52%;
  background: #3989d6;
  box-shadow: inset 0 -.16em 0 rgba(0, 67, 133, .24), inset 0 .12em 0 rgba(255,255,255,.18);
}

.hhfp-stitch-ear {
  position: absolute;
  top: .27em;
  width: .55em;
  height: .42em;
  border-radius: 80% 18% 80% 18%;
  background: #2c76c2;
  box-shadow: inset 0 0 0 .1em #7dc4ef;
}

.hhfp-stitch-ear-left { left: -.02em; transform: rotate(-26deg); }
.hhfp-stitch-ear-right { right: -.02em; transform: scaleX(-1) rotate(-26deg); }

.hhfp-stitch-eye {
  position: absolute;
  top: .28em;
  width: .22em;
  height: .28em;
  border-radius: 50%;
  background: #111c2f;
  box-shadow: inset 0 0 0 .055em #d7f4ff;
}

.hhfp-stitch-eye-left { left: .22em; }
.hhfp-stitch-eye-right { right: .22em; }

.hhfp-stitch-nose {
  position: absolute;
  left: 50%;
  top: .48em;
  width: .26em;
  height: .18em;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #123f75;
}

.hhfp-stitch-smile {
  position: absolute;
  left: 50%;
  bottom: .15em;
  width: .38em;
  height: .15em;
  transform: translateX(-50%);
  border-bottom: .07em solid #123f75;
  border-radius: 0 0 50% 50%;
}


.hhfp-katseye-avatar {
  position: relative;
  display: inline-block;
  width: 1.48em;
  height: 1.2em;
  vertical-align: -.18em;
  border-radius: 44% 56% 48% 52%;
  background: linear-gradient(145deg, #37204f, #6f3f91 58%, #ec77bd);
  box-shadow: inset 0 .1em 0 rgba(255,255,255,.2), 0 .05em .15em rgba(42,18,65,.2);
}

.hhfp-katseye-eye {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .88em;
  height: .45em;
  transform: translate(-50%, -48%) rotate(-4deg);
  border-radius: 95% 10% 95% 10%;
  background: #fff8ff;
  box-shadow: 0 0 0 .055em rgba(255,255,255,.5), inset 0 0 .12em rgba(96,32,122,.2);
}

.hhfp-katseye-iris {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .32em;
  height: .32em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff 0 .06em, #f8c85b .07em .14em, #4c2469 .15em .23em, #15101f .24em);
}

.hhfp-katseye-spark {
  position: absolute;
  z-index: 2;
  color: #ffe385;
  font-size: .3em;
  line-height: 1;
  text-shadow: 0 0 .12em rgba(255,238,156,.8);
}

.hhfp-katseye-spark-one { left: .12em; top: .08em; }
.hhfp-katseye-spark-two { right: .1em; bottom: .08em; transform: scale(.82); }

.hhfp-djamila-avatar {
  position: relative;
  display: inline-block;
  width: 1.32em;
  height: 1.32em;
  vertical-align: -.2em;
}

.hhfp-djamila-disc {
  position: absolute;
  inset: .03em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff85b9, #9b5de5 58%, #4b7bec);
  border: .08em solid rgba(255,255,255,.92);
  box-shadow: 0 .05em .16em rgba(83,42,126,.28), inset 0 .12em 0 rgba(255,255,255,.24);
}

.hhfp-djamila-letter {
  color: #fff;
  font-size: .72em;
  line-height: 1;
  font-weight: 950;
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  text-shadow: 0 .04em .08em rgba(51,22,84,.35);
}

.hhfp-djamila-note {
  position: absolute;
  right: -.08em;
  bottom: -.04em;
  display: grid;
  place-items: center;
  width: .55em;
  height: .55em;
  border-radius: 50%;
  background: #fff;
  color: #7a3ec8;
  font-size: .5em;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 .05em .12em rgba(63,34,94,.25);
}

.hhfp-avatar-option-special {
  width: auto;
  min-width: 74px;
  padding: 7px 9px;
}

.hhfp-avatar-option-stitch {
  background: linear-gradient(180deg, #f5fbff, #e4f3ff);
}

.hhfp-avatar-option-katseye {
  background: linear-gradient(180deg, #fff8ff, #f3e9ff);
}

.hhfp-avatar-option-djamila {
  background: linear-gradient(180deg, #fff9f1, #ffe8f1);
}

.hhfp-avatar-name {
  display: block;
  margin-top: 3px;
  color: var(--hhfp-muted);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
}

.hhfp-card-avatar .hhfp-special-avatar {
  font-size: 30px;
}

.hhfp-child-mini-avatar .hhfp-special-avatar,
.hhfp-person-chip .hhfp-special-avatar {
  font-size: 15px;
}

@media (max-width: 760px) {
  .hhfp-inline-analytics-layout {
    grid-template-columns: 1fr;
  }

  .hhfp-compact-ranking {
    max-height: 150px;
  }
}


/* Verberg de overgebleven oorspronkelijke uitklappijl rechtsboven. De eigen popupknop linksboven blijft staan. */
[data-hhfp-child-card].hhfp-card-popup-protected::after {
  content: none !important;
  display: none !important;
}

[data-hhfp-child-card] > .hhfp-legacy-card-arrow-hidden,
[data-hhfp-child-card] > [aria-hidden="true"].hhfp-legacy-card-arrow-hidden {
  display: none !important;
}

/* Huishoudbord 3.3.4 - extra iPad-stabiliteit voor lijsten en oude pijlen */
.hhfp-morning-scroll,
.hhfp-day-list {
  min-height: 0 !important;
  position: relative;
  isolation: isolate;
}

[data-hhfp-child-card] .hhfp-suppress-arrow-pseudo::before,
[data-hhfp-child-card] .hhfp-suppress-arrow-pseudo::after {
  content: none !important;
  display: none !important;
}

/* Synchronisatie is een automatische status, geen bedieningsknop. */
.hhfp-sync-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 28px !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}

.hhfp-sync-pill::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .72;
}

.hhfp-sync-pill.hhfp-sync-connecting::before {
  animation: hhfp-sync-pulse 1.25s ease-in-out infinite;
}

@keyframes hhfp-sync-pulse {
  0%, 100% { transform: scale(.72); opacity: .42; }
  50% { transform: scale(1); opacity: .9; }
}

/* Gedeelde Niet-vergetenlijst uit 3.3.4. */
.hhnv-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(15, 23, 42, .54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hhnv-overlay.hhnv-open {
  display: flex;
}

.hhnv-shell {
  width: min(680px, 100%);
  max-height: min(780px, 94vh);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border-radius: 22px;
  background: #f7f8fc;
  color: var(--hhfp-ink);
  box-shadow: var(--hhfp-shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhnv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--hhfp-line);
  background: #fff;
}

.hhnv-title-wrap {
  min-width: 0;
  flex: 1;
}

.hhnv-title {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.hhnv-subtitle {
  margin-top: 3px;
  color: var(--hhfp-muted);
  font-size: 10px;
  line-height: 1.35;
}

.hhnv-close,
.hhnv-manage,
.hhnv-secondary,
.hhnv-icon-button {
  min-height: 42px;
  border: 1px solid var(--hhfp-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hhfp-ink);
  font: 800 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.hhnv-close {
  width: 44px;
  padding: 0;
  font-size: 22px;
}

.hhnv-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 12px;
}

.hhnv-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--hhfp-line);
  border-radius: 14px;
  background: #fff;
  touch-action: manipulation;
}

.hhnv-item.hhnv-done {
  opacity: .72;
  background: #f0fdf4;
}

.hhnv-check {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #a5adbd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  color: transparent;
  font-size: 18px;
  font-weight: 900;
}

.hhnv-done .hhnv-check {
  border-color: var(--hhfp-success);
  background: var(--hhfp-success);
  color: #fff;
}

.hhnv-copy {
  min-width: 0;
}

.hhnv-text {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 850;
}

.hhnv-meta {
  margin-top: 3px;
  color: var(--hhfp-muted);
  font-size: 10px;
  line-height: 1.2;
}

.hhnv-date {
  color: var(--hhfp-purple);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.hhnv-empty,
.hhnv-error {
  padding: 26px 18px;
  border: 1px dashed var(--hhfp-line);
  border-radius: 15px;
  background: #fff;
  color: var(--hhfp-muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
}

.hhnv-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 13px;
  border-top: 1px solid var(--hhfp-line);
  background: #fff;
}

.hhnv-manage {
  padding: 9px 12px;
}


.hhnv-secondary {
  padding: 9px 12px;
  background: #f8fafc;
}

.hhnv-status {
  min-height: 30px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--hhfp-line);
  background: #f8fafc;
  color: var(--hhfp-muted);
  font-size: 10px;
  line-height: 1.35;
  font-weight: 750;
}

.hhnv-form[hidden] {
  display: none !important;
}

.hhnv-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr);
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--hhfp-line);
  background: #fff;
}

.hhnv-field {
  min-width: 0;
}

.hhnv-field-wide,
.hhnv-form-actions {
  grid-column: 1 / -1;
}

.hhnv-field label {
  display: block;
  margin-bottom: 5px;
  color: var(--hhfp-muted);
  font-size: 10px;
  font-weight: 850;
}

.hhnv-field input,
.hhnv-field select {
  width: 100%;
  min-height: 43px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid var(--hhfp-line);
  border-radius: 11px;
  background: #fff;
  color: var(--hhfp-ink);
  font: 750 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hhnv-form-actions,
.hhnv-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.hhnv-icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 10px;
  font-size: 18px;
}

.hhnv-icon-danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.hhfp-hidden-morning-task,
.hhfp-hidden-finn-task {
  display: none !important;
}

.hhfp-morning-settings {
  display: grid;
  gap: 8px;
}

.hhfp-morning-setting-row {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(0, 1.5fr);
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--hhfp-line);
  border-radius: 13px;
  background: #fff;
}

.hhfp-morning-setting-label {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 850;
}

@media (max-width: 760px) {
  .hhfp-story-layout,
  .hhfp-ranking-grid {
    grid-template-columns: 1fr;
  }

  .hhfp-story-layout .hhfp-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hhfp-morning-list,
  .hhfp-day-list {
    max-height: 224px;
  }

  .hhfp-sync-pill {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hhnv-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .hhnv-date {
    grid-column: 2;
    justify-self: start;
  }

  .hhnv-row-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    flex-direction: column;
  }

  .hhnv-form,
  .hhfp-morning-setting-row {
    grid-template-columns: 1fr;
  }
}

.hhnv-enhanced-launcher {
  position: relative !important;
}

.hhnv-tile-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 15;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--hhfp-purple);
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 32, 51, .18);
  font: 900 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}

.hhnv-tile-badge[data-empty="true"] {
  background: var(--hhfp-success);
}


/* Huishoudbord 3.3.4: duidelijke terugval wanneer een beschadigde configuratie geen dagtaken bevat. */
.hhfp-day-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 16px;
  border: 1px dashed rgba(92, 72, 160, .28);
  border-radius: 14px;
  background: rgba(247, 245, 255, .82);
  color: #655b7a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}
