/* =====================================================================
   THEME: "Eclipse" (AI Tech Universe), stark black and white.
   This file is the single theme config. To switch theme, replace this
   file and the files in /theme/ (pictures) plus icon*.png / icon.svg,
   then build and deploy. No JavaScript changes needed.

   Hooks the app gives a theme:
   - CSS variables below (colors, fonts, radius, per kid identity)
   - body[data-view=<page>] , body[data-role=parent|kid] , body[data-me=<member id>]
   - .theme-hero[data-hero=<page>] : a hero block at the top of every page (hidden unless a theme shows it)
   - .pic-card[data-pic="chore-<name>|meal-<name>|reward-<name>"] : picture cards; an item's own
     image (a /theme/ file set on the chore, dish or reward) arrives as --pic and wins
   - .kid-notice : the activity notice on kids' home screens
   ===================================================================== */
:root{
  --font:"Geist",-apple-system,BlinkMacSystemFont,system-ui,"Helvetica Neue",Arial,sans-serif;
  --ink:#000;--paper:#fff;--mid:#6b6b6b;--soft-line:#d9d9d9;
  --blue:#000;--green:#000;--red:#000;--orange:#000;--indigo:#000;--teal:#000;--yellow:#000;--pink:#000;--gray:#6b6b6b;
  --accent:#000;--accent-bright:#000;--info:#000;
  --ok:#000;--ok-bg:#e9e9e9;--bad:#000;--bad-bg:#000;--warn:#000;--warn-bg:#f1f1f1;--info-bg:#f1f1f1;
  --grouped:#fff;--cell:#fff;--cell2:#f4f4f4;--bg:#fff;--bg2:#fff;--card:#fff;--line:#000;--sep:#d9d9d9;
  --radius:18px;--radius-sm:12px;--shadow:none;--focus:0 0 0 4px rgba(0,0,0,.35);
  /* per kid identity: tone, pattern and badge (Child 1 solid, Child 2 stripes, Child 3 dots) */
  --child1:#000;--child2:#3a3a3a;--child3:#7a7a7a;
  --kid1-pattern:linear-gradient(#000,#000);
  --kid2-pattern:repeating-linear-gradient(45deg,#000 0 6px,#fff 6px 10px);
  --kid3-pattern:radial-gradient(#000 2.2px,#fff 2.6px) 0 0/9px 9px;
  /* pictures */
  --hero-height:200px;
  --hero-today:url(/theme/hero-today.webp);--hero-chores:url(/theme/hero-chores.webp);--hero-meals:url(/theme/hero-meals.webp);
  --hero-school:url(/theme/hero-school.webp);--hero-rewards:url(/theme/hero-rewards.webp);
  --pic-chore:url(/theme/card-chore.webp);--pic-meal:url(/theme/card-meal.webp);--pic-reward:url(/theme/card-reward.webp);
}
html,body{background:#fff!important;color:#000}
body{font-family:var(--font)}
/* bars and nav: black */
header.top{background:#000!important;color:#fff!important;border-bottom:0!important}
header.top .bt,header.top .navtitle,header.top .nm{color:#fff!important}
header.top .iconbtn,header.top .mebtn{background:#000!important;color:#fff!important;border:1px solid #fff!important}
nav.tabs button.active{background:#000!important;color:#fff!important}
nav.tabs button.active svg{stroke:#fff!important}
/* cards: hard edges, bold type */
.card{border:2px solid #000!important;background:#fff!important;box-shadow:none!important}
.pagehead h1{font-weight:800;letter-spacing:-.02em}
.eyebrow{color:#000!important;letter-spacing:.14em}
.btn{background:#000!important;color:#fff!important;border:2px solid #000!important}
.btn.plain,.btn.ghost{background:#fff!important;color:#000!important}
.btn.danger{background:#fff!important;color:#000!important;text-decoration:underline}
.btn.ok{background:#000!important;color:#fff!important}
.chip{border:1.5px solid #000!important;background:#fff!important;color:#000!important}
.chip.overdue,.chip.late,.chip.redo{background:#000!important;color:#fff!important}
.bar{background:#000!important}
/* hero block per page */
.theme-hero{display:none;height:var(--hero-height);border-radius:var(--radius);margin:0 0 18px;background:#000 no-repeat right center/cover}
body[data-view=today] .theme-hero{display:block;background-image:var(--hero-today)}
body[data-view=chores] .theme-hero,body[data-view=house] .theme-hero{display:block;background-image:var(--hero-chores)}
body[data-view=meals] .theme-hero,body[data-view=groceries] .theme-hero{display:block;background-image:var(--hero-meals)}
body[data-view=homework] .theme-hero,body[data-view=calendar] .theme-hero,body[data-view=subjects] .theme-hero,body[data-view=schooltodo] .theme-hero{display:block;background-image:var(--hero-school)}
body[data-view=points] .theme-hero{display:block;background-image:var(--hero-rewards)}
@media(max-width:600px){.theme-hero{height:130px;background-position:70% center}}
/* picture cards: a big black and white picture on every chore and dish */
.item.pic-card{display:flex;align-items:stretch;gap:14px}
.item.pic-card::before,.item.pic-card+.item.pic-card::before,.item.pic-card:not(:first-of-type)::before{content:"";position:static;flex:0 0 96px;width:96px;height:auto;min-height:96px;border-radius:14px;background:#000 no-repeat center/cover;filter:grayscale(1)}
.item.pic-card+.item{border-top:1px solid var(--sep)}
.grid2 .item.pic-card::before{flex-basis:64px;width:64px;min-height:64px}
.item.pic-card[data-pic^="chore-"]::before{background-image:var(--pic,var(--pic-chore))!important}
.item.pic-card[data-pic^="meal-"]::before{background-image:var(--pic,var(--pic-meal))!important}
.item.pic-card .bar{display:none}
.item.pic-card .title{font-size:1.15em;font-weight:800}
/* rewards: big monochrome tiles */
.rwtile{border:2px solid #000!important;background:#fff!important}
.rwtile.can{background:#000!important;color:#fff!important}
.rwtile[data-has-image] .rwart{background:var(--pic) center/cover}
.rwring .val{stroke:#000!important}.rwtile.can .rwring .val{stroke:#fff!important}
.rwemoji,.rwico,.dl-ic,.flame,[data-streak]{filter:grayscale(1) contrast(1.3)}
/* per kid identity on avatars and kid screens */
.avatar[data-user]{border:2px solid #000;color:#000!important}
.avatar[data-user=parent1],.avatar[data-user=parent2]{background:#000!important;color:#fff!important}
.avatar[data-user=child1]{background:var(--kid1-pattern)!important;color:#fff!important}
.avatar[data-user=child2]{background:var(--kid2-pattern)!important;color:#000!important;text-shadow:0 0 3px #fff,0 0 3px #fff}
.avatar[data-user=child3]{background:var(--kid3-pattern)!important;color:#000!important;text-shadow:0 0 3px #fff,0 0 3px #fff}
body[data-me=child1] .theme-hero{box-shadow:inset 0 -10px 0 #fff,inset 0 -14px 0 #000}
body[data-me=child2] .theme-hero{border-bottom:10px solid transparent;border-image:repeating-linear-gradient(45deg,#000 0 6px,#fff 6px 10px) 10}
body[data-me=child3] .theme-hero{border-bottom:10px solid transparent;border-image:radial-gradient(#000 2.2px,#fff 2.6px) 0 0/9px 9px 10}
/* kid activity notice */
.kid-notice{display:flex;gap:10px;align-items:flex-start;border:2px solid #000;border-radius:12px;padding:10px 12px;margin:0 0 14px;font-size:13px;line-height:1.35;background:#fff;color:#000}
.kid-notice b{font-weight:800}
.kid-notice svg{flex:0 0 18px;margin-top:1px}
/* login */
.login{background:#000!important}.login-card{background:#fff!important;border:2px solid #000}
.login .grad{background:none!important;-webkit-text-fill-color:#000!important;color:#000!important}
