@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-700.woff2") format("woff2");
}

:root {
  --bg: #FAF9F7;
  --text: #1a1a17;
  --muted: #8b8a82;
  --muted-sub: #9a998f;
  --muted-faint: #a9a89e;
  --accent: #5F8168;
  --accent-press: #4d6b54;
  --accent-text: #fff;
  --danger: #c2410c;
  --success: #5F8168;
  --card-bg: #fff;
  --card-border: #EFEDE7;
  --input-border: #e6e4dc;
  --scrim: rgba(26, 24, 20, 0.4);
  --toast-bg: #1a1a17;
  --toast-check: #8fd0a0;
  /* Legacy aliases */
  --surface: var(--card-bg);
  --surface-2: var(--input-border);
  --surface-elevated: var(--card-bg);
  --border: var(--card-border);
  /* Activity tiles */
  --tile-sleep-bg: #ECE9F6;
  --tile-sleep-icon: #6B5FA8;
  --tile-sleep-label: #4a4468;
  --tile-feed-bg: #FBE7DA;
  --tile-feed-icon: #C0703F;
  --tile-feed-label: #7a4522;
  --tile-diaper-bg: #E4EEE4;
  --tile-diaper-icon: #5F8168;
  --tile-diaper-label: #385a3f;
  --tile-note-bg: #F3ECDA;
  --tile-note-icon: #9C7E3F;
  --tile-note-label: #6e5624;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sheet: 30px;
  --radius-pill: 100px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sheet: 0 -12px 40px rgba(0, 0, 0, 0.18);
  --focus-ring: 0 0 0 3px rgba(95, 129, 104, 0.35);
  /* Task categories */
  --cat-cocina-tile: #E4EEE4;
  --cat-cocina-accent: #5F8168;
  --cat-cocina-label: #385a3f;
  --cat-bano-tile: #E7EDF4;
  --cat-bano-accent: #5D7C9C;
  --cat-bano-label: #3f5772;
  --cat-sala-tile: #FBE7DA;
  --cat-sala-accent: #C0703F;
  --cat-sala-label: #7a4522;
  --cat-ropa-tile: #ECE9F6;
  --cat-ropa-accent: #6B5FA8;
  --cat-ropa-label: #4a4468;
  --cat-patio-tile: #F3ECDA;
  --cat-patio-accent: #9C7E3F;
  --cat-patio-label: #6e5624;
  /* Planner states */
  --rec-bg: #FBEAE6;
  --rec-border: #E6BDB0;
  --rec-text: #C2503C;
  --saved-bg: #EAF0EA;
  --saved-border: #cfe0d2;
  --saved-text: #385a3f;
  --drop-placeholder-border: #9db8a6;
  --drop-placeholder-bg: rgba(95, 129, 104, 0.09);
  --nav-btn-bg: #F4F2EC;
  --radius-card: 18px;
  --warn-bg: #F5EAD1;
  --warn-accent: #9C7E3F;
  --admin-appbar-block: calc(54px + max(12px, env(safe-area-inset-top)));
  --planner-week-nav-block: calc(36px + 6px);
  --planner-vv-top: 0px;
  --planner-vv-bottom: 0px;
  --planner-vv-height: 100dvh;
  --admin-bottom-bar-block: calc(64px + max(8px, env(safe-area-inset-bottom)) + var(--planner-vv-bottom, 0px));
  --planner-footer-block: calc(72px + max(20px, env(safe-area-inset-bottom)) + var(--planner-vv-bottom, 0px));
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
}
html { touch-action: manipulation; }

.wrap {
  max-width: 430px;
  margin: 0 auto;
  padding:
    max(var(--space-4), env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(40px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  min-height: 100vh;
}
.wrap.wrap--admin { max-width: 900px; }
.wrap.wrap--admin.blue-admin-wrap { max-width: 440px; }
/* Viewport-locked admin shells: prevent page scroll (iOS Safari). */
body.admin-body--planner {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: var(--planner-vv-top, 0px);
  height: var(--planner-vv-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
}
body.admin-body--library {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: var(--planner-vv-top, 0px);
  height: var(--planner-vv-height, 100dvh);
  overflow: hidden;
  overscroll-behavior: none;
}

.wrap.wrap--admin-home {
  display: block;
  height: auto;
  max-height: none;
  min-height: 100%;
  overflow: visible;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.wrap.wrap--admin-home > .flash,
.wrap.wrap--admin-home > .alert-error,
.wrap.wrap--admin-planner > .flash,
.wrap.wrap--admin-planner > .alert-error {
  flex-shrink: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand { font-size: 22px; font-weight: 700; }
.greeting { color: var(--text); font-size: 22px; font-weight: 600; margin: 0 0 var(--space-4); }
.page-lead { margin: 0 0 var(--space-4); font-size: 18px; }

h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.5px; margin: 6px 2px 4px; }
h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; margin: 0 0 12px; }

/* Buttons: minimum 56px tall, >=22px text. */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  margin: 12px 0;
  border: none;
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1.5px solid var(--input-border);
}
.btn:active { transform: scale(0.99); }
.btn[hidden] { display: none !important; }

.btn-primary { background: var(--accent); color: var(--accent-text); border: none; }
.btn-primary:active { background: var(--accent-press); }

.btn-big { min-height: 132px; font-size: 26px; flex-direction: column; gap: 6px; }
.btn-big .sub { font-size: 16px; font-weight: 500; opacity: 0.85; }

.btn-ghost { background: var(--card-bg); border: 1.5px solid var(--input-border); color: var(--text); }
.btn-link { background: none; color: var(--accent); font-size: 18px; min-height: 48px; border: none; cursor: pointer; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
}
.card h2 { color: var(--muted); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
  font-size: 19px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--muted); }
.summary-row .value { font-weight: 600; }

.field { margin: 18px 0; }
.field label { display: block; font-size: 18px; margin-bottom: 8px; color: var(--muted); }
.field input[type="text"],
.field input[type="password"] {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
}

/* Stepper: big +/- so no keyboard is needed. */
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
}
.stepper output {
  flex: 1;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
}
.stepper .unit { font-size: 18px; color: var(--muted); }

.toggle { display: flex; gap: 12px; }
.toggle .opt {
  flex: 1;
  min-height: 60px;
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.toggle .opt.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.flash,
.alert-success {
  background: #e8f0ea;
  color: #2d4a36;
  border: 1px solid #c5d9ca;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.alert-error,
.flash-error {
  background: #fef2f2;
  color: #9a3412;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.error { color: var(--danger); font-size: 18px; margin: 8px 0; }
.muted { color: var(--muted); }
.placeholder { border: 2px dashed var(--surface-2); border-radius: var(--radius); padding: 20px; color: var(--muted); text-align: center; }

.empty-state {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}
.empty-state p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

/* Baby quick actions — 2×2 grid on employee home */
.baby-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.baby-quick-form { margin: 0; }
.btn-quick {
  min-height: 72px;
  margin: 0;
  font-size: 20px;
  background: var(--surface-elevated);
  border: 2px solid var(--border);
}
.btn-quick:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Employee task list */
.task-section { margin-top: var(--space-4); }
.task-section > h2 { font-size: 20px; margin: 0 0 var(--space-2); color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.task-empty { margin: 0; font-size: 18px; }

.task-list { list-style: none; margin: 0; padding: 0; }

/* Task card v2 — home screen */
.task-card-v2 {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin: var(--space-3) 0;
  overflow: hidden;
}
.task-card-v2.is-done { opacity: 0.75; }
.task-card-body { padding: var(--space-4); }
.task-card-title {
  margin: 0 0 var(--space-1);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.task-card-v2.is-done .task-card-title {
  text-decoration: line-through;
  color: var(--muted);
}
.task-card-hint {
  margin: 0 0 var(--space-2);
  font-size: 18px;
  color: var(--muted);
  line-height: 1.4;
}
.task-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.task-chip {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
}
.task-chip-done {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}
.task-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: 0 var(--space-4) var(--space-4);
}
.task-card-actions .task-complete-form { margin: 0; padding: 0; }
.btn-task-action {
  min-height: 56px;
  margin: 0;
  font-size: 20px;
}

.task-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin: 12px 0;
  overflow: hidden;
}
.task-item.is-done { opacity: 0.72; }

.task-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  min-height: 64px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.task-link:active { background: var(--surface-2); }

.task-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 3px solid var(--surface-2);
}
.task-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}
.task-check.checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 14px;
  border: solid #052e22;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.task-name { font-size: 22px; font-weight: 600; line-height: 1.3; }
.task-item.is-done .task-name { text-decoration: line-through; color: var(--muted); }

.task-complete-form { padding: 0 18px 18px; }
.btn-task-done { min-height: 56px; font-size: 20px; margin: 0; }
.task-done-label {
  display: block;
  padding: 0 18px 18px;
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
}

.task-instructions { font-size: 20px; line-height: 1.55; white-space: normal; }
.task-done-note {
  font-size: 20px;
  color: var(--accent);
  font-weight: 600;
  margin: 16px 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-wrap--upload {
  padding-bottom: 0;
  height: auto;
}
.video-wrap--upload video {
  position: static;
  width: 100%;
  display: block;
  border: 0;
  border-radius: 12px;
  background: #000;
  max-height: 70vh;
}

/* Admin task management */
.admin-subheading { font-size: 18px; margin: 20px 0 12px; color: var(--muted); }
.admin-date-filter { margin-bottom: 8px; }

.field input[type="date"],
.field input[type="number"],
.field textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 14px;
  border: 2px solid var(--surface-2);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="date"] { min-height: 56px; }

.admin-task-list { list-style: none; margin: 0; padding: 0; }
.admin-task-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-2);
}
.admin-task-item:last-child { border-bottom: none; }
.admin-task-main { flex: 1; min-width: 0; }
.admin-task-meta { display: block; font-size: 16px; margin-top: 4px; }
.admin-task-instructions {
  margin: 8px 0 0;
  font-size: 16px;
  color: var(--muted);
  white-space: pre-wrap;
}
.admin-task-delete { flex-shrink: 0; }
.btn-danger-text { color: var(--danger); border-color: var(--danger); font-size: 16px; min-height: 48px; padding: 10px 14px; }

/* Admin nav + planner */
.admin-nav-links { margin: 0 0 16px; }
.admin-nav-links a { color: var(--accent); margin-right: 16px; }
.admin-nav-desc { color: var(--muted); margin: 0 0 16px; font-size: 17px; }
.admin-nav-desc + .btn { margin-bottom: 10px; }

.planner-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.week-nav { display: flex; align-items: center; gap: 10px; flex: 1; }
.week-label { font-size: 18px; font-weight: 600; }
.planner-draft-note { width: 100%; margin: 8px 0 0; font-size: 16px; }
.planner-day-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.planner-day-header h2 { margin: 0; font-size: 18px; }
.planner-minutes { font-size: 16px; color: var(--muted); font-weight: 600; }
.planner-task-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.planner-add-oneoff { margin-top: 12px; }
.planner-add-oneoff summary { cursor: pointer; color: var(--accent); font-size: 17px; padding: 8px 0; }

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  margin-left: 6px;
  vertical-align: middle;
}
.badge-recurring { background: #e8ecf2; color: #4a5f7a; }
.badge-oneoff { background: var(--input-border); color: var(--muted); }
.badge-overdue { background: #fce8dc; color: #9a3412; }

.planner-section-label {
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.planner-section-label:first-child { margin-top: 0; }
.planner-overdue-summary h2 { margin: 0 0 8px; font-size: 18px; }
.planner-day-sections { margin-bottom: 8px; }

.planner-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.planner-drag-handle {
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  font-size: 20px;
  line-height: 1;
  padding: 10px 4px;
  color: var(--muted);
}
.planner-task-item.is-dragging { opacity: 0.45; }
.planner-sortable-list.is-drag-over { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 12px; }

.history-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.history-search-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; }
.history-search-input {
  flex: 1;
  min-width: 160px;
  min-height: 44px;
  font-size: 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--surface-2);
  padding: 0 12px;
}
.history-filters { display: flex; gap: 8px; }
.history-alert {
  border-left: 4px solid #ea580c;
  background: #fff7ed;
}
.history-alert-list { margin: 8px 0 0; padding-left: 20px; }
.history-task-missed { border-left: 3px solid #f97316; padding-left: 10px; }

.admin-select {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--surface-2);
  padding: 0 12px;
}
.admin-select-inline {
  min-height: 44px;
  font-size: 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--surface-2);
  padding: 0 8px;
}
.inline-form { display: inline; }
.btn-small { min-height: 44px; font-size: 16px; padding: 10px 14px; margin: 0; }

.weekday-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.weekday-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  cursor: pointer;
}
.label-block { display: block; font-size: 18px; margin-bottom: 8px; color: var(--muted); }
.recurrence-field { margin-top: 12px; }

.admin-template-list { list-style: none; margin: 0; padding: 0; }
.admin-template-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-2);
}
.admin-template-item:last-child { border-bottom: none; }
.admin-template-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Task completion (employee) */
.completion-form { margin-top: 8px; }

.completion-wizard .completion-step-label {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  text-align: center;
}
.completion-wizard-step { margin-bottom: var(--space-3); }

.feed-wizard-step { margin-bottom: var(--space-2); }
.feed-wizard-error {
  color: #c44;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}
.completion-step-error {
  margin: var(--space-2) 0 0;
  color: var(--danger);
  font-size: 18px;
  font-weight: 600;
}
.completion-wizard-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.completion-wizard-nav .btn { margin: 0; }
.feed-wizard-nav {
  display: flex;
  margin-bottom: var(--space-2);
}
.feed-wizard-nav .btn {
  margin: 0;
  min-height: 56px;
  min-width: 56px;
  font-size: var(--emp-body, 18px);
}
.wizard-step-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.wizard-step-header .sheet-block-label {
  margin: 0;
  flex: 1;
}
.wizard-step-back {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wizard-step-back svg { width: 22px; height: 22px; }
.sleep-wizard .btn-primary { margin-top: 8px; }
.sleep-wizard-nap-label { margin-top: var(--space-3); }
.completion-question-text {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.35;
}
.choice-group { display: flex; flex-direction: column; gap: 10px; }
.choice-option {
  display: block;
  position: relative;
  cursor: pointer;
}
.choice-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.choice-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--surface-2);
  background: var(--surface);
  font-size: 22px;
  font-weight: 600;
}
.choice-option input:checked + span {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.completion-text-input {
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  font-size: 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
}
.photo-picker-wrap {
  position: relative;
  display: block;
  margin-top: 12px;
  min-height: 64px;
}
.photo-picker-btn {
  margin: 0;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.photo-input-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 22px;
  z-index: 2;
}
.photo-error-banner {
  background: #fef2f2;
  color: #9a3412;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
}
.photo-preview-wrap { margin-top: 14px; }
.photo-preview {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 2px solid var(--surface-2);
}

/* Admin completion config */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  cursor: pointer;
}
.completion-questions { margin-top: 16px; }
.completion-questions-note { font-size: 16px; margin: 0 0 12px; }
.completion-question-row {
  padding: 12px 0;
  border-top: 1px solid var(--surface-2);
}
.history-photo-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--surface-2);
}
.history-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.history-answers {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-size: 16px;
}
.history-answers li { margin: 4px 0; }
.history-answer-label { color: var(--muted); }
.history-baby-list { list-style: none; margin: 0; padding: 0; }
.history-baby-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-2);
  font-size: 17px;
}
.history-baby-item:last-child { border-bottom: none; }
.history-baby-time { font-weight: 700; min-width: 52px; }
.history-baby-summary { flex: 1; min-width: 0; }
.history-baby-by {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.history-toolbar { margin-bottom: 0; }
.history-date-form { display: inline-flex; align-items: center; }
.feed-spitup-note { margin: 0 0 var(--space-2); font-size: 17px; }

/* Biblioteca + planner library picker */
.planner-add-library { margin-top: var(--space-3); }
.planner-add-advanced { margin-top: var(--space-2); }
.field-hint { margin: 6px 0 0; font-size: 15px; }

/* Voice scheduling */
.voice-week-label { margin: 0 0 16px; }
.voice-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.voice-record-btn { min-width: 160px; }
.voice-status { font-size: 16px; }
.voice-playback { width: 100%; margin: 12px 0; }
.voice-transcript-field { margin-top: 16px; }
.voice-api-note { margin: 0 0 12px; font-size: 16px; }
.voice-proposals-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.voice-proposal-row {
  border: 2px solid var(--surface-2);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.voice-proposal-unmatched { border-color: #f97316; }
.voice-proposal-phrase { margin: 0; font-size: 16px; }
.voice-review-card .btn { margin-right: 8px; margin-top: 8px; }
.library-search-form { margin-bottom: var(--space-3); }
.library-search-form .field { margin-bottom: var(--space-2); }
.admin-template-subtitle {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Form busy state — prevent double submit */
form.is-busy .btn[type="submit"],
form.is-busy button[type="submit"],
form.is-busy .chip-option,
form.is-busy .chip-option span {
  opacity: 0.65;
  pointer-events: none;
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25em;
  height: 1.25em;
  margin: -0.625em 0 0 -0.625em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hugo-spin 0.6s linear infinite;
}
.btn-ghost.is-loading::after,
.activity-tile.is-loading::after {
  border-color: rgba(95, 129, 104, 0.25);
  border-top-color: var(--accent);
}
.activity-tile.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}
.activity-tile.is-loading .activity-tile__icon,
.activity-tile.is-loading .activity-tile__label {
  opacity: 0.25;
}
@keyframes hugo-spin {
  to { transform: rotate(360deg); }
}

html.is-navigating,
html.is-navigating body {
  cursor: progress;
}
html.is-navigating a {
  opacity: 0.7;
  pointer-events: none;
}

.status-line__adjust-wrap {
  margin: -4px 0 12px;
  text-align: center;
}
.status-line__adjust {
  font-size: 15px;
  min-height: 44px;
  padding: 8px 12px;
}

/* ── Blue Hugo: employee home ── */
.home-screen {
  --emp-body: 18px;
  --emp-lead: 20px;
  --emp-title: 22px;
  --emp-section: 18px;
  --emp-tap: 56px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - max(var(--space-4), env(safe-area-inset-top)) - max(40px, env(safe-area-inset-bottom)));
  min-height: calc(100dvh - max(var(--space-4), env(safe-area-inset-top)) - max(40px, env(safe-area-inset-bottom)));
}

.home-top-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.home-top-row .home-bucket__title {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.home-date {
  flex-shrink: 0;
  font-size: var(--emp-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: right;
}
.home-logout {
  margin: auto 0 0;
  padding:
    16px 0
    max(12px, env(safe-area-inset-bottom));
  text-align: center;
  flex-shrink: 0;
}
.home-logout__btn {
  font-size: var(--emp-body);
  font-weight: 600;
  min-height: 48px;
  padding: 10px 16px;
  margin: 0;
}

.home-bucket {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.home-bucket--activity {
  flex: 0 0 auto;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}
.home-bucket--tasks {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.home-bucket__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.home-bucket__header--tasks { margin-bottom: 10px; }

.emp-tasks-nav {
  display: grid;
  grid-template-columns: minmax(56px, auto) 1fr minmax(56px, auto);
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.emp-tasks-nav__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}
.emp-tasks-nav__title {
  margin: 0;
  font-size: var(--emp-section);
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
  line-height: 1.2;
}
.emp-tasks-nav__chev {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted-faint);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.emp-tasks-nav__chev:active { color: var(--muted); }
.emp-tasks-nav__chev.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.emp-tasks-nav .task-counter {
  font-size: var(--emp-body);
  color: var(--muted);
}

.home-bucket__title {
  margin: 0;
  font-size: var(--emp-section);
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 1.45;
}
.status-line__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-line--sleep .status-line__dot { background: var(--tile-sleep-icon); }
.status-line--awake .status-line__dot { background: var(--accent); }
.status-line--compact {
  margin: 0 0 12px;
  font-size: var(--emp-body);
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.activity-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 14px 8px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.activity-tile:active { transform: scale(0.98); }
.activity-tile__icon { display: flex; align-items: center; justify-content: center; }
.activity-tile__icon .hugo-icon { width: 26px; height: 26px; }
.activity-tile__label {
  font-size: var(--emp-lead);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.activity-tile--sleep { background: var(--tile-sleep-bg); color: var(--tile-sleep-icon); }
.activity-tile--sleep .activity-tile__label { color: var(--tile-sleep-label); }
.activity-tile--feed { background: var(--tile-feed-bg); color: var(--tile-feed-icon); }
.activity-tile--feed .activity-tile__label { color: var(--tile-feed-label); }
.activity-tile--diaper { background: var(--tile-diaper-bg); color: var(--tile-diaper-icon); }
.activity-tile--diaper .activity-tile__label { color: var(--tile-diaper-label); }
.activity-tile--note { background: var(--tile-note-bg); color: var(--tile-note-icon); }
.activity-tile--note .activity-tile__label { color: var(--tile-note-label); }

/* Legacy grid alias — unused on home, kept for safety */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.task-counter {
  font-size: var(--emp-body);
  color: var(--muted);
  font-weight: 600;
}

.empty-state--compact {
  padding: var(--space-3) var(--space-2);
  margin: 0;
}
.empty-state--compact p { font-size: var(--emp-body); }

.emp-task-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.emp-room-block {
  background: var(--room-tile, #F6F4EE);
  border-radius: 16px;
  padding: 12px 14px;
}
.emp-room-block__title {
  margin: 0 0 10px;
  font-size: var(--emp-lead);
  font-weight: 800;
  line-height: 1.3;
  color: var(--room-fg, var(--text));
}
.emp-room-level + .emp-room-level {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--room-fg, var(--text)) 12%, transparent);
}
.emp-room-level__label {
  margin: 0 0 6px;
  font-size: var(--emp-body);
  font-weight: 600;
  line-height: 1.35;
  color: var(--room-fg, var(--text));
  opacity: 0.9;
}
.emp-room-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 0 8px;
  font-size: var(--emp-lead);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}
.emp-room-section--loose .emp-room-section__title {
  padding-top: 4px;
}

.home-screen .emp-room-block .task-row {
  padding: 12px 0;
  border-bottom-color: color-mix(in srgb, var(--room-fg, var(--text)) 10%, transparent);
}
.home-screen .emp-room-block .task-row:last-child {
  border-bottom: none;
}

.home-screen .task-list--rows { border-top: none; }
.home-screen .task-row {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
  list-style: none;
}
.home-screen .task-row:last-child { border-bottom: none; }
.home-screen .task-row.is-done { opacity: 0.65; }
.home-screen .task-row__title-row {
  position: relative;
}
.home-screen .task-row__check {
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-text);
  z-index: 1;
}
.home-screen .task-row__check::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}
.home-screen .task-row__check.is-checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}
.home-screen .task-row__check .hugo-icon { width: 12px; height: 12px; }
.home-screen .task-row__body {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.home-screen .task-row__title {
  display: block;
  text-indent: 32px;
  font-size: var(--emp-title);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.home-screen .task-row.is-done .task-row__title {
  text-decoration: line-through;
  color: var(--muted);
}
.home-screen .task-row__instr {
  font-size: var(--emp-body);
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.35em;
  text-decoration: none;
}
.home-screen .task-row__instr--video {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}
.home-screen .task-row__instr-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.home-screen .task-row__instr-icon .hugo-icon {
  width: 18px;
  height: 18px;
}
.home-screen .task-row__body--plain {
  display: block;
  width: 100%;
  padding: 0;
  cursor: default;
}

/* Bottom sheets */
.sheet-scrim {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sheet-scrim.is-visible { opacity: 1; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  max-width: 430px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 12px 22px max(28px, env(safe-area-inset-bottom));
  box-shadow: var(--shadow-sheet);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-dragging {
  transition: none !important;
}
#sheet-sleep,
#sheet-feed,
#sheet-diaper,
#sheet-note {
  min-height: min(65vh, 580px);
  padding-top: 20px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
#sheet-sleep {
  min-height: min(62vh, 560px);
  padding-top: 16px;
}
#sheet-sleep .sheet-form,
#sheet-feed .sheet-form,
#sheet-diaper .sheet-form,
#sheet-note .sheet-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#sheet-sleep .field,
#sheet-feed .field,
#sheet-diaper .field,
#sheet-note .field {
  margin: 22px 0;
}
#sheet-sleep .stepper--sheet,
#sheet-feed .stepper--sheet,
#sheet-diaper .stepper--sheet,
#sheet-note .stepper--sheet {
  margin: 14px 0 18px;
}
#sheet-sleep .sheet-form .btn,
#sheet-feed .sheet-form .btn,
#sheet-diaper .sheet-form .btn,
#sheet-note .sheet-form .btn {
  margin-top: 16px;
}
.sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--input-border);
  border-radius: 2px;
  margin: 0 auto 16px;
  flex-shrink: 0;
  position: relative;
  touch-action: none;
  cursor: grab;
}
.sheet__handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 36px;
}
.sheet__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.3px;
}
.sheet-block-label { font-size: var(--emp-body, 18px); font-weight: 600; margin: 0 0 10px; }

.sleep-last-report {
  display: none;
}
.sleep-last-report__heading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
.sleep-last-report__summary {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.35;
  color: var(--text);
}
.sleep-last-report__ago {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.time-picker {
  margin: 8px 0 16px;
}
.time-picker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.time-picker__chip {
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: var(--emp-body, 18px);
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.time-picker__chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text, #fff);
}
.time-picker__chip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.feed-drank-result {
  margin: 4px 0 12px;
  text-align: center;
  font-size: var(--emp-title, 22px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
}

.sleep-wizard .sheet-block-label {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 32px 0 28px;
}
.sleep-wizard .sleep-wizard-nap-label {
  margin-top: 36px;
}
#sheet-sleep .sleep-wizard .field {
  margin: 0 0 28px;
}
.sleep-wizard .time-stepper {
  margin-top: 4px;
}
.sleep-wizard .btn-primary {
  margin-top: 12px;
}

.sheet-hint { font-size: var(--emp-body, 18px); margin: 0 0 10px; }
.sheet-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  font-size: var(--emp-body, 18px);
  font-family: inherit;
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  color: var(--text);
  resize: vertical;
}
.diaper-wizard-color-other__input {
  min-height: unset;
  resize: none;
}
.sheet-form .btn { margin-top: 8px; }

.time-stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.time-stepper__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.time-stepper__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  font-size: 28px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.time-stepper__display { text-align: center; min-width: 120px; }
.time-stepper__display output {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.time-stepper__ago {
  display: block;
  text-align: center;
  font-size: var(--emp-body, 18px);
  color: var(--muted);
  line-height: 1.3;
  padding: 0 12px;
  max-width: 100%;
}

.time-collapse {
  margin: 8px 0 16px;
}
.time-collapse__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 4px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: var(--emp-body, 18px);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.time-collapse__summary {
  color: var(--muted);
}
.time-collapse__summary strong {
  color: var(--text);
  font-weight: 700;
}
.time-collapse__cta {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  font-size: var(--emp-body, 18px);
}
.time-collapse__body {
  padding-bottom: 8px;
}

.chip-suggest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  min-height: 56px;
  margin: 0 auto 16px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--accent);
  background: var(--card-bg);
  color: var(--accent);
  font-family: inherit;
  font-size: var(--emp-body, 18px);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.sleep-wizard-unknown {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  font-size: var(--emp-body, 18px);
}

.task-overlay-finish {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  font-size: 22px;
}

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

.admin-baby-launch__lead {
  margin: 0 0 14px;
  font-size: 14px;
}
.admin-baby-launch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-baby-launch__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 10px;
  border: 1px solid var(--border, #e2e5ea);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.admin-baby-launch__btn svg {
  width: 28px;
  height: 28px;
}
.admin-baby-launch__btn:active {
  background: #f3f5f7;
}
.admin-baby-set-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  flex: 1 0 100%;
}
.admin-baby-set-time__input {
  flex: 1;
  min-width: 180px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feed-wizard .chip-group,
.diaper-wizard .chip-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}
.feed-wizard .sheet-block-label,
.diaper-wizard .sheet-block-label {
  margin-bottom: 14px;
}
.feed-wizard .chip-option,
.diaper-wizard .chip-option {
  width: 100%;
  max-width: 300px;
}
.feed-wizard .chip-option span,
.diaper-wizard .chip-option span {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  line-height: 1.35;
}
.chip-option { cursor: pointer; }
.chip-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  font-size: var(--emp-body, 18px);
  font-weight: 600;
  text-align: center;
}
.chip-option input:checked + span {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.stepper--sheet { justify-content: center; margin: 8px 0; }

.oz-stepper__display {
  flex: 1;
  min-width: 104px;
  text-align: center;
}
.oz-stepper__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.oz-stepper__number {
  font-size: 32px;
  font-weight: 700;
  min-width: 1.5ch;
  text-align: center;
  line-height: 1.1;
}
.oz-stepper__unit {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.72;
  line-height: 1.2;
}
.oz-stepper__fraction {
  display: block;
  min-height: 1.35em;
  margin-top: 2px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.72;
  text-align: center;
  line-height: 1.2;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: var(--toast-bg);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: var(--emp-body, 18px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  max-width: min(420px, calc(100vw - 32px));
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Task instructions modal (employee home) */
.task-instr-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.task-instr-modal[hidden] {
  display: none;
}
.task-instr-modal:not([hidden]) {
  pointer-events: auto;
}
.task-instr-modal__scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.task-instr-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  max-height: min(85vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding:
    12px 22px max(28px, env(safe-area-inset-bottom))
    22px;
  box-shadow: var(--shadow-sheet);
}
.task-instr-modal__back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: var(--emp-body, 18px);
  font-weight: 600;
  padding: 10px 0;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.task-instr-modal__body {
  font-size: var(--emp-body, 18px);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 16px;
}
.task-instr-modal__video-heading {
  font-size: var(--emp-body, 18px);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}
.task-video-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.task-video-preview__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.task-video-preview__play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.task-video-preview__play-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.task-video-preview.is-playing .task-video-preview__thumb,
.task-video-preview.is-playing .task-video-preview__play-icon {
  display: none;
}
.task-video-preview__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Completion wizard overlay skin */
.completion-wizard--overlay .completion-step-label {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.wizard-title { margin-bottom: 12px; }
.wizard-back { font-size: 17px; }

/* Admin light-theme density */
.wrap--admin { font-size: 16px; }
.wrap--admin .field input,
.wrap--admin .field textarea,
.wrap--admin .admin-select,
.wrap--admin .blue-input {
  min-height: 44px;
  font-size: 16px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
}
.wrap--admin .admin-task-item,
.wrap--admin .admin-template-item,
.wrap--admin .history-baby-item {
  border-bottom-color: var(--card-border);
}
.wrap--admin .empty-state,
.wrap--admin .admin-task-item,
.wrap--admin .voice-proposal-row {
  background: var(--card-bg);
}
.wrap--admin .voice-proposal-row { border: 1.5px solid var(--card-border); }
.wrap--admin .voice-proposal-unmatched { border-color: #fdba74; }
.wrap--admin .planner-sortable-list.is-drag-over { background: #f0f5f1; }
.wrap--admin .summary-row { border-bottom-color: var(--card-border); }
.wrap--admin .card h2 { color: var(--muted-sub); font-size: 13px; }
.wrap--admin h1 { font-size: 24px; }

.empty-state {
  background: var(--card-bg);
  border: 1.5px dashed var(--card-border);
}
.placeholder { border-color: var(--card-border); background: var(--card-bg); }
.admin-task-item { border-bottom-color: var(--card-border); }
.admin-template-item { border-bottom-color: var(--card-border); }
.history-baby-item { border-bottom-color: var(--card-border); }
.history-search-input,
.field input[type="date"],
.field input[type="number"],
.field textarea,
.admin-select,
.admin-select-inline {
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
}
.choice-option span {
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
}
.task-card-v2,
.task-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.task-chip { background: #f0eeea; color: var(--muted); }
.task-chip-done { background: #e8f0ea; color: var(--accent); }
.task-check.checked::after { border-color: #fff; }
.login-card { margin-top: 8px; }

/* ── Admin home dashboard ── */
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.admin-topbar .brand { flex: 1; }

.admin-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}
.admin-menu-btn:hover { background: rgba(0, 0, 0, 0.04); }
.admin-menu-btn__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

.admin-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.admin-drawer-scrim.is-visible { opacity: 1; }

.admin-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--card-bg);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.admin-drawer--screen {
  width: 100%;
  max-width: none;
  background: var(--bg);
  box-shadow: none;
}
.admin-drawer__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 8px;
}
.admin-drawer__cards {
  max-width: 440px;
  margin: 0 auto;
}
.admin-drawer--screen .admin-drawer__nav {
  flex: none;
  max-width: 440px;
  margin: 8px auto 0;
  padding: 4px 0 8px;
}
.admin-drawer--screen .admin-drawer__header,
.admin-drawer--screen .admin-drawer__logout {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.admin-drawer.is-open { transform: translateX(0); }
.admin-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  border-bottom: 1px solid var(--card-border);
}
.admin-drawer__brand {
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}
.admin-drawer__close {
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
}
.admin-drawer__nav {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
}
.admin-drawer__link {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.admin-drawer__link:hover { background: #f0f5f1; color: var(--accent); }
.admin-drawer__logout {
  padding: 16px;
  border-top: 1px solid var(--card-border);
}
.admin-drawer__logout-btn { width: 100%; }

.admin-bottom-bar {
  flex-shrink: 0;
  z-index: 20;
  border-top: 1px solid var(--card-border);
  background: var(--bg);
  padding:
    8px
    max(22px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}
body.admin-body--home .admin-bottom-bar {
  position: fixed;
  left: 50%;
  bottom: var(--planner-vv-bottom, 0px);
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}
.admin-bottom-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 12px;
  font: inherit;
}
.admin-bottom-bar__btn:hover { background: rgba(0, 0, 0, 0.04); }
.admin-bottom-bar__icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 22px;
  height: 16px;
}
.admin-bottom-bar__icon .admin-menu-btn__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}
.admin-bottom-bar__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Blue Hugo admin design system ── */
.blue-admin { background: var(--bg); }
.blue-admin__inner { padding: 0 0 24px; }
.blue-admin--page .blue-admin__inner { padding-top: 4px; }
.blue-admin--home {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.blue-admin__pinned { flex-shrink: 0; }
.blue-admin__tasks-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
}
body.admin-body--home .blue-admin__tasks-scroll {
  padding-bottom: calc(var(--admin-bottom-bar-block) + 8px);
}
.blue-admin--home .blue-date-nav { margin-bottom: 12px; }
.blue-admin--home .admin-status-line { margin-bottom: 12px; }
.blue-admin--home .blue-tasks-header { margin-bottom: 0; }

.blue-page-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}

.blue-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.blue-date-nav__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.blue-date-nav__btn:hover { border-color: var(--accent); background: #f0f5f1; }
.blue-date-nav__btn .hugo-icon { width: 18px; height: 18px; }
.blue-date-nav__label {
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  flex: 1;
  min-width: 0;
  letter-spacing: -0.2px;
}

.blue-quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card-border);
  margin-bottom: 12px;
}
.blue-quad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px 16px;
  border: none;
  background: var(--card-bg);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  min-height: 108px;
  transition: background 0.15s;
}
.blue-quad:hover,
.blue-quad:focus-visible { background: #f7f6f3; outline: none; }
.blue-quad:active { background: #f0eeea; }
.blue-quad--sleep { background: var(--tile-sleep-bg, #f3f0fa); }
.blue-quad--feed { background: var(--tile-feed-bg, #f0f7f4); }
.blue-quad--diaper { background: var(--tile-diaper-bg, #faf6f0); }
.blue-quad--note {
  background: var(--tile-note-bg, #f5f5f5);
  align-items: stretch;
}
.blue-quad__head {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.blue-quad__icon {
  display: flex;
  align-items: center;
  color: var(--muted-sub);
}
.blue-quad--sleep .blue-quad__icon { color: var(--tile-sleep-accent, #7c6aad); }
.blue-quad--feed .blue-quad__icon { color: var(--tile-feed-accent, #4a8f6a); }
.blue-quad--diaper .blue-quad__icon { color: var(--tile-diaper-accent, #b8860b); }
.blue-quad--note .blue-quad__icon { color: var(--tile-note-accent, #6b6b6b); }
.blue-quad__icon .hugo-icon { width: 14px; height: 14px; }
.blue-quad__label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-sub);
}
.blue-quad__count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  margin-left: auto;
}
.blue-quad__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 2px;
}
.blue-quad__num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}
.blue-quad__unit {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.blue-quad__sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}
.blue-quad__sub--empty { font-style: italic; }
.blue-quad__issues {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.35;
}
.blue-quad__emoji-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.blue-quad__notes-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  margin-top: 4px;
}
.blue-quad__note-item {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blue-quad__notes-list--count-1 .blue-quad__note-item {
  font-size: 12.5px;
  -webkit-line-clamp: 4;
}
.blue-quad__notes-list--count-2 .blue-quad__note-item {
  font-size: 11px;
  -webkit-line-clamp: 2;
}
.blue-quad__notes-list--count-3 .blue-quad__note-item {
  font-size: 10px;
  -webkit-line-clamp: 2;
}
.blue-quad__notes-more {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin: 2px 0 0;
  width: 100%;
  text-align: right;
}

.admin-status-line { margin: 0 0 20px; }

.blue-tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.blue-tasks-header__left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.blue-tasks-header__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.2px;
}
.blue-tasks-header__counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.blue-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.blue-edit-btn:hover { background: #f0f5f1; }
.blue-edit-btn .hugo-icon { width: 14px; height: 14px; }

.blue-task-list { display: flex; flex-direction: column; gap: 8px; }
.blue-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
}
.blue-task-row.is-done { opacity: 0.72; }
.blue-task-row__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 2px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blue-task-row__check.is-checked {
  background: var(--accent);
  border-color: var(--accent);
}
.blue-task-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.blue-task-row__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.blue-task-row.is-done .blue-task-row__title {
  text-decoration: line-through;
  color: var(--muted);
}
.blue-empty-tasks {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border: 1.5px dashed var(--card-border);
  border-radius: 16px;
}

.badge-draft {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0eeea;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

/* Blue sheets */
.blue-sheet-scrim {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.blue-sheet {
  border-radius: 30px 30px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.blue-sheet__header { margin-bottom: 12px; }
.blue-sheet__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.2px;
}
.blue-sheet__date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.blue-sheet__empty {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 16px;
  font-style: italic;
}
.blue-sheet-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.blue-sheet-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}
.blue-sheet-list__item:last-child { border-bottom: none; }
.blue-sheet-list__time {
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.blue-sheet-list__summary { color: var(--muted); }
.blue-sheet-list__note {
  width: 100%;
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.blue-sheet-list__meta {
  font-size: 12px;
  color: var(--muted);
}
.blue-sheet-list__by {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.blue-sheet-footer {
  margin: 8px 0 12px;
  font-size: 14px;
  text-align: center;
}
.blue-sheet-footer a { color: var(--accent); font-weight: 600; }
.blue-sheet-done {
  width: 100%;
  background: #f0eeea;
  color: var(--text);
  border: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px;
}
.blue-sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
}
.blue-sheet-row__title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
}
.blue-sheet-row__delete { margin: 0; flex-shrink: 0; }
.blue-sheet-trash {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #c44;
  cursor: pointer;
  border-radius: 10px;
}
.blue-sheet-trash:hover { background: #fde8e8; }
.blue-sheet-trash .hugo-icon { width: 18px; height: 18px; }

.blue-task-edit-list {
  overflow-y: auto;
  max-height: 40vh;
  margin-bottom: 12px;
}
.blue-task-add-form { margin-bottom: 12px; }
.blue-task-add-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blue-btn-add { width: 100%; }

.blue-input {
  width: 100%;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1.5px solid #e6e4dc;
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
}
.blue-input:focus {
  outline: none;
  border-color: var(--accent);
}
.blue-textarea { resize: vertical; min-height: 80px; }

.blue-field {
  margin-bottom: 14px;
}
.blue-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-sub);
  margin-bottom: 6px;
}

.blue-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.blue-card__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}
.blue-form .btn-primary { width: 100%; margin-top: 4px; }

.blue-admin--wide { padding-top: 4px; }
.blue-admin--wide > .blue-card,
.blue-admin--wide > #planner-root > .blue-card,
.blue-admin--wide > #voice-schedule-root > .blue-card {
  margin-bottom: 16px;
}
.blue-admin--wide .planner-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blue-admin--wide .history-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blue-admin--wide .history-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.blue-admin--wide .history-search-field { flex: 1; min-width: 180px; margin: 0; }
.blue-admin--wide .admin-template-item {
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--bg);
}
.blue-admin--wide .planner-day-header .blue-card__title {
  margin: 0;
  font-size: 18px;
}
.blue-date-nav--history,
.blue-date-nav--week {
  margin-bottom: 0;
}
.blue-date-nav__date-form {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.blue-date-nav__date {
  width: 100%;
  text-align: center;
  font-weight: 700;
}

.blue-alert {
  background: #fef3e2;
  border: 1.5px solid #fdba74;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Blue task overlays */
.blue-overlay {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.blue-overlay[hidden] { display: none; }
.blue-overlay:not([hidden]) { pointer-events: auto; }
.blue-overlay__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.blue-overlay.is-open .blue-overlay__scrim { opacity: 1; }
.blue-overlay__panel {
  position: relative;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.blue-overlay.is-open .blue-overlay__panel { transform: translateY(0); }
.blue-overlay__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.blue-overlay__meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.blue-overlay__card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.blue-overlay__card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-sub);
  margin: 0 0 6px;
}
.blue-overlay-answers {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.blue-overlay-answers li {
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 14px;
}
.blue-overlay-answers__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-sub);
  margin-bottom: 2px;
}
.blue-overlay-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.blue-overlay-photos__thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
}
.blue-overlay__close { margin-top: 8px; }
.blue-overlay-form { margin-top: 4px; }
.blue-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.blue-overlay-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 600px) {
  .blue-overlay-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .blue-overlay-actions .btn { flex: 1; min-width: 180px; }
  .blue-task-add-row {
    flex-direction: row;
    align-items: stretch;
  }
  .blue-task-add-row .blue-input { flex: 1; }
  .blue-btn-add { width: auto; min-width: 120px; }
}

/* ── Admin app bar (Blue Hugo handoff) ── */
.admin-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 10px;
  z-index: 25;
  background: var(--bg);
}
/* Scrollable admin pages: keep Hugo header visible while scrolling. */
body.admin-body:not(.admin-body--home):not(.admin-body--planner):not(.admin-body--library) .admin-appbar {
  position: sticky;
  top: 0;
  margin-top: calc(-1 * max(var(--space-4), env(safe-area-inset-top)));
  padding-top: max(12px, env(safe-area-inset-top));
}
body.admin-body--planner .admin-appbar {
  position: fixed;
  top: var(--planner-vv-top, 0px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding:
    max(12px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    10px
    max(22px, env(safe-area-inset-left));
}
.admin-appbar__left {
  display: flex;
  align-items: center;
  gap: 13px;
}
.admin-appbar__brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
}
.admin-appbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cat-cocina-tile);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-drawer__link--muted { color: var(--muted); font-size: 15px; }

.wrap--admin-planner {
  position: relative;
  max-width: 440px;
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wrap--admin-planner > .admin-appbar { flex-shrink: 0; }
.wrap--admin-planner > .planner-v2 {
  flex: 1;
  min-height: 0;
  padding-top: calc(var(--admin-appbar-block) + var(--planner-week-nav-block));
  padding-bottom: var(--admin-bottom-bar-block);
  box-sizing: border-box;
}
.wrap--admin-planner > .planner-v2.planner-v2--month {
  padding-top: var(--admin-appbar-block);
}
.wrap--admin-planner > .planner-v2.planner-v2--day {
  padding-top: calc(var(--admin-appbar-block) + var(--planner-week-nav-block));
}
.wrap--admin-planner > [data-flash],
.wrap--admin-planner > [data-flash-error] {
  position: absolute;
  top: calc(var(--admin-appbar-block) + var(--planner-week-nav-block));
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  z-index: 30;
  flex-shrink: 0;
}

/* ── Biblioteca v2 (pantallas completas) ── */
.wrap--admin-library {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.wrap--admin-library > .admin-appbar {
  display: flex;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.wrap--admin-library > .blue-page-title { display: none; }
.wrap--admin-library > [data-flash],
.wrap--admin-library > [data-flash-error] {
  position: absolute;
  top: calc(var(--admin-appbar-block) + 8px);
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  z-index: 30;
}
.library-v2 {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.library-v2-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: max(4px, env(safe-area-inset-top)) 8px 4px 4px;
  background: var(--bg);
  border-bottom: 1px solid #EFEDE7;
  min-height: var(--library-header-block, 40px);
  box-sizing: border-box;
}
.library-v2-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
  text-decoration: none;
  border-radius: 10px;
  flex-shrink: 0;
}
.library-v2-header__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-v2-header__spacer {
  width: 36px;
  flex-shrink: 0;
}
.library-v2__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 12px 16px;
}
.library-v2-hint {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #8b8a82;
}
.library-v2-search-wrap {
  margin-bottom: 10px;
}
.library-v2-hub-rooms {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.library-v2-hub-section {
  padding: 12px 0;
  border-bottom: 1px solid #EFEDE7;
}
.library-v2-hub-section--card {
  padding: 10px 10px 8px;
  border-bottom: none;
  border-radius: 14px;
  background: #F7F5F0;
  box-sizing: border-box;
}
.library-v2-hub-section--card.is-drop-target {
  outline: 2px solid rgba(95, 129, 104, 0.45);
  outline-offset: -2px;
}
.library-v2-hub-section:last-child {
  border-bottom: none;
}
.library-v2-hub-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.library-v2-hub-section__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  min-width: 0;
  padding: 4px 0;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.library-v2-hub-section__name:hover,
.library-v2-hub-section__name:focus-visible {
  opacity: 0.75;
  outline: none;
}
.library-v2-room-modal__hint {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #6B6560;
}
.library-v2-room-modal__delete {
  display: block;
  width: 100%;
  margin-top: 16px;
}
.library-v2-hub-section__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.library-v2-hub-section__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  touch-action: manipulation;
}
.library-v2-hub-section__list {
  display: flex;
  flex-direction: column;
}
.library-v2-hub-section__empty {
  margin: 4px 0 2px;
  padding: 8px 4px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #8b8a82;
}
.library-v2-task-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 0;
  border-bottom: 1px solid #EDEAE3;
}
.library-v2-task-row:last-child {
  border-bottom: none;
}
.library-v2-task-row.is-dragging {
  opacity: 0.35;
}
.library-v2-task-row__grip {
  flex-shrink: 0;
  width: 28px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #9A958C;
  font-size: 16px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.library-v2-task-row__grip:active {
  cursor: grabbing;
}
.library-v2-task-row__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.library-v2-task-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.library-v2-drop-slot {
  margin: 4px 0;
  padding: 10px 12px;
  border: 1.5px dashed rgba(95, 129, 104, 0.55);
  border-radius: 10px;
  background: rgba(95, 129, 104, 0.08);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}
.library-v2-drag-clone {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 10px 24px rgba(20, 18, 12, 0.22));
}
.library-v2-drag-clone .library-v2-task-row--clone {
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid #E8E4DC;
}
.library-v2-hub-loose.library-v2-hub-section--card {
  margin-top: 8px;
}
.library-v2-hub-loose__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}
.library-v2-task-row__meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}
.library-v2-task-row__name:active {
  opacity: 0.7;
}
.library-v2-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1.5px solid #EFEDE7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.library-v2-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.library-v2-check strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.library-v2-check__hint {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}
.library-v2-task-row__badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.library-v2-task-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  color: #8b8a82;
  background: #f3f1eb;
}
.library-v2-task-badge--video {
  color: #5f8168;
  background: rgba(95, 129, 104, 0.12);
}
.library-v2-task-badge--photo {
  color: #8a6b4a;
  background: rgba(138, 107, 74, 0.12);
}
.library-v2-task-badge--questions {
  color: #5a6f8a;
  background: rgba(90, 111, 138, 0.12);
}
.library-v2-task-badge--checklist {
  color: #6a5f4a;
  background: rgba(106, 95, 74, 0.12);
}
.library-v2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
}
.library-v2-filter {
  border: 1px solid #e4e1d8;
  background: #fff;
  color: #6b6a63;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.library-v2-filter.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.library-v2-task-row__room {
  flex: 1 1 100%;
  min-height: 36px;
  border: 1px solid #e4e1d8;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
  color: #3d3c38;
}
.library-v2-checklist-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.library-v2-checklist-remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f3f1eb;
  color: #8b8a82;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.library-v2-checklist-add {
  border: none;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  cursor: pointer;
}
.task-checklist {
  margin: 12px 0 4px;
}
.task-checklist__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.task-checklist__title {
  margin: 0;
  font-size: 20px;
}
.task-checklist__progress {
  margin: 0;
  font-size: 16px;
  color: #6b6a63;
}
.task-checklist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-checklist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.task-checklist__btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid #cfcabe;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.task-checklist__btn.is-checked {
  border-color: var(--accent);
  background: rgba(95, 129, 104, 0.12);
}
.task-checklist__btn.is-checked::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 4px;
  background: var(--accent);
}
.task-checklist__label {
  font-size: 18px;
  line-height: 1.35;
  color: #2f2e2a;
}
.task-checklist__item.is-done .task-checklist__label {
  color: #6b6a63;
}
.task-checklist__error {
  margin: 10px 0 0;
  color: #a33;
  font-size: 16px;
}
.library-v2-hub-loose.library-v2-hub-section--card .library-v2-hub-loose__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}
.library-v2-hub-loose__title {
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b8a82;
}
.library-v2-footer {
  flex-shrink: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #EFEDE7;
  background: var(--bg);
}
.library-v2-footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(95, 129, 104, 0.7);
}
.library-v2-footer__cta.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.library-v2-field-error {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--danger);
}
.library-v2-field-error[hidden] {
  display: none;
}
.planner-v2-input.has-error,
.planner-v2-textarea.has-error {
  border-color: var(--danger);
}
.library-v2-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.library-v2-form__scroll {
  padding-bottom: 24px;
}
.library-v2-form__section {
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0EEE8;
}
.library-v2-form__section:last-child {
  border-bottom: none;
}
.library-v2-form__section-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b8a82;
}
.library-v2-form__warn {
  margin-bottom: 12px;
}
.library-v2-field-hint {
  margin: 4px 0 12px;
  font-size: 12px;
  color: #8b8a82;
}
.library-v2-rec-field {
  margin-bottom: 12px;
}
.library-v2-completion-toggles {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.library-v2-completion-toggle {
  flex: 1;
  min-height: 44px;
  border: 1.5px solid #e6e4dc;
  border-radius: 12px;
  background: #fff;
  color: #5b5a52;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.library-v2-completion-toggle.is-on {
  border-color: var(--accent);
  background: #EAF0EA;
  color: #385a3f;
}
.library-v2-completion-panel {
  margin-bottom: 12px;
}
.library-v2-completion-question {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EFEDE7;
}
.library-v2-completion-question:last-of-type {
  border-bottom: none;
}
.library-v2-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid #e6e4dc;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.library-v2-form__section--danger {
  border-bottom: none;
  padding-top: 8px;
}
.library-v2-danger-btn {
  width: 100%;
  min-height: 44px;
  border: 1.5px solid #e8c4be;
  border-radius: 12px;
  background: #fdf6f4;
  color: #b54a3a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.library-v2-editor-scroll {
  flex: 1;
  min-height: 0;
}
.library-v2-room-tabs {
  margin-bottom: 12px;
}
.library-v2-editor-row__edit {
  flex: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #9a9890;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}
.library-v2-editor-row__edit:hover {
  background: #F0EEE8;
  color: #5f8168;
}
.library-v2-drawer-links {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.library-v2-drawer-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 100px;
  background: #EAF0EA;
  border: 1px solid #cfe0d2;
}

/* ── Planner v2 ── */
.planner-v2 {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-size: 16px;
}
.planner-v2__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}
.planner-v2-week-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
body.admin-body--planner .planner-v2-week-nav {
  position: fixed;
  top: calc(var(--admin-appbar-block) + var(--planner-vv-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - max(44px, env(safe-area-inset-left) + env(safe-area-inset-right)));
  max-width: calc(440px - max(44px, env(safe-area-inset-left) + env(safe-area-inset-right)));
  box-sizing: border-box;
  z-index: 24;
  margin: 2px 0 0;
  padding: 0 2px;
  min-height: 36px;
}
.planner-v2-week-nav__btn {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #5b5a52);
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.planner-v2-week-nav__btn:active {
  opacity: 0.65;
}
.planner-v2-week-nav__month {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-height: 36px;
  padding: 0 6px 0 0;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  max-width: 42%;
}
.planner-v2-week-nav__month span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planner-v2-header-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: #f2f1ec;
}
.planner-v2-extra-chip {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #e7ede8;
  color: #385a3f;
}
.planner-v2-week-nav__center { flex: 1; text-align: center; min-width: 0; }
.planner-v2-week-nav__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planner-v2-week-nav__range {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-faint);
  margin-top: 0;
}
.planner-v2-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 2px 4px;
}
.planner-v2-header__text {
  min-width: 0;
  flex: 1;
}
.planner-v2-header__title {
  margin: 0;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.planner-v2-header__missed {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted, #8a857c);
}
.planner-v2-header__missed a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.planner-v2-header__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.planner-v2-header-publish {
  margin: 0;
  display: flex;
}
.planner-v2-publish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(95, 129, 104, 0.85);
  white-space: normal;
  text-align: center;
  max-width: 11.5rem;
}
.planner-v2-publish-btn:active {
  transform: scale(0.98);
}
.planner-v2-header-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--saved-border, #c5d6c8);
  border-radius: 14px;
  background: var(--saved-bg, #eef5ef);
}
.planner-v2-header-live__badge {
  display: flex;
  color: var(--saved-text, var(--accent));
}
.planner-v2-header-live__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--saved-text, var(--accent));
  white-space: nowrap;
}
.planner-v2-pause-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid #EAD9B3;
  border-radius: 14px;
  background: #FBF1DE;
  color: #9C7E3F;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.planner-v2-pause-btn:active {
  transform: scale(0.98);
}
.planner-rules-rebuild {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #e6e0d4;
}
.planner-rules-rebuild__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}
.planner-rules-rebuild__btn {
  width: 100%;
}
.planner-v2-rules-btn {
  width: 44px;
  height: 44px;
  border: 1.5px solid #cfd8cf;
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.planner-v2-mic {
  width: 44px;
  height: 44px;
  border: 1.5px solid #cfd8cf;
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.planner-v2-mic.is-recording {
  width: auto;
  height: 44px;
  padding: 0 15px 0 13px;
  gap: 8px;
  background: var(--rec-bg);
  border-color: var(--rec-border);
  color: var(--rec-text);
  font-size: 14.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.planner-v2-mic__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec-text);
  animation: recdot 1s ease-in-out infinite;
}
@keyframes recdot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.planner-v2-add {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 8px 18px -8px rgba(95, 129, 104, 0.7);
}
.planner-v2-task.is-removing,
.planner-v2-cluster.is-removing,
.planner-v2-cluster-task.is-removing {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.planner-v2-day__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
  margin: 20px 0 10px;
}
.planner-v2-day__name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.planner-v2-day__total {
  font-size: 12px;
  font-weight: 650;
  color: #8f8e84;
}
.planner-v2-day__capacity {
  height: 4px;
  border-radius: 99px;
  background: #ebe8e0;
  margin: 0 4px 12px;
  overflow: hidden;
}
.planner-v2-day__capacity-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.planner-v2-day__capacity-fill--busy { background: #c4a35a; }
.planner-v2-day__capacity-fill--overloaded { background: var(--danger, #c45c4a); }
.planner-v2-day__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.planner-v2-day__empty {
  border: 1.5px dashed #e2ded4;
  border-radius: var(--radius-card);
  padding: 15px 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #b4b3a9;
}
.planner-v2-task {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 11px 12px 11px 6px;
  box-shadow: var(--shadow-card);
}
.planner-v2-task.is-overdue {
  border-color: var(--warn-accent);
  background: var(--warn-bg);
}
.planner-v2-task.is-dragging { visibility: hidden; }
.planner-v2-grip {
  flex: none;
  width: 28px;
  height: 44px;
  border: none;
  background: none;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  touch-action: none;
  color: #cdcbc1;
  font-size: 14px;
}
.planner-v2-grip--static { cursor: default; }
.planner-v2-task__body {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.planner-v2-task__name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-task__dur {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-sub);
  margin-top: 2px;
}
.planner-v2-task__delete {
  flex: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: none;
  color: #c6c4ba;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.planner-v2-drop-slot {
  height: 64px;
  border: 1.5px dashed #b9b6ab;
  border-radius: var(--radius-card);
  background: rgba(95, 129, 104, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.planner-v2-clone {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  transform: scale(1.03) rotate(1.5deg);
  filter: drop-shadow(0 22px 28px rgba(20, 18, 12, 0.28));
  opacity: 0.98;
}
.planner-v2-clone .planner-v2-cluster,
.planner-v2-clone .planner-v2-task {
  background: var(--card-bg, #fff);
  border-radius: var(--radius-card);
}
.planner-v2-footer {
  flex-shrink: 0;
  z-index: 20;
  padding: 12px 0 max(20px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}
body.admin-body--planner .planner-v2-footer {
  position: fixed;
  left: 50%;
  bottom: var(--planner-vv-bottom, 0px);
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding:
    12px
    max(22px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}
.planner-v2-footer__form,
.planner-v2-footer__saved,
.planner-v2-footer__cta,
.planner-v2-footer__edit {
  pointer-events: auto;
}
.planner-v2-footer__cta {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-card);
  padding: 17px;
  box-shadow: 0 12px 26px -10px rgba(95, 129, 104, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.planner-v2-footer__saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--saved-bg);
  border: 1px solid var(--saved-border);
  border-radius: var(--radius-card);
  padding: 13px 16px;
}
.planner-v2-footer__saved-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--saved-text);
}
.planner-v2-footer__edit {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  padding: 6px 2px;
}
.planner-v2-footer__secondary {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.planner-v2-footer__link {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Planner sheets */
.planner-v2-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.planner-v2-sheet-root:not([hidden]) { pointer-events: auto; }
.planner-v2-sheet-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(26, 24, 20, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: none;
}
.planner-v2-sheet-root.is-open .planner-v2-sheet-scrim { opacity: 1; }

/* Keep Hugo app bar visible (dimmed through scrim) but behind overlay so taps close sheets. */
body.admin-body--planner.planner-sheet-open .admin-appbar {
  z-index: 20;
  top: var(--planner-vv-top);
  pointer-events: none;
}
body.admin-body--planner.planner-sheet-open .planner-v2-week-nav {
  z-index: 20;
  pointer-events: none;
}
body.admin-body--planner.planner-sheet-open .planner-v2-sheet-root {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
}
body.admin-body--planner.planner-sheet-open .planner-v2-sheet {
  max-height: calc(100dvh - var(--admin-appbar-block) - var(--planner-vv-top) - 12px);
}
body.admin-body--planner.planner-sheet-open.planner-add-open .admin-appbar {
  display: none;
}
body.admin-body--planner.planner-sheet-open.planner-add-open .planner-v2-week-nav {
  display: none;
}
body.admin-body--planner.planner-sheet-open.planner-add-open .planner-v2-sheet-scrim {
  opacity: 0;
  pointer-events: none;
}
body.admin-body--planner.planner-sheet-open .planner-v2-sheet--add-screen {
  max-height: none;
  min-height: 0;
}

body.admin-body--planner.planner-add-open,
body.admin-body--planner.planner-sheet-open {
  overflow-x: hidden;
}

.planner-v2-sheet--add-screen {
  position: fixed;
  top: var(--planner-vv-top, 0px);
  bottom: var(--planner-vv-bottom, 0px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  z-index: 36;
  overflow: hidden;
  overflow-x: hidden;
  padding: 0 16px;
  box-sizing: border-box;
  transform: none !important;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
}
.planner-v2-sheet-root.is-open .planner-v2-sheet--add-screen.is-visible {
  transform: none !important;
  opacity: 1;
}

.planner-v2-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-height: 90%;
  background: var(--bg);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
  padding: 12px 22px 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.planner-v2-sheet-root.is-open .planner-v2-sheet.is-visible {
  transform: translateY(0);
}
.planner-v2-sheet.is-dragging {
  transition: none !important;
}
.planner-v2-sheet__grab {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: #dcdad2;
  margin: 0 auto 16px;
  flex-shrink: 0;
  position: relative;
  touch-action: none;
  cursor: grab;
}
.planner-v2-sheet__grab::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 36px;
}
.planner-v2-sheet__title {
  margin: 0 2px 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.planner-v2-sheet__hint,
.planner-v2-sheet__note {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}
.planner-v2-sheet__context {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin: 3px 0 16px;
}
.planner-v2-sheet__done {
  margin-top: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  background: #eeece5;
  color: #6b6a62;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: 16px;
  padding: 15px;
}
.planner-v2-day-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.planner-v2-day-chip {
  flex: 1;
  cursor: pointer;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  border-radius: 13px;
  padding: 7px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
}
.planner-v2-day-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.planner-v2-day-chip__dow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--muted-faint);
}
.planner-v2-day-chip.is-active .planner-v2-day-chip__dow { color: rgba(255, 255, 255, 0.75); }
.planner-v2-day-chip__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.planner-v2-day-chip.is-active .planner-v2-day-chip__num { color: #fff; }
.planner-v2-library-toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}
.planner-v2-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  padding: 0 13px;
  color: #a3a299;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.planner-v2-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 13px 0;
}
.planner-v2-new-btn {
  flex: none;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid #cfd8cf;
  cursor: pointer;
  background: var(--card-bg);
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 14px;
  padding: 0 13px;
}
.planner-v2-library-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 80px;
  margin-bottom: 4px;
}
.planner-v2-lib-item {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 10px 12px 16px;
}
.planner-v2-lib-item.is-selected {
  border-color: var(--accent);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.25);
}
.planner-v2-lib-item__body {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.planner-v2-lib-item__name {
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-lib-item__dur {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-sub);
  margin-top: 2px;
}
.planner-v2-lib-item__add {
  flex: none;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 11px;
  background: #ECEFEA;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.planner-v2-field-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-faint);
  margin-bottom: 8px;
}
.planner-v2-input,
.planner-v2-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: var(--card-bg);
  outline: none;
  margin-bottom: 18px;
}
.planner-v2-textarea {
  resize: none;
  font-weight: 500;
  line-height: 1.5;
  min-height: 92px;
}
.planner-v2-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.planner-v2-stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.planner-v2-stepper button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  cursor: pointer;
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
}
.planner-v2-stepper output {
  font-size: 20px;
  font-weight: 800;
  min-width: 74px;
  text-align: center;
}
.cat-chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.cat-chip {
  flex: 1;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 13px;
  padding: 11px 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
}
.cat-chip--cocina { background: var(--cat-cocina-tile); color: var(--cat-cocina-label); }
.cat-chip--bano { background: var(--cat-bano-tile); color: var(--cat-bano-label); }
.cat-chip--sala { background: var(--cat-sala-tile); color: var(--cat-sala-label); }
.cat-chip--ropa { background: var(--cat-ropa-tile); color: var(--cat-ropa-label); }
.cat-chip--patio { background: var(--cat-patio-tile); color: var(--cat-patio-label); }
.cat-chip--cocina.is-active { border-color: var(--cat-cocina-accent); }
.cat-chip--bano.is-active { border-color: var(--cat-bano-accent); }
.cat-chip--sala.is-active { border-color: var(--cat-sala-accent); }
.cat-chip--ropa.is-active { border-color: var(--cat-ropa-accent); }
.cat-chip--patio.is-active { border-color: var(--cat-patio-accent); }
.planner-v2-secondary-btn {
  width: 100%;
  border: 1.5px solid #d8cbb0;
  cursor: pointer;
  background: var(--card-bg);
  color: #8a6d2f;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 16px;
  padding: 14px;
  margin-top: 10px;
}
.planner-v2-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.planner-v2-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.planner-v2-modal[hidden] {
  display: none;
}
.planner-v2-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.5);
  backdrop-filter: blur(2px);
}
.planner-v2-modal__panel {
  position: relative;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px 22px 20px;
  box-shadow: 0 20px 50px -14px rgba(20, 18, 12, 0.5);
  max-width: 340px;
  width: 100%;
}
.planner-v2-modal__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 14px;
}
.planner-v2-modal__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.planner-v2-modal__body {
  margin: 0 0 20px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #6b6a62;
}
.planner-v2-modal__actions {
  display: flex;
  gap: 10px;
}
.planner-v2-modal__actions .planner-v2-sheet__done { margin-top: 0; flex: 1; }
.planner-v2-warn-btn {
  flex: 1.3;
  border: none;
  cursor: pointer;
  background: var(--warn-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px -8px rgba(156, 126, 63, 0.7);
}

/* Toast processing */
.toast.is-visible { bottom: 98px; }
.toast.is-processing::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: vspin 0.8s linear infinite;
  margin-right: 10px;
  flex-shrink: 0;
}
@keyframes vspin { to { transform: rotate(360deg); } }

/* Admin consistency */
.wrap--admin .btn-primary {
  box-shadow: 0 12px 26px -10px rgba(95, 129, 104, 0.85);
}
.blue-sheet-scrim,
.blue-overlay__scrim,
.planner-v2-sheet-scrim {
  backdrop-filter: blur(2px);
}
.login-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}
.login-brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
  display: block;
}
.blue-date-nav--card,
.blue-admin--home .blue-date-nav {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 9px;
  box-shadow: var(--shadow-card);
}
.blue-task-row {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.blue-quad__tile,
.activity-tile {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.task-card-v2 { border-radius: var(--radius-card); }
.history-search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  padding: 0 13px;
  flex: 1;
}
.history-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 0;
}
.history-task-item--card {
  list-style: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}
.admin-template-item--card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
  border-bottom: 1px solid var(--card-border);
}
.planner-v2-day__load-warn {
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #8B3A2A;
}
.planner-v2-day__total.is-overloaded {
  color: #8B3A2A;
  font-weight: 800;
}
.planner-v2-day-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 22;
  background: var(--bg);
  margin: 0 -2px;
}
.planner-v2-day-tabs::-webkit-scrollbar { display: none; }
.planner-v2-day-tab {
  flex: 1 0 0;
  min-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 8px 4px 7px;
  border: 1.5px solid #EFEDE7;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.planner-v2-day-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.planner-v2-day-tab.is-busy:not(.is-active) {
  border-color: #E0C48A;
}
.planner-v2-day-tab.is-overloaded:not(.is-active) {
  border-color: #E08A78;
  background: #FFF6F4;
}
.planner-v2-day-tab.is-overloaded.is-active {
  background: #C45C48;
  border-color: #C45C48;
}
.planner-v2-day-tab.is-overloaded .planner-v2-day-tab__total {
  font-weight: 800;
}
.planner-v2-day-tab.is-drop-target {
  background: #DCE7DD;
  border-color: var(--accent);
}
.planner-v2-day-tab__dow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.75;
}
.planner-v2-day-tab__num {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
}
.planner-v2-day-tab__total {
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.7;
}
.planner-v2-day-tab__bar {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 4px;
  border-radius: 99px;
  background: rgba(26, 24, 20, 0.08);
  overflow: hidden;
}
.planner-v2-day-tab.is-active .planner-v2-day-tab__bar {
  background: rgba(255, 255, 255, 0.28);
}
.planner-v2-day-tab__bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: #7A9B82;
  min-width: 0;
  transition: width 0.2s ease;
}
.planner-v2-day-tab__bar-fill--busy {
  background: #C9A24A;
}
.planner-v2-day-tab__bar-fill--overloaded {
  background: #C45C48;
}
.planner-v2-day-tab.is-active .planner-v2-day-tab__bar-fill {
  background: #fff;
}
.planner-v2-day--single .planner-v2-day__header { margin-top: 4px; }
.planner-v2-day__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.planner-v2-day-add {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 11px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 6px 14px -6px rgba(95, 129, 104, 0.7);
}
.planner-v2-cluster {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.planner-v2-cluster.is-dragging { visibility: hidden; }
.planner-v2-cluster__head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 8px 2px;
  background: color-mix(in srgb, var(--room-tile, #F6F4EE) 40%, #fff);
}
.planner-v2-cluster__toggle {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  text-align: left;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.planner-v2-cluster__room-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--room-ic, var(--accent));
  flex-shrink: 0;
}
.planner-v2-cluster__title {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-cluster__chev {
  font-size: 18px;
  color: #b4b3a9;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.planner-v2-cluster.is-collapsed .planner-v2-cluster__chev { transform: rotate(0deg); }
.planner-v2-day-tab.is-day-off:not(.is-active) {
  opacity: 0.72;
}
.planner-v2-day-tab.is-day-off .planner-v2-day-tab__total {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.planner-v2-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #cfe0d2;
  border-radius: 100px;
  background: #EAF0EA;
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #385a3f;
  flex-shrink: 0;
}
.planner-v2-level-chip:active {
  transform: scale(0.97);
}
.planner-v2-level-chip__cycle {
  font-size: 12px;
  line-height: 1;
  opacity: 0.75;
}
.planner-v2-level-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  border: 1px solid #cfe0d2;
  border-radius: 100px;
  background: #EAF0EA;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  color: #385a3f;
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
}
.planner-v2-cluster-task--muted {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 8px 10px;
  opacity: 0.55;
}
.planner-v2-cluster-task--muted .planner-v2-cluster-task__name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.planner-v2-cluster-task--muted .planner-v2-cluster-task__meta {
  font-size: 11px;
  color: var(--muted-faint);
}
.planner-v2-cluster-task__include {
  width: 32px;
  height: 32px;
  border: 1.5px dashed #c5c2b8;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.planner-v2-asg-segs {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.planner-v2-asg-seg {
  border: 1.5px solid #E0DDD4;
  border-radius: 9px;
  min-width: 28px;
  padding: 6px 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  background: #F7F5F0;
  color: #a5a49a;
  letter-spacing: 0.02em;
}
.planner-v2-asg-seg.is-on {
  background: #EAF0EA;
  border-color: #7fad8b;
  color: #2f5236;
  box-shadow: inset 0 0 0 1px rgba(95, 129, 104, 0.15);
}
.planner-v2-level-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9d6cd;
}
.planner-v2-level-dot.is-on { background: var(--accent); }
.planner-v2-level-pill__label {
  margin-left: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-cluster__delete {
  border: none;
  background: none;
  color: #c6c4ba;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}
.planner-v2-cluster__summary {
  padding: 0 14px 10px 38px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-sub);
}
.planner-v2-cluster__body {
  border-top: 1px solid #EFEDE7;
  padding: 6px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.planner-v2-cluster-task {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  padding: 2px 4px 2px 0;
}
.planner-v2-cluster-task.is-pending { background: #FBF1DE; }
.planner-v2-cluster-task__body {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  text-align: left;
  padding: 6px 8px;
  cursor: pointer;
  font: inherit;
}
.planner-v2-cluster-task__name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.planner-v2-cluster-task__meta {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-sub);
  margin-top: 1px;
}
.planner-v2-cluster-task__delete {
  border: none;
  background: none;
  color: #c6c4ba;
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
}
.planner-v2-task.is-pending {
  border-color: #EAD9B3;
  background: #FBF1DE;
}
.planner-v2-pending-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #9C7E3F;
  background: #F5E7CB;
  border-radius: 4px;
  padding: 2px 5px;
  margin-bottom: 3px;
}
.planner-v2-task__room {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--room-ic, var(--accent));
  margin-bottom: 1px;
}
.planner-v2-task__meta {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-sub);
  margin-top: 2px;
}
.planner-v2-segment-tabs {
  display: flex;
  background: #F0EDE6;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 14px;
}
.planner-v2-segment-tab {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #8b8a82;
  cursor: pointer;
}
.planner-v2-segment-tab.is-active {
  background: #fff;
  color: #1a1a17;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.planner-v2-sheet__hint--accent {
  color: var(--accent);
  font-weight: 700;
}
.planner-v2-room-groups {
  max-width: 100%;
  min-width: 0;
}
.planner-v2-room-group {
  background: #fff;
  border: 1px solid #EFEDE7;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.planner-v2-room-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
  max-width: 100%;
}
.planner-v2-room-group__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.planner-v2-room-group__name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-room-group__ic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.planner-v2-room-group__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 45%;
}
.planner-v2-room-group__edit {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  padding: 4px;
}
.planner-v2-sheet--add-screen .library-v2-header {
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--bg);
  box-sizing: border-box;
}
.planner-v2-add-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
}
.planner-v2-add-actions__btn {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-sheet--add-screen .planner-v2-segment-tabs {
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
}
.planner-v2-drawer-search {
  flex-shrink: 0;
  margin-bottom: 12px;
  max-width: 100%;
  min-width: 0;
}
.planner-v2-drawer-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 0;
  padding: 8px 0;
  scroll-padding-top: 12px;
}
.planner-v2-drawer-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #ebe8e0;
  background: var(--bg);
  position: relative;
  z-index: 2;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.planner-v2-drawer-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #8b8a82;
}
.planner-v2-drawer-day-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.planner-v2-drawer-day-btn {
  border: 1.5px solid #e6e4dc;
  border-radius: 12px;
  background: #fff;
  padding: 8px 2px 9px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.planner-v2-drawer-day-btn.is-context {
  border-color: #c5d6c8;
  background: #f7faf7;
}
.planner-v2-drawer-day-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent);
}
.planner-v2-drawer-day-btn.is-selected .planner-v2-drawer-day-btn__dow,
.planner-v2-drawer-day-btn.is-selected .planner-v2-drawer-day-btn__num {
  color: #fff;
}
.planner-v2-drawer-day-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.planner-v2-drawer-add-cta {
  margin: 0;
}
.planner-v2-drawer-add-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.planner-v2-drawer-day-btn__dow {
  font-size: 9px;
  font-weight: 700;
  color: #8b8a82;
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.planner-v2-drawer-day-btn__num {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.planner-v2-drawer-check {
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid #d8d6ce;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: transparent;
}
.planner-v2-drawer-check.is-on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.planner-v2-room-group.is-selected {
  border-color: var(--accent);
  box-shadow: 0 4px 16px -8px rgba(56, 90, 63, 0.45);
}
.planner-v2-room-group.is-disabled {
  opacity: 0.55;
}
.planner-v2-room-group[data-group-select] {
  cursor: pointer;
}
.planner-v2-drawer-tasks {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.planner-v2-lib-list {
  display: flex;
  flex-direction: column;
}
.planner-v2-lib-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #EFEDE7;
}
.planner-v2-lib-row.is-selected {
  background: rgba(95, 129, 104, 0.05);
  margin: 0;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
  border-bottom-color: transparent;
}
.planner-v2-lib-row__main {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.planner-v2-lib-row__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.planner-v2-lib-row__meta {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: #a5a49a;
  line-height: 1.3;
}
.planner-v2-lib-row__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding-top: 1px;
}
.planner-v2-lib-row__btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #9a9890;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  touch-action: manipulation;
}
.planner-v2-lib-row__btn:hover {
  background: #F0EEE8;
  color: #5f8168;
}
.planner-v2-lib-row__btn--danger:hover {
  background: #fdf0ee;
  color: #b54a3a;
}
.planner-v2-drawer-tasks__room {
  margin: 12px 0 4px;
  padding-top: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b8a82;
}
.planner-v2-drawer-tasks__room:first-child {
  margin-top: 0;
}
.planner-v2-room-group__summary {
  font-size: 11px;
  font-weight: 600;
  color: #8b8a82;
  margin-bottom: 6px;
}
.planner-v2-room-group__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.planner-v2-room-group__task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #F0EEE8;
}
.planner-v2-room-group__task.is-excluded {
  opacity: 0.45;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.planner-v2-room-group__task.is-excluded .planner-v2-room-group__task-name {
  color: #a5a49a;
}
.planner-v2-room-group__task.is-extra {
  background: rgba(95, 129, 104, 0.06);
  border-radius: 8px;
  padding-left: 6px;
  padding-right: 6px;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.planner-v2-room-group__task.is-extra .planner-v2-room-group__task-name {
  color: var(--accent);
}
.planner-v2-room-group__task:last-child {
  border-bottom: none;
}
.planner-v2-room-group__task--empty {
  justify-content: flex-start;
  color: #b4b3a9;
  font-size: 11.5px;
  font-weight: 600;
  border-bottom: none;
  padding: 4px 0 0;
}
.planner-v2-room-group__task-name {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.planner-v2-room-group__task-meta {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: #a5a49a;
  white-space: nowrap;
  padding-top: 1px;
}
.planner-v2-loose-heading {
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.planner-v2-room-group__preview {
  font-size: 12.5px;
  font-weight: 600;
  color: #8b8a82;
  line-height: 1.45;
  margin-bottom: 12px;
}
.planner-v2-room-group__cta {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
}
.room-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; max-width: 100%; min-width: 0; }
.room-chip-row--equal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  max-width: 100%;
}
.room-chip-row--equal .room-chip {
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 6px 4px;
  font-size: 10.5px;
  line-height: 1.2;
  text-align: center;
  border-radius: 12px;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  word-break: break-word;
}
.room-chip-row--equal .room-chip__dot {
  flex-shrink: 0;
}
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #e6e4dc;
  border-radius: 100px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #5b5a52;
  max-width: 100%;
  box-sizing: border-box;
}
.room-chip.is-active {
  border-color: var(--room-ic, var(--accent));
  background: var(--room-tile, #EAF0EA);
  color: var(--room-fg, #385a3f);
}
.room-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--room-ic, var(--accent));
}
.library-room-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1.5px dashed #c9c6bc;
  border-radius: 100px;
  padding: 8px 12px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  touch-action: manipulation;
}
.library-room-add-panel {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.library-room-add-panel[hidden] {
  display: none !important;
}
.library-room-add-panel__input {
  flex: 1;
  min-width: 0;
}
.library-room-add-panel__confirm {
  flex-shrink: 0;
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
#library-form-levels-wrap[hidden] {
  display: none !important;
}
.planner-v2-level-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.planner-v2-level-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid #e6e4dc;
  border-radius: 100px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}
.planner-v2-level-toggle.is-on {
  border-color: #8fb59a;
  background: #EAF0EA;
  color: #385a3f;
}
.planner-v2-sheet--editor { z-index: 38; }
.planner-v2-editor-scroll {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.planner-v2-level-zone {
  border: 1.5px solid #EBE8E0;
  border-radius: 16px;
  background: #F6F4EE;
  padding: 10px;
  margin-bottom: 10px;
}
.planner-v2-level-zone.is-over {
  border-color: #9db8a6;
  background: rgba(95,129,104,.06);
}
.planner-v2-level-zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}
.planner-v2-level-zone__title {
  flex: 1;
  min-width: 0;
}
.planner-v2-editor-add {
  flex: none;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 10px -5px rgba(95, 129, 104, 0.7);
  touch-action: manipulation;
}
.planner-v2-editor-add:active {
  transform: scale(0.96);
}
.planner-v2-editor-item { margin-bottom: 6px; }
.planner-v2-editor-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #EFEDE7;
  border-radius: 12px;
  padding: 8px 8px 8px 2px;
}
.planner-v2-editor-row.is-dragging { visibility: hidden; }
.planner-v2-editor-row__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}
.planner-v2-editor-copy {
  flex: none;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #9a9890;
  border-radius: 8px;
  touch-action: manipulation;
}
.planner-v2-editor-copy:hover,
.planner-v2-editor-copy.is-open {
  background: #F0EEE8;
  color: #5f8168;
}
.planner-v2-editor-copy:disabled,
.planner-v2-editor-copy.is-disabled {
  opacity: 0.35;
  cursor: default;
}
.planner-v2-editor-copy-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 2px 34px;
  flex-wrap: wrap;
}
.planner-v2-editor-copy-panel__label {
  font-size: 11px;
  font-weight: 700;
  color: #a5a49a;
}
.planner-v2-editor-copy-chip {
  border: 1px solid #EBE8E0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  color: #385a3f;
  touch-action: manipulation;
}
.planner-v2-editor-copy-chip:hover {
  background: #EAF0EA;
  border-color: #8fb59a;
}
.planner-v2-asg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #EFEDE7;
}

.login-page {
  padding-top: 12vh;
}
.login-page h1 {
  font-size: 22px;
  margin: 0 0 18px;
}
.login-lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
}
.login-secondary {
  margin: 16px 0 0;
  text-align: center;
  font-size: 15px;
}
.login-secondary a {
  color: var(--text-muted, #6b6a64);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.planner-v2-sheet--rules {
  max-height: calc(100dvh - var(--admin-appbar-block) - var(--planner-vv-top) - 12px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.planner-v2-sheet--rules .planner-v2-sheet__done {
  flex-shrink: 0;
  margin-top: 12px;
}
.planner-v2-textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 12px;
}
.planner-rules-status {
  margin-bottom: 12px;
}
.planner-rules-status__line {
  font-size: 13px;
  color: #8b8a82;
  margin: 0 0 8px;
}
.planner-rules-status__error {
  font-size: 14px;
  color: var(--warn-accent);
  margin: 0 0 8px;
}
.planner-rules-summary {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #5a5a52;
}
.planner-rules-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.planner-v2-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.planner-v2-btn--primary {
  background: var(--accent);
  color: #fff;
  flex: 1;
}
.planner-v2-btn--secondary {
  background: #F6F4EE;
  color: var(--accent);
  border: 1px solid #cfd8cf;
}
.planner-rules-preview {
  border-top: 1px solid #ebe8e0;
  padding-top: 12px;
  margin-bottom: 12px;
}
.planner-rules-preview__title {
  font-size: 15px;
  margin: 0 0 8px;
}
.planner-rules-preview__list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 14px;
}
.planner-rules-preview__warnings {
  font-size: 13px;
  color: var(--warn-accent);
  margin: 0 0 10px;
}
.blue-alert--warn {
  background: var(--warn-bg);
  border-color: var(--warn-accent);
  color: var(--warn-accent);
}
.library-search-row {
  display: flex;
  gap: 9px;
  align-items: stretch;
  margin-bottom: 14px;
}
.library-search-row .planner-v2-search { margin-bottom: 0; }

/* Inventory check — employee wizard */
.inventory-intro-title {
  font-size: var(--emp-title, 22px);
  margin: 0 0 12px;
}
.inventory-intro-body {
  font-size: var(--emp-body, 18px);
  margin: 0 0 8px;
  line-height: 1.45;
}
.inventory-product-name {
  font-size: var(--emp-title, 22px);
  margin: 0 0 8px;
  font-weight: 600;
}
.inventory-product-location {
  font-size: var(--emp-body, 18px);
  color: var(--muted, #6b6560);
  margin: 0 0 16px;
}
.inventory-question {
  margin-bottom: 12px;
}
.inventory-answer-input {
  min-height: var(--emp-tap, 56px);
  font-size: var(--emp-body, 18px);
}
.task-row__inventory-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 6px;
  opacity: 0.75;
}
.task-row--inventory .task-row__body {
  cursor: pointer;
}

/* Inventory — admin catalog */
.inventory-admin {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.inventory-admin__header {
  flex-shrink: 0;
  padding: max(4px, env(safe-area-inset-top)) 16px 8px;
}
.inventory-admin__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 16px 12px;
}
.inventory-admin__back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--blue-muted, #5a6578);
  text-decoration: none;
}
.inventory-admin__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inventory-admin__title {
  font-size: 22px;
  margin: 0;
}
.inventory-admin__toolbar {
  display: flex;
  gap: 8px;
}
.inventory-admin__tool-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border, #e5e2dd);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.inventory-admin__tool-btn.is-active {
  background: var(--blue-soft, #eef3f8);
  border-color: var(--blue-accent, #4a6fa5);
}
.inventory-admin__tool-btn--danger.is-active {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}
.inventory-admin__tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.inventory-admin__hint {
  font-size: 14px;
  margin: 8px 0 0;
}
.inventory-admin__search-wrap {
  margin: 12px 0;
}
.inventory-admin__search {
  width: 100%;
}
.inventory-admin__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inventory-admin__item {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 8px;
}
.inventory-admin__item-btn {
  flex: 1;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border, #e5e2dd);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.inventory-admin__item-es {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.inventory-admin__item-en {
  display: block;
  font-size: 14px;
  color: var(--muted, #6b6560);
  margin-top: 2px;
}
.inventory-admin__item-loc {
  display: block;
  font-size: 13px;
  color: var(--muted, #6b6560);
  margin-top: 4px;
}
.inventory-admin__checkbox {
  width: 24px;
  height: 24px;
  align-self: center;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}
.inventory-request-modal__count {
  margin: 8px 0 16px;
  font-size: 14px;
}
.inventory-admin__footer {
  flex-shrink: 0;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid #EFEDE7;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inventory-admin__task-form {
  margin: 0;
}
.inventory-admin__task-btn {
  width: 100%;
}
.inventory-sheet-delete {
  margin-top: 16px;
  width: 100%;
}
.inventory-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.inventory-question-chips .chip-option {
  min-height: 44px;
}
.inventory-product-sheet__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.inventory-product-sheet {
  max-height: min(92vh, 720px);
}
.inventory-product-sheet__actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #EFEDE7;
  margin-top: 8px;
}
.inventory-product-sheet__actions .planner-v2-sheet__done {
  flex: 1;
  margin-top: 0;
}
body.admin-body--library.inventory-sheet-open {
  overflow: hidden;
}

/* Inventory responses — admin history/overlay */
.inventory-progress-summary {
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #2c2b28);
}
.inventory-progress-summary.is-progress {
  color: var(--accent, #5F8168);
}
.inventory-progress-hint {
  margin: 0 0 8px;
  font-size: 14px;
}
.inventory-responses-list {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.inventory-responses-list__item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #e5e2dd);
}
.inventory-responses-list__item:last-child {
  border-bottom: none;
}
.inventory-responses-list__item--pending {
  opacity: 0.72;
}
.inventory-responses-list__name-es {
  display: block;
  font-weight: 600;
}
.inventory-responses-list__name-en {
  display: block;
  font-size: 13px;
}
.inventory-responses-list__location {
  display: block;
  font-size: 13px;
}
.inventory-responses-list__question {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.inventory-responses-list__value {
  display: block;
  font-size: 16px;
}
.inventory-responses-list__pending {
  display: block;
  font-size: 14px;
  font-style: italic;
}
.inventory-copy-btn {
  margin-top: 8px;
}
.inventory-overlay-edit {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e5e2dd);
}
.inventory-overlay-edit__summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #6b6a62);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.blue-task-row__meta {
  display: block;
  font-size: 13px;
  margin-top: 2px;
  font-weight: 500;
}
.inventory-revisions {
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border, #e5e2dd);
}
.inventory-revisions__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.inventory-revisions__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inventory-revisions__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border, #e5e2dd);
  min-height: 48px;
}
.inventory-revisions__item:last-child {
  border-bottom: none;
}
.inventory-revisions__date {
  font-weight: 600;
  flex: 1 1 auto;
}
.inventory-revisions__status {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.inventory-revisions__status.is-progress {
  color: var(--accent, #5F8168);
}
.inventory-revisions__status.is-done {
  color: var(--muted, #6b6a62);
}
.inventory-revisions__status.is-pending {
  color: var(--muted-sub, #8a897f);
}
.inventory-revisions__count {
  font-size: 13px;
  width: 100%;
}

/* Day log — employee + admin timeline */
.day-log-link {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.day-log-link:hover,
.day-log-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}
.home-day-log-link,
.admin-day-log-link {
  margin: 4px 0 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
}
.admin-load-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FCEBE7;
  border: 1px solid #F0C4B8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.admin-load-alert a {
  color: #8B3A2A;
  text-decoration: none;
}
.admin-day-log-link__sep {
  color: var(--muted-sub, #6b6a62);
  font-size: 14px;
  user-select: none;
}
.admin-employee-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  margin: 0 0 12px;
  background: #eef3fb;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  font-size: 15px;
}
.admin-employee-banner__back {
  color: var(--accent, #2563eb);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.admin-employee-banner__back:hover,
.admin-employee-banner__back:focus-visible {
  text-decoration: underline;
}
.admin-employee-banner__title {
  color: var(--muted, #6b6a62);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}
.admin-day-log-link {
  margin: 0 0 10px;
}
.day-log--employee {
  padding-bottom: 24px;
}
.day-log__header {
  margin-bottom: 16px;
}
.day-log__title {
  font-size: 22px;
  margin: 0 0 12px;
}
.day-log__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.day-log__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.day-log__nav-btn--disabled {
  opacity: 0.25;
  pointer-events: none;
}
.day-log__date {
  font-size: 17px;
  font-weight: 600;
  color: var(--text, #1a1814);
  text-align: center;
  min-width: 0;
  flex: 1;
}
.day-log__empty {
  font-size: 18px;
  margin: 24px 0;
  text-align: center;
}
.day-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.day-log-list__item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border, #efede7);
  font-size: 18px;
  line-height: 1.45;
}
.day-log-list__item:last-child {
  border-bottom: none;
}
.day-log-list__item--deleted,
.history-baby-item--deleted {
  opacity: 0.55;
}
.day-log-list__item--deleted .day-log-list__text,
.history-baby-item--deleted .history-baby-summary {
  text-decoration: line-through;
  color: var(--muted, #6b6a62);
}
.day-log-list__time {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 4.6em;
}
.day-log-list__text {
  flex: 1;
  min-width: 0;
  color: var(--text, #1a1814);
}
.day-log-list__by {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted, #6b6a62);
  margin-left: auto;
}
.day-log-list__deleted-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted, #6b6a62);
}
.day-log-list__action {
  flex-shrink: 0;
  min-height: 56px;
  min-width: 56px;
  padding: 10px 14px;
  border: 1px solid var(--card-border, #d9d4c8);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #1a1814);
  cursor: pointer;
}
.day-log-list__action--delete {
  color: #8a3b2a;
  border-color: #e2b6aa;
}
.day-log-list__action--restore {
  color: #2f5d4a;
  border-color: #b7d0c4;
}
.day-log__deleted-toggle {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
}
.wrap--admin .day-log-list__item {
  padding: 14px 0;
  border-bottom-color: var(--card-border);
}
.wrap--admin .day-log-list__text {
  color: var(--muted-sub, #6b6a62);
}
.wrap--admin .day-log-list__action {
  min-height: 40px;
  min-width: auto;
  font-size: 14px;
  padding: 8px 12px;
}

.library-v2-footer--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.library-v2-footer__secondary {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent, #5f8168);
  text-decoration: none;
}
.library-freq-simple { margin-bottom: 8px; }
.library-freq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.library-freq-chip {
  border: 1px solid var(--card-border, #e8e4dc);
  background: var(--surface, #fff);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1a1814);
  cursor: pointer;
}
.library-freq-chip.is-active {
  border-color: var(--accent, #5f8168);
  background: rgba(95, 129, 104, 0.12);
  color: var(--accent, #5f8168);
}
.library-freq-advanced-btn {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #5f8168);
  text-align: left;
  cursor: pointer;
}
.library-history-list,
.equipo-relay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.library-history-item,
.equipo-relay-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border, #e8e4dc);
}
.library-history-item:last-child,
.equipo-relay-item:last-child { border-bottom: 0; }
.library-history-item__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.library-history-item__by {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted, #6b6a62);
}
.library-history-empty { padding: 8px 0 16px; }
.equipo-active-card {
  padding: 14px;
  border: 1px solid var(--card-border, #e8e4dc);
  border-radius: 14px;
  background: var(--surface, #fff);
  margin-bottom: 16px;
}
.equipo-active-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.equipo-active-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent, #5f8168);
  background: rgba(95, 129, 104, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
}
.equipo-active-card__meta,
.equipo-active-card__stats {
  margin: 4px 0;
  font-size: 13px;
}
.equipo-form .planner-v2-field-label { margin-top: 12px; }
.equipo-form__submit { width: 100%; margin-top: 16px; }
.equipo-relay-open { width: 100%; margin-top: 12px; }
.equipo-relay-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

/* ── Edit Task Sheet Redesign ────────────────────────────────── */

.planner-v2-sheet--edit-full {
  height: 90%;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.edit-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--card-border);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.edit-sheet-header .planner-v2-sheet__title { margin: 0; }
.edit-sheet-header .planner-v2-sheet__context { margin: 2px 0 0; }

.edit-sheet-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.edit-sheet-close:active { opacity: .6; }

.edit-sheet-body {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.edit-sheet-body .planner-v2-field-label { margin: 0; }
.edit-sheet-body .planner-v2-input,
.edit-sheet-body .planner-v2-textarea { margin: 0; }

.edit-sheet-kicker {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}

/* Template toggle button */
.edit-sheet-tpl-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font: inherit;
  transition: border-color .15s;
}
.edit-sheet-tpl-toggle:active { background: var(--bg); }
.edit-sheet-tpl-toggle__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.edit-sheet-tpl-toggle__text strong { font-size: 15px; }
.edit-sheet-tpl-toggle__sub {
  font-size: 13px;
  color: var(--muted);
}
.edit-sheet-tpl-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.edit-sheet-tpl-toggle.is-expanded .edit-sheet-tpl-chevron {
  transform: rotate(90deg);
}

/* No-template notice */
.edit-sheet-no-tpl {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

/* Template warning banner */
.edit-sheet-tpl-warning {
  font-size: 12.5px;
  line-height: 1.45;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
}

/* Chip groups */
.edit-sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}
.edit-sheet-chips--weekdays { gap: 4px; }
.edit-sheet-chips--modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.edit-sheet-chip {
  border: 1px solid var(--input-border);
  background: none;
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-pill);
  transition: background .12s, border-color .12s, color .12s;
}
.edit-sheet-chip:active { opacity: .7; }
.edit-sheet-chip.is-active,
.edit-sheet-chip.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.edit-sheet-chip--day {
  padding: 7px 9px;
  min-width: 34px;
  text-align: center;
}

/* Ghost button */
.edit-sheet-ghost-btn {
  background: none;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  text-align: center;
  width: 100%;
}
.edit-sheet-ghost-btn:active { background: var(--bg); }

/* Segmented controls */
.edit-sheet-seg {
  display: flex;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.edit-sheet-seg--inline {
  display: inline-flex;
  margin-left: auto;
}
.edit-sheet-seg__opt {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.edit-sheet-seg__opt.is-active {
  background: var(--accent);
  color: #fff;
}
.edit-sheet-seg--inline .edit-sheet-seg__opt {
  padding: 6px 12px;
  font-size: 12px;
}

/* Field row (label + inline seg) */
.edit-sheet-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.edit-sheet-field-row .planner-v2-field-label { margin: 0; flex-shrink: 0; }

/* Conditional fields */
.edit-sheet-conditional { display: flex; flex-direction: column; gap: 8px; }

/* Checklist rows */
.edit-sheet-checklist { display: flex; flex-direction: column; gap: 6px; }
.edit-sheet-checklist-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.edit-sheet-checklist-row input { flex: 1; }
.edit-sheet-checklist-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* Question rows */
.edit-sheet-question-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.edit-sheet-question-row input { flex: 1; }
.edit-sheet-question-type {
  border: 1px solid var(--input-border);
  background: none;
  font: inherit;
  font-size: 11px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--accent);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.edit-sheet-question-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* Danger zone */
.edit-sheet-danger {
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
  margin-top: 8px;
}
.edit-sheet-danger-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--danger);
  border-radius: var(--radius);
  background: none;
  color: var(--danger);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.edit-sheet-danger-btn:active { opacity: .7; }

/* Sticky footer */
.edit-sheet-footer {
  border-top: 1px solid var(--card-border);
  padding: 12px 20px calc(12px + max(10px, env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.edit-sheet-scope {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.edit-sheet-scope__label { opacity: .55; }
.edit-sheet-scope__tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--card-border);
  transition: background .15s, color .15s, border-color .15s;
}
.edit-sheet-scope__tag.is-template {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.edit-sheet-footer .planner-v2-footer__cta,
.edit-sheet-footer .planner-v2-secondary-btn {
  width: 100%;
}

/* Template body reveal animation */
.edit-sheet-tpl-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Logout confirmation */
.logout-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.logout-modal[hidden] { display: none; }
.logout-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.55);
  backdrop-filter: blur(2px);
}
.logout-modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 28px 22px 22px;
  box-shadow: 0 20px 50px -14px rgba(20, 18, 12, 0.5);
}
.logout-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}
.logout-modal__body {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}
.logout-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 56px;
  padding: 12px 10px;
  margin: 0 0 8px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.logout-modal__check input {
  width: 28px;
  height: 28px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.logout-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.logout-modal__actions .btn {
  margin: 0;
  min-height: 56px;
  font-size: 22px;
}
.logout-modal__leave:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Redesign 2a: Nicole bar (employee home) ── */
.home-top-row--bar {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.nicole-bar {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 18px 18px;
  margin-bottom: 18px;
  text-decoration: none;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.nicole-bar:active { transform: scale(0.99); }

.nicole-bar__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.nicole-bar__name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}
.nicole-bar__pill {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
}
.nicole-bar__pill--awake {
  background: var(--accent);
  color: var(--accent-text);
}
.nicole-bar__pill--asleep {
  background: var(--tile-sleep-bg);
  color: var(--tile-sleep-label);
}
.nicole-bar__chevron {
  margin-left: auto;
  display: flex;
  align-items: center;
  color: var(--muted);
}
.nicole-bar__chevron .hugo-icon { width: 20px; height: 20px; }

.nicole-bar__facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.nicole-bar__fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nicole-bar__fact-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.nicole-bar__fact-type {
  color: var(--accent);
  font-weight: 800;
}
.nicole-bar__fact-time {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.nicole-bar__fact-time--empty {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted-faint);
  white-space: normal;
}
.nicole-bar__fact-ago {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.3;
}

/* ── Redesign 2a: room accordions ── */
.task-list--loose {
  margin: 0;
  padding: 0 2px;
}

.room-acc {
  background: var(--room-tile, #F6F4EE);
  border-radius: 16px;
  overflow: hidden;
}
.room-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: var(--emp-tap, 56px);
  padding: 14px 16px;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.room-acc__name {
  font-size: var(--emp-lead, 20px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--room-fg, var(--text));
}
.room-acc__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.room-acc__count {
  font-size: 15px;
  font-weight: 700;
  color: var(--room-fg, var(--text));
  opacity: 0.85;
}
.room-acc--complete .room-acc__count { opacity: 0.65; }
.room-acc__chevron {
  display: flex;
  align-items: center;
  color: var(--room-fg, var(--text));
  opacity: 0.7;
  transition: transform 0.18s ease;
}
.room-acc__chevron .hugo-icon { width: 18px; height: 18px; }
.room-acc.is-open .room-acc__chevron { transform: rotate(90deg); }

.room-acc__panel {
  padding: 0 16px 12px;
}
.room-acc__panel .task-list--rows {
  margin: 0;
  padding: 0;
}
.home-screen .room-acc__panel .task-row {
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--room-fg, var(--text)) 10%, transparent);
}
.home-screen .room-acc__panel .task-row:last-child { border-bottom: none; }

/* ── Redesign 2a: Nicole full screen ── */
.nicole-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}
.nicole-head__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  margin-left: -10px;
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.nicole-head__name {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}
.nicole-head__status {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.nicole-section-label {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.nicole-quick { margin-bottom: 20px; }

.nicole-log__nav {
  margin-bottom: 6px;
}

/* Grouped history by type (design 6b) — smaller type allowed for density */
.history-by-type {
  display: flex;
  flex-direction: column;
}
.history-type-group {
  display: flex;
  flex-direction: column;
}
.history-type-group__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 4px 8px;
  margin: 0 -4px;
  padding-left: 12px;
  padding-right: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.history-type-group__head--diaper { background: var(--tile-diaper-bg); }
.history-type-group__head--feed { background: var(--tile-feed-bg); }
.history-type-group__head--sleep { background: var(--tile-sleep-bg); }
.history-type-group__head--note { background: var(--tile-note-bg); }
.history-type-group__head--task {
  background: #EFEDE7;
  color: var(--text);
}
.history-type-group__emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.history-type-group__label {
  flex: 1;
  min-width: 0;
}
.history-type-group__count {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.6;
  flex-shrink: 0;
}
.history-type-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--card-border);
}
.history-type-row--deleted {
  opacity: 0.55;
}
.history-type-row__time {
  width: 48px;
  flex-shrink: 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.3;
  white-space: nowrap;
}
.history-type-row__detail {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  overflow-wrap: anywhere;
}
.history-type-row__by {
  opacity: 0.5;
  font-weight: 500;
}
.history-type-row__action {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -8px -4px -8px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  border-radius: 999px;
}
.history-type-row__action:hover,
.history-type-row__action:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  outline: none;
}
.history-type-row__action--delete {
  color: var(--accent);
}
.history-type-row__action--restore {
  color: var(--accent);
}
.history-type-row__action--spacer {
  width: 44px;
  height: 44px;
  margin: -8px -4px -8px 0;
  pointer-events: none;
}
.history-type-row__action .hugo-icon {
  width: 16px;
  height: 16px;
}
.history-type-row__set-time {
  flex: 1 1 100%;
  margin: 4px 0 0 62px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Legacy nicole timeline classes kept for any cached markup */
.nicole-timeline {
  display: flex;
  flex-direction: column;
}
.nicole-group {
  position: relative;
}
.nicole-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}

/* ── Cooking module ── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.cook-admin { padding-bottom: 40px; }
.cook-admin__lead { font-size: 16px; margin: 0 0 20px; }
.cook-ai-card { padding: 20px; margin-bottom: 28px; }
.cook-ai-card__title { margin: 0 0 12px; font-size: 20px; }
.cook-ai-card__notice {
  background: #F3ECDA;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  margin: 0 0 16px;
}
.cook-ai-card__desc { min-height: 96px; }
.cook-ai-card .btn { margin-top: 12px; }
.cook-section-title { font-size: 18px; margin: 24px 0 12px; }
.cook-dish-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cook-dish-card {
  display: block;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
}
.cook-dish-card__name { display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.cook-dish-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cook-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--cat-cocina-tile);
  color: var(--cat-cocina-label);
}
.cook-chip--status { background: var(--tile-note-bg); color: var(--tile-note-label); }
.cook-chip--warn { background: #FBE7DA; color: #7a4522; }
.cook-prefs { padding: 20px; margin-top: 28px; }
.cook-priority-list { list-style: none; margin: 0 0 12px; padding: 0; }
.cook-priority-list li { margin: 0 0 8px; }
.cook-priority-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
}
.cook-priority-list__rank { max-width: 4.5rem; }
.cook-edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cook-ing-row {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 0 12px;
}
.cook-ing-row legend { font-weight: 700; }
.cook-ing-row label { display: block; font-size: 14px; color: var(--muted); margin: 8px 0; }
.cook-edit-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cook-archive { margin-top: 24px; }
.cook-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cook-status { font-weight: 700; }
.cook-status--confirmed, .cook-status--shopped { color: var(--accent); }
.cook-drink-picks { display: grid; gap: 8px; margin: 12px 0; }
.cook-day-card { padding: 16px; margin-bottom: 14px; }
.cook-day-card__title { margin: 0 0 12px; font-size: 18px; }
.cook-slot { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--card-border); }
.cook-slot:last-child { border-bottom: none; }
.cook-slot__label { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cook-slot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.cook-slot__name { font-weight: 700; }
.cook-slot__serv { display: flex; align-items: center; gap: 6px; }
.cook-slot__serv .input { max-width: 4.5rem; }
.cook-slot__add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cook-slot__n { max-width: 4.5rem; }
.cook-menu-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 40px; }
.cook-grocery-list { list-style: none; margin: 0; padding: 0; }
.cook-grocery-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}
.cook-grocery-item.is-bought { opacity: 0.55; }
.cook-grocery-item__math { margin: 4px 0 0; font-size: 14px; }
.cook-grocery-item__prod { margin: 6px 0 0; font-size: 14px; }

.cook-recipe { padding-bottom: 32px; }
.cook-recipe__name {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 8px 0 8px;
}
.cook-recipe__desc { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
.cook-recipe__servings {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}
.cook-recipe__period { font-size: 16px; color: var(--muted); margin: -12px 0 16px; }
.cook-recipe__steps {
  margin: 0 0 24px;
  padding: 0 0 0 1.4em;
}
.cook-recipe__steps li {
  font-size: 20px;
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 600;
}
.cook-recipe__grab {
  margin: 0 0 24px;
  font-size: 18px;
}
.cook-recipe__grab summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.cook-recipe__grab ul { margin: 8px 0 0; padding-left: 1.2em; }
.cook-recipe__grab li { margin: 0 0 8px; }
.cook-recipe__done .btn {
  min-height: 56px;
  font-size: 22px;
  width: 100%;
}
.cook-drink-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.cook-drink-card__name { margin: 0 0 12px; font-size: 22px; }

/* Beat both `.card h2` and `.wrap--admin .card h2` (admin previewing employee). */
.kitchen-inv-wizard .card h2.kitchen-inv-name,
.kitchen-inv-wizard .card h1.inventory-intro-title,
.wrap--admin .cook-ai-card h2.cook-ai-card__title,
.wrap--admin .cook-admin h2.cook-section-title,
.wrap--admin .card h2.cook-drink-card__name {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
}
.kitchen-inv-wizard .card h2.kitchen-inv-name {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
}
.kitchen-inv-wizard .card h1.inventory-intro-title {
  font-size: var(--emp-title, 22px);
  font-weight: 700;
}
.kitchen-inv-need {
  font-size: 22px;
  margin: 0 0 20px;
}
.kitchen-inv-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.kitchen-inv-choices .btn { min-height: 56px; font-size: 22px; margin: 0; }
.kitchen-inv-qty { font-size: 22px; min-height: 56px; }
.kitchen-inv-enough[aria-pressed="true"] { box-shadow: var(--focus-ring); }


.task-instr-modal__title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.task-note-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.task-note-input {
  width: 100%;
  min-height: 72px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text);
  resize: vertical;
}
.task-defer-form {
  margin-top: 18px;
  padding-top: 8px;
}
.task-defer-form .btn {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}
.task-overlay .btn-primary {
  width: 100%;
  min-height: 56px;
}
.blue-task-row__moved {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: #eef4f0;
  border-radius: 8px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.admin-task-moved {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef4f0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.admin-task-moved span {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: var(--muted);
}

.admin-week-nav {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 8px;
}
.admin-week-nav .blue-date-nav__btn {
  flex-shrink: 0;
  align-self: center;
}
.admin-week-strip {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.admin-week-strip__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 6px 2px;
  border-radius: 12px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: inherit;
  text-decoration: none;
  text-align: center;
}
.admin-week-strip__day.is-selected {
  border-color: var(--accent);
  background: #eef4f0;
}
.admin-week-strip__day.is-today:not(.is-selected) {
  border-color: #c5d4cb;
}
.admin-week-strip__day.is-off:not(.is-selected) {
  background: #f4f2ee;
  color: var(--muted);
}
.admin-week-strip__dow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-week-strip__num {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}
.admin-week-strip__rest {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}
.admin-week-heading {
  margin: 0 0 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

/* Training lessons */
.lesson-home {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 18px;
}
.lesson-home-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  min-height: 88px;
  border-radius: 18px;
  background: #eef3ee;
  color: var(--text);
  text-decoration: none;
  border: 1.5px solid #d5e0d6;
}
.lesson-home-card--extra {
  background: #f7f3ea;
  border-color: #e6dcc8;
}
.lesson-home-card.is-done {
  opacity: 0.7;
}
.lesson-home-card__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.lesson-home-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.lesson-home-card__cta {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}
.lesson-home-search {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.lesson-player {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: 24px;
}
.lesson-player__top,
.lesson-search__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.lesson-player__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
}
.lesson-player__title,
.lesson-search__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  flex: 1;
}
.lesson-player__index,
.lesson-player__stats,
.lesson-player__gate {
  font-size: 14px;
  color: var(--muted);
  margin: 0 4px 10px;
}
.lesson-player__scroll {
  flex: 1;
}
.lesson-player__video,
.lesson-player__image,
.lesson-compose__thumb {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #111;
  border-radius: 16px;
  margin-bottom: 12px;
}
.lesson-player__body {
  font-size: 18px;
  line-height: 1.45;
  margin: 8px 4px 24px;
}
.lesson-player__sentinel {
  height: 8px;
}
.lesson-player__cta-wrap {
  position: sticky;
  bottom: 0;
  padding: 8px 0 12px;
  background: linear-gradient(transparent, var(--bg) 30%);
}
.lesson-player__cta-wrap .btn[disabled] {
  opacity: 0.45;
}
.lesson-search__input {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--input-border);
  margin: 8px 0;
}
.lesson-search__list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.lesson-search__card {
  display: block;
  padding: 16px;
  min-height: 56px;
  border-radius: 16px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  margin-bottom: 10px;
  border: 1.5px solid var(--input-border);
}
.lesson-search__name {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.lesson-search__empty {
  font-size: 18px;
  color: var(--muted);
}
.lesson-admin__list {
  list-style: none;
  padding: 0;
  margin: 0 0 80px;
}
.lesson-admin__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--input-border);
}
.lesson-admin__row.is-dragging {
  opacity: 0.5;
}
.lesson-admin__grip {
  min-width: 48px;
  min-height: 56px;
  width: 48px;
  height: 56px;
  color: #5a5953;
  font-size: 22px;
  cursor: grab;
}
.lesson-admin__body {
  flex: 1;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.lesson-admin__title {
  display: block;
  font-size: 18px;
  font-weight: 700;
}
.lesson-admin__meta {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.lesson-admin__chips,
.lesson-chip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.lesson-chip {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eceae4;
  color: var(--muted);
}
.lesson-admin__assign {
  display: flex;
  gap: 6px;
}
.lesson-admin__assign-btn {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  background: var(--card-bg);
  font-size: 14px;
  font-weight: 600;
}
.lesson-admin__new {
  width: 100%;
}
.lesson-compose__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lesson-compose__cat {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 16px;
}
.lesson-compose__add {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.lesson-compose__add-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 14px;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.lesson-compose__media-item {
  margin-bottom: 12px;
}
.lesson-compose__media-remove {
  min-height: 44px;
  font-size: 16px;
  color: #a33;
  background: none;
  border: none;
}
.lesson-compose__footer {
  flex-wrap: wrap;
}
.planner-lesson-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px 10px;
}
.planner-lesson-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  background: #eef3ee;
  color: var(--text);
}
.planner-lesson-chip.is-cycle {
  background: var(--accent);
  color: var(--accent-text);
}

/* ── Employee home 4a ── */
:root {
  --home-hero: #2f4a38;
  --home-hero-fg: #f5ead8;
}
body:has(.home-screen--v3) .wrap {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
body:has(.home-screen--v3) .wrap > .flash,
body:has(.home-screen--v3) .wrap > .alert-error {
  margin-left: max(22px, env(safe-area-inset-left));
  margin-right: max(22px, env(safe-area-inset-right));
  margin-top: max(var(--space-4), env(safe-area-inset-top));
}
body.emp-drawer-open { overflow: hidden; }

.home-screen--v3 {
  min-height: 100vh;
  min-height: 100dvh;
}
.home-hero {
  background: var(--home-hero);
  color: var(--home-hero-fg);
  padding-top: env(safe-area-inset-top);
  margin-bottom: 0;
}
.home-hero__top {
  display: flex;
  align-items: center;
  padding: 4px 8px 0;
}
.home-hero__burger,
.home-hero__spacer {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.home-hero__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: inherit;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-hero__burger .hugo-icon { width: 22px; height: 22px; }
.home-hero__date {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.8;
}
.home-hero__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 6px;
  min-height: 0;
}
.home-hero__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  padding-left: 4px;
}
.home-hero__history {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.1rem;
  margin-right: auto;
}
.home-hero__note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 6px;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
}
.home-hero__note .hugo-icon { width: 15px; height: 15px; }
.home-hero__cells {
  display: flex;
  gap: 6px;
  padding: 0 8px 12px;
}
.home-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 76px;
  min-width: 0;
  padding: 10px 11px 11px;
  border: none;
  border-radius: 16px;
  background: rgba(245, 234, 216, 0.12);
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.home-cell [hidden] { display: none !important; }
.home-cell:active { transform: scale(0.99); }
.home-cell__label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.25;
}
.home-cell__label .hugo-icon { width: 14px; height: 14px; flex-shrink: 0; }
.home-cell__time {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}
.home-cell__ago {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
  line-height: 1.3;
}
.home-cell__empty {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.55;
  line-height: 1.3;
}

.home-meal {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(245, 234, 216, 0.18);
  color: inherit;
}
.home-meal__nav {
  width: auto;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0 9px;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.9;
}
.home-meal__nav.is-dim,
.home-meal__nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.home-meal__nav .hugo-icon { width: 17px; height: 17px; }
.home-meal__nav span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.home-meal__slots { flex: 1; min-width: 0; }
.home-meal__center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-height: 58px;
  padding: 11px 4px 12px;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.home-meal__center[hidden] { display: none !important; }
.home-meal__center.is-empty { cursor: default; }
.home-meal__kicker-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.home-meal__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.home-meal__instr {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.7;
}
.home-meal__dish {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.home-body {
  padding: 0 max(16px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
}

.home-screen--v3 .emp-tasks-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 8px;
  margin-bottom: 0;
  grid-template-columns: none;
}
.home-screen--v3 .emp-tasks-nav__center {
  display: contents;
}
.home-screen--v3 .emp-tasks-nav__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  text-align: left;
}
.home-screen--v3 .task-counter {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.55;
  color: var(--text);
  white-space: nowrap;
}

.home-screen--v3 .emp-task-groups--v3 {
  display: flex;
  flex-direction: column;
}
.home-screen--v3 .room-acc {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  border-top: 1px solid var(--card-border);
  border-left: 5px solid var(--room-ic, var(--accent));
}
.home-screen--v3 .room-acc__head {
  padding: 13px 16px;
  min-height: 58px;
  gap: 11px;
}
.home-screen--v3 .room-acc__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.home-screen--v3 .room-acc--complete .room-acc__name {
  opacity: 0.45;
  text-decoration: line-through;
}
.home-screen--v3 .room-acc__count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  opacity: 1;
}
.home-screen--v3 .room-acc__chevron { color: var(--text); }
.home-screen--v3 .room-acc__panel {
  padding: 0;
}
.home-screen--v3 .room-acc__panel .task-row {
  padding: 11px 16px 11px 34px;
  min-height: 50px;
  border-bottom: none;
  border-top: 1px solid var(--card-border);
}
.home-screen--v3 .room-acc__panel .task-row__title {
  font-size: 15px;
}
.home-screen--v3 .task-list--loose {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--card-border);
  border-left: 5px solid color-mix(in srgb, var(--text) 25%, transparent);
}
.home-screen--v3 .task-list--loose .task-row {
  padding: 13px 16px;
  min-height: 58px;
}
.home-screen--v3 .task-list--loose .task-row__title {
  font-size: 16px;
}
.home-screen--v3 .task-row.is-done { opacity: 1; }
.home-screen--v3 .task-row.is-done .task-row__title {
  opacity: 0.45;
  text-decoration: line-through;
}
.home-screen--v3 .task-row__instr {
  font-size: 13px;
}

.emp-drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.42);
  z-index: 220;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.emp-drawer-scrim.is-open { opacity: 1; }
.emp-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 78%;
  max-width: 300px;
  background: var(--card-bg);
  box-shadow: var(--shadow-sheet);
  z-index: 221;
  padding-top: max(20px, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.26s ease;
}
.emp-drawer.is-open { transform: translateX(0); }
.emp-drawer__item {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
button.emp-drawer__item--accent,
.emp-drawer__item--accent {
  color: var(--accent);
  font-weight: 800;
}

.sheet--meal {
  height: 74%;
  max-height: 74%;
  min-height: 0;
  padding: 0 0 max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.meal-sheet__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 20px 12px;
  border-bottom: 1px solid var(--card-border);
}
.meal-sheet__kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.meal-sheet__title {
  margin: 2px 0 0;
  font-size: 23px;
  font-weight: 800;
}
.meal-sheet__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.meal-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 14px 20px 22px;
}
.meal-sheet__tags {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.meal-sheet__tag {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--card-border);
  color: var(--text);
}
.meal-sheet__tag--accent {
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--accent-press);
}
.meal-sheet__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 7px;
}
.meal-sheet__ings {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.meal-sheet__ings li {
  font-size: 15.5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--card-border);
}
.meal-sheet__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.meal-sheet__steps li {
  display: flex;
  gap: 11px;
  padding: 7px 0;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.45;
}
.meal-sheet__n {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--accent-press);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.account-screen { padding-top: 8px; }
.account-screen__top { margin-bottom: 8px; }
.account-dl {
  margin: 0 0 24px;
}
.account-dl div { margin: 0 0 16px; }
.account-dl dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 4px;
}
.account-dl dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}





/* ── Admin dashboard 7a ── */
.wrap.wrap--admin-home {
  display: block;
  height: auto;
  max-height: none;
  min-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
body.admin-body--home {
  overflow: auto;
}

.dash {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}
.dash__header {
  display: flex;
  align-items: center;
  padding: 10px 2px 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
}
.dash__brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  width: 64px;
  letter-spacing: -0.3px;
}
.dash__menu {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.dash__date {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.dash__avatar {
  width: 44px;
  height: 44px;
  margin-left: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: #e7ede8;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dash__scroll {
  padding: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.dash-alert {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  min-height: 56px;
  border-radius: 12px;
  background: #FCEBE7;
  border: 1px solid #F0C4B8;
  color: #8B3A2A;
  text-decoration: none;
}
.dash-alert:hover { color: #8B3A2A; opacity: 0.92; }
.dash-alert__text { flex: 1; min-width: 0; }
.dash-alert__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.dash-alert__sub {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.75;
}
.dash-alert .hugo-icon { flex-shrink: 0; color: #8B3A2A; }

.dash-nicole {
  display: block;
  padding: 15px 16px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.dash-nicole:hover { color: inherit; }
.dash-nicole__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.dash-nicole__name { font-size: 17px; font-weight: 700; }
.dash-nicole__pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.dash-nicole.is-awake .dash-nicole__pill {
  background: #e7ede8;
  color: #385a3f;
}
.dash-nicole.is-asleep .dash-nicole__pill {
  background: #ECE9F6;
  color: #4a4468;
}
.dash-nicole__history {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.dash-nicole__note {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dash-nicole__note svg {
  width: 15px;
  height: 15px;
}
.dash-nicole__cells {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.dash-nicole__cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 72px;
  padding: 8px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dash-nicole__cell:active {
  background: rgba(0, 0, 0, 0.04);
}
.dash-nicole__cell [hidden] { display: none !important; }
.dash-nicole__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.dash-nicole__time {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.dash-nicole__empty {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.dash-nicole__ago {
  display: block;
  font-size: 11.5px;
  color: var(--accent);
}

.dash-day.cardish,
.dash-sec.cardish,
.cardish {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.dash-day {
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.dash-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--card-border);
  background: #faf9f6;
}
.dash-week-strip__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 6px 2px 7px;
  border: 1.5px solid #e6e4dc;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}
.dash-week-strip__day:hover { color: inherit; }
.dash-week-strip__day.is-today:not(.is-active) {
  border-color: #c5d6c8;
  background: #f7faf7;
}
.dash-week-strip__day.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.dash-week-strip__dow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b8a82;
}
.dash-week-strip__day.is-active .dash-week-strip__dow,
.dash-week-strip__day.is-active .dash-week-strip__num {
  color: #fff;
}
.dash-week-strip__num {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.dash-day__meal {
  background: #f6f5f1;
  border-bottom: 1px solid var(--card-border);
}
.dash-day__meal .home-meal {
  border-top: none;
}
.dash-day__tasks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px 8px;
  gap: 10px;
}
.dash-day__tasks-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.dash-day__tasks-counter {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.dash-day__progress {
  height: 7px;
  margin: 0 16px 6px;
  border-radius: var(--radius-pill);
  background: #eeece6;
  overflow: hidden;
}
.dash-day__progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.dash-day__empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}
.dash-task-list { display: flex; flex-direction: column; }
.dash-task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  min-height: 54px;
  border-top: 1px solid var(--card-border);
  border-left: 5px solid var(--muted-faint, #a9a89e);
  text-decoration: none;
  color: inherit;
}
.dash-task-row:hover { color: inherit; }
.dash-task-row.is-done { opacity: 0.72; }
.dash-task-row__label {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  min-width: 0;
}
.dash-task-row__label.is-strike { text-decoration: line-through; }
.dash-task-row__counter {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.dash-task-row__counter.is-ready { color: var(--accent); }
.dash-task-row .blue-task-row__check {
  flex-shrink: 0;
}
.dash-task-row .blue-task-row__check .hugo-icon {
  width: 14px;
  height: 14px;
  color: #fff;
}
.dash-task-row .hugo-icon--chevron-right,
.dash-task-row .hugo-icon--admin {
  flex-shrink: 0;
  color: var(--muted-faint, #a9a89e);
  opacity: 0.85;
}

.dash-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
}
.dash-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.dash-admin-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-sec { padding: 14px 15px 15px; }
.dash-sec__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.dash-sec__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-sec__icon .hugo-icon {
  width: 19px;
  height: 19px;
}
.dash-sec__titles { flex: 1; min-width: 0; }
.dash-sec__title {
  display: block;
  font-size: 16.5px;
  font-weight: 700;
}
.dash-sec__sub {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}
.dash-sec__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dash-sec__btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  min-height: 52px;
  border-radius: var(--radius-sm);
  background: #f6f5f1;
  border: 1px solid var(--card-border);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}
.dash-sec__btn:hover { color: var(--text); opacity: 0.92; }
.dash-sec__btn span { flex: 1; }
.dash-sec__btn .hugo-icon { flex-shrink: 0; opacity: 0.5; }
.dash-sec__btn--soon {
  border-style: dashed;
  color: var(--muted);
  cursor: default;
  opacity: 0.85;
}

.admin-drawer__group {
  list-style: none;
  margin: 14px 16px 4px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-appbar__brand {
  color: var(--accent);
  text-decoration: none;
}
.admin-appbar__avatar {
  border: none;
  cursor: pointer;
  background: #e7ede8;
  width: 38px;
  height: 38px;
  font-size: 13px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

/* Shared destination page polish */
.admin-page {
  padding-bottom: 28px;
}
.admin-page > .card,
.admin-page .blue-card,
.cook-admin .card,
.cook-admin .cook-ai-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.blue-page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* ── Monthly menu planner (11b / 11c) ── */
.mm {
  padding: 0 0 48px;
  max-width: 640px;
  margin: 0 auto;
}
.mm__top { margin-bottom: 12px; }
.mm__month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.mm__month-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  flex: 1;
  text-transform: capitalize;
}
.mm__month-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 1.4rem;
  text-decoration: none;
}
.mm__audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: color-mix(in srgb, var(--card-border) 55%, transparent);
  border-radius: 14px;
}
.mm__aud {
  text-align: center;
  padding: 10px 12px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
}
.mm__aud.is-active {
  background: var(--card-bg, #fff);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.mm__period-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 10px;
}
.mm__ptab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg, #fff);
  text-decoration: none;
  color: var(--text);
  min-height: 64px;
}
.mm__ptab.is-active { border-color: var(--accent); }
.mm__ptab--complete { border-style: solid; }
.mm__ptab--partial { border-style: solid; }
.mm__ptab--empty { border-style: dashed; opacity: .85; }
.mm__ptab-label { font-weight: 800; font-size: 14px; }
.mm__ptab-meta { font-size: 12px; color: var(--muted); }
.mm__ptab-bar {
  display: block;
  height: 3px;
  border-radius: 99px;
  background: var(--card-border);
  overflow: hidden;
  margin-top: 4px;
}
.mm__ptab-bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.mm__ptab--complete .mm__ptab-bar > span { background: #2f9e6e; }
.mm__views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 16px;
  font-size: 14px;
}
.mm__view-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.mm__view-link.is-active { color: var(--accent); }
.mm__legacy {
  margin-top: 28px;
  font-size: 13px;
  text-align: center;
}
.mm__legacy a { color: var(--muted); }

.mm-cycle__head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 12px;
}
.mm-cycle__back {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  opacity: .4;
}
.mm-cycle__title { margin: 0; font-size: 1.2rem; font-weight: 800; }
.mm-cycle__count { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.mm-cycle__gen,
.mm-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.mm-cycle__gen:disabled,
.mm-confirm:disabled,
.mm-confirm.is-blocked {
  background: color-mix(in srgb, var(--muted) 35%, var(--card-border));
  color: var(--muted);
  cursor: not-allowed;
}
.mm-cycle__gen.is-busy { opacity: .7; }
.mm-cycle__search { margin-bottom: 10px; }
.mm-cycle__search input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 0 14px;
  font-size: 16px;
  background: var(--card-bg, #fff);
}
.mm-cycle__filters,
.mm-review__filters,
.mm-day__chips,
.mm-day__out {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.mm-chip {
  border: 1px solid var(--card-border);
  background: var(--card-bg, #fff);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.mm-chip.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent-press, var(--accent));
}
.mm-chip--dashed { border-style: dashed; color: var(--muted); }
.mm-cycle__list { padding: 0; overflow: hidden; }
.mm-dish {
  display: grid;
  grid-template-columns: 1fr 44px;
  border-bottom: 1px solid var(--card-border);
}
.mm-dish:last-child { border-bottom: 0; }
.mm-dish__toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 56px;
}
.mm-dish__check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  color: var(--accent);
}
.mm-dish.is-in-cycle .mm-dish__check {
  background: color-mix(in srgb, var(--accent) 14%, white);
  border-color: var(--accent);
}
.mm-dish__name { display: block; font-weight: 700; font-size: 16px; }
.mm-dish__meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.mm-dish__info {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.mm-cycle__empty,
.mm-cycle__warn { font-size: 14px; margin: 10px 0; }
.mm-cycle__warn.is-danger { color: #a33; font-weight: 700; }
.mm-cycle__warn.is-info { color: var(--muted); }

.mm-cal__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mm-cal__dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.mm-cal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.mm-cal__cell {
  min-height: 68px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--card-bg, #fff);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  text-align: left;
}
.mm-cal__cell.is-empty { border-style: dashed; opacity: .75; }
.mm-cal__cell.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mm-cal__cell.is-manual { background: color-mix(in srgb, var(--accent) 6%, white); }
.mm-cal__num { font-size: 11px; font-weight: 800; color: var(--muted); }
.mm-cal__name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mm-cal__footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-footer__title { margin: 0; font-weight: 800; }
.mm-footer__sub { margin: 0; font-size: 13px; color: var(--muted); }
.mm-confirm--link {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.mm-day {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg, #fff);
}
.mm-day__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.mm-day__title { margin: 0; font-size: 1.05rem; text-transform: capitalize; }
.mm-day__current { margin: 8px 0; font-weight: 700; }
.mm-day__note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.mm-day__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mm-day__remove { margin-top: 8px; }

.mm-review__clash {
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mm-review__clash-title { margin: 0 0 8px; font-weight: 800; color: #a33; }
.mm-review__ok { margin: 0; color: #2f9e6e; font-weight: 700; }
.mm-review__days { display: grid; gap: 10px; }
.mm-review__day {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg, #fff);
}
.mm-review__day.has-warn { border-color: #e0a060; }
.mm-review__date {
  margin: 0 0 8px;
  font-size: 15px;
  text-transform: capitalize;
}
.mm-review__meal {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 6px;
  font-size: 13px;
  padding: 4px 0;
}
.mm-review__meal.is-clash { color: #a33; font-weight: 700; }
.mm-review__period { color: var(--muted); font-weight: 700; }
.mm-review__notes { margin: 8px 0 0; font-size: 12px; color: #a33; }
.mm-grocery-link { margin-top: 8px; text-align: center; }

/* Monthly extras planner */
.pm { padding: 8px 16px 110px; }
.pm__top { margin-bottom: 10px; }
.pm__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pm__month-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.pm__titles { flex: 1; text-align: center; min-width: 0; }
.pm__month-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pm__sub { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.pm__missed {
  margin: 4px 0 0;
  font-size: 12px;
}
.pm__missed a { color: var(--accent); font-weight: 700; }
.pm__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.pm__icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}
.pm__icon-btn:active { opacity: .65; }
.pm__text-btn {
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 10px;
  cursor: pointer;
}
.pm-cal { padding: 12px 10px 10px; }
.pm-cal__dows, .pm-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.pm-cal__dows { margin-bottom: 6px; }
.pm-cal__dows span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted-faint);
}
.pm-cal__pad { min-height: 92px; }
.pm-cal__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 92px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--card-border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.pm-cal__cell.is-off { opacity: .6; background: #f6f5f1; }
.pm-cal__cell.is-busy { border-color: #E0C48A; }
.pm-cal__cell.is-overloaded { background: #FFF6F4; border-color: #E08A78; }
.pm-cal__cell.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pm-cal__cell.is-overloaded.is-active {
  background: #C45C48;
  border-color: #C45C48;
}
.pm-cal__fill {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column-reverse;
  pointer-events: none;
}
.pm-cal__fill-bar {
  width: 100%;
  background: #7A9B82;
  opacity: .38;
}
.pm-cal__fill-bar--busy { background: #C9A24A; }
.pm-cal__fill-bar--overloaded { background: #C45C48; }
.pm-cal__cell.is-active .pm-cal__fill-bar { background: #fff; opacity: .28; }
.pm-cal__num {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.pm-cal__free {
  position: relative;
  margin-top: auto;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  color: #5f8168;
}
.pm-cal__cell.is-busy .pm-cal__free { color: #a07b2e; }
.pm-cal__cell.is-overloaded .pm-cal__free { color: var(--danger); }
.pm-cal__cell.is-active .pm-cal__free,
.pm-cal__cell.is-active.is-overloaded .pm-cal__free { color: #fff; }
.pm-cal__legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 4px 2px;
  border-top: 1px solid var(--card-border);
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.pm-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.pm-dot--base { background: #e6e4dc; }
.pm-dot--extra { background: var(--accent); }
.pm-dot--ok { background: #7A9B82; }
.pm-dot--busy { background: #C9A24A; }
.pm-dot--over { background: #C45C48; }
.pm-dot--off { background: #fff; border: 1px solid var(--input-border); }
.planner-v2-week-nav--day {
  justify-content: flex-start;
}
.planner-v2--day .planner-v2-day__name { display: none; }
.planner-v2--day .planner-v2-day__header { margin-top: 6px; }
.planner-v2-day__split {
  margin: 0 4px 10px;
  font-size: 13px;
  font-weight: 650;
  color: #8f8e84;
}
.planner-v2-day__section {
  margin: 16px 4px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.planner-v2-day__section--extra { color: #a07b2e; }
.planner-v2-day__section:first-child { margin-top: 4px; }
.pm-warn {
  margin-top: 12px;
  padding: 13px 14px;
  border-color: #F0C4B8;
  background: #FCEBE7;
  color: #8B3A2A;
}
.pm-warn strong { display: block; font-size: 13px; margin-bottom: 3px; }
.pm-warn p { margin: 0; font-size: 12.5px; line-height: 1.45; }
.pm__footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px 30px;
  background: rgba(250,249,247,.97);
  border-top: 1px solid var(--card-border);
  z-index: 20;
}
.pm__footer--quiet { text-align: center; }
.pm__cta {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pm-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.pm-sheet-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
.pm-sheet {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.pm-sheet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  padding-top: max(10px, env(safe-area-inset-top));
}
.pm-sheet__head h2 { margin: 0; font-size: 15px; font-weight: 700; text-align: center; }
.pm-sheet__head > div { flex: 1; text-align: center; }
.pm-sheet__month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 2px;
}
.pm-sheet__month-title {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.pm-sheet__body { flex: 1; overflow: auto; padding: 0 16px 16px; }
.pm-sheet__foot {
  padding: 12px 16px 28px;
  border-top: 1px solid var(--card-border);
  background: rgba(250,249,247,.97);
}
.pm-group { margin-bottom: 14px; }
.pm-group__head { display: flex; align-items: baseline; gap: 8px; padding: 8px 2px 4px; }
.pm-group__kicker { flex: 1; }
.pm-group__kicker--danger { color: var(--danger); }
.pm-group__kicker--accent { color: var(--accent); }
.pm-group__note { margin: 0 2px 8px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.pm-list { overflow: hidden; padding: 0; }
.pm-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--card-border);
  background: #fcfbf9;
}
.pm-row.is-on { background: #fff; }
.pm-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 8px 12px 13px;
  min-height: 60px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.pm-row__edit {
  width: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
}
.pm-check {
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid var(--input-border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pm-check.is-on { background: var(--accent); border-color: var(--accent); }
.pm-row__text { flex: 1; min-width: 0; }
.pm-row__name { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pm-row__meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.pm-row__side { flex-shrink: 0; text-align: right; font-size: 12.5px; font-weight: 700; }
.pm-row__side span { display: block; }
.pm-row__side span + span { font-size: 11px; font-weight: 600; color: var(--muted-faint); margin-top: 3px; }
.pm-new {
  display: block;
  text-align: center;
  padding: 16px 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.pm-load__row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.pm-load__bar { height: 6px; border-radius: 100px; background: #ecebe5; overflow: hidden; margin-bottom: 8px; }
.pm-load__bar span { display: block; height: 100%; border-radius: 100px; }
.pm-load p { margin: 0 0 11px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.pm-base { padding: 12px; }
.pm-base__cols, .pm-base__row, .pm-base__totals {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pm-base__cols { padding-left: 118px; margin-bottom: 8px; }
.pm-base__cols span, .pm-base__totals strong {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-faint);
}
.pm-base__name-pad { display: none; }
.pm-base__row { padding: 5px 0; border-top: 1px solid var(--card-border); }
.pm-base__name { width: 114px; flex-shrink: 0; padding-right: 4px; }
.pm-base__name strong { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.pm-base__name em { display: block; font-size: 10.5px; color: var(--muted-faint); font-style: normal; }
.pm-base__cell {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  border: 1.5px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.pm-base__cell.is-on { background: var(--accent); border-color: var(--accent); }
.pm-base__totals { padding: 9px 0 2px; border-top: 2px solid var(--card-border); margin-top: 4px; }
.pm-base__totals span { width: 114px; flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--muted); }
.pm-base__totals strong { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.pm-base__totals strong.is-over { color: var(--danger); }
.pm-base__note { font-size: 12px; color: var(--muted); margin: 12px 4px 0; line-height: 1.45; }
.k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
