.kid-page {
  --home-pet-size: 120px;
  --task-quick-font: var(--caption);
}
.kid-page .task-start-actions {
  display: flex; align-items: center; gap: var(--s1);
}
.kid-page .task-start-actions .btn {
  min-height: calc(var(--touch) / var(--kid-scale)); padding: 0 var(--s1);
  border: 0; border-radius: var(--touch); white-space: nowrap; line-height: var(--line-tight);
}
.kid-page .task-start-actions .btn-primary {
  flex: 1; background: var(--ink); color: var(--paper); font-size: var(--text);
  box-shadow: none; transform: none;
}
.kid-page .task-start-actions .btn-primary:disabled { background: var(--rule); color: var(--ink-2); }
.kid-page .task-start-actions .btn-secondary { font-size: var(--task-quick-font); font-weight: var(--w-medium); }
.task-start-notice { font-size: var(--small); min-block-size: 1lh; }

.kid-page .sticker-book.kid-content {
  --task-image: 36px;
  --sticker-slot-height: 130px;
  --sticker-carrot: 29px;
  --sticker-mark: 44px;
  gap: var(--s1);
  padding-inline-end: calc(var(--kid-edge) + var(--kid-rail));
  scrollbar-width: none;
}
#m2-sticker-tools {
  position: absolute; top: calc(var(--safe-top) + var(--kid-page-top));
  right: calc(var(--kid-edge) + var(--kid-rail)); z-index: 1;
}
.sticker-book .kid-lock { min-height: var(--touch); pointer-events: auto; }
.sticker-portrait { padding: 0; }
.sticker-rabbit { width: var(--home-pet-size); height: var(--home-pet-size); }
.sticker-rabbit .sticker { scale: var(--rabbit-growth); transition: scale 280ms var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  :is(.sticker-portrait, .boy-hero)[data-growing="true"] > :is(.sticker-rabbit, .sticker--hero) {
    animation: home-pet-grow 1.7s var(--ease) both;
  }
  @keyframes home-pet-grow {
    0% { scale: .85; }
    35%, 100% { scale: 1; }
    65% { scale: .94; }
  }
}
.sticker-portrait .kid-hero-name { font-size: var(--kid-heading); }
.pet-stage { color: var(--ink-2); font-size: var(--small); }
.carrot-basket, .sticker-stars, .sticker-stars-earned, .sticker-stars-pending {
  display: flex; align-items: center; justify-content: center; gap: var(--s1);
}
.carrot-slot { display: grid; place-items: center; width: var(--sticker-carrot); height: var(--sticker-carrot); }
.carrot-slot .sticker { --sticker-size: var(--sticker-carrot); rotate: -9deg; }
.carrot-slot[data-state="empty"]::before {
  content: ''; width: 70%; height: 70%; border: 1.5px dashed var(--ink-3); border-radius: 50%;
}
.carrot-slot[data-state="waiting"] .sticker, .sticker-stars-pending .sticker { opacity: .48; }
.sticker-stars { gap: var(--s2); min-height: var(--s6); }
.sticker-stars-earned > .sticker { --sticker-size: var(--s5); }
.sticker-stars-earned .num { font-size: var(--card-title); line-height: var(--line-tight); }
.sticker-stars-pending { min-width: var(--s4); color: var(--ink-2); }
.sticker-stars-pending .sticker, .sticker-stars-pending .icon { --sticker-size: var(--s4); width: var(--s4); height: var(--s4); }
.sticker-tasks { border-top: 1px solid var(--rule); padding-block-start: var(--s2); }
.sticker-tasks h2 { margin-bottom: var(--s2); }
.sticker-slot { position: relative; height: var(--sticker-slot-height); border-radius: var(--r2); }
.sticker-tile {
  display: grid; align-content: start; justify-items: center; gap: var(--s1); text-align: center;
  width: 100%; height: var(--sticker-slot-height);
  border-radius: inherit; border: 1.5px solid transparent; padding: var(--s1);
  background: transparent; line-height: var(--line-tight); overflow-wrap: anywhere;
}
.sticker-tile, .sticker-tile * {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.sticker-slot[data-status="todo"] .sticker-tile { border-color: var(--ink-3); border-style: dashed; }
.sticker-slot[data-next="true"] .sticker-tile { border-color: var(--ink-2); }
.sticker-slot[data-next="true"] .sticker-time {
  color: var(--ink); background: var(--rule); border-radius: var(--r1); padding-inline: var(--s1);
}
.stamp-art { position: relative; display: block; width: var(--task-image); height: var(--task-image); }
.sticker-slot[data-status="todo"] .stamp-art .sticker { filter: grayscale(1); opacity: .25; }
.sticker-slot[data-status="confirmed"] .stamp-art .sticker { rotate: -3deg; }
.sticker-slot[data-status="waiting"] .stamp-art .sticker { rotate: 3deg; }
.sticker-slot[data-stamping="true"] .stamp-art .sticker { animation: sticker-ink 395ms forwards; }
@keyframes sticker-ink {
  0% { filter: grayscale(1); opacity: .25; }
  54% { filter: grayscale(1); opacity: .8; }
  68%, 100% { opacity: 1; }
}
.sticker-tile strong {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font-size: var(--small);
}
.sticker-time {
  position: absolute; inset-inline: var(--s1); bottom: var(--s3); margin-inline: auto; width: fit-content;
  display: flex; align-items: center; gap: var(--s1); color: var(--ink-2); font-size: var(--caption);
}
.sticker-time:has(.sticker-quota) { flex-wrap: wrap; justify-content: center; row-gap: 0; }
.sticker-quota { white-space: nowrap; }
.sticker-time .icon { width: var(--text); height: var(--text); }
.sticker-tile .sticker-check {
  position: absolute; width: min(var(--sticker-mark), var(--task-image)); height: min(var(--sticker-mark), var(--task-image));
  left: 75%; top: var(--s1); transform: rotate(-8deg);
}
.sticker-speaker.btn { position: absolute; top: 0; right: 0; min-width: 48px; min-height: 48px; background: var(--secondary-fill); }
.sticker-speaker .icon { width: 28px; height: 28px; }
.sticker-slot[data-ready="true"] { background: var(--paper); }
.sticker-slot[data-ready="true"] .sticker-tile { border-color: var(--ink-2); border-style: solid; }
.sticker-slot[data-ready="true"] .sticker-time { visibility: hidden; }
.sticker-actions {
  position: absolute; inset-inline: 0; margin-inline: auto; width: min(calc(100% - 2 * var(--s1)), 180px); bottom: var(--s1);
}
.sticker-flying-star { position: fixed; z-index: 10; pointer-events: none; width: var(--s5); }
@media (min-width: 700px) {
  .kid-page { --home-pet-size: 140px; --task-quick-font: var(--small); }
  #m2-sticker-tools { top: var(--kid-page-top); }
}
@media (min-width: 700px) and (min-height: 1000px) {
  .kid-page .sticker-book.kid-content { --task-image: 52px; --sticker-slot-height: 168px; --sticker-carrot: 38px; }
  .sticker-tile strong { font-size: var(--text); }
  .sticker-portrait .kid-hero-name { font-size: var(--kid-heading); }
  .sticker-stars-earned > .sticker { --sticker-size: var(--s6); }
  .sticker-stars-earned .num { font-size: var(--kid-heading); }
}

.queue-split-context { overflow-wrap: anywhere; }
.approval-notices { position: fixed; z-index: 6; bottom: calc(var(--parent-nav-height) + var(--s2) + var(--safe-bottom)); left: 50%; width: max-content;
  max-width: calc(100% - 2 * var(--s4)); transform: translateX(-50%); display: grid; gap: var(--s2); }
.undo-notice { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-inline: var(--s3) var(--s1);
  border: 1px solid var(--line); border-radius: var(--r2); background: var(--paper); box-shadow: var(--sticker-shadow); }
.undo-notice .btn { white-space: nowrap; }
.task-icon-option { padding-inline: var(--s1); }
.task-icon-option .sticker { --sticker-size: var(--s6); }
.task-icon-options { flex-wrap: wrap; }
.task-editor { padding-bottom: var(--s2); }
.task-editor .parent-options:has(:disabled) .parent-option:has(:disabled) { color: var(--ink-2); opacity: .64; }
