:root {
  /* Палитра Лёли: молочный фон, оранжевый акцент, тёмный индиго */
  --ink: #1f2f4d;
  --muted: #5a6a85;
  --green: #f07828;
  --accent: #f07828;
  --mint: #fff1e4;
  --paper: #fff8f0;
  --line: #ebd9c8;
  --orange: #ffb15a;
  --sky: #7ec8ff;
  --white: #fff;
  --shadow: 0 12px 32px #e07a4a18;
  --on-accent: #1f2f4d;
  --link: #9a4510;
  --danger: #a44032;
  --focus: #ea9a41;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
}
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, #ffe8d0, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #f3ebe0, transparent 50%),
    var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  touch-action: manipulation;
}
h1,
h2,
h3,
.task h3 {
  overflow-wrap: anywhere;
}
.mobile-brand,
.narrow-only {
  display: none;
}
.task.next {
  background: linear-gradient(180deg, #fff4ea, #fff);
  border: 1px solid #ffe0c8;
  border-radius: 22px;
  padding: 18px;
  margin: 4px 0 12px;
}
.task.next .task-actions {
  grid-column: 1 / -1;
  align-items: stretch;
}
.task.next .task-actions .full {
  min-height: 52px;
  font-size: 17px;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a {
  color: var(--link);
}
.contact a {
  text-underline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: -1.3px;
  line-height: 1.12;
  margin-bottom: 14px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 8px;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
  line-height: 1.5;
}
button {
  background: var(--accent);
  color: var(--on-accent);
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 18px #f0782833;
  transition: transform 0.12s ease, filter 0.12s ease;
}
button:hover {
  filter: brightness(1.04);
}
button:active {
  transform: scale(0.97);
}
button.ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px #e7c3ae33;
  border: 1px solid var(--line);
}
button.outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}
button.danger {
  background: #fff0eb;
  color: var(--danger);
  box-shadow: none;
}
button.link {
  padding: 5px;
  background: transparent;
  color: var(--link);
  box-shadow: none;
  text-align: left;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .device-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .device-actions button {
    width: 100%;
    justify-content: center;
  }
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card.soft {
  background: #fff4ea;
}
.card.sand {
  background: linear-gradient(180deg, #fff6e8, #ffe8f2);
}
.card h2:last-child,
.card p:last-child {
  margin-bottom: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 750;
  color: var(--link);
  margin-bottom: 12px;
}
.pill {
  display: inline-block;
  padding: 6px 10px;
  background: var(--mint);
  color: var(--link);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 650;
}
.pill.orange {
  background: #fff0db;
  color: #7a3f12;
}
.pill.gray {
  background: #f0f2ee;
  color: #6a746e;
}
.shell {
  max-width: 1480px;
  margin: auto;
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fffaf6;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
/* Родительский сайдбар чуть спокойнее детских акцентных кнопок */
body:not(.theme-calm) .sidebar .nav button.active {
  background: #ffe2c4;
  color: var(--ink);
  box-shadow: none;
}
.brand {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -2px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.brand em {
  font-size: 27px;
  font-style: normal;
}
.tagline {
  font-size: 11px;
  margin: 4px 0 0 36px;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  gap: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px;
  font-size: 14px;
  box-shadow: none;
}
.nav button.active {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 16px #f0782833;
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
}
.sidebar-foot small {
  font-size: 11px;
}
.main {
  padding: 30px 42px 70px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}
.topbar .profile {
  border: 1px solid var(--line);
  background: white;
  border-radius: 30px;
  padding: 9px 15px;
  color: var(--ink);
}
.avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffe7c8, #ffd0e0);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-weight: 800;
}
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.hero {
  background: linear-gradient(135deg, #ffe8d2, #fff6ea 48%, #e7f6ff);
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid #ffe0c8;
}
.hero img {
  width: 100%;
  max-height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 12px 15px #5772591b);
  animation: breathe 4s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.hero p {
  max-width: 450px;
  color: var(--muted);
}
.hero h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.stat {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stats .card {
  padding: 20px;
}
.stat-hit {
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: inherit;
  width: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.stat-hit:hover,
.stat-hit:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.month-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 140px;
  margin: 16px 0 8px;
}
.month-bar {
  display: grid;
  gap: 6px;
  justify-items: center;
}
.month-bar-track {
  position: relative;
  width: 100%;
  max-width: 28px;
  height: 110px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}
.month-bar-paid,
.month-bar-reg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px 10px 0 0;
}
.month-bar-paid {
  background: var(--accent);
  opacity: 0.9;
}
.month-bar-reg {
  background: #3d4f8c;
  opacity: 0.55;
}
.material-list {
  display: grid;
  gap: 14px;
}
.material-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.material-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.material-row h3 {
  margin: 0;
  font-size: 17px;
}
.material-actions,
.material-publish {
  margin-top: 12px;
}
.section {
  margin-top: 28px;
}
.task {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.task:first-child {
  padding-top: 0;
}
.task:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.task h3 {
  margin: 0 0 6px;
}
.task p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}
.task-icon {
  background: #f1f2e8;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 21px;
}
.task-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.task-actions button {
  font-size: 12px;
  padding: 10px 12px;
}
.task-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.filters select,
.filters input {
  width: auto;
  margin: 0;
  max-width: 100%;
}
.filters input[data-admin-filter] {
  min-width: 160px;
  flex: 1 1 160px;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin: 12px 0 8px;
}
.progress {
  height: 12px;
  background: #ffe8d6;
  border-radius: 20px;
  overflow: hidden;
  margin: 15px 0 10px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: 20px;
}
.goal-icon {
  font-size: 40px;
  margin-bottom: 18px;
}
.goal .row {
  margin-top: 16px;
}
.goal small {
  display: block;
}
.notice {
  padding: 15px 18px;
  background: #fff0db;
  border-radius: 16px;
  line-height: 1.6;
  font-size: 13px;
  margin-bottom: 20px;
}
.notice.info {
  background: #e8f0ed;
}
.notice.error {
  background: #fff0eb;
  color: #a44032;
}
.log {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
}
.log:last-child {
  border-bottom: 0;
}
.positive {
  color: #2f9a62;
  font-weight: 700;
}
.negative {
  color: #ad614a;
  font-weight: 700;
}
.pet-stage {
  min-height: 380px;
  display: grid;
  place-items: end center;
  position: relative;
  border-radius: 24px;
  background: #8fd0ee;
  overflow: hidden;
  padding-bottom: 54px;
}
.pet-stage.forest {
  background: #7ec98a;
}
.pet-stage.sunset {
  background: #ffb077;
}
.pet-stage.stars {
  background: #24315f;
  color: white;
}
.scene-sky,
.scene-sun,
.scene-moon,
.scene-cloud,
.scene-hill,
.twinkle {
  position: absolute;
  pointer-events: none;
}
.scene-sky {
  inset: 0;
  background: linear-gradient(#7ec8f0, #d9f4ff 68%);
}
.pet-stage.forest .scene-sky {
  background: linear-gradient(#8fd48a, #e7f6c8 70%);
}
.pet-stage.sunset .scene-sky {
  background: linear-gradient(#ff8a5b, #ffd29a 46%, #ffe7c2 72%);
}
.pet-stage.stars .scene-sky {
  background: linear-gradient(#1b2550, #3d4d92 70%);
}
.scene-sun {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6b0, #ffd24a 58%, #f0a63a);
  top: 22px;
  right: 28px;
  box-shadow: 0 0 0 10px #ffe56a44, 0 0 36px 8px #ffe08a88;
  translate: calc(var(--sky-x, 0px) * -0.35) calc(var(--sky-y, 0px) * -0.25);
}
.scene-sun::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffe9a066 0 8deg, transparent 8deg 24deg);
  animation: sunSpin 28s linear infinite;
}
.scene-moon {
  display: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f4f1d8;
  top: 32px;
  right: 40px;
  box-shadow: -14px 6px 0 #24315f inset;
}
.pet-stage.stars .scene-sun {
  display: none;
}
.pet-stage.stars .scene-moon,
.pet-stage.stars .twinkle {
  display: block;
}
.twinkle {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  animation: twinkle 2.4s ease-in-out infinite;
}
.twinkle.t1 {
  top: 40px;
  left: 18%;
}
.twinkle.t2 {
  top: 78px;
  left: 42%;
  animation-delay: 0.6s;
}
.twinkle.t3 {
  top: 36px;
  left: 64%;
  animation-delay: 1.1s;
}
.scene-cloud {
  height: 34px;
  width: 108px;
  background: #fff;
  border-radius: 24px;
  top: 42px;
  opacity: 0.95;
  animation: drift 26s linear infinite;
  translate: var(--sky-x, 0px) calc(var(--sky-y, 0px) * 0.45);
}
.scene-cloud:before,
.scene-cloud:after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}
.scene-cloud:before {
  width: 36px;
  height: 36px;
  top: -16px;
  left: 16px;
}
.scene-cloud:after {
  width: 26px;
  height: 26px;
  top: -10px;
  left: 44px;
}
.scene-cloud.c1 {
  left: -20px;
}
.scene-cloud.c2 {
  top: 78px;
  left: 28%;
  scale: 0.72;
  animation-duration: 34s;
  animation-direction: reverse;
}
.scene-cloud.c3 {
  top: 24px;
  left: 8%;
  width: 74px;
  height: 24px;
  opacity: 0.8;
  scale: 0.85;
  animation-duration: 42s;
}
.pet-stage.stars .scene-cloud {
  opacity: 0.18;
}
.scene-hill {
  left: -10%;
  right: -10%;
  bottom: 0;
  height: 92px;
  background: #67b86a;
  border-radius: 50% 50% 0 0;
}
.pet-stage.forest .scene-hill {
  background: #3e8f55;
}
.pet-stage.sunset .scene-hill {
  background: #e07a4a;
}
.pet-stage.stars .scene-hill {
  background: #1a2744;
}
.pet-tap {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0;
  margin-bottom: -8px;
}
.pet-stage img {
  width: min(280px, 78vw);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  image-rendering: auto;
  position: relative;
  animation: breathe 3.6s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.pet-stage img.tickle {
  animation: tickle 0.7s ease;
}
/* Старый оранжевый «подмиг» и CSS-аксессуары мешают новому кадру: кадры уже содержат шарф и мимику */
.wink {
  display: none;
}
.pet-tap.outfit-star::after,
.pet-tap.outfit-leaf::after,
.pet-tap.outfit-bow::after,
.pet-tap.outfit-rain::after,
.pet-tap.outfit-sleep::after,
.pet-tap.outfit-hat::after {
  display: none;
}
.scene-bloom {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffd86a;
  bottom: 78px;
  left: 18%;
  box-shadow: 0 0 0 6px #ffd86a33;
  pointer-events: none;
}
.scene-bloom.b2 {
  left: 72%;
  bottom: 70px;
  width: 12px;
  height: 12px;
  background: #ff8fb3;
  box-shadow: 0 0 0 5px #ff8fb333;
}
.pet-stage.stars .scene-bloom {
  opacity: 0.35;
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.care-btn {
  min-height: 78px;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  border-radius: 22px;
  background: #fff1e6;
  color: var(--ink);
  padding: 10px 6px;
  box-shadow: 0 6px 14px #e7b89a22;
}
.care-btn:nth-child(1) {
  background: #ffe3c4;
}
.care-btn:nth-child(2) {
  background: #ffd5dc;
}
.care-btn:nth-child(3) {
  background: #ffe7a8;
}
.care-btn:nth-child(4) {
  background: #d9f3ff;
}
.care-btn:nth-child(5) {
  background: #e7e0ff;
}
.care-btn:nth-child(6) {
  background: #d9f8e8;
}
.care-btn b {
  font-size: 13px;
}
.care-btn small {
  color: var(--muted, #6b7a74);
  font-size: 11px;
}
.care-btn.done {
  filter: saturate(0.75);
}
.pet-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.pet-fx i {
  position: absolute;
  display: block;
}
.pet-fx.play .ball {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ef6b4a);
  left: 18%;
  bottom: 28%;
  animation: bounceBall 0.9s ease;
}
.pet-fx.wash i,
.pet-fx.bath i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9fe7ffaa;
  border: 2px solid #ffffffcc;
  animation: riseBubble 0.9s ease forwards;
}
.pet-fx.wash i:nth-child(1),
.pet-fx.bath i:nth-child(1) {
  left: 28%;
  bottom: 22%;
}
.pet-fx.wash i:nth-child(2),
.pet-fx.bath i:nth-child(2) {
  left: 46%;
  bottom: 18%;
  animation-delay: 0.1s;
}
.pet-fx.wash i:nth-child(3),
.pet-fx.bath i:nth-child(3) {
  left: 62%;
  bottom: 26%;
  animation-delay: 0.18s;
}
.pet-fx.wash i:nth-child(4),
.pet-fx.bath i:nth-child(4) {
  left: 38%;
  bottom: 32%;
  width: 10px;
  height: 10px;
}
.pet-fx.wash i:nth-child(5),
.pet-fx.bath i:nth-child(5) {
  left: 55%;
  bottom: 36%;
  width: 12px;
  height: 12px;
  animation-delay: 0.25s;
}
.pet-fx.bath i {
  background: #7ec8f0aa;
}
.pet-fx.brush i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffe56a;
  animation: spark 0.8s ease;
}
.pet-fx.brush i:nth-child(1) {
  left: 52%;
  top: 28%;
}
.pet-fx.brush i:nth-child(2) {
  left: 60%;
  top: 36%;
  animation-delay: 0.12s;
}
.pet-fx.brush i:nth-child(3) {
  left: 48%;
  top: 34%;
  animation-delay: 0.2s;
}
.pet-fx.song i {
  font-style: normal;
  color: #d86a32;
  font-size: 22px;
  animation: floatNote 0.9s ease forwards;
}
.pet-fx.song i:nth-child(1) {
  left: 18%;
  bottom: 40%;
}
.pet-fx.song i:nth-child(2) {
  left: 70%;
  bottom: 46%;
  animation-delay: 0.12s;
}
.pet-fx.song i:nth-child(3) {
  left: 40%;
  bottom: 52%;
  animation-delay: 0.2s;
}
.pet-fx.feed .apple {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e25b4a;
  left: 58%;
  top: 42%;
  animation: nibble 0.9s ease;
}
.pet-fx.feed .apple:before {
  content: '';
  position: absolute;
  width: 6px;
  height: 8px;
  background: #3e8f55;
  top: -6px;
  left: 6px;
  border-radius: 4px;
}
.pet-stage img.care-move.care-play {
  animation: hopPlay 0.9s ease;
}
.pet-stage img.care-move.care-wash,
.pet-stage img.care-move.care-bath {
  animation: shakeWash 0.9s ease;
}
.pet-stage img.care-move.care-brush {
  animation: wiggleBrush 0.8s ease;
}
.pet-stage img.care-move.care-song {
  animation: swaySong 0.9s ease;
}
.pet-stage img.care-move.care-feed {
  animation: nibbleFox 0.9s ease;
}
.pet-stage.fresh-bath::after,
.pet-stage.fresh-wash::after {
  display: none;
}
.pet-stage.fresh-brush .bubble {
  box-shadow: none;
}
.pet-stage .bubble {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 16px;
  right: 16px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
}
.hearts {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.float-heart {
  position: absolute;
  bottom: 42%;
  color: #e25b78;
  font-style: normal;
  font-size: 28px;
  animation: floatUp 1s ease-out forwards;
}
.cosmetic {
  border: 2px solid transparent;
  background: #fff1e4;
  color: var(--ink);
  min-height: 44px;
  box-shadow: none;
}
.cosmetic.chosen {
  border-color: var(--green);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #f0ddd2;
  border-radius: 12px;
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  margin: 7px 0 16px;
  min-height: 46px;
}
textarea {
  resize: vertical;
  min-height: 82px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffb15a;
  outline-offset: 1px;
}
input[type='checkbox'] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--green);
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.5;
  margin: 10px 0 20px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.full {
  width: 100%;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  padding: 60px;
  background:
    radial-gradient(500px 280px at 20% 20%, #ffe8d0, transparent 60%),
    radial-gradient(420px 240px at 80% 0%, #f3ebe0, transparent 55%),
    var(--paper);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}
.auth-art h1 {
  max-width: 450px;
  font-size: clamp(36px, 4vw, 60px);
  margin-top: 50px;
}
.auth-art p {
  max-width: 400px;
  color: var(--muted);
}
.auth-art img,
.onboarding .hero img {
  width: min(320px, 72%);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center bottom;
  align-self: center;
}
.auth-form {
  padding: 45px 10%;
  align-self: center;
  max-width: 700px;
  width: 100%;
}
.auth-form h2 {
  font-size: 28px;
}
.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #fff1e4;
  border-radius: 15px;
  margin-bottom: 25px;
}
.tabs button {
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.tabs button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  width: min(560px, calc(100% - 28px));
  max-width: calc(100% - 28px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 25px 80px #e07a4a33;
}
dialog::backdrop {
  background: #3a2a2866;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin: 0;
}
dialog .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
dialog .dialog-head button {
  padding: 7px 12px;
}
dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.report-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 14px;
  background: #f0f2ed;
}
.secret {
  display: block;
  word-break: break-all;
  padding: 18px;
  border: 1px dashed var(--green);
  background: #f0f5ee;
  border-radius: 12px;
  font: 16px monospace;
  margin: 18px 0;
}
.error-message {
  color: #a44032;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0;
}
.field-error {
  color: #a44032;
  font-size: 12px;
  margin: 6px 0 0;
}
.field input.is-invalid,
.field textarea.is-invalid,
.secret-wrap input.is-invalid {
  border-color: #a44032;
  box-shadow: 0 0 0 2px #a4403222;
}
.password-check {
  list-style: none;
  padding: 0;
  margin: 8px 0 4px;
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.password-check li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.password-check li.ok {
  color: #2f6b45;
}
.password-check li.bad {
  color: #a44032;
}
.secret-field .secret-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.secret-field .secret-wrap input {
  flex: 1;
}
.secret-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}
.otp-field {
  font-size: 22px;
  letter-spacing: 0.28em;
  text-align: center;
}
.task-advanced {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.task-advanced summary {
  cursor: pointer;
  font-weight: 650;
}
.material-split {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 16px;
  margin-top: 16px;
}
.material-card-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}
.material-card-nav button {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
}
.material-card-nav button.active {
  background: #e8efe6;
}
.material-card-nav small {
  color: var(--muted);
  font-weight: 500;
}
.material-image,
.material-image-field img {
  display: block;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  margin: 10px 0;
  object-fit: cover;
}
.checklist {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
@media (max-width: 860px) {
  .material-split {
    grid-template-columns: 1fr;
  }
  .material-card-nav {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }
  .material-card-nav button {
    min-width: 140px;
  }
}
.hidden {
  display: none !important;
}
#offline {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #f3d27a;
  color: #3d2d12;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
}
#offline[hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  z-index: 99;
  max-width: 90vw;
  box-shadow: 0 8px 40px #0002;
  display: none;
  font-size: 14px;
}
.loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 44px;
  font-weight: 800;
  gap: 20px;
}
.loading span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.onboarding {
  max-width: 720px;
  margin: 25px auto;
}
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.program ol {
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
}
.program .eyebrow {
  margin-bottom: 8px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 500;
}
.code {
  font: 12px monospace;
  word-break: break-all;
}
.help {
  padding: 18px;
  border-radius: 16px;
  background: #fff4ea;
  font-size: 13px;
  line-height: 1.7;
}
.badge-num {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  background: #efc587;
  border-radius: 10px;
  font-size: 11px;
  color: #3a2a28;
  margin-left: auto;
}
@keyframes breathe {
  50% {
    transform: translateY(-10px) rotate(-2deg);
  }
}
@keyframes tickle {
  0% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.06) translateY(-12px);
  }
  50% {
    transform: rotate(7deg) scale(1.08) translateY(-6px);
  }
  75% {
    transform: rotate(-4deg) scale(1.03);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
@keyframes wink {
  0%,
  100% {
    opacity: 0;
    transform: scaleY(0.2);
  }
  40%,
  70% {
    opacity: 1;
    transform: scaleY(1);
  }
}
@keyframes drift {
  from {
    transform: translateX(-12px);
  }
  to {
    transform: translateX(240px);
  }
}
@keyframes sunSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes twinkle {
  50% {
    opacity: 0.25;
    transform: scale(0.6);
  }
}
@keyframes floatUp {
  to {
    transform: translateY(-130px) scale(1.25);
    opacity: 0;
  }
}
@keyframes bounceBall {
  0% {
    transform: translate(0, 0) scale(0.6);
  }
  40% {
    transform: translate(70px, -90px) scale(1);
  }
  100% {
    transform: translate(120px, 10px) scale(0.8);
    opacity: 0;
  }
}
@keyframes riseBubble {
  to {
    transform: translateY(-120px);
    opacity: 0;
  }
}
@keyframes spark {
  50% {
    transform: scale(1.8);
    opacity: 1;
  }
  100% {
    transform: scale(0.2);
    opacity: 0;
  }
}
@keyframes floatNote {
  to {
    transform: translateY(-80px);
    opacity: 0;
  }
}
@keyframes nibble {
  40% {
    transform: scale(0.7) translateY(8px);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}
@keyframes hopPlay {
  25% {
    transform: translateY(-28px) rotate(-6deg);
  }
  50% {
    transform: translateY(-8px) rotate(5deg);
  }
  100% {
    transform: none;
  }
}
@keyframes shakeWash {
  20% {
    transform: rotate(-8deg) translateY(-6px);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-5deg) translateY(-4px);
  }
  100% {
    transform: none;
  }
}
@keyframes wiggleBrush {
  25% {
    transform: rotate(6deg) scale(1.04);
  }
  50% {
    transform: rotate(-4deg);
  }
  100% {
    transform: none;
  }
}
@keyframes swaySong {
  25% {
    transform: rotate(-10deg) translateX(-8px);
  }
  50% {
    transform: rotate(10deg) translateX(8px);
  }
  100% {
    transform: none;
  }
}
@keyframes nibbleFox {
  30% {
    transform: scale(1.06) translateY(6px);
  }
  60% {
    transform: scale(0.98);
  }
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1400px) {
  .main {
    padding-left: 55px;
    padding-right: 55px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 14px;
  }
  .main {
    padding: 25px 25px 70px;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-art {
    padding: 40px;
  }
  .auth-form {
    padding: 35px;
  }
  .hero {
    padding: 24px;
  }
  .hero h2 {
    font-size: 26px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .mobile-brand {
    display: block;
    font-size: 22px;
    letter-spacing: -0.6px;
    line-height: 1;
  }
  .narrow-only {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .sidebar {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    width: auto;
    flex-direction: row;
    gap: 0;
    padding: 0;
    background: #fffaf6;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .sidebar .brand,
  .sidebar .tagline,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }
  .nav button {
    position: relative;
    flex: 1 0 76px;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
    gap: 2px;
    border-radius: 14px;
  }
  .nav button span:first-child {
    font-size: 16px;
    line-height: 1;
  }
  .nav .badge-num {
    position: absolute;
    top: 4px;
    right: 6px;
    margin: 0;
  }
  .main {
    padding: 12px 16px calc(92px + env(safe-area-inset-bottom));
  }
  .topbar {
    margin-bottom: 10px;
  }
  .page-title {
    margin-bottom: 10px;
  }
  .page-title h1 {
    font-size: 28px;
    margin-bottom: 4px;
  }
  .page-title .eyebrow {
    margin-bottom: 6px;
  }
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 14px;
  }
  .topbar > .muted {
    flex: 1 1 160px;
  }
  .topbar > .row {
    width: 100%;
    justify-content: flex-start;
  }
  .topbar .profile,
  .topbar select.profile {
    min-height: 44px;
    max-width: 100%;
    font-size: 15px;
  }
  .grid,
  .grid.three,
  .field-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 16px 8px;
    min-height: 0;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    font-size: 15px;
    margin-bottom: 14px;
    max-width: none;
  }
  .hero img {
    transform: none;
    width: 148px;
    max-height: 150px;
    justify-self: center;
    margin-top: 8px;
  }
  .stats {
    gap: 8px;
  }
  .stats .card,
  .stat-hit {
    padding: 14px 10px;
    border-radius: 17px;
    min-height: 88px;
  }
  .stat {
    font-size: 24px;
  }
  .stats small {
    font-size: 11px;
  }
  .month-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .month-bar-track {
    height: 88px;
  }
  .material-actions,
  .material-publish .row {
    flex-direction: column;
  }
  .material-actions button,
  .material-publish button {
    width: 100%;
    min-height: 48px;
  }
  .card {
    padding: 18px;
    border-radius: 20px;
  }
  .task,
  .task.next {
    grid-template-columns: 40px 1fr;
    gap: 10px;
  }
  .task-actions {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }
  .task-actions button,
  .page-title button,
  .filters button,
  .log button,
  dialog .actions button,
  .tabs button {
    min-height: 48px;
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
  }
  .auth .tabs button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 4px;
    font-size: 13px;
  }
  .page-title {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 10px;
  }
  .log {
    flex-direction: column;
    align-items: stretch;
  }
  .auth {
    display: block;
    padding-bottom: 220px;
  }
  .auth-art {
    min-height: 0;
    padding: 20px 20px 8px;
  }
  .auth-art h1 {
    font-size: 34px;
    margin: 12px 0;
    max-width: none;
  }
  .auth-art p {
    font-size: 15px;
    margin-bottom: 8px;
    max-width: none;
  }
  .auth-art img {
    position: static;
    width: 88px;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center bottom;
    align-self: flex-end;
    opacity: 1;
  }
  .auth-form {
    padding: 24px 20px 36px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px;
    margin: auto;
  }
  dialog .dialog-head button {
    min-height: 44px;
    min-width: 44px;
  }
  dialog .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pet-stage {
    min-height: 340px;
  }
  .pet-stage img {
    width: min(250px, 78vw);
  }
  .filters input,
  .filters select {
    max-width: none;
    min-height: 48px;
  }
  #toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}
.pet-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}
.pet-home {
  position: sticky;
  top: 20px;
}
.pet-note {
  font-size: 13px;
  margin: 16px 0 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choice-grid .cosmetic {
  min-height: 48px;
  text-align: left;
}
.subheading {
  margin-top: 22px;
}
@media (max-width: 900px) {
  .pet-layout {
    grid-template-columns: 1fr;
  }
  .pet-home {
    position: static;
  }
}
.task-basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.task-basics > *,
.field-grid > * {
  min-width: 0;
}
.task-basics > label:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 1;
}
.advanced-fields {
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 18px 0;
  padding: 0 16px;
}
.advanced-fields > summary {
  color: var(--green);
  cursor: pointer;
  font-weight: 750;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.advanced-fields[open] {
  padding-bottom: 16px;
}
.task-preview {
  background: var(--mint);
  border-radius: 16px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 14px 16px;
}
@media (max-width: 720px) {
  .task-basics {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .task-basics label:first-child,
  .task-basics label:nth-child(2) {
    grid-column: 1 / -1;
  }
}
.calendar {
  margin-bottom: 24px;
  max-width: 700px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 20px;
  text-align: center;
}
.calendar-grid > small {
  padding: 4px;
}
.calendar-grid button {
  background: #f5f6f1;
  color: var(--ink);
  padding: 9px 3px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid transparent;
}
.calendar-grid button small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  margin-top: 4px;
}
.calendar-grid button.current {
  border-color: var(--green);
}
.calendar-grid button.chosen {
  background: var(--accent);
  color: var(--on-accent);
}
.calendar-grid button.chosen small {
  color: var(--ink);
  opacity: 0.75;
}
.topbar select.profile {
  width: auto;
  min-width: 130px;
  max-width: 200px;
  margin: 0;
}
.topbar > .row {
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 720px) {
  .calendar-grid {
    gap: 4px;
  }
  .calendar-grid button {
    min-height: 48px;
    padding: 8px 2px;
    font-size: 14px;
  }
  .topbar select.profile {
    max-width: 100%;
    min-width: 0;
  }
  .topbar > .row {
    justify-content: flex-start;
  }
  button:not(.pet-tap) {
    min-height: 44px;
  }
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.week button {
  min-height: 56px;
  padding: 6px 2px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 10px #e7c3ae22;
  position: relative;
}
.week button.today {
  outline: 2px solid #ffd0b0;
}
.week button.current {
  background: #ffe3c4;
  color: var(--ink);
}
.week button small {
  text-transform: lowercase;
}
.week button i {
  position: absolute;
  top: 4px;
  right: 6px;
  font-style: normal;
  font-size: 11px;
}
.faces {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 12px;
}
.face {
  min-width: 72px;
  min-height: 44px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
}
.face span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffe7c8, #ffd0e0);
  font-weight: 700;
  box-shadow: 0 6px 12px #e7b89a33;
}
.face.chosen span {
  outline: 3px solid #ff7a3c;
}
.face small {
  line-height: 1.1;
}
.treats,
.wardrobe .row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.invite-code {
  font-size: 32px;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: 700;
  margin: 8px 0;
}
.practice ol {
  padding-left: 20px;
  line-height: 1.7;
}
.home-pet,
.home-fox {
  margin-bottom: 12px;
}
.task.next .task-actions .full {
  width: 100%;
}
.demo-note {
  padding: 11px 14px;
}
.demo-note summary {
  cursor: pointer;
  font-weight: 700;
}
.demo-note p {
  margin: 10px 0 0;
}
.attention {
  margin-bottom: 24px;
}
.attention > .row h2 {
  margin-bottom: 0;
}
.attention-actions {
  margin-top: 16px;
}
.attention-requests {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}
.child-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
button.child-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.child-summary small {
  display: block;
  margin-top: 4px;
}
.child-focus {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.home-pet,
.home-fox {
  padding: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pet-stage.compact {
  min-height: 360px;
  border-radius: 28px;
}
.pet-stage.compact img {
  width: min(250px, 74%);
}
.child-later {
  margin-bottom: 20px;
}
.home-pet-cta,
.home-fox-cta {
  position: absolute;
  z-index: 4;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 18px #1f2f4d22;
  white-space: nowrap;
}
button.child-summary {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
button.child-summary:hover {
  filter: brightness(1.02);
}
button.pet-stage,
.pet-tap {
  box-shadow: none;
}
button.pet-stage {
  width: 100%;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.more-tasks,
.status-group {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.day-group {
  margin: 16px 0 8px;
  font-size: 16px;
}
.draft-card > summary {
  cursor: pointer;
  list-style: none;
}
.draft-card > summary::-webkit-details-marker {
  display: none;
}
.draft-card > summary h3 {
  margin-bottom: 0;
}
.draft-card .draft-body {
  margin-top: 12px;
}
.talk-card h2,
.talk-form textarea,
.draft-card h3,
.materials-preview {
  overflow-wrap: anywhere;
}
.talk-form textarea,
.talk-form input,
#talkFilter input,
#talkFilter select,
#careList textarea,
form textarea {
  font-size: 16px;
  width: 100%;
}
.talk-form {
  margin-top: 12px;
}
.install-hint {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 16px;
}
.share-card {
  margin-top: 18px;
}
.share-links {
  margin-top: 12px;
}
a.share-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.draft-card ol {
  margin: 8px 0 0;
  padding-left: 18px;
}
.more-tasks summary,
.status-group summary {
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
@media (max-width: 720px) {
  .care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-note {
    margin-bottom: 12px;
  }
  .child-focus {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .week {
    margin-bottom: 8px;
  }
  .pet-stage.compact {
    min-height: 210px;
    padding-bottom: 36px;
  }
  .pet-stage.compact img {
    width: min(168px, 46vw);
  }
  .home-pet,
  .home-fox {
    padding: 0;
  }
  .home-pet p,
  .home-fox p {
    margin-top: 6px;
  }
  .child-queue {
    padding-top: 16px;
  }
  .attention {
    padding-top: 16px;
  }
  .attention .task:first-of-type {
    padding-top: 12px;
  }
  .child-summary-grid {
    grid-template-columns: 1fr;
  }
  button.child-summary {
    min-height: 68px;
  }
}
.child-day {
  margin-bottom: 14px;
}
.day-lead {
  margin: 0 0 12px;
}
.task-list {
  display: flex;
  flex-direction: column;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 2px 0;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 8px 0;
  min-height: 44px;
}
.task-row-open b {
  display: block;
  font-size: 16px;
}
.task-row-open small {
  color: var(--muted);
  font-weight: 500;
}
.task-row > button:not(.task-row-open) {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
}
.week-fold {
  margin: 8px 0 18px;
}
.week-fold summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.chore-fold summary {
  cursor: pointer;
  min-height: 44px;
}
.chore-title {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.faces-scroll,
.filters-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.faces-scroll .face,
.filters-scroll {
  flex-wrap: nowrap;
}
.filters-scroll button {
  flex: 0 0 auto;
  width: auto;
  min-height: 44px;
  min-width: 64px;
}
.view-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.menu-card {
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.menu-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted, #667);
}
body.theme-calm .home-pet,
body.theme-calm .home-fox {
  display: none;
}
.feelings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.feeling {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
}
.feeling span {
  font-size: 24px;
  line-height: 1;
}
.material-editor form + form,
.material-card {
  margin-top: 14px;
}
.material-card textarea {
  min-height: 96px;
}
.lelo-tip {
  margin-bottom: 16px;
}
.lelo-tip p {
  margin: 8px 0;
}
@media (pointer: coarse) {
  button:not(.pet-tap),
  dialog .actions button {
    min-height: 44px;
  }
  dialog .dialog-head button {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 359px) {
  .task-row {
    flex-wrap: wrap;
  }
  .task-row-open {
    flex: 1 1 100%;
  }
  .task-row > button:not(.task-row-open) {
    margin-bottom: 8px;
  }
}
.legal-scroll {
  max-height: min(42vh, 360px);
  overflow: auto;
  padding: 12px 14px;
  margin: 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 88%, #fff);
  font-size: 13px;
  line-height: 1.45;
}
.legal-scroll h1 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.legal-scroll h2 {
  font-size: 0.92rem;
  margin: 14px 0 6px;
}
.legal-scroll p {
  margin: 0.4em 0;
}
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink, #222);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.cookie-banner a {
  color: #ffd7c2;
}
.cookie-banner button {
  flex-shrink: 0;
  background: #fff;
  color: var(--ink, #222);
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
  }
  .cookie-banner button {
    width: 100%;
  }
}
