:root {
  --silver-lake: #C7D6D3;
  --lagoon: #6E93A4;
  --seaweed: #1D4F49;
  --wheat: #F6DFB8;
  --melon: #F5B87E;
  --lavender: #D6D3F0;
  --bg: #FAF9F6;
  --text: #1f2a28;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--hh-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

#app { height: 100%; }

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }
/* Browsers give buttons and form fields their own fixed text size (about 13px), which would ignore the text-size
   setting. 0.8333rem is that same size at "Normal", but now it scales with the setting like everything else. */
button, input, select, textarea { font-size: 0.8333rem; }

/* ---- shell ---- */

.hh-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* let the page be as wide as the screen, not as wide as its widest child (e.g. the tab bar) */
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.hh-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--seaweed);
  color: white;
}

.hh-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.hh-clock {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}

.hh-clock-time { font-size: 1.4rem; font-weight: 700; }
.hh-clock-date { font-size: 0.95rem; opacity: 0.85; }

.hh-header-actions { display: flex; gap: 8px; }

.hh-icon-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}
.hh-icon-btn:hover { background: rgba(255,255,255,0.25); }

/* landscape/tablet: sidebar nav */
body[data-layout="landscape"] .hh-shell {
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
}
body[data-layout="landscape"] .hh-header { grid-column: 1 / -1; }
body[data-layout="landscape"] .hh-nav {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  background: var(--silver-lake);
  padding: 12px 8px;
  gap: 4px;
  min-height: 0;
  overflow-y: auto; /* more tabs than fit the screen height: the sidebar scrolls on its own */
  scrollbar-width: none;
}
body[data-layout="landscape"] .hh-nav::-webkit-scrollbar { display: none; }
body[data-layout="landscape"] .hh-main { grid-row: 2; overflow: auto; min-height: 0; }

/* portrait/phone: bottom nav */
body[data-layout="portrait"] .hh-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
body[data-layout="portrait"] .hh-brand { display: none; }
body[data-layout="portrait"] .hh-clock-time { font-size: 1.1rem; }
body[data-layout="portrait"] .hh-clock-date { font-size: 0.8rem; }
body[data-layout="portrait"] .hh-main { overflow: auto; }
body[data-layout="portrait"] .hh-nav {
  order: 3;
  display: flex;
  justify-content: flex-start;
  background: var(--silver-lake);
  padding: 6px 4px;
  gap: 2px;
  min-width: 0;
  overflow-x: auto; /* many tabs: swipe the bar sideways */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body[data-layout="portrait"] .hh-nav::-webkit-scrollbar { display: none; }
body[data-layout="portrait"] .hh-nav-item { flex: 0 0 auto; width: 4.6rem; padding: 6px 2px; flex-direction: column; justify-content: flex-start; text-align: center; font-size: 0.7rem; gap: 2px; line-height: 1.15; }

.hh-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.hh-nav-item.active { background: var(--seaweed); color: white; }
.hh-nav-icon { font-size: 1.2rem; }

.hh-main { padding: 16px; min-width: 0; }
.hh-module h2 { margin-top: 0; color: var(--seaweed); }

/* ---- login ---- */

.hh-login {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--seaweed);
  color: white;
}
.hh-login-brand { font-size: 2rem; font-weight: 700; }
.hh-pin-display { font-size: 2rem; letter-spacing: 0.4em; min-height: 2.5rem; }
.hh-pin-error { color: var(--melon); min-height: 1.2rem; font-weight: 600; }
.hh-auth-form { display: flex; flex-direction: column; gap: 12px; width: min(340px, calc(100vw - 32px)); }
.hh-auth-form .hh-input { width: 100%; box-sizing: border-box; }
.hh-auth-form .hh-btn, .hh-auth-form .hh-btn.primary { background: var(--wheat); color: var(--seaweed); border-color: var(--wheat); font-weight: 700; padding: 12px; }
.hh-auth-form .hh-btn:disabled { opacity: 0.6; }
.hh-people-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(0,0,0,0.08); flex-wrap: wrap; }
.hh-people-actions { display: flex; gap: 6px; }
.hh-auth-note { font-weight: 600; text-align: center; max-width: 340px; }
.hh-auth-hint { font-size: 0.85rem; opacity: 0.85; text-align: center; }
.hh-pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  gap: 12px;
}
.hh-pin-key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.4rem;
}
.hh-pin-key:active { background: rgba(255,255,255,0.35); }

/* ---- shared components ---- */

.hh-input {
  padding: 8px 10px;
  border: 1px solid var(--lagoon);
  border-radius: 8px;
  font-size: 1rem;
}
.hh-input.small { padding: 5px 8px; font-size: 0.9rem; }

.hh-btn {
  padding: 8px 14px;
  border: 1px solid var(--lagoon);
  background: white;
  border-radius: 8px;
  font-weight: 600;
}
.hh-btn.small { padding: 4px 8px; font-size: 0.8rem; }
.hh-btn.tiny { padding: 2px 6px; font-size: 0.7rem; line-height: 1.4; }
.hh-btn.primary { background: var(--seaweed); color: white; border-color: var(--seaweed); }
.hh-btn.danger { border-color: #c0392b; color: #c0392b; background: white; }
.hh-btn:disabled { opacity: 0.4; cursor: default; }

.hh-add-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.hh-add-row.sticky { position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 1; }
.hh-filter-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.hh-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }

.hh-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--wheat);
  font-size: 0.8rem;
}
.hh-chip.overdue { background: var(--melon); color: #5b2b00; font-weight: 700; }
a.hh-chip { color: var(--text); text-decoration: none; cursor: pointer; }
a.hh-chip:hover { background: var(--lavender); }

.hh-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--seaweed);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
}
/* the voice listener's small bubble ("Listening…", what it heard) sits above the toast */
.hh-voice-bubble {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px);
  max-width: min(90vw, 28rem); padding: 10px 18px; border-radius: 18px;
  background: var(--seaweed); color: white; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 1100;
}
.hh-voice-bubble.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hh-voice-bubble.error { background: #c0392b; }
.hh-icon-btn.listening { position: relative; }
.hh-icon-btn.listening::after {
  content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #ff6b5b; animation: hh-voice-pulse 1.6s ease-in-out infinite;
}
.hh-icon-btn.voice-paused { position: relative; }
.hh-icon-btn.voice-paused::after { content: "!"; position: absolute; top: 2px; right: 4px; font-size: 0.7rem; font-weight: 800; color: #f2c94c; }
.hh-voice-panel { border-top: 1px solid var(--silver-lake); padding-top: 10px; margin-top: 10px; }
.hh-voice-meter { position: relative; height: 16px; border-radius: 8px; background: var(--wheat); overflow: hidden; }
.hh-voice-meter-fill { height: 100%; width: 0; background: var(--lagoon); transition: width 0.1s linear; }
.hh-voice-meter-mark { position: absolute; top: 0; bottom: 0; width: 3px; background: #c0392b; }
.hh-suggest-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.hh-suggest-wrap > input { flex: 1; min-width: 0; }
.hh-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; background: white; border: 1px solid var(--silver-lake); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.15); z-index: 50; overflow: hidden; }
.hh-suggest-item { display: block; width: 100%; text-align: left; padding: 10px 12px; font: inherit; background: none; border: none; border-bottom: 1px solid #eee; cursor: pointer; }
.hh-suggest-item:last-child { border-bottom: none; }
.hh-suggest-item:hover, .hh-suggest-item.active { background: var(--wheat); }
.hh-voice-log { max-height: 16rem; overflow: auto; font-size: 0.75rem; line-height: 1.4; white-space: pre-wrap; background: var(--wheat); border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }
.hh-voice-heard { font-weight: 600; margin: 4px 0; }
.hh-voice-heard.hit { color: #1e7a3c; }
@keyframes hh-voice-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.7); } }
.hh-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hh-toast.error { background: #c0392b; }

.hh-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.hh-modal {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  min-width: 280px;
  max-width: 90vw;
}
.hh-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.hh-error { color: #c0392b; padding: 20px; }

/* ---- Family ---- */
.hh-family-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--silver-lake);
}
.hh-family-actions { display: flex; gap: 6px; }

/* ---- Shopping ---- */
.hh-keep-launcher {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 60px 20px; max-width: 420px; margin: 0 auto;
}
.hh-keep-icon { font-size: 3rem; }
.hh-btn.large { padding: 16px 32px; font-size: 1.1rem; }
.hh-keep-hint { color: #667; font-size: 0.85rem; }
.hh-shopping-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.hh-shopping-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-bottom: 1px solid var(--silver-lake);
  background: white; border-radius: 6px;
}
.hh-shopping-label { flex: 1; font-size: 1.05rem; }
.hh-shopping-row.done .hh-shopping-label { color: #999; text-decoration: line-through; }
.hh-keep-mini-link { align-self: center; margin-left: auto; font-size: 0.85rem; color: var(--lagoon); }

/* ---- Backlog ---- */
.hh-backlog-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; border-bottom: 1px solid var(--silver-lake);
  font-size: 0.95rem;
}
.hh-backlog-row.done { color: #999; text-decoration: line-through; }
.hh-backlog-desc { flex: 1; }

/* ---- Kids' Jobs ---- */
.hh-kidjobs-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
}
.hh-kidjobs-col {
  min-width: 240px;
  scroll-snap-align: start;
  background: white;
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.hh-kidjobs-col-header {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; color: var(--seaweed); margin-bottom: 8px;
}
.hh-kidjobs-count { font-weight: 400; color: #777; font-size: 0.85rem; }
.hh-kidjobs-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 6px; border-bottom: 1px solid var(--silver-lake);
  touch-action: pan-y;
}
.hh-kidjobs-handle { width: 16px; color: #aaa; }
.hh-kidjobs-check {
  width: 32px; height: 32px; border: 2px solid var(--lagoon); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.hh-kidjobs-row.ticked .hh-kidjobs-check { background: var(--seaweed); color: white; border-color: var(--seaweed); }
.hh-kidjobs-row.ticked .hh-kidjobs-label { color: #999; text-decoration: line-through; }
.hh-kidjobs-label { flex: 1; font-size: 1.05rem; }

/* ---- Entertaining ---- */
.hh-entertaining-totals {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: var(--wheat); border-radius: 8px; margin-bottom: 10px;
  font-weight: 600;
}
.hh-entertaining-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid var(--silver-lake);
}
.hh-entertaining-row.selected { background: var(--lavender); border-radius: 8px; }
.hh-entertaining-info { flex: 1; cursor: pointer; }
.hh-entertaining-line1 { display: flex; justify-content: space-between; font-weight: 600; }
.hh-entertaining-line2 { color: #667; font-size: 0.85rem; }
.hh-entertaining-lastvisit { font-weight: 400; color: #667; font-size: 0.85rem; }
.hh-history-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-bottom: 1px solid var(--silver-lake);
}
.hh-form-stack { display: flex; flex-direction: column; gap: 8px; min-width: 260px; }

/* ---- Entertaining Meals ---- */
.hh-events-list { display: flex; flex-direction: column; gap: 8px; }
.hh-event-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: white; border-radius: var(--radius); padding: 12px 14px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.hh-event-row-main { flex: 1; min-width: 0; }
.hh-event-row-date { font-weight: 700; color: var(--seaweed); display: flex; align-items: center; gap: 8px; }
.hh-event-row-households { font-weight: 600; }
.hh-event-row-meals { color: #667; font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-event-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hh-event-row.past { opacity: 0.55; }

.hh-event-detail-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 20px; }
.hh-event-households { display: flex; gap: 6px; flex-wrap: wrap; }
.hh-event-item-wrap { border-bottom: 1px solid var(--silver-lake); }
.hh-event-item-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px 2px;
}
/* prep items: the dish tag shows just the first part of its name (full name on hover) so the task text keeps its room */
.hh-event-item-row.hh-prep-row { flex-wrap: nowrap; }
.hh-event-item-row.hh-prep-row input.hh-inline-edit { flex: 1 0 8rem; min-width: 8rem; }
.hh-event-item-row.hh-prep-row > .hh-chip { flex: 0 1 auto; min-width: 3.5rem; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-meal-item-row { flex-wrap: wrap; gap: 6px 10px; }
.hh-meal-item-notes {
  font-size: 0.8rem; color: #667; cursor: pointer;
  padding: 0 6px 8px 30px;
}
.hh-event-item-label { flex: 1; }
.hh-event-item-label.done { color: #999; text-decoration: line-through; }
.hh-inline-edit {
  border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px;
}
.hh-inline-edit:hover { border-color: var(--silver-lake); }
.hh-inline-edit:focus { border-color: var(--lagoon); background: white; outline: none; }
input.hh-inline-edit { flex: 1; min-width: 0; }
input.hh-inline-edit.done { color: #999; text-decoration: line-through; }
.hh-meal-notes-btn { cursor: pointer; opacity: 0.35; flex-shrink: 0; }
.hh-meal-notes-btn:hover, .hh-meal-notes-btn.has-content { opacity: 1; }
.hh-entertaining-meals textarea.hh-input, .hh-overnight textarea.hh-input { font-family: inherit; resize: vertical; width: 100%; max-width: 700px; box-sizing: border-box; }
.hh-course-sections { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.hh-course-group h4 { margin: 0 0 4px; color: var(--seaweed); }
.hh-course-list { min-height: 32px; background: white; border-radius: 8px; padding: 2px 8px; }
.hh-course-list:empty { border: 1px dashed var(--silver-lake); }
.hh-quick-add { width: 100%; margin-top: 6px; font-size: 0.9rem; box-sizing: border-box; }
.hh-household-picker-list { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.hh-picker-total { font-weight: 600; font-size: 0.85rem; color: var(--seaweed); }
.hh-event-columns { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.hh-event-col { flex: 1 1 380px; max-width: 480px; min-width: 280px; }

/* ---- Global search ---- */
.hh-search-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1500;
  display: flex; justify-content: center; padding: 10vh 16px 16px;
}
.hh-search-panel {
  background: var(--bg); border-radius: var(--radius); width: 100%; max-width: 560px;
  max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.hh-search-header { display: flex; gap: 8px; padding: 14px; border-bottom: 1px solid var(--silver-lake); background: white; }
.hh-search-input { flex: 1; padding: 10px 12px; border: 1px solid var(--lagoon); border-radius: 8px; font-size: 1.05rem; }
.hh-search-results { overflow-y: auto; padding: 8px 14px 14px; }
.hh-search-group-title { font-weight: 700; color: var(--seaweed); margin: 14px 0 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.hh-search-group-title:first-child { margin-top: 4px; }
.hh-search-result-row {
  padding: 10px 8px; border-radius: 8px; cursor: pointer; background: white; margin-bottom: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.hh-search-result-row:hover { background: var(--wheat); }

/* ---- Meal Plans ---- */
.hh-mealplans-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hh-mealgrid-wrap { overflow-x: auto; margin-bottom: 8px; }
.hh-mealgrid {
  display: grid;
  grid-template-columns: 70px repeat(6, minmax(110px, 1fr));
  gap: 6px;
  min-width: 760px;
}
.hh-mealgrid-corner { }
.hh-mealgrid-daylabel, .hh-mealgrid-mealabel {
  font-weight: 700; color: var(--seaweed); padding: 4px; text-align: center;
}
.hh-mealgrid-mealabel { text-align: left; }
.hh-mealgrid-daylabel { display: flex; flex-direction: column; align-items: center; }
.hh-mealgrid-daylabel.today { color: #5b2b00; }
.hh-mealgrid-date { font-weight: 400; font-size: 0.75rem; color: #667; }
.hh-mealgrid-daylabel.today .hh-mealgrid-date { color: #5b2b00; }
.hh-mealplan-week-nav { align-items: center; }
.hh-mealplan-week-label { font-weight: 700; color: var(--seaweed); margin: 0 4px; }
.hh-mealslot {
  position: relative;
  min-height: 52px;
  background: white;
  border: 1px dashed var(--silver-lake);
  border-radius: 8px;
  padding: 4px;
}
.hh-mealslot-list { min-height: 44px; }
.hh-mealslot-clear {
  position: absolute; top: 2px; right: 2px;
  border: none; background: transparent; color: #c0392b; cursor: pointer; font-size: 0.8rem;
}
.hh-menu-palette-label { font-size: 0.85rem; color: #667; margin-bottom: 6px; }
.hh-menu-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hh-menu-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--wheat); border-radius: 999px; padding: 6px 12px; font-size: 0.9rem;
  cursor: grab; user-select: none;
}
.hh-menu-pill.in-slot { background: var(--lavender); width: 100%; box-sizing: border-box; }
.hh-menu-pill.in-slot.custom { background: var(--melon); cursor: pointer; }
.hh-mealslot-add {
  width: 100%; height: 44px;
  border: none; background: transparent; color: #889; cursor: pointer; font-size: 0.85rem;
}
.hh-mealslot-add:hover { color: var(--seaweed); }
.hh-drag-handle { color: #997; }
.hh-menu-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  align-items: start;
}
.hh-menu-card {
  background: white; border-radius: var(--radius); padding: 8px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-size: 0.82rem;
}
.hh-menu-card-header { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.hh-menu-card-header strong { font-size: 0.88rem; cursor: pointer; overflow-wrap: anywhere; }
.hh-menu-item-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; border-bottom: 1px solid var(--silver-lake); }
.hh-menu-item-label { cursor: pointer; }
.hh-menu-item-label:hover { text-decoration: underline; }
.hh-menu-card .hh-input.small { font-size: 0.8rem; padding: 4px 6px; }
.hh-menu-card .hh-btn.small { font-size: 0.75rem; padding: 3px 7px; }
.hh-menu-card .hh-add-row { margin-bottom: 0; margin-top: 4px; gap: 4px; }

/* ---- Photos ---- */
.hh-file-input { display: none; }
.hh-upload-status { font-size: 0.85rem; color: #667; align-self: center; }
.hh-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.hh-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--silver-lake);
}
.hh-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hh-photo-delete {
  position: absolute; top: 4px; right: 4px;
  border: none; background: rgba(0,0,0,0.55); color: white;
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.8rem;
}

.hh-slideshow-overlay {
  position: fixed; inset: 0; background: black; z-index: 2000; cursor: pointer;
}
.hh-slideshow-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transition: opacity 1s ease;
}
.hh-slideshow-img.active { opacity: 1; }
.hh-slideshow-clock {
  position: absolute; right: 28px; bottom: 24px; text-align: right; color: rgba(255,255,255,0.78);
  text-shadow: 0 1px 6px rgba(0,0,0,0.65); pointer-events: none; z-index: 1;
}
.hh-slideshow-time { font-size: clamp(2rem, 6vw, 4rem); font-weight: 300; line-height: 1; letter-spacing: 0.02em; }
.hh-slideshow-date { font-size: clamp(0.9rem, 2vw, 1.3rem); margin-top: 4px; }

/* ---- Calendar ---- */
.hh-cal-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.hh-cal-label { min-width: 160px; }
.hh-cal-body.month {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 4px;
}
.hh-cal-weekday { font-weight: 700; color: var(--seaweed); text-align: center; padding: 4px; font-size: 0.85rem; }
.hh-cal-day {
  min-height: 70px;
  background: white;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  border: 1px solid var(--silver-lake);
  overflow: hidden;
}
.hh-cal-day.today { border-color: var(--melon); border-width: 2px; }
.hh-cal-day.outside { opacity: 0.4; }
.hh-cal-daynum { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.hh-cal-chip {
  background: var(--wheat); border-radius: 4px; padding: 1px 4px; font-size: 0.72rem;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hh-cal-more { font-size: 0.7rem; color: #667; }
.hh-cal-event-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 4px; border-bottom: 1px solid var(--silver-lake); cursor: pointer; font-size: 0.9rem;
}
.hh-cal-body.week { display: flex; flex-direction: column; gap: 10px; }
.hh-cal-weekrow { background: white; border-radius: 8px; padding: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.hh-cal-weekrow.today { outline: 2px solid var(--melon); }
.hh-cal-weekrow-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hh-cal-empty { color: #999; font-size: 0.85rem; padding: 4px; }

/* ---- Recipes ---- */
.hh-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.hh-recipe-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.hh-recipe-thumb {
  position: relative;
  aspect-ratio: 4/3; background: var(--silver-lake);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}
.hh-recipe-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hh-recipe-placeholder { font-size: 2.2rem; }
.hh-recipe-image-count {
  position: absolute; bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.6); color: white; font-size: 0.75rem;
  padding: 2px 7px; border-radius: 999px;
}
.hh-recipe-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.hh-recipe-gallery-item { position: relative; width: 72px; height: 72px; flex: none; }
.hh-recipe-gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; cursor: pointer; }
.hh-recipe-gallery-remove {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  border: none; background: #c0392b; color: white; font-size: 0.7rem; line-height: 20px; text-align: center; padding: 0; cursor: pointer;
}
.hh-recipe-info { padding: 10px 12px; }
.hh-recipe-info strong { display: block; cursor: pointer; margin-bottom: 4px; }
.hh-recipe-category { display: inline-block; margin-bottom: 6px; }
.hh-recipe-link { display: inline-block; font-size: 0.85rem; color: var(--lagoon); margin-bottom: 4px; }
.hh-recipe-notes { font-size: 0.85rem; color: #667; }
.hh-form-image-preview { max-width: 100%; max-height: 160px; border-radius: 8px; cursor: pointer; object-fit: cover; }

.hh-lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  cursor: zoom-out;
}
.hh-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.hh-lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: white; border: none;
  font-size: 2rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hh-lightbox-nav.prev { left: 16px; }
.hh-lightbox-nav.next { right: 16px; }
.hh-lightbox-nav:hover { background: rgba(255,255,255,0.3); }

/* ---- Settings ---- */
.hh-settings-card {
  background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); max-width: 420px;
}
.hh-settings-card h3 { margin-top: 0; color: var(--seaweed); }
.hh-form-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.hh-settings-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hh-tab-order-list { display: flex; flex-direction: column; gap: 2px; }
.hh-tab-order-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 6px; border-bottom: 1px solid var(--silver-lake);
}
.hh-tab-order-row:has(> input[type="checkbox"]:not(:checked)) { opacity: 0.55; }

/* ---- Freezer ---- */
.hh-freezer-location-heading { color: var(--seaweed); margin: 16px 0 6px; }
.hh-freezer-location-heading:first-child { margin-top: 0; }
.hh-freezer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-bottom: 1px solid var(--silver-lake);
}
.hh-freezer-info { flex: 1; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.hh-freezer-line1 { display: flex; align-items: center; gap: 8px; }
.hh-freezer-label { font-weight: 600; }
.hh-freezer-added, .hh-freezer-notes { font-size: 0.85rem; color: #667; }
.hh-freezer-stepper { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hh-freezer-qty { min-width: 1.5em; text-align: center; font-weight: 700; }

.hh-freezer-report { column-width: 200px; column-gap: 28px; }
.hh-freezer-report-group { break-inside: avoid; margin-bottom: 14px; }
.hh-freezer-report-group h4 { margin: 0 0 4px; color: var(--seaweed); font-size: 0.9rem; }
.hh-freezer-report-subheading { margin: 6px 0 2px; color: #667; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.hh-freezer-report-list { margin: 0; padding-left: 18px; font-size: 0.85rem; line-height: 1.6; }
.hh-freezer-report-item { cursor: pointer; }
.hh-freezer-report-item:hover { text-decoration: underline; color: var(--seaweed); }

/* ---- Overnight Hosting ---- */
.hh-overnight-narrow-list { max-width: 380px; }

/* ---- Hosting Planner ---- */
.hh-planner-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.hh-planner-col-header { font-weight: 700; color: var(--seaweed); margin-bottom: 8px; }
.hh-planner-col-list { min-height: 32px; display: flex; flex-direction: column; gap: 6px; }
.hh-planner-day-col {
  min-width: 200px; max-width: 220px; flex-shrink: 0;
  background: white; border-radius: var(--radius); padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; gap: 10px;
}
.hh-planner-day-col.today { box-shadow: 0 0 0 2px var(--seaweed); }
.hh-planner-slot-header { font-size: 0.75rem; font-weight: 600; color: #667; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.hh-planner-slot:not(:last-child) { border-bottom: 1px dashed var(--silver-lake); padding-bottom: 8px; }
.hh-planner-card { display: flex; align-items: flex-start; gap: 6px; background: var(--bg); border-radius: 8px; padding: 6px 8px; font-size: 0.85rem; }
.hh-planner-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hh-planner-card-label { flex: 1; }
.hh-planner-card-label.done { color: #999; text-decoration: line-through; }
.hh-planner-card-context { font-size: 0.75rem; color: #667; }
.hh-planner-toggle { gap: 2px; opacity: 0.5; flex-shrink: 0; }
.hh-planner-toggle:has(input:checked) { opacity: 1; }

/* ---- Allergy alert ---- */
.hh-allergy-chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--melon); color: #5b2b00; font-weight: 700; font-size: 0.8rem;
}
.hh-chip.hh-chip-allergy { background: var(--melon); color: #5b2b00; font-weight: 700; }
.hh-allergy-banner {
  background: var(--melon); color: #5b2b00; font-weight: 600;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 12px;
}

@media (max-width: 600px) {
  .hh-kidjobs-board { scroll-snap-type: x mandatory; }
  /* one column per screen: allow for the page padding (and the slim sidebar in the side-by-side layout) */
  .hh-kidjobs-col { min-width: calc(100vw - 34px); }
  body[data-layout="landscape"] .hh-kidjobs-col { min-width: calc(100vw - 94px); }

  /* Sidebar nav: labels take up too much of a narrow screen — collapse to an icon rail. */
  body[data-layout="landscape"] .hh-shell { grid-template-columns: 60px 1fr; }
  body[data-layout="landscape"] .hh-nav { padding: 12px 4px; }
  body[data-layout="landscape"] .hh-nav-item { justify-content: center; padding: 10px 0; }
  body[data-layout="landscape"] .hh-nav-label { display: none; }
  body[data-layout="landscape"] .hh-nav-icon { font-size: 1.4rem; }
}

/* ---- Shared event link (share.html) — standalone page, no nav/login ---- */
.hh-share-wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 60px; }
.hh-share-header { text-align: center; margin-bottom: 20px; }
.hh-share-brand { color: var(--seaweed); font-weight: 700; margin-bottom: 6px; }
.hh-share-header h1 { margin: 4px 0; color: var(--seaweed); }
.hh-share-date { color: #667; }
.hh-share-hint { text-align: center; color: #667; font-size: 0.9rem; margin: -8px 0 16px; }
.hh-share-card {
  background: white; border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.hh-share-card h3 { margin-top: 0; color: var(--seaweed); }
.hh-share-card h4 { margin: 12px 0 4px; color: var(--seaweed); }
.hh-share-list { margin: 0 0 8px; padding-left: 20px; }
.hh-share-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--silver-lake); }
.hh-share-row:last-child { border-bottom: none; }
.hh-share-item-label.done { color: #999; text-decoration: line-through; }
.hh-share-meal-row { display: flex; align-items: center; justify-content: space-between; }
.hh-share-edit-hint { cursor: pointer; }
.hh-share-card textarea.hh-input { width: 100%; font-family: inherit; resize: vertical; box-sizing: border-box; }

/* ---- Name tags / table labels — printable A4 sheets ---- */
.hh-tags-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .hh-tags-layout { grid-template-columns: 1fr; } }
.hh-tags-controls label { font-weight: 600; color: var(--seaweed); }
.hh-tags-controls textarea.hh-input { width: 100%; font-family: inherit; resize: vertical; }
.hh-tag-num { width: 5em; }
.hh-tag-picklist {
  max-height: 170px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
  padding: 8px 10px; background: white; border: 1px solid var(--silver-lake); border-radius: 8px;
}
.hh-tags-previewcol { min-width: 0; }
.hh-tag-preview { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hh-tag-page { background: white; box-shadow: 0 1px 6px rgba(0,0,0,0.2); overflow: hidden; flex: none; }

.hh-tag-sheet {
  width: 200mm; height: 286mm; display: grid; background: white; box-sizing: border-box;
  break-after: page; page-break-after: always;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.hh-tag-sheet:last-child { break-after: auto; page-break-after: auto; }
.hh-tag { position: relative; box-sizing: border-box; }
.hh-tag.guides { border: 0.2mm dashed #bdbdbd; }
.hh-tag-frame {
  position: absolute; inset: 2.5mm;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hh-tag-name { line-height: 1.15; overflow-wrap: normal; padding: 0 5%; color: #1b1b1b; }
.hh-tag-font-serif .hh-tag-name { font-family: Georgia, "Times New Roman", serif; }
.hh-tag-font-script .hh-tag-name { font-family: "Great Vibes", "Pinyon Script", cursive; }
.hh-tag-font-sans .hh-tag-name { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600; }

.hh-tag-border-single .hh-tag-frame { border: 0.4mm solid #222; }
.hh-tag-border-double .hh-tag-frame { border: 1.2mm double #222; }
.hh-tag-border-rounded .hh-tag-frame { border: 0.5mm solid #222; border-radius: 4mm; }
.hh-tag-border-fancy .hh-tag-frame { border: 0.6mm solid #111; outline: 0.25mm solid #111; outline-offset: 0.9mm; }
.hh-tag-border-gold .hh-tag-frame { border: 0.6mm solid #b8912f; outline: 0.25mm solid #b8912f; outline-offset: 0.9mm; }

.hh-tag-corner { position: absolute; width: 9mm; height: 9mm; display: block; }
.hh-tag-corner svg { width: 100%; height: 100%; display: block; }
.hh-tag-border-gold .hh-tag-corner { color: #b8912f; }
.hh-tag-border-fancy .hh-tag-corner { color: #111; }
.hh-tag-corner.tl { top: 1mm; left: 1mm; }
.hh-tag-corner.tr { top: 1mm; right: 1mm; transform: rotate(90deg); }
.hh-tag-corner.br { bottom: 1mm; right: 1mm; transform: rotate(180deg); }
.hh-tag-corner.bl { bottom: 1mm; left: 1mm; transform: rotate(270deg); }

#hh-print-root { display: none; }
@media print {
  body.hh-printing > *:not(#hh-print-root) { display: none !important; }
  body.hh-printing #hh-print-root { display: block; }
  html:has(body.hh-printing), body.hh-printing { height: auto !important; overflow: visible !important; background: white !important; }
}

/* An event's "Name tags" shortcut disappears while the Name Tags tab is switched off in Settings. */
body[data-hidden-tabs~="name-tags"] .hh-name-tags-link { display: none; }

.hh-check-row { display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---- Today ---- */
.hh-today-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.hh-today-seg { display: flex; gap: 4px; margin-right: 6px; }
.hh-today-label { min-width: 9rem; text-align: center; color: var(--seaweed); }
.hh-today-people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hh-today-person { border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 0.85rem; padding: 4px 12px; }
.hh-today-person.active { background: var(--seaweed); color: white; }
.hh-today-body.day { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.hh-today-section { background: white; border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.hh-today-section h4 { margin: 0 0 6px; color: var(--seaweed); }
.hh-today-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.95rem; }
.hh-today-row.link { color: var(--text); text-decoration: none; }
.hh-today-row.done span { text-decoration: line-through; opacity: 0.6; }
.hh-today-time { min-width: 3.4rem; font-size: 0.8rem; color: var(--lagoon); }
.hh-today-meal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: white; border-radius: var(--radius); padding: 4px 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-size: 0.9rem; }
.hh-today-meal.big { background: var(--wheat); padding: 6px 10px; }
.hh-today-meal.big .hh-today-meal-text { font-size: 1.05rem; font-weight: 600; }
.hh-today-meal-title { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--seaweed); min-width: 5rem; }
.hh-today-meal .hh-btn.small { padding: 2px 8px; font-size: 0.72rem; }
.hh-today-meal-text { flex: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hh-today-body.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: start; }
.hh-today-cell { background: white; border-radius: var(--radius); padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); font-size: 0.85rem; }
.hh-today-cell.today { outline: 2px solid var(--seaweed); }
.hh-today-cell .hh-today-meal { box-shadow: none; padding: 4px 0; background: none; gap: 4px; }
.hh-today-cell .hh-today-meal-title { min-width: 0; width: 100%; }
.hh-today-cell .hh-today-row { padding: 3px 0; font-size: 0.82rem; }
.hh-today-cell .hh-today-time { min-width: 0; }
.hh-today-daylink { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--silver-lake); padding: 0 0 4px; margin-bottom: 4px; font: inherit; font-weight: 700; color: var(--seaweed); cursor: pointer; }
.hh-today-daynum { font-weight: 400; color: var(--lagoon); }
@media (max-width: 760px) { .hh-today-body.week { grid-template-columns: 1fr; } }

.hh-toast.has-action { pointer-events: auto; }
.hh-toast-action { margin-left: 12px; background: none; border: 1px solid rgba(255,255,255,0.7); color: white; border-radius: 6px; padding: 2px 10px; font: inherit; cursor: pointer; }

/* ---- Tasks ---- */
.hh-tasks-tabs { flex-wrap: wrap; margin-bottom: 8px; }
.hh-task-group { margin-bottom: 14px; }
.hh-task-group h4 { margin: 0 0 4px; color: var(--seaweed); }
.hh-task-text { cursor: pointer; display: flex; flex-direction: column; }
.hh-task-notes { font-size: 0.78rem; color: #777; }
.hh-task-form { max-height: 70vh; overflow-y: auto; min-width: min(420px, 80vw); }
.hh-task-form label:not(.hh-check-row) { font-size: 0.85rem; color: var(--seaweed); font-weight: 600; }
.hh-task-every { width: 5rem; }
.hh-task-days { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.hh-today-add { max-width: 640px; }
.hh-today-add input[type="text"] { flex: 1; min-width: 10rem; }
.hh-task-form > * { flex-shrink: 0; }
.hh-task-form textarea { min-height: 3.6rem; }
.hh-task-row { flex-wrap: wrap; }
.hh-task-row .hh-task-text { flex: 1 1 10rem; }

/* ---- Lists (under Recipes & Lists) ---- */
.hh-list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; max-width: 760px; }
.hh-list-card { display: flex; flex-direction: column; gap: 4px; text-align: left; background: white; border: 0; border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); cursor: pointer; font: inherit; color: var(--text); }
.hh-list-card:hover { background: var(--lavender); }
.hh-list-head { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.hh-list-title { font-size: 1.2rem; font-weight: 700; color: var(--seaweed); max-width: 22rem; }
.hh-checklist { max-width: 640px; }
.hh-list-actions { margin-top: 14px; }

/* ---- Folders (a tab you name yourself that holds other tabs) ---- */
.hh-folder-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--silver-lake); }
.hh-folder-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font: inherit; font-size: 1rem; font-weight: 600; color: var(--seaweed); background: white; border: 2px solid var(--silver-lake); border-radius: 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.hh-folder-tab:hover { background: var(--lavender); }
.hh-folder-tab-icon { font-size: 1.35rem; line-height: 1; }
.hh-folder-tab.active { background: var(--seaweed); border-color: var(--seaweed); color: white; box-shadow: 0 2px 6px rgba(29,79,73,0.35); }
@media (max-width: 760px) { .hh-folder-tab { padding: 8px 12px; font-size: 0.92rem; } .hh-folder-tab-icon { font-size: 1.2rem; } }
.hh-folder-pane .hh-module { padding: 0; }
.hh-folder-pane .hh-module > h2 { display: none; }
.hh-layout-card { max-width: 520px; }
.hh-layout-root { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; }
.hh-layout-fixed { opacity: 0.85; }
.hh-tab-order-spacer { display: inline-block; width: 13px; }
.hh-folder-box { background: var(--silver-lake); border-radius: var(--radius); padding: 6px 8px 8px; }
.hh-folder-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.hh-folder-head .hh-folder-icon { width: 4rem; padding: 4px; }
.hh-folder-head .hh-folder-name { flex: 1; font-weight: 700; color: var(--seaweed); min-width: 0; }
.hh-folder-children { min-height: 36px; display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px dashed rgba(29,79,73,0.25); border-radius: 8px; background: rgba(255,255,255,0.5); }
.hh-folder-children:empty::before { content: "Drop tabs here"; font-size: 0.8rem; color: var(--lagoon); padding: 6px 4px; }
.hh-move-select { width: auto; max-width: 9rem; padding: 2px 4px; font-size: 0.78rem; }

/* ---- Cleaning ---- */
.hh-clean-add input[type="text"] { flex: 1; min-width: 9rem; }
.hh-clean-add select { max-width: 12rem; }

/* ---- Settings: condensed layout + appearance ---- */
.hh-settings .hh-settings-card { padding: 12px 14px; margin-bottom: 12px; }
.hh-settings .hh-settings-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.hh-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; max-width: 900px; }
.hh-settings-grid .hh-settings-card { max-width: none; margin-bottom: 0; }
.hh-settings-card .hh-keep-hint { font-size: 0.8rem; margin: 6px 0; }
.hh-settings-logout { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--silver-lake); }
.hh-appearance-card { max-width: 640px; }
.hh-appearance-group { margin-bottom: 12px; }
.hh-appearance-group h4 { margin: 0 0 6px; color: var(--seaweed); font-size: 0.9rem; }
.hh-appearance-row { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-theme-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font: inherit; background: white; border: 2px solid var(--silver-lake); border-radius: 10px; cursor: pointer; color: var(--text); }
.hh-theme-btn.active { border-color: var(--seaweed); box-shadow: 0 0 0 2px var(--seaweed) inset; font-weight: 700; }
.hh-swatches { display: inline-flex; }
.hh-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); margin-right: -4px; }

/* ---- Cleaning zone plans ---- */
.hh-plans { max-width: 760px; }
.hh-plan-card { max-width: none; }
.hh-plan-status { margin: 0 0 8px; color: var(--seaweed); font-weight: 600; }
.hh-plan-current { background: var(--wheat); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; }
.hh-plan-current-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.hh-plan-actions { margin: 8px 0; }
.hh-plan-timeline summary { cursor: pointer; color: var(--lagoon); font-size: 0.85rem; padding: 4px 0; }
.hh-plan-line { display: flex; gap: 10px; align-items: center; padding: 3px 6px; font-size: 0.85rem; border-radius: 6px; flex-wrap: wrap; }
.hh-plan-line.current { background: var(--lavender); font-weight: 700; }
.hh-plan-line.skipped { opacity: 0.5; text-decoration: line-through; }
.hh-plan-dates { min-width: 8.5rem; color: var(--lagoon); font-weight: 400; }
.hh-plan-edit { border-top: 1px solid var(--silver-lake); margin-top: 8px; padding-top: 8px; }
.hh-plan-edit h4 { margin: 12px 0 6px; color: var(--seaweed); }
.hh-zone-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.hh-zone-row { background: var(--bg); border: 1px solid var(--silver-lake); border-radius: 8px; padding: 6px 8px; }
.hh-zone-row.skipped .hh-folder-name, .hh-zone-row.skipped input.hh-inline-edit { text-decoration: line-through; opacity: 0.6; }
.hh-zone-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hh-zone-head .hh-inline-edit { flex: 1 1 10rem; min-width: 8rem; }
.hh-zone-weeks { width: 4.2rem; padding: 4px 6px; }
.hh-zone-skip { font-size: 0.8rem; white-space: nowrap; }
.hh-zone-jobs { margin: 6px 0 2px 22px; }
.hh-plan-delete { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--silver-lake); }

/* ---- phones (narrow screens, e.g. a Galaxy S24 at about 360px wide) ---- */
@media (max-width: 480px) {
  .hh-header { padding: 6px 10px; gap: 8px; }
  .hh-header-actions { gap: 4px; }
  .hh-icon-btn { width: 34px; height: 34px; font-size: 1rem; }
  body[data-layout="portrait"] .hh-clock { flex-wrap: wrap; justify-content: flex-start; column-gap: 8px; }
  body[data-layout="portrait"] .hh-clock-date { font-size: 0.72rem; }
  .hh-main { padding: 10px; }
  .hh-modal { padding: 14px; min-width: 0; width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: 88vh; overflow-y: auto; }
  .hh-task-form { min-width: 0 !important; }
}

@media (max-width: 480px) {
  .hh-brand { display: none; }
  .hh-clock-time { font-size: 1.1rem; white-space: nowrap; }
  .hh-clock-date { white-space: nowrap; }
  body[data-layout] .hh-clock { flex-wrap: nowrap; }
  .hh-settings-subnav .hh-btn { padding: 6px 10px; font-size: 0.85rem; }
  .hh-move-select { max-width: 6.5rem; }
  .hh-tab-order-row { gap: 6px; }
  .hh-settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .hh-clock-date { display: none; } /* the date is on the Today page; this keeps all four header buttons on screen */
}
/* editable text inside a row must shrink to fit, leaving room for the buttons beside it */
.hh-shopping-row .hh-inline-edit, .hh-today-row .hh-inline-edit { flex: 1 1 auto; min-width: 0; width: auto; }
@media (max-width: 480px) {
  /* event prep / meal / shopping rows: when the buttons beside the text don't fit, drop them to a second line */
  .hh-event-item-row { flex-wrap: wrap; }
  .hh-event-item-row input.hh-inline-edit { min-width: 7rem; }
  .hh-event-item-row.hh-prep-row { flex-wrap: nowrap; }
  .hh-event-item-row.hh-prep-row input.hh-inline-edit { min-width: 8rem; }
}

.hh-pin-warning { background: #fdecc8; border: 1px solid var(--melon); color: #5b2b00; border-radius: 8px; padding: 8px 10px; font-size: 0.85rem; margin-bottom: 10px; }
.hh-settings-logout { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- first-time setup ---- */
.hh-setup { position: fixed; inset: 0; z-index: 1000; background: var(--bg); overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; padding: 16px; }
.hh-setup-card { width: min(560px, 100%); margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.hh-setup-card h2 { margin: 0; color: var(--seaweed); }
.hh-setup-card h4 { margin: 8px 0 0; color: var(--seaweed); }
.hh-setup-progress { font-size: 0.8rem; color: var(--lagoon); font-weight: 600; letter-spacing: 0.03em; }
.hh-setup-lead { margin: 0; color: #4a5a57; }
.hh-setup-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.hh-setup-actions .hh-btn { min-width: 96px; padding: 10px 16px; }
.hh-setup-skip { background: none; border: 0; color: var(--lagoon); text-decoration: underline; align-self: center; padding: 6px; }
.hh-setup-people { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-setup-x { background: none; border: 0; padding: 0 2px; font-size: 1rem; line-height: 1; color: var(--seaweed); }
.hh-setup-tab { align-items: flex-start; padding: 4px 0; }
.hh-setup-tab input { margin-top: 4px; }
.hh-setup-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* ---- dates, week & meals form ---- */
.hh-regional-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--seaweed); font-weight: 600; }
.hh-regional-field .hh-input { font-weight: 400; }
.hh-regional-days { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 400; color: var(--text); }

/* ---- empty states and first-visit tips ---- */
.hh-empty { text-align: center; padding: 28px 16px; color: #4a5a57; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hh-empty-icon { font-size: 2.2rem; line-height: 1; }
.hh-empty strong { color: var(--seaweed); font-size: 1.05rem; }
.hh-empty p { margin: 0; max-width: 460px; }
.hh-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--wheat); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; color: var(--seaweed); }
.hh-tip-icon { font-size: 1.3rem; line-height: 1.2; }
.hh-tip-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hh-tip-body span { color: var(--text); }
.hh-tip-actions { display: flex; gap: 12px; margin-top: 4px; }
.hh-tip-actions button { background: none; border: 0; padding: 2px 0; color: var(--seaweed); text-decoration: underline; }
.hh-tip-actions button.primary { font-weight: 700; }

/* ---- calendars: colour markers ---- */
.hh-cal-dot { display: inline-block; width: 0.65em; height: 0.65em; border-radius: 50%; margin-right: 6px; vertical-align: baseline; flex: none; }
.hh-cal-chip { padding-left: 4px; }

/* ---- Settings: calendars ---- */
.hh-calendars-card h4 { margin: 14px 0 4px; color: var(--seaweed); }
.hh-calendar-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; flex-wrap: wrap; }
.hh-calendar-name { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.hh-calendar-new { white-space: nowrap; font-size: 0.8rem; color: #4a5a57; display: flex; align-items: center; gap: 4px; }
.hh-colour-input { width: 30px; height: 26px; padding: 0; border: 1px solid var(--silver-lake); border-radius: 6px; background: none; cursor: pointer; }
.hh-calendars-card { max-width: 900px; }

/* ---- celebrations (public/confetti.js) ---- */
.hh-fun { position: fixed; inset: 0; pointer-events: none; z-index: 3000; overflow: hidden; }
.hh-fun-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3000; }
.hh-fun-runner { position: absolute; left: 0; bottom: 14vh; will-change: transform; animation-fill-mode: both; }
.hh-fun-sparkle { position: absolute; opacity: 0; animation: hh-fun-twinkle 1.1s ease-in-out both; }
@keyframes hh-fun-twinkle {
  0% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.15) rotate(40deg); }
  100% { opacity: 0; transform: scale(0.4) rotate(90deg) translateY(-30px); }
}

/* balloons */
.hh-fun-balloon { position: absolute; bottom: -16vh; line-height: 1; animation: hh-fun-rise 4s ease-in both; }
@keyframes hh-fun-rise {
  0% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(18px, -60vh) rotate(6deg); }
  100% { transform: translate(-14px, -128vh) rotate(-4deg); }
}

/* unicorn: gallops across with a rainbow behind it */
.hh-fun-unicorn-run { bottom: 22vh; animation: hh-fun-cross 2.8s linear both; }
@keyframes hh-fun-cross { from { transform: translateX(-14vw); } to { transform: translateX(104vw); } }
.hh-fun-unicorn { font-size: 104px; line-height: 1; transform-origin: 50% 90%; animation: hh-fun-prance 0.9s ease-in-out infinite; }
@keyframes hh-fun-prance {
  0%, 50%, 100% { transform: translateY(0) rotate(-5deg); }
  25%, 75% { transform: translateY(-34px) rotate(6deg); }
}
.hh-fun-rainbow {
  position: absolute; left: 0; width: 100vw; bottom: calc(22vh + 26px); height: 54px; border-radius: 27px; opacity: 0.92;
  background: linear-gradient(to bottom, #ff5d5d 0 16.6%, #ff9f1c 16.6% 33.3%, #ffd23f 33.3% 50%, #56c271 50% 66.6%, #4a90e2 66.6% 83.3%, #a06cd5 83.3%);
  clip-path: inset(0 100% 0 0);
  animation: hh-fun-reveal 2.8s linear forwards, hh-fun-fade 0.8s ease-in 3.1s forwards;
}
@keyframes hh-fun-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes hh-fun-fade { to { opacity: 0; } }

/* frog in gumboots: hops across */
.hh-fun-frog-run { bottom: 7vh; animation: hh-fun-cross-slow 3.4s linear both; }
@keyframes hh-fun-cross-slow { from { transform: translateX(-18vw); } to { transform: translateX(108vw); } }
.hh-fun-frog { line-height: 0; transform-origin: 50% 100%; animation: hh-fun-hop 0.68s cubic-bezier(0.3, 0.7, 0.5, 1) infinite; }
@keyframes hh-fun-hop {
  0% { transform: translateY(0) scale(1.12, 0.86); }
  18% { transform: translateY(0) scale(0.92, 1.12); }
  50% { transform: translateY(-17vh) rotate(-6deg) scale(1, 1); }
  82% { transform: translateY(0) scale(0.95, 1.06); }
  100% { transform: translateY(0) scale(1.12, 0.86); }
}
.hh-fun-bubble { position: absolute; left: 42vw; bottom: 40vh; background: #fff; color: #1D4F49; font-weight: 800; font-size: 1.6rem; padding: 8px 16px; border-radius: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); opacity: 0; animation: hh-fun-pop 1.2s ease-out both; }
@keyframes hh-fun-pop {
  0% { opacity: 0; transform: scale(0.3); }
  20% { opacity: 1; transform: scale(1.15); }
  70% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1) translateY(-20px); }
}

/* dancing croissant (in sunglasses) with music notes */
.hh-fun-croissant { position: absolute; left: 50%; bottom: 22vh; margin-left: -70px; width: 140px; animation: hh-fun-stage 4s ease-in-out both; }
@keyframes hh-fun-stage {
  0% { transform: translateY(45vh); opacity: 0; }
  12%, 88% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(45vh); opacity: 0; }
}
.hh-fun-croissant-body { position: relative; font-size: 130px; line-height: 1; transform-origin: 50% 90%; animation: hh-fun-boogie 0.6s ease-in-out infinite; }
@keyframes hh-fun-boogie {
  0%, 100% { transform: rotate(-16deg) translateY(0) scale(1); }
  25%, 75% { transform: rotate(0deg) translateY(-26px) scale(1.06, 0.96); }
  50% { transform: rotate(16deg) translateY(0) scale(1); }
}
.hh-fun-croissant-shades { position: absolute; left: 34px; top: 26px; font-size: 56px; line-height: 1; }
.hh-fun-note { position: absolute; bottom: 30vh; opacity: 0; font-weight: 800; animation: hh-fun-float 2.2s ease-out both; }
@keyframes hh-fun-float {
  0% { opacity: 0; transform: translateY(0) rotate(-10deg); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-36vh) translateX(20px) rotate(14deg); }
}

/* rocket */
.hh-fun-rocket { position: absolute; left: 0; bottom: 0; font-size: 96px; line-height: 1; animation: hh-fun-launch 2.3s ease-in both; }
@keyframes hh-fun-launch { from { transform: translate(-6vw, 6vh); } to { transform: translate(104vw, -112vh); } }
.hh-fun-puff { position: absolute; font-size: 44px; line-height: 1; opacity: 0; animation: hh-fun-puff 1s ease-out both; }
@keyframes hh-fun-puff {
  0% { opacity: 0; transform: scale(0.4); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.8) translateY(-10px); }
}

/* penguin conga line */
.hh-fun-penguin-run { animation: hh-fun-slide 3.2s ease-in-out both; }
@keyframes hh-fun-slide { from { transform: translateX(-14vw); } to { transform: translateX(108vw); } }
.hh-fun-penguin { font-size: 74px; line-height: 1; animation: hh-fun-waddle 0.5s ease-in-out infinite; }
@keyframes hh-fun-waddle {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-10px); }
}

/* disco llama */
.hh-fun-disco { position: absolute; inset: 0; opacity: 1; animation: hh-fun-disco 4.2s linear both; }
@keyframes hh-fun-disco {
  0% { background: rgba(255, 93, 143, 0); }
  8% { background: rgba(255, 93, 143, 0.28); }
  22% { background: rgba(255, 210, 63, 0.28); }
  36% { background: rgba(78, 205, 196, 0.28); }
  50% { background: rgba(160, 108, 213, 0.28); }
  64% { background: rgba(255, 159, 28, 0.28); }
  78% { background: rgba(90, 185, 234, 0.28); }
  92% { background: rgba(255, 93, 143, 0.2); }
  100% { background: rgba(255, 93, 143, 0); }
}
.hh-fun-llama { position: absolute; left: 50%; bottom: 20vh; margin-left: -62px; animation: hh-fun-stage 4.2s ease-in-out both; }
.hh-fun-llama-inner { font-size: 124px; line-height: 1; transform-origin: 50% 100%; animation: hh-fun-sway 0.7s ease-in-out infinite; }
@keyframes hh-fun-sway {
  0%, 100% { transform: rotate(-14deg) translateX(-14px); }
  50% { transform: rotate(14deg) translateX(14px) translateY(-14px); }
}

/* ---- celebrations, part 2: the shared movements and the extra scenes ---- */
.hh-fun-x { position: absolute; left: 0; will-change: transform; animation: hh-fun-x-move var(--dur, 3.4s) linear both; }
@keyframes hh-fun-x-move { from { transform: translateX(-20vw); } to { transform: translateX(112vw); } }
.hh-fun-x > div { line-height: 1; transform-origin: 50% 100%; }

.hh-fun-move-bob { animation: hh-fun-bob 0.55s ease-in-out infinite; }
@keyframes hh-fun-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
.hh-fun-move-stomp { animation: hh-fun-stomp 0.62s ease-in-out infinite; }
@keyframes hh-fun-stomp { 0%, 100% { transform: translateY(0) rotate(-7deg) scale(1.04, 0.96); } 50% { transform: translateY(-22px) rotate(7deg) scale(0.98, 1.04); } }
.hh-fun-move-glide { animation: hh-fun-glide 1.6s ease-in-out infinite; }
@keyframes hh-fun-glide { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.hh-fun-move-waddle { animation: hh-fun-waddle 0.5s ease-in-out infinite; }
.hh-fun-move-boogie { animation: hh-fun-boogie 0.6s ease-in-out infinite; transform-origin: 50% 90%; }
.hh-fun-move-leap { animation: hh-fun-leap 1.8s ease-in-out infinite; }
@keyframes hh-fun-leap {
  0%, 100% { transform: translateY(9vh) rotate(60deg); }
  30% { transform: translateY(-18vh) rotate(0deg); }
  55% { transform: translateY(9vh) rotate(-60deg); }
}
.hh-fun-move-fly { animation: hh-fun-fly 1.2s ease-in-out infinite; }
@keyframes hh-fun-fly { 0%, 100% { transform: translateY(0) rotate(-16deg); } 50% { transform: translateY(-24px) rotate(-8deg); } }

/* a row of dancers on stage */
.hh-fun-row { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; animation: hh-fun-stage 4.4s ease-in-out both; }
.hh-fun-row > div { line-height: 1; }

/* things that fall from the top */
.hh-fun-fall { position: absolute; top: -14vh; line-height: 1; animation: hh-fun-fall var(--dur, 3.4s) linear both; }
@keyframes hh-fun-fall { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(128vh) rotate(var(--spin, 360deg)); } }
.hh-fun-drift { animation-name: hh-fun-fall-drift; }
@keyframes hh-fun-fall-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, 32vh) rotate(60deg); }
  50% { transform: translate(-26px, 64vh) rotate(120deg); }
  75% { transform: translate(28px, 96vh) rotate(180deg); }
  100% { transform: translate(-10px, 128vh) rotate(240deg); }
}

/* shooting stars */
.hh-fun-shoot { position: absolute; line-height: 1; opacity: 0; animation: hh-fun-shoot 1.3s ease-in both; }
@keyframes hh-fun-shoot {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(70vw, 55vh) scale(1.2); }
}

/* trophy */
.hh-fun-trophy { position: absolute; left: 50%; bottom: 30vh; margin-left: -70px; font-size: 140px; line-height: 1; filter: drop-shadow(0 0 22px gold); animation: hh-fun-trophy 4.2s ease-in-out both; }
@keyframes hh-fun-trophy {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  14% { transform: scale(1.25) rotate(8deg); opacity: 1; }
  22% { transform: scale(1) rotate(-4deg); }
  38% { transform: scale(1.06) rotate(4deg); }
  54% { transform: scale(1) rotate(-4deg); }
  90% { transform: scale(1.04) rotate(3deg); opacity: 1; }
  100% { transform: scale(0.4); opacity: 0; }
}

/* sea and whale */
.hh-fun-sea { position: absolute; left: -4vw; bottom: -2vh; width: 120vw; white-space: nowrap; font-size: 64px; line-height: 1; animation: hh-fun-wave 1.4s ease-in-out infinite alternate, hh-fun-sea-fade 4.6s ease-in-out both; }
@keyframes hh-fun-wave { from { transform: translateX(0); } to { transform: translateX(-18px); } }
@keyframes hh-fun-sea-fade { 0% { opacity: 0; } 10%, 85% { opacity: 1; } 100% { opacity: 0; } }
.hh-fun-whale { position: absolute; left: 50%; bottom: -8vh; margin-left: -90px; font-size: 180px; line-height: 1; animation: hh-fun-breach 4.4s ease-in-out both; }
@keyframes hh-fun-breach {
  0% { transform: translateY(40vh); }
  22% { transform: translateY(-34vh) rotate(-6deg); }
  50% { transform: translateY(-30vh) rotate(4deg); }
  80% { transform: translateY(-34vh) rotate(-3deg); }
  100% { transform: translateY(40vh); }
}
.hh-fun-spout { position: absolute; bottom: 48vh; font-size: 48px; line-height: 1; opacity: 0; animation: hh-fun-spout 1.4s ease-out both; }
@keyframes hh-fun-spout { 0% { opacity: 0; transform: translateY(0) scale(0.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26vh) scale(1.2); } }

/* two things stacked (a sloth on a skateboard, a cat on a drum) */
.hh-fun-stack { position: relative; width: 150px; height: 160px; }
.hh-fun-stack-top { position: absolute; left: 14px; top: 0; font-size: 110px; line-height: 1; }
.hh-fun-stack-bottom { position: absolute; left: 24px; top: 82px; font-size: 80px; line-height: 1; }

/* the superhero's wind and the dragon's fire */
.hh-fun-trail { position: absolute; line-height: 1; opacity: 0; animation: hh-fun-puff 1s ease-out both; }

/* bouncing balls */
.hh-fun-ball { line-height: 1; transform-origin: 50% 100%; animation: hh-fun-ball-bounce 1.6s ease-in infinite; }
@keyframes hh-fun-ball-bounce {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-30vh); }
  40% { transform: translateY(0); }
  55% { transform: translateY(-16vh); }
  70% { transform: translateY(0); }
  82% { transform: translateY(-7vh); }
  92% { transform: translateY(0); }
}

/* wise owl */
.hh-fun-owl { position: relative; font-size: 130px; line-height: 1; transform-origin: 50% 100%; animation: hh-fun-nod 1s ease-in-out infinite; }
@keyframes hh-fun-nod { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-8px); } }
.hh-fun-owl-cap { position: absolute; left: 40px; top: -26px; font-size: 64px; line-height: 1; transform: rotate(-8deg); }

/* whole event coloured by its calendar (Settings, Calendars) */
.hh-cal-filled { border-radius: 6px; padding-left: 8px; padding-right: 8px; margin-bottom: 3px; border-bottom-color: transparent; }
.hh-cal-chip[style*="background"] { border-radius: 4px; }
.hh-cal-filled .hh-today-time { color: inherit; opacity: 0.85; }
