/* Sitter Hub — sweet pastel planner look, phone-first. */
:root {
  --bg: #fff6ea;
  --bg-2: #fbecd9;
  --card: #fffdf8;
  --ink: #2d2f5b;
  --muted: #7d7b95;
  --line: #f0e1cc;
  --line-2: #e8d3b8;

  --pink: #f08ca4;   --pink-soft: #fde4ea;   --pink-ink: #c9466b;
  --butter: #f6c454; --butter-soft: #fff1c9; --butter-ink: #9a6a00;
  --mint: #67c2ac;   --mint-soft: #dcf3ec;   --mint-ink: #2f8a74;
  --lav: #b29ee6;    --lav-soft: #ede7fc;    --lav-ink: #6a52b8;
  --sky: #86c1ea;    --sky-soft: #e1f0fb;    --sky-ink: #2f78ab;
  --peach: #f7a978;  --peach-soft: #ffe8da;  --peach-ink: #b85a24;

  --accent: #d9577d;
  --accent-ink: #fff;
  --accent-soft: var(--pink-soft);
  --sage: var(--mint-ink);
  --sage-soft: var(--mint-soft);
  --warn: var(--butter-ink);
  --warn-soft: var(--butter-soft);
  --danger: #d6463a;
  --danger-soft: #fde2dd;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 0 rgba(140, 100, 60, .06), 0 8px 24px rgba(140, 100, 60, .07);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --serif: var(--display);

  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16.2' rx='5.3' ry='4.5'/%3E%3Cellipse cx='5.3' cy='10.6' rx='2.2' ry='2.7' transform='rotate(-18 5.3 10.6)'/%3E%3Cellipse cx='9.4' cy='6.3' rx='2.2' ry='2.8'/%3E%3Cellipse cx='14.6' cy='6.3' rx='2.2' ry='2.8'/%3E%3Cellipse cx='18.7' cy='10.6' rx='2.2' ry='2.7' transform='rotate(18 18.7 10.6)'/%3E%3C/svg%3E");
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.2-4.6-9.6-9.1C.7 8.5 2.9 4.8 6.6 4.8c2.1 0 3.5 1.1 5.4 3.1 1.9-2 3.3-3.1 5.4-3.1 3.7 0 5.9 3.7 4.2 7.1C19.2 16.4 12 21 12 21z'/%3E%3C/svg%3E");
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.7 5.6 2.4 8.6 10.5 10.5-8.1 1.9-9.8 4.9-10.5 10.5-.7-5.6-2.4-8.6-10.5-10.5C9.6 10.1 11.3 7.1 12 1.5z'/%3E%3C/svg%3E");
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='%23f08ca4' fill-opacity='.09'%3E%3Cg transform='translate(28 30) rotate(-20) scale(1.1)'%3E%3Cellipse cx='12' cy='16.2' rx='5.3' ry='4.5'/%3E%3Cellipse cx='5.3' cy='10.6' rx='2.2' ry='2.7'/%3E%3Cellipse cx='9.4' cy='6.3' rx='2.2' ry='2.8'/%3E%3Cellipse cx='14.6' cy='6.3' rx='2.2' ry='2.8'/%3E%3Cellipse cx='18.7' cy='10.6' rx='2.2' ry='2.7'/%3E%3C/g%3E%3Cg transform='translate(150 150) rotate(16)'%3E%3Cellipse cx='12' cy='16.2' rx='5.3' ry='4.5'/%3E%3Cellipse cx='5.3' cy='10.6' rx='2.2' ry='2.7'/%3E%3Cellipse cx='9.4' cy='6.3' rx='2.2' ry='2.8'/%3E%3Cellipse cx='14.6' cy='6.3' rx='2.2' ry='2.8'/%3E%3Cellipse cx='18.7' cy='10.6' rx='2.2' ry='2.7'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%2367c2ac' fill-opacity='.1'%3E%3Cpath transform='translate(170 40) scale(.7)' d='M12 21s-7.2-4.6-9.6-9.1C.7 8.5 2.9 4.8 6.6 4.8c2.1 0 3.5 1.1 5.4 3.1 1.9-2 3.3-3.1 5.4-3.1 3.7 0 5.9 3.7 4.2 7.1C19.2 16.4 12 21 12 21z'/%3E%3Cpath transform='translate(50 170) scale(.55)' d='M12 21s-7.2-4.6-9.6-9.1C.7 8.5 2.9 4.8 6.6 4.8c2.1 0 3.5 1.1 5.4 3.1 1.9-2 3.3-3.1 5.4-3.1 3.7 0 5.9 3.7 4.2 7.1C19.2 16.4 12 21 12 21z'/%3E%3C/g%3E%3Cg fill='%23f6c454' fill-opacity='.16'%3E%3Ccircle cx='110' cy='96' r='3'/%3E%3Ccircle cx='212' cy='118' r='2.4'/%3E%3Ccircle cx='96' cy='216' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1f36; --bg-2: #26284a; --card: #2a2c4d; --ink: #f7efe6; --muted: #b3afc9; --line: #3a3c64; --line-2: #4a4c78;
    --pink-soft: #4a2d45; --pink-ink: #ffb3c5; --butter-soft: #463c28; --butter-ink: #ffd77a;
    --mint-soft: #22423f; --mint-ink: #8fe0c9; --lav-soft: #3a3260; --lav-ink: #cdbdff;
    --sky-soft: #233c58; --sky-ink: #a6d6f7; --peach-soft: #4a3329; --peach-ink: #ffc19c;
    --accent: #f08ca4; --accent-ink: #2a1520; --danger: #ff8f80; --danger-soft: #4a2626;
    --shadow: 0 2px 0 rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) var(--pattern) repeat; background-size: 240px; color: var(--ink); font: 500 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: 0; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.5rem); font-weight: 700; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 .8em; }
b, strong { font-weight: 800; }
small, .muted { color: var(--muted); }
.muted { font-size: .92rem; }
.hand { font-family: var(--hand); font-weight: 700; font-size: 1.35em; line-height: 1.1; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* decorative doodles */
.i-paw, .i-heart, .i-spark { display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -.12em; flex: none; -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }
.i-heart { -webkit-mask-image: var(--heart); mask-image: var(--heart); }
.i-spark { -webkit-mask-image: var(--sparkle); mask-image: var(--sparkle); }
.c-pink { color: var(--pink); } .c-mint { color: var(--mint); } .c-butter { color: var(--butter); } .c-lav { color: var(--lav); } .c-sky { color: var(--sky); }
.doodles { position: relative; }
.doodles > .d { position: absolute; pointer-events: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 640px; }
.page { padding: 24px 0 120px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-2 > *, .grid-3 > * { min-width: 0; }

.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 2px dashed var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-decoration: none; color: var(--ink); }
.brand em { font-style: normal; color: var(--pink); }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: 19px; transform: rotate(-6deg); box-shadow: 0 3px 0 var(--pink-ink); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .93rem; color: var(--muted); }
.nav a.on, .nav a:hover { background: var(--pink-soft); color: var(--pink-ink); }
.nav form button { background: none; border: 0; font: inherit; font-weight: 800; font-size: .93rem; color: var(--muted); padding: 8px 12px; cursor: pointer; }

.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 2px solid var(--line); border-radius: 22px 22px 0 0; display: none; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 24px rgba(140, 100, 60, .08); }
.tabbar nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; max-width: 640px; margin: 0 auto; padding: 6px 6px 2px; }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 7px; border-radius: 16px; text-decoration: none; font: 800 .72rem var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; position: relative; }
.tabbar .ico { font-size: 1.3rem; line-height: 1; filter: grayscale(.85); opacity: .7; transition: transform .15s; }
.tabbar .on { color: var(--pink-ink); background: var(--pink-soft); }
.tabbar .on .ico { filter: none; opacity: 1; transform: translateY(-1px) scale(1.08); }
.tabbar .dot { position: absolute; top: 5px; left: 58%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar { display: block; }
}

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-tight { padding: 14px 16px; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
a.card { transition: transform .12s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--line-2); }

/* box: card with a coloured header strip — the planner-sheet look */
.box { --c: var(--pink); --cs: var(--pink-soft); --ci: var(--pink-ink); background: var(--card); border: 2px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.box-h { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px 16px; background: var(--cs); color: var(--ink); font: 600 1.02rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; text-align: center; border-bottom: 2px solid color-mix(in srgb, var(--c) 35%, transparent); }
.box-h::before { content: ""; width: 1.1em; height: 1.1em; background: var(--ink); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; flex: none; }
.box-h.left { justify-content: flex-start; }
.box-h .aside { margin-left: auto; font: 800 .78rem var(--font); text-transform: none; letter-spacing: 0; color: var(--ci); }
.box-b { padding: 16px 18px; }
.box-b > :last-child { margin-bottom: 0; }
.box.pink { --c: var(--pink); --cs: var(--pink-soft); --ci: var(--pink-ink); }
.box.mint { --c: var(--mint); --cs: var(--mint-soft); --ci: var(--mint-ink); }
.box.butter { --c: var(--butter); --cs: var(--butter-soft); --ci: var(--butter-ink); }
.box.lav { --c: var(--lav); --cs: var(--lav-soft); --ci: var(--lav-ink); }
.box.sky { --c: var(--sky); --cs: var(--sky-soft); --ci: var(--sky-ink); }
.box.peach { --c: var(--peach); --cs: var(--peach-soft); --ci: var(--peach-ink); }

/* ribbon label (like a planner sticker) */
.ribbon { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 999px; background: var(--mint); color: #fff; font: 600 .95rem var(--display); letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 3px var(--mint), inset 0 0 0 4.5px rgba(255,255,255,.75); }
.ribbon .i-heart { color: var(--pink-soft); font-size: .85em; }
.ribbon.pink { background: var(--pink); box-shadow: inset 0 0 0 3px var(--pink), inset 0 0 0 4.5px rgba(255,255,255,.75); }

/* sticky note */
.sticky { position: relative; background: #fff3b8; color: #4b3f12; border-radius: 4px 4px 18px 4px; padding: 22px 18px 16px; box-shadow: 0 10px 20px rgba(150, 110, 20, .14); transform: rotate(-1.2deg); }
.sticky::before { content: ""; position: absolute; top: -10px; left: 50%; width: 86px; height: 22px; margin-left: -43px; background: rgba(240, 140, 164, .55); border-radius: 3px; transform: rotate(2deg); }
.sticky h3 { font: 600 1rem var(--display); text-transform: uppercase; letter-spacing: .05em; text-align: center; margin: 0 0 8px; }
.sticky ul { list-style: none; margin: 0; padding: 0; }
.sticky li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-bottom: 1.5px dashed rgba(120, 90, 10, .22); font: 700 1.3rem/1.15 var(--hand); }
.sticky li:last-child { border-bottom: 0; }
.sticky li .i-heart { color: var(--pink); font-size: .7em; flex: none; }
@media (prefers-color-scheme: dark) { .sticky { background: #5b4f22; color: #fff3c4; } }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.section-title h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.section-title h2::before { content: ""; width: .9em; height: .9em; background: var(--pink); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }
.hero-band { background: linear-gradient(160deg, var(--pink-soft), transparent 70%); border-bottom: 2px dashed var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.pill-active { background: var(--mint-soft); color: var(--mint-ink); }
.pill-upcoming { background: var(--sky-soft); color: var(--sky-ink); }
.pill-late { background: var(--danger-soft); color: var(--danger); }
.pill-warn { background: var(--butter-soft); color: var(--butter-ink); }
.pill-pink { background: var(--pink-soft); color: var(--pink-ink); }
.pill-lav { background: var(--lav-soft); color: var(--lav-ink); }
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--mint-ink); font-weight: 800; }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 800; font-size: .92rem; }
.note-box { position: relative; padding: 14px 16px 14px 18px; border-radius: var(--radius-sm); background: var(--pink-soft); white-space: pre-line; border: 2px dashed color-mix(in srgb, var(--pink) 45%, transparent); }
.note-box .hand { color: var(--pink-ink); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .big { font-size: 2.6rem; display: block; margin-bottom: 6px; }
.empty .mascot { width: 140px; margin: 0 auto 8px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; background: var(--accent); color: var(--accent-ink); font: 800 .97rem var(--font); text-decoration: none; cursor: pointer; transition: transform .08s, filter .15s, box-shadow .1s; box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.btn:disabled { opacity: .6; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: 0 3px 0 var(--line); }
.btn-ghost:active { box-shadow: 0 1px 0 var(--line); }
.btn-soft { background: var(--pink-soft); color: var(--pink-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--pink) 35%, transparent); }
.btn-mint { background: var(--mint-soft); color: var(--mint-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--mint) 40%, transparent); }
.btn-lav { background: var(--lav-soft); color: var(--lav-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--lav) 40%, transparent); }
.btn-butter { background: var(--butter-soft); color: var(--butter-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--butter) 45%, transparent); }
.btn-danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: .86rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 800; cursor: pointer; text-decoration: underline; text-decoration-style: wavy; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link-danger { color: var(--danger); }

label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field small { display: block; margin-top: 4px; font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--card); color: var(--ink); font: 600 16px var(--font);
}
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--pink) 40%, transparent); outline-offset: 0; border-color: var(--pink); }
input[type=file] { font: 700 .88rem var(--font); max-width: 100%; }
.error { color: var(--danger); font-size: .85rem; font-weight: 800; margin-top: 4px; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .93rem; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-size: .88rem; cursor: pointer; user-select: none; transition: all .12s; }
.chip input:checked + span { background: var(--pink-soft); color: var(--pink-ink); border-color: var(--pink); }
.chip input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--pink) 40%, transparent); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 800; font-size: .9rem; margin-bottom: 8px; padding: 0; }
details.more > summary { cursor: pointer; font-weight: 800; color: var(--accent); list-style: none; padding: 6px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+ "; }
details.more[open] > summary::before { content: "– "; }

/* ---------- pets ---------- */
.avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: var(--butter-soft); display: grid; place-items: center; font-size: 1.6rem; flex: none; overflow: hidden; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 100px; height: 100px; font-size: 2.7rem; box-shadow: 0 0 0 3px var(--pink); }
.avatar-xs { width: 26px; height: 26px; font-size: .9rem; border-width: 1px; }
.pet-card { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.pet-card .meta { min-width: 0; }
.pet-card h3 { margin: 0; }
.pet-strip { display: flex; }
.pet-strip .avatar { width: 38px; height: 38px; font-size: 1.05rem; margin-left: -10px; }
.pet-strip .avatar:first-child { margin-left: 0; }
.facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.fact:last-child { border-bottom: 0; }
.fact dt { font-weight: 800; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.fact dd { margin: 0; white-space: pre-line; }
@media (max-width: 480px) { .fact { grid-template-columns: 1fr; gap: 2px; } }

/* weight & vaccine records */
.spark { width: 100%; height: 70px; display: block; }
.spark .area { fill: color-mix(in srgb, var(--mint) 22%, transparent); }
.spark .line { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--card); stroke: var(--mint-ink); stroke-width: 2; }
.rec-list { list-style: none; margin: 0; padding: 0; }
.rec-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 2px dashed var(--line); }
.rec-list li:last-child { border-bottom: 0; }
.rec-list .r-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); flex: none; }
.rec-list .r-body { flex: 1; min-width: 0; }
.rec-list .r-body b { display: block; }
.rec-list form { margin: 0; }

/* ---------- tasks (care checklist) ---------- */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { display: flex; gap: 12px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 11px 12px 11px 12px; box-shadow: var(--shadow); transition: background .2s, opacity .2s, border-color .2s; }
.task .kico { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 1.25rem; background: var(--kc, var(--butter-soft)); }
.task:nth-child(5n+1) { --kc: var(--butter-soft); } .task:nth-child(5n+2) { --kc: var(--pink-soft); } .task:nth-child(5n+3) { --kc: var(--mint-soft); } .task:nth-child(5n+4) { --kc: var(--lav-soft); } .task:nth-child(5n) { --kc: var(--sky-soft); }
.task .time { display: block; font-weight: 800; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.task .body { flex: 1; min-width: 0; }
.task .title { font-weight: 800; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.task .sub { font-size: .86rem; color: var(--muted); white-space: pre-line; }
.task.is-done { background: var(--mint-soft); border-color: transparent; box-shadow: none; }
.task.is-done .kico { background: var(--card); }
.task.is-done .title { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--mint-ink) 55%, transparent); text-decoration-thickness: 2px; }
.task.is-late { border-color: var(--danger); }
.task.is-done .pill-late, .task.is-done [data-task-note] { display: none; }
.tick { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2.5px dashed var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; font-size: 1.25rem; font-weight: 900; color: transparent; transition: all .15s; }
.tick:hover { border-color: var(--mint); border-style: solid; color: color-mix(in srgb, var(--mint) 45%, transparent); }
.is-done .tick { background: var(--mint); border: 2.5px solid var(--mint); color: #fff; animation: boop .35s ease-out; }
.tick.busy { opacity: .5; pointer-events: none; }
@keyframes boop { 40% { transform: scale(1.18); } }
.task .done-by { font-size: .8rem; color: var(--mint-ink); font-weight: 800; }
.task-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }

.daybar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.daybar::-webkit-scrollbar { display: none; }
.daybar a { flex: none; text-align: center; text-decoration: none; padding: 7px 12px; min-width: 60px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); }
.daybar a b { display: block; font: 600 1.15rem var(--display); }
.daybar a small { font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.daybar a.on { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 0 3px 0 var(--pink-ink); }
.daybar a.on small { color: inherit; opacity: .85; }
.daybar a.today:not(.on) { border-color: var(--pink); border-style: dashed; }

/* progress ring */
.ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--mint) calc(var(--p) * 1%), var(--mint-soft) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card); border: 2px dashed var(--line); }
.ring span { position: relative; font: 600 1.1rem var(--display); }
.ring-sm { width: 56px; height: 56px; }
.ring-sm::before { inset: 6px; border-width: 1px; }
.ring-sm span { font-size: .82rem; }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed-item { display: flex; gap: 10px; align-items: flex-start; }
.feed-item .bubble { flex: 1; min-width: 0; background: var(--card); border: 2px solid var(--line); border-radius: 6px var(--radius) var(--radius) var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.feed-item .icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--butter-soft); display: grid; place-items: center; font-size: 1.15rem; }
.feed-item .head { font-weight: 800; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.feed-item .when { margin-left: auto; font-size: .76rem; color: var(--muted); font-weight: 800; }
.feed-item .text { white-space: pre-line; margin-top: 4px; }
.feed-item .photo { display: block; margin-top: 10px; border-radius: 16px; overflow: hidden; max-width: 360px; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(120, 80, 40, .15); transform: rotate(-1deg); }
.feed-item .photo img { width: 100%; max-height: 420px; object-fit: cover; }
.feed-item.is-new .bubble { animation: pop .5s ease-out; }
.feed-item.mine { flex-direction: row-reverse; }
.feed-item.mine .bubble { background: var(--pink-soft); border-color: transparent; box-shadow: none; border-radius: var(--radius) 6px var(--radius) var(--radius); }
.feed-item.mine .icon { background: var(--pink-soft); }
.feed-item.mine .when { margin-left: 0; margin-right: auto; }
.feed-item .health { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.feed-item.best .bubble { border-color: var(--butter); background: linear-gradient(180deg, var(--butter-soft), var(--card) 70%); }
.flagged .bubble { border-color: var(--danger); }
@keyframes pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--mint-ink); }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 48px; height: 48px; border-radius: 24px; padding: 12px 16px; }
.composer .btn { flex: none; }

/* ---------- share box ---------- */
.share { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.copy-line { display: flex; gap: 8px; align-items: center; background: var(--bg); border: 2px dashed var(--line-2); border-radius: var(--radius-sm); padding: 6px 6px 6px 12px; }
.copy-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }

/* ---------- sitter app ---------- */
.sitter-head { padding: 22px 0 10px; }
.sitter-head .hello { font-size: .95rem; color: var(--muted); font-weight: 800; }
.sitter-head h1 { margin: 2px 0 6px; }
.sitter-head h1 .accent { color: var(--pink); }
.sitter-hero { display: flex; gap: 14px; align-items: center; }
.sitter-hero .ribbon { white-space: nowrap; }
.hero-side { display: grid; justify-items: center; flex: none; }
.hero-side .mascot { width: 112px; margin: -14px 0 -16px; position: relative; z-index: 1; }
.hero-side .mascot + .ring { width: 70px; height: 70px; }
.hero-side .mascot + .ring::before { inset: 7px; }
.hero-side .mascot + .ring span { font-size: .95rem; }
.panel-tab[hidden] { display: none; }
.sos { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 31; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--card); background: var(--danger); color: #fff; font: 600 .9rem var(--display); letter-spacing: .03em; box-shadow: 0 6px 18px rgba(214, 70, 58, .35); cursor: pointer; }
@media (min-width: 761px) { .sos { bottom: 24px; } }
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(45, 47, 91, .38); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 26px 26px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease-out; border-top: 6px solid var(--pink-soft); }
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 26px; border: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); margin: -6px auto 14px; }
.call-list { display: grid; gap: 10px; }
.call { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); text-decoration: none; }
.call .ico { font-size: 1.4rem; }
.call b { display: block; }
.call .go { margin-left: auto; font-weight: 800; color: var(--accent); }
.call-urgent { background: var(--danger-soft); border-color: transparent; }
.call-urgent .go { color: var(--danger); }
.secret { font-family: ui-monospace, Menlo, monospace; letter-spacing: .02em; white-space: pre-line; }
.blur { filter: blur(6px); user-select: none; }
.photo-pick { display: flex; gap: 10px; align-items: center; }
.photo-pick img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.star-check { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--butter-soft); font-weight: 800; cursor: pointer; margin-bottom: 16px; }
.star-check input { width: 22px; height: 22px; accent-color: var(--butter-ink); }

/* mood & moments */
.mood-pet + .mood-pet { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
.mood-pet .who { display: flex; gap: 8px; align-items: center; font-weight: 800; margin-bottom: 8px; }
.faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 16px; border: 2px solid transparent; background: var(--bg); font: 800 .72rem var(--font); color: var(--muted); cursor: pointer; transition: transform .1s, background .15s; }
.face span { font-size: 1.7rem; line-height: 1.1; }
.face:hover { background: var(--butter-soft); }
.face:active { transform: scale(.94); }
.face.picked { background: var(--butter-soft); border-color: var(--butter); color: var(--ink); }

/* ---------- day report ---------- */
.report { background: var(--card); border: 2px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.report-head { position: relative; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 26px 20px 22px; background: linear-gradient(150deg, var(--pink-soft), var(--butter-soft) 60%, var(--card)); }
.report-head h1 { margin: 6px 0 4px; }
.report-side { display: grid; justify-items: center; gap: 0; flex: none; }
.report-side .mascot { width: 120px; margin-bottom: -18px; position: relative; z-index: 1; }
.report-side .ring { width: 74px; height: 74px; }
@media (max-width: 460px) { .report-head { align-items: flex-start; } .report-side .mascot { width: 92px; } }
.mascot { display: block; height: auto; max-width: 100%; }
.mascot.float { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .mascot.float { animation: none; } }
.report-head p { margin: 0; color: var(--muted); font-weight: 700; }
.eyebrow { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-ink); }
.report > .alert { margin: 16px 20px 0 !important; }
.report-sec { padding: 18px 20px; border-top: 2px dashed var(--line); }
.report-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 12px; }
.report-sec h2::before { content: ""; width: 1em; height: 1em; background: var(--pink); -webkit-mask: var(--paw) center / contain no-repeat; mask: var(--paw) center / contain no-repeat; }
.best-moment { margin: 0; padding: 12px 12px 14px; background: #fff; border-radius: 6px; box-shadow: 0 8px 20px rgba(120, 80, 40, .16); transform: rotate(-1.5deg); max-width: 420px; }
.best-moment img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.best-moment figcaption { margin-top: 10px; font: 700 1.4rem/1.15 var(--hand); color: #3b3550; text-align: center; }
.mood-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.mood-strip > div { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--butter-soft); font-weight: 800; }
.mood-strip .f { font-size: 1.5rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-grid .ph { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(120, 80, 40, .12); }
.photo-grid .ph:first-child:nth-last-child(odd) { grid-column: span 2; aspect-ratio: 16 / 10; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid span { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(45, 47, 91, .6); color: #fff; font-size: .75rem; font-weight: 800; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 2px dashed var(--line); font-size: .93rem; }
.mini-list li:last-child { border-bottom: 0; }
.quote { margin: 0 0 10px; padding: 12px 16px; border-radius: 16px; background: var(--lav-soft); white-space: pre-line; font: 700 1.3rem/1.2 var(--hand); }
.quote cite { display: block; margin-top: 4px; font: normal 800 .76rem var(--font); color: var(--muted); }
.report-foot { padding: 14px 20px; border-top: 2px dashed var(--line); text-align: center; font: 600 .9rem var(--display); color: var(--muted); }

/* ---------- offline / notifications ---------- */
.offline-bar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding: 8px 16px; text-align: center; font-weight: 800; font-size: .85rem; background: var(--butter-soft); color: var(--butter-ink); border-bottom: 2px solid var(--line); }
.notify-card { display: flex; gap: 12px; align-items: center; }
.notify-card .ico { font-size: 1.6rem; }

/* page heading with doodles */
.page-head { position: relative; }
.page-head h1 { margin: 0; }
.page-head .hello { margin: 0; font-weight: 800; color: var(--muted); }
.title-doodle { display: inline-flex; gap: 4px; margin-left: 8px; font-size: .45em; vertical-align: super; }

/* landing */
.landing-hero { padding: 64px 0 48px; text-align: center; }
.landing-hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); max-width: 760px; margin: 0 auto .4em; }
.landing-hero h1 em { font-style: normal; color: var(--pink); }
.landing-hero p { max-width: 560px; margin: 0 auto 1.4em; color: var(--muted); font-size: 1.1rem; }
.landing-hero .mascot { width: 220px; margin: 0 auto 10px; }
.feature { padding: 18px; }
.feature .big { font-size: 1.9rem; }
footer.foot { padding: 32px 0 110px; text-align: center; font-size: .85rem; color: var(--muted); }
footer.foot a { color: var(--muted); }
.foot-tag { font: 600 .95rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; }

/* ---------- live demo ---------- */
.demo-switch { position: fixed; z-index: 45; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 800 .82rem var(--font); text-decoration: none; box-shadow: 0 6px 18px rgba(45, 47, 91, .3); white-space: nowrap; }
@media (max-width: 760px) { html:not(.framed) body[data-demo] .sitter-head, html:not(.framed) body[data-demo] .page { padding-top: 52px; } }
.demo-head { text-align: center; padding: 34px 16px 10px; }
.demo-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 14px 0 6px; }
.demo-head h1 em { font-style: normal; color: var(--pink); }
.demo-head .lead { color: var(--muted); font-weight: 700; margin: 0; }
.demo-stage { display: none; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 10px; max-width: 1060px; padding-top: 16px; }
.phone-col { margin: 0; display: grid; justify-items: center; gap: 12px; }
.phone-col figcaption { font: 700 1.05rem/1.3 var(--font); text-align: center; max-width: 330px; min-height: 2.6em; }
.phone-col .step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: #fff; font: 600 .95rem var(--display); margin-right: 4px; }
.phone { width: 360px; height: 740px; border-radius: 48px; padding: 12px; background: var(--ink); box-shadow: 0 24px 60px rgba(45, 47, 91, .28), inset 0 0 0 2px rgba(255,255,255,.08); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: var(--ink); z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 38px; background: var(--bg); display: block; }
.phone-label { margin: 0; font: 600 1rem var(--display); color: var(--muted); }
.demo-arrow { align-self: center; display: grid; justify-items: center; color: var(--pink); margin-top: 120px; }
.demo-arrow .hand { color: var(--pink-ink); font-size: 1.8rem; }
.demo-mobile { display: grid; gap: 16px; justify-items: center; max-width: 520px; padding-top: 8px; }
.demo-pick { display: block; width: 100%; text-decoration: none; transition: transform .12s; }
.demo-pick:active { transform: scale(.98); }
.demo-pick .box-b { display: grid; gap: 2px; font-size: 1.08rem; }
.demo-try { padding-top: 28px; }
@media (min-width: 900px) { .demo-stage { display: grid; } .demo-mobile { display: none; } }
@media (min-width: 900px) and (max-height: 860px) { .phone { width: 330px; height: 640px; } }
html.framed .topbar { padding-top: 26px; } html.framed .sitter-head { padding-top: 40px; }
