:root {
  color-scheme:light;
  --system-purple:#af52de; --accent-ink:#793599; --system-red:#ff3b30; --system-orange:#ff9500;
  --system-yellow:#ffcc00; --system-green:#34c759; --system-mint:#00c7be; --system-gray:#8e8e93;
  --paper:#f2f2f7; --paper-deep:#e5e5ea; --card:#fff; --card-2:#f2f2f7; --card-3:#e5e5ea;
  --ink:#1c1c1e; --ink-2:#48484a; --ink-3:#636366; --cream:#fff; --warn:#ac2923;
  --line:#3c3c431c; --line-2:#3c3c4338; --edge:#fffffff0; --cast:0 8px 24px -16px #0003;
  --glass:rgb(255 255 255 / .78); --bar:color-mix(in srgb,var(--system-purple) 6%,rgb(248 248 250 / .76));
  --green:var(--accent-ink); --green-hi:color-mix(in srgb,var(--green) 88%,var(--ink));
  --pri-urgent:var(--system-red); --pri-high:var(--system-orange); --pri-normal:var(--system-mint); --pri-low:var(--system-gray);
  --wall:radial-gradient(ellipse at 85% 0%,color-mix(in srgb,var(--system-purple) 15%,var(--card-3)),transparent 56%),linear-gradient(140deg,var(--paper),var(--paper-deep));
  --hero:linear-gradient(108deg,var(--card),var(--card-2) 38%,color-mix(in srgb,var(--system-purple) 27%,var(--card-3)));
  --r-xl:26px; --r-lg:18px;
}
:root[data-mode=dark] {
  color-scheme:dark;
  --system-purple:#bf5af2; --accent-ink:#dfadfa; --system-red:#ff453a; --system-orange:#ff9f0a;
  --system-yellow:#ffd60a; --system-green:#30d158; --system-mint:#63e6e2; --system-gray:#98989d;
  --paper:#111113; --paper-deep:#161618; --card:#1c1c1e; --card-2:#2c2c2e; --card-3:#3a3a3c;
  --ink:#f5f5f7; --ink-2:#d1d1d6; --ink-3:#aeaeb2; --cream:#1c1c1e; --warn:#ff817a;
  --line:rgb(235 235 245 / .12); --line-2:rgb(235 235 245 / .23); --edge:rgb(255 255 255 / .20);
  --cast:0 8px 24px -14px #0009; --glass:rgb(42 42 44 / .77);
  --bar:color-mix(in srgb,var(--system-purple) 7%,rgb(44 44 46 / .75));
  --wall:radial-gradient(ellipse at 83% 0%,color-mix(in srgb,var(--system-purple) 16%,var(--card-2)),transparent 55%),linear-gradient(145deg,var(--card),var(--paper) 75%);
  --hero:linear-gradient(108deg,var(--card-2) 3%,color-mix(in srgb,var(--system-purple) 9%,var(--card-3)) 48%,color-mix(in srgb,var(--system-purple) 34%,var(--card-3)));
}
body {background:var(--wall) fixed;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.grain{display:none}
.topbar,.filters,.hero,.task,.empty,.calendar__main,.daypanel,.feed-cat,.sheet,.gate,.feeding__head,.feeding__foot {
  background:var(--glass); border:1px solid var(--line); box-shadow:inset 0 1px 0 var(--edge),var(--cast);
  backdrop-filter:blur(22px) saturate(1.22);-webkit-backdrop-filter:blur(22px) saturate(1.22)
}
.topbar {background:var(--bar);border-width:0 0 1px;padding-inline:clamp(15px,3vw,52px)}
.shell{padding-top:24px;gap:18px}
.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--hero);text-align:left;padding:32px 36px 24px}
.hero::before,.hero::after {
  content:""; position:absolute;pointer-events:none;z-index:-1;
  width:63%;height:235%;right:-28%;top:-71%;border-radius:50%; transform:rotate(-28deg);
  border:1px solid rgb(255 255 255 / .18);
  background:linear-gradient(123deg,#ffffff03 30%,#ffffff12 53%,#ffffff02 73%);
  box-shadow:inset 2px 1px 2px #ffffff23,inset 14px 6px 30px #ffffff09,-8px 9px 24px #00000012;
}
.hero::after {right:-17%;top:-121%;opacity:.65;transform:rotate(-40deg)}
.hero__title{font-size:clamp(24px,3.25vw,42px);font-weight:700;letter-spacing:-.05em;margin-top:8px;text-wrap:balance}
.hero .label{text-align:left;font-weight:650;color:var(--green)}
.hero__people{justify-content:flex-start;gap:22px;align-items:center;margin-top:16px;flex-wrap:wrap;flex-direction:row}
.hero__group{flex-direction:row;gap:8px}
.hero__stats{justify-content:flex-start;gap:0;border-top:1px solid var(--line-2);margin-top:23px;padding-top:17px}
.stat{padding:0 24px;min-width:0;background:none;border-radius:0;text-align:left;border-right:1px solid var(--line-2)}
.stat:first-child{padding-left:0}.stat:last-child{border:0}.stat__value{font-variant-numeric:tabular-nums}
.seg,.chip,.pick,.search,.input,.feeding-choice,.day,.stat,.icon-btn{transition:background .18s,color .18s,border-color .18s}
.seg{background:var(--card-2);box-shadow:inset 0 1px 3px var(--line)}
.seg__pill,.btn--primary{background:var(--green);box-shadow:inset 0 1px 0 #ffffff50,0 3px 9px var(--line)}
.seg__btn.is-active,.btn--primary{color:var(--cream)}
.filters,.sheet,.feeding__head,.feeding__foot{background:var(--bar)}
.feeding__head,.feeding__foot{border-radius:var(--r-lg);padding:14px 18px}
.sheet__foot{background:var(--card-2)}.scrim{background:#08080b75;backdrop-filter:blur(9px)}
.day.is-selected,.food-section.is-on{outline:1px solid var(--green);outline-offset:-1px}
[data-mode=dark] :is(.hl-butter,.hl-peach,.hl-mint,.hl-lilac){--hl-bg:color-mix(in srgb,var(--hl) 16%,var(--card))}
[data-mode=dark] :is(.group__title--today,.group__title--done){color:var(--ink-2)}
[data-mode=dark] .group__title--overdue{color:var(--warn)}
.appearance{display:inline-grid;place-items:center;border:1px solid var(--line-2);background:var(--glass);box-shadow:inset 0 1px var(--edge);color:var(--ink);width:38px;height:38px;border-radius:50%;padding:0;flex:none}
.appearance svg{width:18px;height:18px}.appearance:hover{background:var(--card)}
@media(max-width:700px){
 .shell{padding:14px 14px 60px;gap:14px}.topbar{padding-inline:14px;column-gap:5px}.topbar__right{gap:5px}
 .hero{padding:22px 18px 18px}.hero__people{gap:10px}.hero__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
 .stat{padding:0 6px;text-align:center}.stat:first-child{padding-left:0}.hero__title{max-width:95%;font-size:25px}.hero::after,.hero::before{opacity:.5}
 .appearance{width:34px;height:34px}.hero__group{gap:5px}.stat__label{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(prefers-reduced-transparency:reduce){:root{--glass:var(--card);--bar:var(--card)}}


/* Carry the existing priority or chosen highlight across the full glass surface. */
:root { --row-tint: 30%; }
:root[data-mode=dark] { --row-tint: 20%; }
.task:has(.pri--urgent), .dayitem:has(.pri--urgent), .daychip.pri--urgent { --row-color: var(--pri-urgent); }
.task:has(.pri--high), .dayitem:has(.pri--high), .daychip.pri--high { --row-color: var(--pri-high); }
.task:has(.pri--normal), .dayitem:has(.pri--normal), .daychip.pri--normal { --row-color: var(--pri-normal); }
.task:has(.pri--low), .dayitem:has(.pri--low), .daychip.pri--low { --row-color: var(--pri-low); }

:is(.task,.dayitem,.daychip).is-lit { --row-color:var(--hl); --row-tint:36%; }
:is(.task,.dayitem,.daychip).is-done { --row-tint:14%; }
.task, .dayitem, .daychip:not(.daychip--more) {
  background: linear-gradient(115deg, rgb(255 255 255 / .10), transparent 56%),
    color-mix(in srgb,var(--row-color,var(--card)) var(--row-tint),var(--glass));
  border-color:color-mix(in srgb,var(--row-color,var(--line)) 46%,var(--line));
  box-shadow:inset 0 1px 0 var(--edge),var(--cast);
}
.task.is-lit,.task.is-done,.dayitem.is-lit,.daychip.is-lit {
  background:linear-gradient(115deg,rgb(255 255 255 / .10),transparent 56%),
    color-mix(in srgb,var(--row-color) var(--row-tint),var(--glass));
}
.dayitem,.daychip:not(.daychip--more){backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}

.topbar,.filters,.sheet,.appearance {
  -webkit-backdrop-filter:blur(26px) saturate(1.35); backdrop-filter:blur(26px) saturate(1.35);
  background-image:linear-gradient(128deg,#ffffff0c,transparent 42%,#ffffff04);
  box-shadow:inset 0 1px var(--edge),inset 0 -1px #0002,0 5px 22px #0002;
}
.sheet {background-color:color-mix(in srgb,var(--card) 85%,transparent)}
.seg__pill {background:color-mix(in srgb,var(--green) 16%,var(--card-3));box-shadow:inset 0 1px var(--edge),0 2px 5px #0002}
.seg__btn.is-active {color:var(--green)}
.btn--primary {background:var(--green);color:var(--cream)}
[data-mode=dark] .pri {color:var(--pri)}
.task,.calendar__main,.feed-cat,.daypanel,.gate,.empty{box-shadow:inset 0 1px #ffffff09,0 4px 16px #0001}
.food-section.is-active,.day.is-today {border-color:var(--line-2)}
.sync--server.is-live .sync__dot {background:#48b77a;box-shadow:0 0 0 3px #48b77a25}

.hl-butter {--hl:var(--system-yellow)}
.hl-peach {--hl:var(--system-orange)}
.hl-mint {--hl:var(--system-mint)}
.hl-lilac {--hl:var(--system-purple)}
:is(.hl-butter,.hl-peach,.hl-mint,.hl-lilac){--hl-bg:color-mix(in srgb,var(--hl) 22%,var(--card))}
::selection {background:color-mix(in srgb,var(--system-purple) 32%,var(--card));color:var(--ink)}
.input:focus,.day.is-selected {box-shadow:0 0 0 3px color-mix(in srgb,var(--system-purple) 22%,transparent)}
.banner {background:color-mix(in srgb,var(--system-yellow) 15%,var(--card));border-color:color-mix(in srgb,var(--system-yellow) 48%,var(--line))}
.btn--danger,.clear-all {border-color:color-mix(in srgb,var(--system-red) 38%,var(--line))}
.btn--danger:hover,.clear-all {background:color-mix(in srgb,var(--system-red) 9%,var(--card))}
.clear-all__go:hover {background:color-mix(in srgb,var(--warn) 83%,var(--ink))}
.day__feeding-tip,.day__feeding-tip:after {background:var(--card);border-color:var(--line-2)}
.feeding__copy {background:var(--glass)}
.avatar-toggle.is-active,.feeding-choice.is-active {background:color-mix(in srgb,var(--system-purple) 17%,var(--card));border-color:var(--green);color:var(--ink)}
.feeding-choice__swatch {background:var(--system-gray)}
.feeding-choice.is-active .feeding-choice__swatch {background:var(--green)}
.sync--server.is-live .sync__dot {background:var(--system-green);box-shadow:0 0 0 3px color-mix(in srgb,var(--system-green) 16%,transparent)}
:root:not([data-mode=dark]) .pri {color:color-mix(in srgb,var(--pri) 43%,#151518)}
