:root {
  /* Soft newborn palette: dusty baby blue leads, blush pink accents, warm off-white. */
  --bg: #fbf9f8;
  --card: #ffffff;
  --ink: #2c2e3b;
  --muted: #6d7081;
  --line: #ebe6e9;
  --brand: #526ea6;
  --brand-ink: #ffffff;
  --brand-soft: #eaf0f9;
  --blue-soft: #dfe8f6;
  --pink: #d48ba0;
  --pink-soft: #f9e8ed;
  --pink-ink: #ad5873;
  --todo: #526ea6;
  --get: #ad5873;
  --ack: #7363b3;
  --optional: #6b6e7d;
  --danger: #c0505a;
  --wash-blue: rgb(169 195 236 / .28);
  --wash-pink: rgb(242 190 205 / .26);
  --bezel: #e9e5ec;
  --bezel-edge: #d9d3dd;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(40 44 70 / .04), 0 6px 20px rgb(40 44 70 / .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171d; --card: #1f2029; --ink: #eceaf1; --muted: #9b9dac; --line: #2e2f3b;
    --brand: #9fb6e4; --brand-ink: #151821; --brand-soft: #252b3b; --blue-soft: #252b3b;
    --pink: #e9a8ba; --pink-soft: #33242b; --pink-ink: #eeb3c4;
    --todo: #9fb6e4; --get: #eaa7ba; --ack: #b9aeee; --optional: #a2a4b0; --danger: #ea8a92;
    --bezel: #2a2b36; --bezel-edge: #3a3b48; --wash-blue: rgb(110 140 200 / .10); --wash-pink: rgb(220 140 165 / .08);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  background-image: radial-gradient(60rem 36rem at 10% -10%, var(--wash-blue), transparent 70%),
    radial-gradient(50rem 32rem at 95% 0%, var(--wash-pink), transparent 70%);
  background-repeat: no-repeat; min-height: 100vh;
}
body {
  font: 16px/1.45 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 720px; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px calc(32px + env(safe-area-inset-bottom)); }
.boot { padding: 40vh 0; text-align: center; color: var(--muted); }
h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
a { color: var(--brand); }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 15px; height: 15px; }

button, .btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 12px 18px; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button:disabled { opacity: .5; }
button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
button.danger { color: var(--danger); }
button.link { background: none; color: var(--muted); padding: 12px 0; font-weight: 500; }
.icon-btn { background: transparent; color: var(--ink); padding: 8px; border-radius: 50%; }

input, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); margin-top: 6px;
}
input:focus, textarea:focus { outline: none; border-color: var(--brand); }
input.mono { font-family: ui-monospace, monospace; font-size: .85rem; }
label { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
legend { font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink); font-weight: 500; cursor: pointer; background: var(--card);
}
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.pill:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pill:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pill.big { padding: 14px 22px; font-size: 1.05rem; }
.icon-pick { padding: 10px; }

.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: left; }
.card button { width: 100%; }
.hero { text-align: center; padding-top: 8vh; }
.hero .logo { width: 84px; height: 84px; }
.lede { color: var(--muted); max-width: 30em; margin: 10px auto 24px; }
.fine { color: var(--muted); font-size: .85rem; font-weight: 400; }
.q { font-size: 1.1rem; font-weight: 600; margin: 4px 0 8px; }
.banner { background: var(--brand-soft); color: var(--ink); border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; text-align: left; }
.banner.warn { background: color-mix(in srgb, var(--danger) 14%, var(--card)); }
.as-btn { width: 100%; font-weight: 600; justify-content: flex-start; }

.top { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; }
.top > div:first-child, .top .grow { flex: 1; }
.sub { color: var(--muted); margin: 2px 0 0; font-size: .9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.list-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; min-height: 132px; text-align: left;
}
.list-card .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.lc-title { font-weight: 650; line-height: 1.25; }
.lc-meta { color: var(--muted); font-size: .82rem; margin-top: auto; }
.lc-meta b { color: var(--pink-ink); font-weight: 600; }
progress { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 9px; overflow: hidden; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--brand); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 9px; }
.list-card.add { background: transparent; box-shadow: inset 0 0 0 2px var(--line); color: var(--muted); align-items: center; justify-content: center; font-weight: 600; }

.feed { margin-top: 28px; }
.feed h2 { font-size: .95rem; color: var(--muted); }
.feed ul { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.feed time { color: var(--muted); font-size: .8rem; margin-left: 4px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px 10px; padding-inline: 16px; scrollbar-width: none; }
.chip { flex: none; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); padding: 7px 12px; font-weight: 500; font-size: .9rem; border-radius: 999px; }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }

.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 4px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 4px 6px 4px 4px; }
.item .check {
  position: relative; width: 44px; height: 44px; padding: 0; margin: 2px; border-radius: 50%; flex: none;
  background: transparent; color: transparent; display: grid; place-items: center;
}
.item .check::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c); }
.item .check .ic { position: relative; width: 16px; height: 16px; stroke-width: 2.6; }
.item.is-done .check::before { background: var(--c); }
.item.is-done .check { color: var(--card); }
.item .body { flex: 1; background: none; color: var(--ink); text-align: left; padding: 8px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-weight: 500; border-radius: 10px; }
.item .meta { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--c); font-weight: 600; }
.item.is-done .txt { text-decoration: line-through; color: var(--muted); }
.item .shop { color: var(--get); padding: 10px; }
.t-todo { --c: var(--todo); } .t-get { --c: var(--get); } .t-ack { --c: var(--ack); } .t-optional { --c: var(--optional); }
.items.done { opacity: .75; margin-top: 4px; }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.quick-add { display: flex; gap: 8px; margin: 12px 0; }
.quick-add input { margin: 0; }
.quick-add button { padding: 0 14px; }

dialog {
  border: 0; padding: 0; background: transparent; width: 100%; max-width: 560px; margin: auto auto 0; max-height: 92dvh;
}
dialog::backdrop { background: rgb(0 0 0 / .35); }
.sheet { background: var(--bg); color: var(--ink); border-radius: 22px 22px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { dialog { margin: auto; } .sheet { border-radius: 22px; } }
.row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.row button:last-child { min-width: 96px; }
.row .danger { margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.who { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 16px; }

#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: .92rem; transition: .2s; pointer-events: none; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- homepage (signed out) ---------- */
#app.wide { max-width: 1080px; }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.ghost-btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.link-btn { background: none; color: var(--muted); padding: 6px 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }

.l-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; }

.l-hero { text-align: center; padding: 48px 0 28px; }
.eyebrow { color: var(--pink-ink); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.l-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
.l-hero h1 span { background: linear-gradient(90deg, var(--brand), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-hero .lede { font-size: 1.12rem; margin: 18px auto 26px; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.demo { padding: 20px 0 8px; scroll-margin-top: 12px; }
.demo-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.demo-tabs .chip { padding: 9px 14px; gap: 6px; }
.demo-tabs .ic { width: 18px; height: 18px; }
.phones { display: flex; gap: clamp(20px, 6vw, 72px); justify-content: center; flex-wrap: wrap; }
.phone-wrap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.phone-wrap figcaption { font-weight: 700; color: var(--muted); font-size: .9rem; }
.phone {
  width: 318px; max-width: calc(100vw - 32px); height: 620px; border-radius: 46px; padding: 10px;
  background: var(--bezel); box-shadow: 0 30px 60px -24px rgb(60 60 100 / .30), inset 0 0 0 2px var(--bezel-edge);
}
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; padding: 0 12px 12px; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 700; padding: 12px 10px 6px; }
.island { width: 84px; height: 24px; border-radius: 20px; background: #1d1e27; }
.p-head { padding: 6px 4px 10px; }
.p-head .p-title { margin: 0; font-size: 1.2rem; font-weight: 700; }
.p-head span { color: var(--muted); font-size: .8rem; }
.screen .chips { margin: 0 -12px 8px; padding-inline: 12px; flex: none; }
.screen .chip { font-size: .78rem; padding: 6px 10px; gap: 4px; }
.screen .items { flex: 1; overflow-y: auto; gap: 6px; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.screen .item { border-radius: 12px; padding: 2px 4px 2px 2px; position: relative; }
.screen .item .check { margin: 0; }
.screen .item .body { font-size: .88rem; padding: 6px 2px; }
.screen .item .meta { font-size: .7rem; }
.screen .item .shop { background: none; }
.screen .quick-add { margin: 6px 0 0; flex: none; }
.screen .quick-add input { padding: 9px 12px; font-size: .88rem; }
.item.fresh { animation: pop .7s ease; }
@keyframes pop { 0% { transform: scale(.96); box-shadow: 0 0 0 3px var(--brand); } 100% { transform: none; } }

.check.hint::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent); } 50% { box-shadow: inset 0 0 0 2px var(--c), 0 0 0 10px transparent; } }
.p-hint { display: flex; align-items: center; gap: 6px; margin: 0 4px 8px; font-size: .78rem; font-weight: 600; color: var(--brand); flex: none; }

.p-notif {
  position: absolute; z-index: 5; left: 8px; right: 8px; top: 42px; display: flex; gap: 10px; align-items: flex-start;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .18); font-size: .82rem; line-height: 1.3; animation: drop .35s ease;
}
.p-notif img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.p-notif small { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 2px; }
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } to { transform: none; opacity: 1; } }
.p-tip {
  position: absolute; z-index: 4; left: 50%; bottom: 70px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 7px 12px; border-radius: 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; animation: fadein .2s ease;
}
@keyframes fadein { from { opacity: 0; } }
.p-scrim { position: absolute; inset: 0; z-index: 6; background: rgb(0 0 0 / .3); animation: fadein .2s ease; }
.p-sheet {
  position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 22px 22px 0 0; padding: 18px 16px 22px;
  animation: rise .25s ease;
}
@keyframes rise { from { transform: translateY(100%); } }
.p-sheet .q { font-size: 1rem; margin: 0 0 4px; }
.p-sheet .row { justify-content: flex-start; margin: 10px 0 4px; }
.p-sheet .row.split { justify-content: space-between; align-items: center; }
.pill-btn { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; padding: 9px 14px; font-size: .88rem; }
.pill-btn.on { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pill-btn.danger { background: var(--danger); color: #fff; box-shadow: none; }
.demo-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 18px; }

.l-section { padding: 56px 0 8px; }
.l-section h2, .l-start h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: -.015em; text-align: center; margin-bottom: 10px; }
.sub-lede { text-align: center; color: var(--muted); max-width: 34em; margin: 0 auto 26px; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 26px; }
.type-card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.type-card h3, .feature h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.type-card p, .feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.type-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; counter-reset: none; }
.timeline li { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); font-weight: 600; }
.timeline .ic { color: var(--brand); }
.timeline small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
.steps span { color: var(--muted); }
.l-start { padding: 64px 0 24px; scroll-margin-top: 12px; }
.l-start .card { max-width: 420px; margin: 0 auto; }
.l-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 40px 0 8px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* blush accents: every other badge goes pink */
.feature:nth-child(even) .badge, .list-card:nth-child(even) .badge { background: var(--pink-soft); color: var(--pink-ink); }
.timeline li:nth-child(even) .ic { color: var(--pink-ink); }
.steps li:nth-child(even)::before { background: var(--pink); }

/* sign-in card */
.login-card { display: flex; flex-direction: column; gap: 4px; }
.login-card .login-form { display: block; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line);
}
.google-btn:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.g-logo { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; margin: 12px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.l-start .login-card { max-width: 420px; margin: 0 auto; }

/* privacy / terms */
.legal { max-width: 680px; }
.legal h1 { margin-top: 24px; }
.legal h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.legal p, .legal li { color: var(--ink); line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .brand { color: var(--ink); text-decoration: none; }
.l-foot a { color: var(--muted); }

/* invite sheet */
.inline-send { display: flex; gap: 8px; margin-top: 6px; }
.inline-send input { margin: 0; }
.inline-send button { flex: none; }
.share-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 6px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; border-radius: 12px; font: inherit; font-weight: 600; font-size: .92rem;
  background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
}
.share-btn .ic { width: 18px; height: 18px; color: var(--brand); }

/* ---------- dashboard ---------- */
.dash-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 18px 20px 16px; margin: 4px 0 18px;
  background: linear-gradient(135deg, var(--blue-soft), var(--pink-soft)); box-shadow: var(--shadow);
}
.dash-hero::after {   /* soft glow, purely decorative */
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / .55), transparent 70%); pointer-events: none;
}
@media (prefers-color-scheme: dark) { .dash-hero::after { background: radial-gradient(circle, rgb(255 255 255 / .06), transparent 70%); } }
.hero-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.hero-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 16px; position: relative; z-index: 1; }
.hello { margin: 0 0 2px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.dash-hero h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }
.dash-hero .sub { margin-top: 6px; }
.hero-ring { position: relative; flex: none; width: 112px; height: 112px; display: grid; place-items: center; }
.hero-ring .ring { position: absolute; inset: 0; }
.ring-label { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ring-label b { font-size: 1.25rem; letter-spacing: -.01em; }
.ring-label small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.ring-track { stroke: color-mix(in srgb, var(--ink) 10%, transparent); }
.ring-fill { stroke: var(--brand); transition: stroke-dasharray .5s ease; }
.ring.sm { flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 1; }
.stats div { background: color-mix(in srgb, var(--card) 72%, transparent); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.stats b { font-size: 1.25rem; letter-spacing: -.01em; }
.stats span { color: var(--muted); font-size: .76rem; font-weight: 600; }

.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  color: var(--brand-ink); background: var(--brand); box-shadow: 0 0 0 2.5px var(--card); padding: 0; flex: none;
}
.avatar + .avatar { margin-left: -8px; }
.avatar.a1 { background: var(--pink); color: #fff; }
.avatar.invite { background: var(--card); color: var(--muted); box-shadow: 0 0 0 2.5px var(--card), inset 0 0 0 1.5px var(--line); }
.avatar.invite .ic { width: 16px; height: 16px; }

.invite-card {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--card); color: var(--ink);
  border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 22px; font-weight: 400;
}
.invite-card b { display: block; font-weight: 700; }
.invite-card small { color: var(--muted); font-size: .85rem; }
.invite-card .badge, .list-row .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-ink); flex: none; }
.invite-card .chev { margin-left: auto; color: var(--muted); transform: rotate(180deg); display: grid; }

.stage { margin-bottom: 24px; }
.section-h { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 2px 10px; }
.now-chip { text-transform: none; letter-spacing: 0; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); color: var(--ink);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; font-weight: 400; text-align: left;
}
.list-row:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(40 44 70 / .05), 0 10px 24px rgb(40 44 70 / .08); }
.list-row .badge { background: var(--brand-soft); color: var(--brand); }
.list-grid .list-row:nth-child(even) .badge { background: var(--pink-soft); color: var(--pink-ink); }
.list-row.is-now { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--brand) 45%, transparent), var(--shadow); }
.lr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lr-title { font-weight: 650; line-height: 1.25; }
.lr-meta { color: var(--muted); font-size: .8rem; }
.lr-meta b { color: var(--pink-ink); font-weight: 600; }
.lr-done { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); flex: none; }
.lr-done .ic { width: 18px; height: 18px; }
.list-row.add { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); }
.list-row.add .badge { background: transparent; color: var(--muted); }

.up-next .item { box-shadow: var(--shadow); }
.timeline-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.timeline-feed li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.timeline-feed .avatar { width: 28px; height: 28px; font-size: .78rem; box-shadow: none; }
.timeline-feed time { color: var(--muted); font-size: .78rem; margin-left: 6px; }
@media (max-width: 420px) { .hero-ring { width: 92px; height: 92px; } .hero-ring .ring { width: 92px; height: 92px; } .ring-label b { font-size: 1.05rem; } }

.rename-btn { background: none; color: var(--muted); padding: 6px; margin-left: 4px; vertical-align: middle; border-radius: 10px; }
.rename-btn .ic { width: 18px; height: 18px; }
.rename-btn:hover { color: var(--brand); background: color-mix(in srgb, var(--card) 60%, transparent); }

/* ---------- accessibility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 600; margin: -8px 0 12px; }
[aria-invalid="true"] { border-color: var(--danger); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
h1:focus { outline: none; }   /* headings get programmatic focus on screen changes; no ring needed */
/* Windows high-contrast / forced colors: shadows vanish there, so draw real borders. */
@media (forced-colors: active) {
  .item .check::before { box-shadow: none; border: 2px solid ButtonText; }
  .item.is-done .check::before { background: Highlight; border-color: Highlight; }
  .list-row, .item, .card, .type-card, .stats div, .invite-card, .pill, .chip, .share-btn { border: 1px solid CanvasText; }
  .ring-fill { stroke: Highlight; } .ring-track { stroke: GrayText; }
}
