:root {
  --text: #fff9fd;
  --muted: rgba(255, 248, 253, .76);
  --glass: rgba(90, 24, 67, .33);
  --glass-strong: rgba(118, 31, 82, .48);
  --border: rgba(255, 224, 241, .24);
  --shadow: 0 24px 70px rgba(64, 10, 43, .28);
  --pink: #ffc1e4;
  --lavender: #ead0ff;
  --bg-1: #6c164f;
  --bg-2: #bd3d83;
  --bg-3: #571342;
  --glow-1: rgba(255, 119, 190, .52);
  --glow-2: rgba(255, 194, 229, .34);
  --ambient-1: #ff72bb;
  --ambient-2: #ffabd4;
  --tab-a: #ffd1e9;
  --tab-b: #ffb4dc;
  --tab-text: #56123e;
}


body[data-theme="unicorn"] {
  --glass: rgba(63, 31, 98, .30);
  --glass-strong: rgba(87, 42, 126, .45);
  --border: rgba(255, 235, 255, .25);
  --pink: #ffd0ef;
  --lavender: #dacbff;
  --bg-1: #ff79bd;
  --bg-2: #8b66db;
  --bg-3: #4e8edb;
  --glow-1: rgba(255, 204, 232, .52);
  --glow-2: rgba(173, 238, 255, .40);
  --ambient-1: #ff96d0;
  --ambient-2: #8edcff;
  --tab-a: #ffd3ef;
  --tab-b: #c7c6ff;
  --tab-text: #49285f;
}

body[data-theme="kpop"] {
  --glass: rgba(37, 13, 56, .42);
  --glass-strong: rgba(60, 19, 78, .57);
  --border: rgba(255, 160, 232, .28);
  --pink: #ff87d7;
  --lavender: #bda0ff;
  --bg-1: #1f1238;
  --bg-2: #8b185d;
  --bg-3: #251146;
  --glow-1: rgba(255, 35, 167, .46);
  --glow-2: rgba(113, 69, 255, .43);
  --ambient-1: #ff2aa3;
  --ambient-2: #7255ff;
  --tab-a: #ff88d5;
  --tab-b: #9f82ff;
  --tab-text: #25102f;
}

body[data-theme="mj"] {
  --glass: rgba(24, 25, 34, .47);
  --glass-strong: rgba(39, 40, 51, .62);
  --border: rgba(255, 255, 255, .19);
  --pink: #f7d27d;
  --lavender: #f3e4b1;
  --bg-1: #08090d;
  --bg-2: #252733;
  --bg-3: #090a0e;
  --glow-1: rgba(220, 38, 59, .33);
  --glow-2: rgba(250, 206, 103, .25);
  --ambient-1: #b51f32;
  --ambient-2: #e6b94f;
  --tab-a: #f6d88e;
  --tab-b: #f1f1f1;
  --tab-text: #1d1d22;
}

body[data-theme="ocean"] {
  --glass: rgba(14, 59, 83, .34);
  --glass-strong: rgba(17, 79, 105, .50);
  --border: rgba(201, 247, 255, .23);
  --pink: #c7f6ff;
  --lavender: #cfc8ff;
  --bg-1: #075a75;
  --bg-2: #178fa4;
  --bg-3: #173c73;
  --glow-1: rgba(83, 232, 255, .42);
  --glow-2: rgba(128, 143, 255, .35);
  --ambient-1: #54ddf4;
  --ambient-2: #7587ff;
  --tab-a: #c5f6ff;
  --tab-b: #cfcaff;
  --tab-text: #153a55;
}

body[data-theme="rainbow"] {
  --glass: rgba(71, 34, 82, .30);
  --glass-strong: rgba(88, 42, 99, .43);
  --border: rgba(255, 244, 255, .25);
  --pink: #ffd2ea;
  --lavender: #e0d2ff;
  --bg-1: #e84b87;
  --bg-2: #7f58d8;
  --bg-3: #248eb5;
  --glow-1: rgba(255, 199, 87, .42);
  --glow-2: rgba(99, 246, 207, .35);
  --ambient-1: #ffcb58;
  --ambient-2: #61e7cf;
  --tab-a: #ffd1e7;
  --tab-b: #c9e9ff;
  --tab-text: #4b2759;
}


body[data-theme="cottoncandy"] {
  --glass: rgba(121, 59, 122, .27); --glass-strong: rgba(139, 70, 143, .43); --border: rgba(255,245,255,.27);
  --pink:#ffd6ef; --lavender:#d9d8ff; --bg-1:#ff91c7; --bg-2:#a98ae8; --bg-3:#75c9e9;
  --glow-1:rgba(255,229,247,.52); --glow-2:rgba(202,245,255,.42); --ambient-1:#ffb7dd; --ambient-2:#9edfff;
  --tab-a:#ffe1f2; --tab-b:#d6d5ff; --tab-text:#5f3663;
}
body[data-theme="princess"] {
  --glass:rgba(104,40,95,.31); --glass-strong:rgba(132,51,117,.49); --border:rgba(255,225,240,.28);
  --pink:#ffd1e6; --lavender:#f0d6ff; --bg-1:#7d245f; --bg-2:#d34f8f; --bg-3:#5e2e88;
  --glow-1:rgba(255,190,217,.48); --glow-2:rgba(228,191,255,.39); --ambient-1:#ff79b5; --ambient-2:#c281ff;
  --tab-a:#ffd6e9; --tab-b:#e5ccff; --tab-text:#5e2152;
}
body[data-theme="rosegold"] {
  --glass:rgba(87,50,61,.29); --glass-strong:rgba(106,59,72,.46); --border:rgba(255,227,220,.25);
  --pink:#ffd8cf; --lavender:#f1d6df; --bg-1:#6f3b4b; --bg-2:#b76d75; --bg-3:#73485f;
  --glow-1:rgba(255,187,172,.38); --glow-2:rgba(255,223,199,.31); --ambient-1:#e8a49a; --ambient-2:#d9a9bd;
  --tab-a:#ffd6cb; --tab-b:#efd0dc; --tab-text:#56313c;
}
body[data-theme="fairy"] {
  --glass:rgba(45,86,72,.29); --glass-strong:rgba(58,105,88,.45); --border:rgba(233,255,239,.25);
  --pink:#ffd1eb; --lavender:#e7d7ff; --bg-1:#476c5b; --bg-2:#8fb67f; --bg-3:#7b5c9f;
  --glow-1:rgba(255,195,229,.34); --glow-2:rgba(190,255,204,.34); --ambient-1:#f39ac8; --ambient-2:#a6e5b0;
  --tab-a:#ffd9ee; --tab-b:#d6f4d5; --tab-text:#355243;
}
body[data-theme="galaxy"] {
  --glass:rgba(30,22,72,.40); --glass-strong:rgba(43,31,94,.58); --border:rgba(220,210,255,.23);
  --pink:#ffb9ee; --lavender:#c8c2ff; --bg-1:#17143d; --bg-2:#57328f; --bg-3:#151f55;
  --glow-1:rgba(255,94,218,.35); --glow-2:rgba(82,163,255,.34); --ambient-1:#ff5fd7; --ambient-2:#648cff;
  --tab-a:#ffc6ee; --tab-b:#bfc4ff; --tab-text:#27204f;
}


body[data-theme="blackglass"] {
  --text: #f4f6f8;
  --muted: rgba(230, 234, 239, .68);
  --glass: rgba(10, 12, 15, .66);
  --glass-strong: rgba(17, 20, 24, .82);
  --border: rgba(255, 255, 255, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  --pink: #d7dce2;
  --lavender: #aeb7c2;
  --bg-1: #050607;
  --bg-2: #111419;
  --bg-3: #030405;
  --glow-1: rgba(255, 255, 255, .055);
  --glow-2: rgba(120, 135, 150, .08);
  --ambient-1: #30363d;
  --ambient-2: #171b20;
  --tab-a: #e8ebef;
  --tab-b: #aeb7c2;
  --tab-text: #111419;
  --modal-shade: rgba(0, 0, 0, .90);
}
body[data-theme="blackglass"]::before {
  background-image: radial-gradient(rgba(255,255,255,.11) 1px, transparent 1px);
  opacity: .42;
}
body[data-theme="blackglass"] .ambient {
  opacity: .16;
  filter: blur(115px);
}
body[data-theme="blackglass"] .sparkly-weekday {
  background: linear-gradient(90deg, #ffffff, #8f99a5, #f4f6f8, #6e7883, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body[data-theme="blackglass"] .sparkle {
  color: #c8cdd3;
  text-shadow: 0 0 10px rgba(255,255,255,.24);
}
body[data-theme="blackglass"] .heart {
  color: #d7dce2;
  text-shadow: none;
}
body[data-theme="blackglass"] .glass {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), var(--shadow);
}
.blackglass-swatch {
  background: linear-gradient(135deg, #020304, #15191e 50%, #4b535d);
  border: 1px solid rgba(255,255,255,.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 16% 12%, var(--glow-1), transparent 32%),
    radial-gradient(circle at 83% 8%, var(--glow-2), transparent 34%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.34) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .18;
}

.ambient {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .28;
  pointer-events: none;
}
.ambient-one { background: var(--ambient-1); left: -130px; top: 26%; }
.ambient-two { background: var(--ambient-2); right: -130px; bottom: 4%; }

.dashboard-shell {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 28px;
  position: relative;
  z-index: 1;
}

.glass {
  background: linear-gradient(135deg, var(--glass-strong), var(--glass));
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.hero {
  min-height: 170px;
  border-radius: 30px;
  padding: 31px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  z-index: 20;
  overflow: visible;
}

.eyebrow, .card-kicker {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .19em;
  color: var(--pink);
}

h1 { margin: 7px 0 5px; font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -.055em; line-height: .98; }
h2, h3, p { margin-top: 0; }
.hero p { margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.heart { color: #ff9fd8; filter: drop-shadow(0 0 14px rgba(255,159,216,.45)); }

.date-pill {
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 13px 19px;
  font-weight: 700;
  white-space: nowrap;
}

.grid { display: grid; gap: 22px; }
.top-grid { grid-template-columns: 1.32fr .86fr; margin-top: 22px; position: relative; z-index: 1; }
.card { border-radius: 26px; padding: 28px; }

.weather-main { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.weather-icon { font-size: 5rem; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); }
.temperature { font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -.08em; line-height: .92; }
.weather-stats { display: flex; gap: 28px; margin-top: 28px; color: var(--muted); }
.weather-stats strong { color: var(--text); }

.special-row { display: flex; align-items: center; gap: 18px; margin-top: 25px; }
.special-emoji { width: 68px; height: 68px; display: grid; place-items: center; font-size: 2.35rem; border-radius: 22px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }
.special-row h2 { font-size: 2.1rem; margin: 3px 0 0; }
.divider { height: 1px; background: rgba(255,255,255,.11); margin: 24px 0; }
.lunch-block h3 { font-size: 1.45rem; margin: 5px 0 6px; }
.lunch-block p { margin-bottom: 4px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }

.upcoming-card { margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.section-heading h2 { font-size: 2rem; margin: 4px 0 0; }
.sparkles { color: var(--lavender); letter-spacing: .35em; font-size: 1.1rem; }
.events { margin-top: 20px; display: grid; gap: 10px; }
.event-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.event-date { font-weight: 800; color: var(--pink); }
.event-title { font-weight: 700; }
.empty-state { color: var(--muted); padding: 16px 2px; }

footer { text-align: center; padding-top: 23px; color: rgba(255,255,255,.58); font-size: .86rem; }

@media (max-width: 820px) {
  .dashboard-shell { width: min(100% - 22px, 1420px); padding-top: 12px; }
  .hero { padding: 24px; border-radius: 24px; align-items: flex-start; flex-direction: column; }
  .top-grid { grid-template-columns: 1fr; }
  .card { padding: 23px; }
  .event-row { grid-template-columns: 1fr; gap: 4px; }
}

.menu-browser-card { margin-top: 22px; }
.menu-heading { align-items: center; }
.menu-heading h2 { margin-bottom: 6px; }
.menu-range-label { margin-bottom: 0; }
.meal-toggle { display: flex; gap: 8px; padding: 5px; border: 1px solid rgba(255,255,255,.11); border-radius: 999px; background: rgba(255,255,255,.055); }
.meal-tab { appearance: none; border: 0; color: var(--muted); background: transparent; padding: 10px 15px; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; }
.meal-tab.active { color: var(--tab-text); background: linear-gradient(135deg, var(--tab-a), var(--tab-b)); box-shadow: 0 8px 25px rgba(25,8,35,.22); }

.date-browser-wrap { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-top: 24px; }
.date-strip { display: flex; gap: 9px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 3px 1px 8px; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { min-width: 78px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.055); color: var(--text); border-radius: 19px; padding: 10px 11px; cursor: pointer; text-align: center; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.date-chip:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }
.date-chip.active { background: linear-gradient(145deg, rgba(255,194,231,.22), rgba(196,171,255,.22)); border-color: rgba(255,220,246,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 10px 25px rgba(25,8,35,.18); }
.date-chip .dow { display: block; color: var(--muted); font-weight: 800; font-size: .72rem; letter-spacing: .08em; }
.date-chip .day { display: block; font-size: 1.45rem; line-height: 1.1; font-weight: 850; margin-top: 3px; }
.date-chip .month { display: block; color: var(--pink); font-size: .72rem; font-weight: 800; margin-top: 2px; }
.date-chip.weekend { opacity: .52; }
.date-chip.has-menu::after { content: "•"; display: block; color: #ffd5ef; font-size: 1.1rem; line-height: .45; margin-top: 3px; }
.date-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); color: var(--text); background: rgba(255,255,255,.07); font-size: 2rem; line-height: 1; cursor: pointer; }
.date-arrow:disabled { opacity: .25; cursor: default; }

.menu-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 1px 12px; }
.menu-day-heading h3 { font-size: 1.55rem; margin: 3px 0 0; }
.menu-status { color: var(--muted); font-size: .8rem; }
.menu-items { display: grid; gap: 12px; }
.menu-category { margin-top: 7px; }
.menu-category-title { color: var(--pink); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; margin: 11px 3px 8px; }
.menu-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.menu-food { appearance: none; width: 100%; text-align: left; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; color: var(--text); border: 1px solid rgba(255,255,255,.09); border-radius: 19px; background: rgba(255,255,255,.055); padding: 11px; font: inherit; cursor: pointer; }
.menu-food:hover { background: rgba(255,255,255,.085); border-color: rgba(255,220,246,.23); }
.menu-food-image { width: 76px; height: 66px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,.065); }
.menu-food-placeholder { width: 76px; height: 66px; border-radius: 14px; display: grid; place-items: center; font-size: 1.8rem; background: rgba(255,255,255,.065); }
.menu-food-name { font-weight: 800; line-height: 1.15; }
.menu-food-description { color: var(--muted); font-size: .8rem; margin-top: 5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(21,8,29,.68); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.food-modal { position: relative; width: min(680px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow-y: auto; border-radius: 30px; padding: 25px; }
.modal-close { position: absolute; right: 16px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(37,13,47,.6); color: #fff; font-size: 1.65rem; cursor: pointer; }
.food-modal-image-wrap { height: 255px; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.055); margin-bottom: 20px; }
.food-modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.food-modal-category { color: var(--pink); font-size: .74rem; letter-spacing: .16em; font-weight: 900; text-transform: uppercase; }
.food-modal h2 { font-size: 2rem; margin: 5px 46px 8px 0; }
.food-description { color: var(--muted); line-height: 1.5; }
.allergen-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.allergen-pill { padding: 7px 10px; border-radius: 999px; background: rgba(255,211,232,.11); border: 1px solid rgba(255,211,232,.15); color: #ffe3f1; font-size: .79rem; font-weight: 750; }
.nutrition-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.nutrition-stat { border-radius: 16px; padding: 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.075); }
.nutrition-stat span { display: block; color: var(--muted); font-size: .7rem; }
.nutrition-stat strong { display: block; margin-top: 3px; font-size: 1rem; }

@media (max-width: 1000px) {
  .menu-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .menu-heading { align-items: flex-start; flex-direction: column; }
  .meal-toggle { width: 100%; }
  .meal-tab { flex: 1; }
  .date-browser-wrap { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .date-arrow { width: 34px; height: 34px; font-size: 1.6rem; }
  .menu-category-grid { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .food-modal { border-radius: 24px; padding: 18px; }
  .food-modal-image-wrap { height: 210px; }
}


/* v0.2.2 theme picker / stacking fix */
.hero-actions { display: flex; align-items: center; gap: 10px; position: relative; flex-wrap: wrap; justify-content: flex-end; }
.theme-button { appearance: none; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.09); color: var(--text); border-radius: 999px; padding: 13px 17px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.theme-button:hover { transform: translateY(-1px); background: rgba(255,255,255,.13); }
.theme-picker { position: absolute; z-index: 100; top: calc(100% + 10px); right: 0; width: 250px; border-radius: 22px; padding: 12px; }
.theme-picker-title { padding: 8px 9px 10px; font-size: .75rem; font-weight: 900; letter-spacing: .08em; color: var(--pink); text-transform: uppercase; }
.theme-option { width: 100%; display: flex; align-items: center; gap: 10px; appearance: none; border: 0; background: transparent; color: var(--text); padding: 9px; border-radius: 14px; font: inherit; font-weight: 750; text-align: left; cursor: pointer; }
.theme-option:hover, .theme-option.active { background: rgba(255,255,255,.09); }
.theme-swatch { width: 34px; height: 24px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); flex: 0 0 auto; }
.pink-swatch { background: linear-gradient(135deg, #6c164f, #e95fa0, #ffb6d9); }
.unicorn-swatch { background: linear-gradient(135deg, #ff79bd, #9a76e8, #64c8ed); }
.kpop-swatch { background: linear-gradient(135deg, #1f1238, #ff2aa3, #7255ff); }
.mj-swatch { background: linear-gradient(135deg, #08090d, #b51f32, #e6b94f); }
.ocean-swatch { background: linear-gradient(135deg, #075a75, #32b8c8, #526bd1); }
.rainbow-swatch { background: linear-gradient(135deg, #f05a91, #ffca58, #55d9bf, #6f64dc); }
.cottoncandy-swatch { background: linear-gradient(135deg, #ff91c7, #b09af0, #83d4ed); }
.princess-swatch { background: linear-gradient(135deg, #7d245f, #e864a3, #c38cff); }
.rosegold-swatch { background: linear-gradient(135deg, #6f3b4b, #c9837f, #f2c8b7); }
.fairy-swatch { background: linear-gradient(135deg, #496c5b, #a2c78b, #d99bc8); }
.galaxy-swatch { background: linear-gradient(135deg, #17143d, #7240a9, #496de5); }
.version-tag { opacity: .65; margin-left: 5px; font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero-actions { width: 100%; justify-content: space-between; }
  .theme-picker { left: 0; right: auto; }
}


/* v0.2.3 - compact Today at School summary */
.school-card { display: flex; flex-direction: column; }
.school-card .special-row { margin-top: 16px; gap: 13px; }
.school-card .special-emoji { width: 54px; height: 54px; min-width: 54px; font-size: 1.9rem; }
.school-card .special-row h2 { font-size: 1.7rem; }
.school-quick-row {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.school-quick-copy { min-width: 0; display: grid; gap: 3px; }
.school-quick-copy strong { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw; }
.menu-jump-button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.menu-jump-button:hover { background: var(--chip-strong); }
@media (max-width: 900px) {
  .school-quick-copy strong { max-width: 58vw; }
}
@media (max-width: 600px) {
  .school-quick-row { align-items: flex-start; }
  .school-quick-copy strong { white-space: normal; max-width: none; }
}

/* v0.2.4 - weather integration + full-screen school menu */
.weather-guidance {
  margin-top: 16px;
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .86rem;
}
.weather-guidance span:first-child { color: var(--text); font-weight: 750; }

.menu-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(20, 7, 27, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px;
  overflow: auto;
}
.menu-modal-backdrop[hidden] { display: none; }
.menu-modal-shell {
  position: relative;
  width: min(1500px, 100%);
  min-height: calc(100vh - 36px);
  margin: 0 auto;
  border-radius: 30px;
  padding: 26px;
}
.menu-modal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 2px 54px 18px 2px;
  border-bottom: 1px solid var(--border);
}
.menu-modal-topbar h2 { margin: 4px 0 0; font-size: 2rem; }
.menu-modal-close { top: 20px; right: 20px; }
.menu-modal-shell .menu-browser-card { margin-top: 20px; }

/* Food detail must sit above the full-screen menu modal. */
.modal-backdrop { z-index: 5000; }

@media (max-width: 820px) {
  .weather-stats { gap: 18px; flex-wrap: wrap; }
  .menu-modal-backdrop { padding: 8px; }
  .menu-modal-shell { min-height: calc(100vh - 16px); border-radius: 22px; padding: 17px; }
  .menu-modal-topbar { padding-right: 48px; }
  .menu-modal-topbar h2 { font-size: 1.6rem; }
  .menu-modal-close { top: 12px; right: 12px; }
}

/* v0.2.6 - forecast + theme-aware modals + Google Calendar-style month view */
:root {
  --chip: rgba(255,255,255,.08);
  --chip-strong: rgba(255,255,255,.14);
  --modal-shade: rgba(48, 10, 38, .76);
  --calendar-school: rgba(255, 191, 225, .18);
  --calendar-family: rgba(224, 202, 255, .18);
  --calendar-activity: rgba(255, 230, 176, .18);
  --calendar-appointment: rgba(190, 229, 255, .18);
  --calendar-birthday: rgba(255, 185, 205, .22);
  --calendar-fun: rgba(207, 255, 229, .18);
}
body[data-theme="unicorn"] { --modal-shade: rgba(49, 23, 74, .76); }
body[data-theme="kpop"] { --modal-shade: rgba(18, 6, 31, .84); }
body[data-theme="mj"] { --modal-shade: rgba(5, 5, 8, .88); }
body[data-theme="ocean"] { --modal-shade: rgba(4, 43, 59, .82); }
body[data-theme="rainbow"] { --modal-shade: rgba(43, 24, 62, .78); }

.forecast-block {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.forecast-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  font-size: .67rem;
  letter-spacing: .08em;
  font-weight: 900;
  color: var(--pink);
}
.forecast-updated { color: var(--muted); letter-spacing: 0; font-weight: 600; text-transform: none; }
.forecast-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.forecast-day {
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--chip);
  text-align: center;
  display: grid;
  gap: 3px;
  justify-items: center;
}
.forecast-day-name { font-size: .68rem; color: var(--muted); font-weight: 850; text-transform: uppercase; }
.forecast-icon { font-size: 1.25rem; line-height: 1; }
.forecast-temps { display: flex; gap: 5px; font-size: .75rem; align-items: baseline; }
.forecast-temps span { color: var(--muted); }
.forecast-rain { font-size: .65rem; color: var(--muted); }
.forecast-loading { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; padding: 8px; }

.menu-modal-backdrop,
.event-modal-backdrop,
.modal-backdrop {
  background:
    radial-gradient(circle at 12% 10%, var(--glow-1), transparent 28%),
    radial-gradient(circle at 88% 8%, var(--glow-2), transparent 28%),
    var(--modal-shade);
}
.menu-modal-shell { background: linear-gradient(135deg, var(--glass-strong), var(--glass)); }

.calendar-card { margin-top: 22px; padding: 22px; border-radius: 28px; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 17px; }
.calendar-toolbar h2 { margin: 4px 0 0; font-size: 1.85rem; }
.calendar-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.calendar-nav-button,
.calendar-today-button,
.calendar-add-button {
  appearance: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--chip);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.calendar-nav-button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
.calendar-today-button { border-radius: 999px; padding: 9px 13px; }
.calendar-add-button { border-radius: 999px; padding: 9px 14px; background: linear-gradient(135deg, var(--tab-a), var(--tab-b)); color: var(--tab-text); border-color: transparent; }
.calendar-nav-button:hover, .calendar-today-button:hover { background: var(--chip-strong); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--border); border-bottom: 0; border-radius: 17px 17px 0 0; overflow: hidden; }
.calendar-weekdays span { padding: 8px 10px; text-align: center; font-size: .72rem; font-weight: 900; color: var(--muted); background: rgba(255,255,255,.035); }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 0 0 17px 17px; overflow: hidden; }
.calendar-day {
  min-height: 108px;
  padding: 7px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  overflow: hidden;
}
.calendar-day:hover { background: rgba(255,255,255,.055); }
.calendar-day.outside-month { opacity: .42; }
.calendar-day.today { background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1px var(--pink); }
.calendar-day-top { display: flex; justify-content: flex-end; min-height: 26px; }
.calendar-day-number { width: 27px; height: 27px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font: inherit; font-size: .78rem; font-weight: 850; cursor: pointer; }
.calendar-day-number:hover { background: var(--chip-strong); }
.calendar-day.today .calendar-day-number { background: linear-gradient(135deg, var(--tab-a), var(--tab-b)); color: var(--tab-text); }
.calendar-day-events { display: grid; gap: 4px; }
.calendar-event {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--text);
  font: inherit;
  font-size: .69rem;
  font-weight: 750;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.calendar-event.category-school { background: var(--calendar-school); }
.calendar-event.category-family { background: var(--calendar-family); }
.calendar-event.category-activity { background: var(--calendar-activity); }
.calendar-event.category-appointment { background: var(--calendar-appointment); }
.calendar-event.category-birthday { background: var(--calendar-birthday); }
.calendar-event.category-fun { background: var(--calendar-fun); }
.calendar-more { padding-left: 5px; font-size: .66rem; color: var(--muted); }

.event-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.event-modal-backdrop[hidden] { display: none; }
.event-editor { position: relative; width: min(560px, 100%); border-radius: 28px; padding: 26px; }
.event-editor h2 { margin: 5px 42px 20px 0; font-size: 1.75rem; }
.field-label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.event-input { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.07); color: var(--text); padding: 11px 12px; font: inherit; font-size: .92rem; text-transform: none; letter-spacing: normal; }
.event-input option { color: #18121b; }
.event-notes { min-height: 92px; resize: vertical; }
.event-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.event-editor-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.event-editor-spacer { flex: 1; }
.event-save-button, .event-secondary-button, .event-delete-button { border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 850; cursor: pointer; }
.event-save-button { border: 0; background: linear-gradient(135deg, var(--tab-a), var(--tab-b)); color: var(--tab-text); }
.event-secondary-button { border: 1px solid var(--border); background: var(--chip); color: var(--text); }
.event-delete-button { border: 1px solid rgba(255,180,190,.3); background: rgba(170,35,60,.18); color: #ffd8df; }

@media (max-width: 900px) {
  .forecast-strip { grid-template-columns: repeat(5, minmax(68px, 1fr)); overflow-x: auto; padding-bottom: 3px; }
  .calendar-card { padding: 15px; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; }
  .calendar-actions { width: 100%; justify-content: flex-start; }
  .calendar-day { min-height: 86px; padding: 4px; }
  .calendar-event { font-size: .62rem; padding: 3px 4px; }
}
@media (max-width: 620px) {
  .calendar-weekdays span { padding: 7px 2px; font-size: .62rem; }
  .calendar-day { min-height: 68px; }
  .calendar-event { padding: 3px; }
  .calendar-event { font-size: 0; }
  .calendar-event::first-letter { font-size: .72rem; }
  .event-form-row { grid-template-columns: 1fr; gap: 0; }
}

/* v0.2.7 - full-width weather, sparkly weekday, calendar + chores layout */
.sparkly-weekday-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  min-height: 30px;
}
.sparkly-weekday {
  font-weight: 950;
  letter-spacing: .14em;
  font-size: 1.05rem;
  background: linear-gradient(90deg, #fff 0%, var(--pink) 18%, #7ef8ff 38%, #fff6a8 55%, #ff9edd 72%, #fff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.22));
  animation: weekdayShimmer 3.2s linear infinite;
}
.sparkle {
  color: #fff6a8;
  display: inline-block;
  font-size: 1.25rem;
  filter: drop-shadow(0 0 7px rgba(255,243,151,.7));
  animation: sparklePop 1.4s ease-in-out infinite alternate;
}
.sparkle-b { animation-delay: .55s; color: #a9fbff; }
@keyframes weekdayShimmer { to { background-position: -220% center; } }
@keyframes sparklePop { from { transform: scale(.72) rotate(-10deg); opacity: .55; } to { transform: scale(1.18) rotate(12deg); opacity: 1; } }

.weather-card-full { margin-top: 22px; }
.weather-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.weather-heading-row h2 { margin: 5px 0 0; font-size: 1.55rem; }
.weather-dashboard-grid {
  display: grid;
  grid-template-columns: .8fr 1.05fr 1.65fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 20px;
}
.weather-now-panel, .weather-outfit-panel, .forecast-block {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
  border-radius: 22px;
  padding: 18px;
}
.weather-card-full .weather-main { margin-top: 0; }
.weather-card-full .weather-icon { font-size: 4.3rem; }
.weather-card-full .temperature { font-size: 3.7rem; }
.weather-card-full .weather-stats { margin-top: 16px; }
.weather-outfit-panel { display: flex; flex-direction: column; justify-content: center; }
.mini-label { color: var(--pink); font-size: .72rem; font-weight: 900; letter-spacing: .12em; margin-bottom: 9px; }
.weather-card-full .weather-guidance { margin-top: 0; padding-top: 0; border-top: 0; font-size: .94rem; }
.weather-card-full .forecast-block { margin-top: 0; }
.weather-card-full .forecast-strip { margin-top: 11px; }

.main-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, .72fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.side-rail { display: grid; gap: 22px; }
.calendar-card { margin-top: 0; }
.admin-link { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

.chores-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.chores-heading h2 { margin: 5px 0 0; }
.points-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 11px;
  background: linear-gradient(135deg, rgba(255,239,148,.22), rgba(129,230,255,.16));
  border: 1px solid rgba(255,255,255,.14);
  font-size: .8rem;
}
.chores-total { color: var(--muted); font-size: .78rem; margin: 10px 0 13px; }
.chores-list { display: grid; gap: 9px; }
.chore-row {
  display: grid;
  grid-template-columns: 20px 30px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.065);
  cursor: pointer;
  transition: transform .14s ease, opacity .14s ease, background .14s ease;
}
.chore-row:hover { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.chore-row input { width: 17px; height: 17px; accent-color: #ff8fc8; }
.chore-emoji { font-size: 1.15rem; }
.chore-title { font-weight: 700; min-width: 0; }
.chore-points { border-radius: 999px; padding: 4px 7px; background: rgba(255,164,204,.22); color: #fff; font-size: .72rem; font-weight: 850; }
.chore-row.complete { background: rgba(116,226,164,.18); opacity: .78; }
.chore-row.complete .chore-title { text-decoration: line-through; }

/* Parent admin */
.admin-shell { width: min(1220px, calc(100% - 34px)); margin: 0 auto; padding: 28px 0 44px; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 24px; border-radius:24px; margin-bottom:20px; }
.admin-header h1 { font-size:2rem; margin:4px 0 0; }
.admin-back { color:var(--text); text-decoration:none; border:1px solid var(--border); background:rgba(255,255,255,.08); padding:10px 13px; border-radius:999px; font-weight:800; }
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.admin-panel { padding:22px; border-radius:24px; }
.admin-panel-wide { grid-column:1 / -1; }
.admin-panel h2 { margin:5px 0 16px; }
.admin-form { display:grid; gap:10px; }
.admin-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.admin-field { display:grid; gap:6px; color:var(--muted); font-size:.78rem; font-weight:750; }
.admin-input { width:100%; border:1px solid var(--border); background:rgba(255,255,255,.08); color:var(--text); border-radius:12px; padding:10px 11px; font:inherit; }
.admin-input option { color:#222; }
.admin-button { border:1px solid var(--border); background:linear-gradient(135deg,var(--tab-a),var(--tab-b)); color:var(--tab-text); border-radius:12px; padding:10px 13px; font:inherit; font-weight:850; cursor:pointer; }
.admin-button.secondary { background:rgba(255,255,255,.08); color:var(--text); }
.admin-button.danger { background:rgba(255,94,120,.18); color:#fff; }
.admin-list { display:grid; gap:8px; margin-top:14px; }
.admin-list-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:10px; border:1px solid rgba(255,255,255,.09); border-radius:13px; background:rgba(255,255,255,.05); }
.admin-list-row .meta { color:var(--muted); font-size:.75rem; margin-top:2px; }
.admin-status { min-height:20px; color:var(--pink); font-size:.8rem; margin-top:8px; }

@media (max-width: 1050px) {
  .weather-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .weather-dashboard-grid .forecast-block { grid-column: 1 / -1; }
  .main-content-grid { grid-template-columns: 1fr; }
  .side-rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .weather-heading-row { flex-direction:column; }
  .weather-dashboard-grid { grid-template-columns:1fr; }
  .weather-dashboard-grid .forecast-block { grid-column:auto; }
  .side-rail { grid-template-columns:1fr; }
  .admin-grid { grid-template-columns:1fr; }
  .admin-panel-wide { grid-column:auto; }
  .admin-form-row { grid-template-columns:1fr; }
}

/* v0.2.8 parent admin + weekly chore history */
.hero { position: relative; }
.micro-admin-button {
  position: absolute; top: 12px; right: 14px; z-index: 35;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 999px; text-decoration: none; color: var(--muted);
  font-size: 11px; opacity: .38; border: 1px solid transparent;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}
.micro-admin-button:hover, .micro-admin-button:focus-visible { opacity: .9; background: rgba(255,255,255,.08); border-color: var(--border); }
.chores-scoreline { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:.76rem; margin:10px 0 8px; }
.chore-week-strip { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-bottom:12px; }
.chore-week-day { text-align:center; padding:5px 2px; border-radius:9px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); }
.chore-week-day span { display:block; font-size:.58rem; color:var(--muted); text-transform:uppercase; }
.chore-week-day strong { display:block; font-size:.78rem; margin-top:2px; }
.chore-week-day.today { border-color:var(--accent); background:var(--accent-soft); }
.admin-login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; position:relative; z-index:2; }
.admin-login-card { width:min(420px,100%); padding:30px; text-align:center; }
.admin-login-card h1 { margin:.25rem 0; }
.admin-lock-icon { font-size:2rem; margin-bottom:8px; }
.admin-login-form { display:grid; gap:14px; margin-top:22px; text-align:left; }
.admin-pin-input { text-align:center; letter-spacing:.35em; font-size:1.25rem; }
.admin-login-back { display:inline-block; margin-top:14px; }
.admin-header-actions { display:flex; align-items:center; gap:10px; }
.admin-button.compact { padding:7px 10px; }
.admin-week-score { font-weight:800; font-size:1.1rem; margin:8px 0 12px; }
.admin-week-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-bottom:14px; }
.admin-week-day { border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,.06); padding:10px 6px; text-align:center; }
.admin-week-day span,.admin-week-day small { display:block; color:var(--muted); }
.admin-week-day strong { display:block; font-size:1.2rem; margin:4px 0; }
@media (max-width:700px){ .admin-week-grid{grid-template-columns:repeat(4,1fr);} .chores-scoreline{flex-direction:column;gap:2px;} }

/* v0.2.9 live weather + bilingual controls + Spanish reading corner */
.language-toggle {
  display:inline-flex; align-items:center; padding:3px; border-radius:999px;
  border:1px solid var(--border); background:rgba(255,255,255,.07); gap:2px;
}
.language-button {
  border:0; background:transparent; color:var(--muted); border-radius:999px;
  padding:6px 8px; font:inherit; font-size:.68rem; font-weight:900; cursor:pointer;
}
.language-button.active { background:var(--accent-soft); color:var(--text); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); }
.spanish-card { margin-top:20px; padding:22px 24px; border-radius:26px; }
.spanish-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.spanish-heading h2 { margin:5px 0 0; }
.speak-button {
  border:1px solid var(--border); background:var(--accent-soft); color:var(--text);
  border-radius:999px; padding:9px 13px; font:inherit; font-weight:850; cursor:pointer;
}
.spanish-practice-grid { display:grid; grid-template-columns:1.35fr 1fr; gap:14px; }
.spanish-story-panel,.spanish-question-panel {
  border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.055);
  border-radius:18px; padding:16px;
}
.spanish-story { font-size:1rem; line-height:1.65; margin:10px 0 14px; }
.vocab-row { display:flex; flex-wrap:wrap; gap:7px; }
.vocab-chip { display:grid; gap:1px; padding:7px 10px; border-radius:12px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.1); }
.vocab-chip strong { font-size:.82rem; }
.vocab-chip small { color:var(--muted); font-size:.66rem; }
.spanish-question-panel p { font-weight:750; line-height:1.45; }
.spanish-answers { display:grid; gap:7px; margin-top:10px; }
.spanish-answer-button { text-align:left; border:1px solid var(--border); background:rgba(255,255,255,.075); color:var(--text); border-radius:12px; padding:9px 11px; font:inherit; font-weight:750; cursor:pointer; }
.spanish-answer-button:hover { background:rgba(255,255,255,.12); }
.spanish-answer-button.correct { background:rgba(97,220,145,.2); border-color:rgba(97,220,145,.55); }
.spanish-answer-button.wrong { background:rgba(255,103,139,.16); border-color:rgba(255,103,139,.45); }
.spanish-feedback { min-height:22px; margin-top:9px; font-size:.8rem; font-weight:800; color:var(--text); }
@media (max-width:800px){ .spanish-practice-grid{grid-template-columns:1fr;} .spanish-heading{align-items:flex-start;} }

/* v0.3.0 - calendar day/week/month views + live now line */
.calendar-view-tabs { display:flex; gap:5px; margin-top:9px; }
.calendar-view-button { border:1px solid var(--border); background:var(--chip); color:var(--text); border-radius:999px; padding:6px 11px; font:inherit; font-size:.72rem; font-weight:800; cursor:pointer; }
.calendar-view-button.active { background:linear-gradient(135deg,var(--tab-a),var(--tab-b)); color:var(--tab-text); border-color:transparent; }
.time-calendar-view { min-width:0; }
.time-view-headers { display:grid; grid-template-columns:58px repeat(7,minmax(70px,1fr)); border:1px solid var(--border); border-bottom:0; border-radius:16px 16px 0 0; overflow:hidden; }
.time-view-headers > div { background:rgba(255,255,255,.025); }
.time-view-headers button { min-width:0; border:0; border-left:1px solid var(--border); background:rgba(255,255,255,.035); color:var(--text); padding:8px 3px; display:grid; gap:2px; cursor:pointer; }
.time-view-headers button span { color:var(--muted); font-size:.66rem; font-weight:800; text-transform:uppercase; }
.time-view-headers button strong { font-size:.9rem; }
.time-grid-wrap { overflow-x:auto; border:1px solid var(--border); border-radius:0 0 16px 16px; }
.time-grid-wrap.day-mode { overflow-x:hidden; }
.all-day-grid { display:grid; grid-template-columns:58px repeat(7,minmax(70px,1fr)); border-bottom:1px solid var(--border); min-width:650px; }
.day-mode .all-day-grid { grid-template-columns:58px 1fr; min-width:0; }
.all-day-label { padding:8px 5px; color:var(--muted); font-size:.62rem; text-align:right; }
.all-day-cell { min-height:38px; padding:4px; border-left:1px solid var(--border); display:grid; gap:3px; align-content:start; }
.all-day-cell.today { background:rgba(255,255,255,.035); }
.time-grid-body { position:relative; display:grid; grid-template-columns:58px repeat(7,minmax(70px,1fr)); min-width:650px; }
.day-mode .time-grid-body { grid-template-columns:58px 1fr; min-width:0; }
.time-axis { position:relative; height:1248px; }
.time-axis-label { position:absolute; right:7px; transform:translateY(-50%); color:var(--muted); font-size:.62rem; white-space:nowrap; }
.time-day-column { position:relative; border-left:1px solid var(--border); background:rgba(255,255,255,.015); }
.time-day-column.today { background:rgba(255,255,255,.035); }
.hour-line { position:absolute; left:0; right:0; height:1px; background:var(--border); opacity:.7; }
.time-event { border-radius:8px; background:var(--chip-strong); color:var(--text); border:1px solid rgba(255,255,255,.1); overflow:hidden; }
.all-day-event { padding:4px 6px; font-size:.64rem; font-weight:800; }
.timed-event { position:absolute; left:4px; right:4px; padding:5px 6px; font-size:.64rem; display:grid; gap:2px; z-index:3; }
.timed-event strong { font-size:.58rem; opacity:.78; }
.timed-event span { font-weight:800; overflow:hidden; }
.time-event.category-school { background:var(--calendar-school); }
.time-event.category-family { background:var(--calendar-family); }
.time-event.category-activity { background:var(--calendar-activity); }
.time-event.category-appointment { background:var(--calendar-appointment); }
.time-event.category-birthday { background:var(--calendar-birthday); }
.time-event.category-fun { background:var(--calendar-fun); }
.now-line { position:absolute; left:0; right:0; height:2px; background:#ff3b30; z-index:8; pointer-events:none; box-shadow:0 0 6px rgba(255,59,48,.45); }
.now-line span { position:absolute; width:8px; height:8px; border-radius:50%; background:#ff3b30; left:-4px; top:-3px; }
.admin-check { display:flex; align-items:center; gap:8px; color:var(--text); font-size:.85rem; font-weight:700; }
@media (max-width: 760px) {
  .calendar-view-tabs { flex-wrap:wrap; }
  .time-view-headers { grid-template-columns:48px repeat(7,minmax(64px,1fr)); overflow-x:auto; }
  .time-grid-body, .all-day-grid { grid-template-columns:48px repeat(7,minmax(64px,1fr)); }
  .day-mode .time-grid-body, .day-mode .all-day-grid { grid-template-columns:48px 1fr; }
}

.forecast-updated { font-size:.68rem; opacity:.78; }
.time-calendar-view .time-grid-wrap { max-height:650px; overflow:auto; }


/* v0.3.1 piggy bank + expanded themes */
.bank-button { appearance:none; border:1px solid rgba(255,255,255,.17); background:rgba(255,255,255,.09); color:var(--text); width:46px; height:46px; border-radius:50%; font-size:1.35rem; cursor:pointer; display:grid; place-items:center; transition:transform .15s ease, background .15s ease; }
.bank-button:hover { transform:translateY(-1px) scale(1.04); background:rgba(255,255,255,.14); }
.bank-modal-backdrop { z-index:1250; }
.bank-modal { width:min(440px,100%); border-radius:30px; padding:38px 34px 34px; text-align:center; position:relative; }
.bank-pig { font-size:5.2rem; line-height:1; filter:drop-shadow(0 12px 22px rgba(0,0,0,.18)); margin-bottom:15px; }
.bank-modal h2 { margin:6px 0 8px; font-size:2rem; }
.bank-balance { font-size:clamp(3.1rem,10vw,5rem); font-weight:900; letter-spacing:-.055em; color:var(--pink); text-shadow:0 8px 28px rgba(0,0,0,.18); }
.bank-note { margin:8px auto 0; max-width:310px; }
.spanish-level { color:var(--pink); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-top:-7px; }
.admin-help-field { display:flex; align-items:flex-end; color:var(--muted); font-size:.82rem; line-height:1.4; padding-bottom:8px; }

/* v0.3.2 polish */
.spanish-card { padding: 30px 32px 32px; }
.spanish-heading { margin-bottom: 20px; padding: 0 4px; }
.spanish-story-panel,
.spanish-question-panel { padding: 22px 24px; }
@media (max-width: 800px) {
  .spanish-card { padding: 24px 20px; }
  .spanish-story-panel,
  .spanish-question-panel { padding: 20px; }
}

/* v0.3.3 Spanish practice spacing refinement */
.spanish-card {
  padding: 38px 42px 42px;
}
.spanish-heading {
  margin-bottom: 26px;
  padding: 0 6px;
}
.spanish-heading h2 {
  margin-top: 8px;
  line-height: 1.12;
}
.spanish-level {
  margin-top: 2px;
  display: block;
  line-height: 1.25;
}
.spanish-practice-grid {
  gap: 22px;
}
.spanish-story-panel,
.spanish-question-panel {
  padding: 26px 28px 28px;
}
.spanish-story {
  margin-top: 14px;
}
@media (max-width: 800px) {
  .spanish-card { padding: 28px 22px 30px; }
  .spanish-heading { margin-bottom: 22px; }
  .spanish-story-panel,
  .spanish-question-panel { padding: 22px; }
}


/* Parker Dashboard v0.1.0 themes */
body[data-theme="dino"] {
  --text:#f6f5e8; --muted:rgba(240,239,214,.72);
  --glass:rgba(15,34,23,.58); --glass-strong:rgba(21,48,31,.75);
  --border:rgba(190,225,145,.20); --shadow:0 24px 70px rgba(0,0,0,.42);
  --pink:#d4ef8e; --lavender:#b7d78d;
  --bg-1:#07130d; --bg-2:#173822; --bg-3:#2f2714;
  --glow-1:rgba(91,145,65,.30); --glow-2:rgba(180,119,43,.22);
  --ambient-1:#547a3a; --ambient-2:#8a5c2b;
  --tab-a:#d7ef9a; --tab-b:#a7c978; --tab-text:#142116;
  --modal-shade:rgba(3,10,6,.90);
}
body[data-theme="dino"]::after {
  content:"🦖";
  position:fixed; right:-70px; bottom:-110px; z-index:-1;
  font-size:min(42vw,560px); opacity:.10; filter:grayscale(.35) sepia(.2) drop-shadow(0 0 35px rgba(183,220,106,.16));
  pointer-events:none; transform:rotate(-6deg);
}
body[data-theme="dino"] .hero::after {
  content:"🦖  🦕";
  position:absolute; right:120px; bottom:10px; opacity:.17;
  font-size:54px; letter-spacing:12px; pointer-events:none;
}
body[data-theme="dino"] .sparkly-weekday {
  background:linear-gradient(90deg,#f1f8c8,#92c95b,#e8b95e,#b4dc72,#f1f8c8);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.dino-swatch{background:linear-gradient(135deg,#07130d,#2d6338 55%,#9d6b31)}

body[data-theme="minecraft"] {
  --text:#f7f7f1; --muted:rgba(240,240,230,.72);
  --glass:rgba(26,35,27,.62); --glass-strong:rgba(34,48,34,.78);
  --border:rgba(186,220,147,.21); --shadow:0 24px 70px rgba(0,0,0,.42);
  --pink:#b9df79; --lavender:#79b7df;
  --bg-1:#18381f; --bg-2:#547d36; --bg-3:#493522;
  --glow-1:rgba(113,183,82,.30); --glow-2:rgba(75,150,210,.23);
  --ambient-1:#78ad4e; --ambient-2:#4e92c1;
  --tab-a:#bce37d; --tab-b:#82b9e0; --tab-text:#173019;
  --modal-shade:rgba(10,18,11,.91);
}
body[data-theme="minecraft"]::before{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:32px 32px;
}
body[data-theme="minecraft"] .glass{border-radius:8px}
.minecraft-swatch{background:linear-gradient(#65a846 0 40%,#6b4b2c 40% 100%)}

body[data-theme="spiderman"] {
  --text:#f8f8fa; --muted:rgba(238,240,246,.74);
  --glass:rgba(18,25,39,.60); --glass-strong:rgba(25,35,54,.78);
  --border:rgba(190,214,239,.20); --shadow:0 24px 70px rgba(0,0,0,.46);
  --pink:#ff9098; --lavender:#8db8ef;
  --bg-1:#140c12; --bg-2:#7e1422; --bg-3:#0b284d;
  --glow-1:rgba(217,31,50,.34); --glow-2:rgba(34,98,176,.30);
  --ambient-1:#bd2233; --ambient-2:#225d9f;
  --tab-a:#f1838c; --tab-b:#80aee2; --tab-text:#191b22;
  --modal-shade:rgba(5,8,15,.92);
}
body[data-theme="spiderman"]::before {
  background-image:
    repeating-radial-gradient(circle at 80% 10%,transparent 0 32px,rgba(255,255,255,.07) 33px 34px,transparent 35px 64px),
    repeating-conic-gradient(from 0deg at 80% 10%,rgba(255,255,255,.07) 0 1deg,transparent 1deg 20deg);
  opacity:.55;
}
.spiderman-swatch{background:linear-gradient(135deg,#a71123 0 50%,#123f7e 50% 100%)}

body[data-theme="mario"] {
  --text:#fffdf7; --muted:rgba(255,249,235,.75);
  --glass:rgba(28,50,79,.52); --glass-strong:rgba(36,65,100,.72);
  --border:rgba(255,255,255,.22); --shadow:0 24px 70px rgba(0,0,0,.36);
  --pink:#ffd86a; --lavender:#b9dcff;
  --bg-1:#2477b8; --bg-2:#55a8df; --bg-3:#7a3f28;
  --glow-1:rgba(255,230,100,.29); --glow-2:rgba(255,255,255,.20);
  --ambient-1:#df3d33; --ambient-2:#f2c24d;
  --tab-a:#ffe071; --tab-b:#9fd4ff; --tab-text:#25384a;
  --modal-shade:rgba(13,30,48,.90);
}
body[data-theme="mario"]::before {
  background-image:
    linear-gradient(rgba(255,255,255,.10) 2px,transparent 2px),
    linear-gradient(90deg,rgba(255,255,255,.10) 2px,transparent 2px);
  background-size:56px 28px;
  opacity:.22;
}
.mario-swatch{background:linear-gradient(135deg,#d93c31,#3f8fd0 52%,#f0c747)}

body[data-theme="blackglass"] {
  --text:#f4f6f8; --muted:rgba(230,234,239,.68);
  --glass:rgba(10,12,15,.66); --glass-strong:rgba(17,20,24,.82);
  --border:rgba(255,255,255,.12); --shadow:0 24px 70px rgba(0,0,0,.48);
  --pink:#d7dce2; --lavender:#aeb7c2;
  --bg-1:#050607; --bg-2:#111419; --bg-3:#030405;
  --glow-1:rgba(255,255,255,.055); --glow-2:rgba(120,135,150,.08);
  --ambient-1:#30363d; --ambient-2:#171b20;
  --tab-a:#e8ebef; --tab-b:#aeb7c2; --tab-text:#111419;
  --modal-shade:rgba(0,0,0,.90);
}
.blackglass-swatch{background:linear-gradient(135deg,#020304,#15191e 50%,#4b535d);border:1px solid rgba(255,255,255,.22)}

/* Parker v0.1.2 - kindergarten Spanish, preserving the original Dinosaur Rampage visuals */
.spanish-story { white-space: pre-line; font-size: 1.12rem; font-weight: 780; }
.parker-kinder-answer { text-align:center; font-size:2rem; min-height:64px; }
.spanish-answers:has(.parker-kinder-answer) { grid-template-columns:repeat(3,1fr); gap:10px; }
@media (max-width:600px) {
  .parker-kinder-answer { font-size:1.6rem; }
}


/* Parker v0.1.3 - Dinosaur Rampage visual boost */
body[data-theme="dino"] .dashboard-shell::before,
body[data-theme="dino"] .dashboard-shell::after {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: .12;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.35));
}
body[data-theme="dino"] .dashboard-shell::before {
  content: "🦖";
  left: -34px;
  bottom: 8vh;
  font-size: clamp(110px, 17vw, 245px);
  transform: rotate(4deg);
}
body[data-theme="dino"] .dashboard-shell::after {
  content: "🦖";
  right: 7vw;
  top: 42vh;
  font-size: clamp(72px, 10vw, 150px);
  transform: scaleX(-1) rotate(-8deg);
  opacity: .09;
}
body[data-theme="dino"] .weather-card::after {
  content: "🦖";
  position: absolute;
  right: 26px;
  bottom: 14px;
  font-size: 54px;
  opacity: .10;
  pointer-events: none;
  transform: rotate(-7deg);
}
body[data-theme="dino"] .calendar-card::after {
  content: "🦕";
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 48px;
  opacity: .08;
  pointer-events: none;
}
body[data-theme="dino"] .school-card::after {
  content: "🦖";
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 34px;
  opacity: .11;
  pointer-events: none;
}
body[data-theme="dino"] .chores-card::after {
  content: "🦖";
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 36px;
  opacity: .10;
  pointer-events: none;
}
body[data-theme="dino"] .spanish-card::after {
  content: "🦖  🦕  🦖";
  position: absolute;
  right: 24px;
  bottom: 14px;
  font-size: 30px;
  letter-spacing: 8px;
  opacity: .10;
  pointer-events: none;
}
body[data-theme="dino"] .card,
body[data-theme="dino"] .hero {
  position: relative;
  overflow: hidden;
}
body[data-theme="dino"] .hero {
  overflow: visible;
}








/* Parker v0.1.7 - integrated Milo & Chip Block World theme */
body[data-theme="minecraft"] {
  --text:#f7fbff; --muted:rgba(235,244,249,.74);
  --glass:rgba(12,28,32,.72); --glass-strong:rgba(19,39,44,.87);
  --border:rgba(138,229,235,.20); --shadow:0 24px 70px rgba(0,0,0,.42);
  --pink:#77ecf1; --lavender:#ffad67;
  --bg-1:#0d2228; --bg-2:#15676d; --bg-3:#4a301f;
  --glow-1:rgba(44,217,224,.28); --glow-2:rgba(255,132,54,.25);
  --ambient-1:#25ccd3; --ambient-2:#f48840;
  --tab-a:#70e9ee; --tab-b:#ffab68; --tab-text:#122329; --modal-shade:rgba(4,15,18,.93);
}
body[data-theme="minecraft"]::before {
  opacity:.46;
  background-image:linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:32px 32px;
}
body[data-theme="minecraft"] .glass { border-radius:10px; }
body[data-theme="minecraft"] .sparkly-weekday {
  background:linear-gradient(90deg,#6eeef3,#fff,#ffad67,#fff,#6eeef3);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
body[data-theme="minecraft"] .card-kicker { color:#9df5f8; }
body[data-theme="minecraft"] .hero { min-height:245px; overflow:hidden; padding-right:360px; }
body[data-theme="minecraft"] .hero::before {
  content:""; position:absolute; inset:auto 0 0 0; height:84px; pointer-events:none; opacity:.65;
  background:linear-gradient(#72b84f 0 22px,#5e4028 22px 100%);
  box-shadow:inset 0 18px 0 rgba(255,255,255,.03),inset 0 -22px 0 rgba(0,0,0,.12);
}
body[data-theme="minecraft"] .hero::after {
  content:""; position:absolute; right:24px; bottom:17px; width:305px; height:190px; pointer-events:none;
  background-repeat:no-repeat; background-position:center bottom; background-size:contain;
  filter:drop-shadow(0 12px 18px rgba(0,0,0,.34));
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 610 370'%3E%3Cg shape-rendering='crispEdges'%3E%3Cg transform='translate(36 25)'%3E%3Crect x='54' y='0' width='112' height='92' fill='%232ad6de'/%3E%3Crect x='54' y='0' width='112' height='18' fill='%231bb7bf'/%3E%3Crect x='78' y='28' width='16' height='22' fill='%23ffffff'/%3E%3Crect x='126' y='28' width='16' height='22' fill='%23ffffff'/%3E%3Crect x='82' y='34' width='10' height='16' fill='%23151515'/%3E%3Crect x='130' y='34' width='10' height='16' fill='%23151515'/%3E%3Crect x='100' y='55' width='24' height='12' fill='%23f2b739'/%3E%3Crect x='34' y='92' width='152' height='140' fill='%232ad6de'/%3E%3Crect x='74' y='112' width='72' height='92' fill='%23edfafa'/%3E%3Crect x='8' y='106' width='26' height='112' fill='%232ad6de'/%3E%3Crect x='186' y='106' width='26' height='112' fill='%232ad6de'/%3E%3Crect x='42' y='232' width='58' height='82' fill='%231eb8c0'/%3E%3Crect x='120' y='232' width='58' height='82' fill='%231eb8c0'/%3E%3C/g%3E%3Cg transform='translate(328 8)'%3E%3Crect x='50' y='0' width='116' height='100' fill='%23d9a176'/%3E%3Crect x='50' y='0' width='116' height='28' fill='%233e3129'/%3E%3Crect x='50' y='22' width='22' height='34' fill='%233e3129'/%3E%3Crect x='144' y='22' width='22' height='34' fill='%233e3129'/%3E%3Crect x='78' y='38' width='16' height='22' fill='%23ffffff'/%3E%3Crect x='122' y='38' width='16' height='22' fill='%23ffffff'/%3E%3Crect x='82' y='44' width='10' height='16' fill='%234082c1'/%3E%3Crect x='126' y='44' width='10' height='16' fill='%234082c1'/%3E%3Crect x='98' y='70' width='24' height='8' fill='%2371412d'/%3E%3Crect x='28' y='100' width='160' height='148' fill='%23f28b3d'/%3E%3Crect x='4' y='114' width='24' height='118' fill='%23d9a176'/%3E%3Crect x='188' y='114' width='24' height='118' fill='%23d9a176'/%3E%3Crect x='38' y='248' width='60' height='86' fill='%23333d46'/%3E%3Crect x='118' y='248' width='60' height='86' fill='%23333d46'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
body[data-theme="minecraft"] .weather-card::after {
  content:""; position:absolute; right:-8px; bottom:-8px; width:92px; height:124px; opacity:.19; pointer-events:none;
  background-repeat:no-repeat; background-position:center bottom; background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 240'%3E%3Cg shape-rendering='crispEdges'%3E%3Crect x='34' y='0' width='112' height='88' fill='%232ad6de'/%3E%3Crect x='58' y='28' width='16' height='22' fill='%23fff'/%3E%3Crect x='106' y='28' width='16' height='22' fill='%23fff'/%3E%3Crect x='62' y='34' width='10' height='16' fill='%23151515'/%3E%3Crect x='110' y='34' width='10' height='16' fill='%23151515'/%3E%3Crect x='80' y='54' width='22' height='10' fill='%23f2b739'/%3E%3Crect x='20' y='88' width='140' height='120' fill='%232ad6de'/%3E%3Crect x='54' y='104' width='72' height='82' fill='%23edfafa'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-theme="minecraft"] .calendar-card::after {
  content:""; position:absolute; right:12px; bottom:8px; width:86px; height:128px; opacity:.14; pointer-events:none;
  background-repeat:no-repeat; background-position:center bottom; background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 260'%3E%3Cg shape-rendering='crispEdges'%3E%3Crect x='34' y='0' width='112' height='92' fill='%23d9a176'/%3E%3Crect x='34' y='0' width='112' height='26' fill='%233e3129'/%3E%3Crect x='58' y='36' width='16' height='20' fill='%23fff'/%3E%3Crect x='106' y='36' width='16' height='20' fill='%23fff'/%3E%3Crect x='62' y='42' width='10' height='14' fill='%234082c1'/%3E%3Crect x='110' y='42' width='10' height='14' fill='%234082c1'/%3E%3Crect x='78' y='64' width='24' height='8' fill='%2371412d'/%3E%3Crect x='20' y='92' width='140' height='122' fill='%23f28b3d'/%3E%3C/g%3E%3C/svg%3E");
}
body[data-theme="minecraft"] .school-card::after { content:"🩵"; position:absolute; right:14px; top:10px; font-size:28px; opacity:.16; pointer-events:none; }
body[data-theme="minecraft"] .chores-card::after { content:"🟧"; position:absolute; right:14px; bottom:12px; font-size:30px; opacity:.15; pointer-events:none; }
body[data-theme="minecraft"] .spanish-card::after { content:"⛏️"; position:absolute; right:18px; bottom:12px; font-size:34px; opacity:.12; pointer-events:none; }
body[data-theme="minecraft"] .weather-card::before, body[data-theme="minecraft"] .calendar-card::before {
  content:""; position:absolute; pointer-events:none; opacity:.11; background:linear-gradient(#71b54d 0 22%,#5e4028 22% 100%); image-rendering:pixelated;
}
body[data-theme="minecraft"] .weather-card::before { left:14px; bottom:12px; width:82px; height:62px; }
body[data-theme="minecraft"] .calendar-card::before { left:16px; bottom:10px; width:104px; height:72px; }
.minecraft-swatch { background:linear-gradient(135deg,#2ad6de 0 42%,#f28b3d 42% 70%,#72b84f 70%); border:1px solid rgba(255,255,255,.18); }
@media (max-width:980px) {
  body[data-theme="minecraft"] .hero { padding-right:28px; padding-bottom:235px; }
  body[data-theme="minecraft"] .hero::after { width:300px; right:50%; transform:translateX(50%); }
}


/* Parker v0.1.8 - Alphabet Adventure */
.alphabet-card { position:relative; overflow:hidden; }
.alphabet-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.alphabet-heading h2 { margin:5px 0 0; }
.alphabet-speak-button {
  width:38px; height:38px; border-radius:50%; border:1px solid var(--border);
  background:rgba(255,255,255,.075); color:var(--text); font-size:1rem; cursor:pointer;
}
.alphabet-main { display:grid; grid-template-columns:110px 1fr; gap:16px; align-items:center; margin-top:16px; }
.alphabet-letter-wrap {
  min-height:106px; display:flex; align-items:baseline; justify-content:center; gap:4px;
  border:1px solid var(--border); border-radius:18px; background:rgba(255,255,255,.055);
}
.alphabet-upper { font-size:4.6rem; line-height:1; font-weight:950; color:var(--pink); }
.alphabet-lower { font-size:2.7rem; line-height:1; font-weight:900; color:var(--lavender); }
.alphabet-examples { display:grid; gap:7px; }
.alphabet-examples strong { font-size:1rem; }
.alphabet-examples span { font-size:.84rem; color:var(--muted); }
.alphabet-review {
  margin-top:12px; display:flex; align-items:center; justify-content:space-between;
  border-top:1px solid var(--border); padding-top:10px; color:var(--muted); font-size:.75rem;
}
.alphabet-review strong { color:var(--text); font-size:1.05rem; }
@media (max-width:700px) {
  .alphabet-main { grid-template-columns:88px 1fr; }
  .alphabet-upper { font-size:3.7rem; }
  .alphabet-lower { font-size:2.2rem; }
}

/* Parker v0.1.8 - Milo & Chip Block World, slimmer integrated characters */
body[data-theme="minecraft"] {
  --text:#f7fbff; --muted:rgba(235,244,249,.74);
  --glass:rgba(12,28,32,.72); --glass-strong:rgba(19,39,44,.87);
  --border:rgba(138,229,235,.20); --shadow:0 24px 70px rgba(0,0,0,.42);
  --pink:#77ecf1; --lavender:#ffad67;
  --bg-1:#0d2228; --bg-2:#15676d; --bg-3:#4a301f;
  --glow-1:rgba(44,217,224,.28); --glow-2:rgba(255,132,54,.25);
  --ambient-1:#25ccd3; --ambient-2:#f48840;
  --tab-a:#70e9ee; --tab-b:#ffab68; --tab-text:#122329;
  --modal-shade:rgba(4,15,18,.93);
}
body[data-theme="minecraft"]::before {
  opacity:.44;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:32px 32px;
}
body[data-theme="minecraft"] .glass { border-radius:9px; }
body[data-theme="minecraft"] .sparkly-weekday {
  background:linear-gradient(90deg,#70edf2,#fff,#ffa15c,#fff,#70edf2);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
body[data-theme="minecraft"] .hero {
  min-height:220px;
  padding-right:300px;
  overflow:hidden;
}
body[data-theme="minecraft"] .hero::before {
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:64px;
  background:linear-gradient(#70b84b 0 18px,#5e4028 18px 100%);
  opacity:.58; pointer-events:none;
}
body[data-theme="minecraft"] .hero::after {
  content:"";
  position:absolute; right:22px; bottom:10px; width:250px; height:184px;
  background-repeat:no-repeat; background-position:center bottom; background-size:contain;
  pointer-events:none; filter:drop-shadow(0 12px 18px rgba(0,0,0,.35));
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 360'%3E%3Cg shape-rendering='crispEdges'%3E%3C!-- CHIP slim cyan character --%3E%3Cg transform='translate(32 34)'%3E%3Crect x='48' y='0' width='86' height='76' rx='8' fill='%232bd8e0'/%3E%3Crect x='62' y='22' width='16' height='22' fill='%23fff'/%3E%3Crect x='104' y='22' width='16' height='22' fill='%23fff'/%3E%3Crect x='67' y='29' width='9' height='15' fill='%2315191a'/%3E%3Crect x='109' y='29' width='9' height='15' fill='%2315191a'/%3E%3Crect x='82' y='48' width='20' height='10' fill='%23f3b638'/%3E%3Crect x='40' y='76' width='102' height='126' fill='%232bd8e0'/%3E%3Crect x='65' y='90' width='52' height='87' rx='10' fill='%23effcfc'/%3E%3Crect x='17' y='88' width='23' height='98' fill='%232bd8e0'/%3E%3Crect x='142' y='88' width='23' height='98' fill='%232bd8e0'/%3E%3Crect x='50' y='202' width='34' height='94' fill='%231eb9c1'/%3E%3Crect x='99' y='202' width='34' height='94' fill='%231eb9c1'/%3E%3C/g%3E%3C!-- MILO slim human --%3E%3Cg transform='translate(278 18)'%3E%3Crect x='44' y='0' width='92' height='82' fill='%23dca47a'/%3E%3Crect x='44' y='0' width='92' height='24' fill='%2342332a'/%3E%3Crect x='60' y='30' width='15' height='20' fill='%23fff'/%3E%3Crect x='105' y='30' width='15' height='20' fill='%23fff'/%3E%3Crect x='64' y='36' width='9' height='14' fill='%234785c1'/%3E%3Crect x='109' y='36' width='9' height='14' fill='%234785c1'/%3E%3Crect x='80' y='59' width='20' height='7' fill='%2371402e'/%3E%3Crect x='36' y='82' width='108' height='136' fill='%23f28a3e'/%3E%3Crect x='13' y='96' width='23' height='108' fill='%23dca47a'/%3E%3Crect x='144' y='96' width='23' height='108' fill='%23dca47a'/%3E%3Crect x='46' y='218' width='38' height='100' fill='%23343e48'/%3E%3Crect x='96' y='218' width='38' height='100' fill='%23343e48'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Character cameos feel embedded instead of pasted */
body[data-theme="minecraft"] .weather-card::after {
  content:""; position:absolute; right:12px; bottom:8px; width:52px; height:74px;
  opacity:.13; pointer-events:none;
  background:
    linear-gradient(#2bd8e0 0 28%,transparent 28%),
    linear-gradient(90deg,#2bd8e0 0 28%,#effcfc 28% 72%,#2bd8e0 72%);
  border-radius:8px 8px 3px 3px;
}
body[data-theme="minecraft"] .alphabet-card::after {
  content:"🩵 + 🟧"; position:absolute; right:12px; bottom:8px;
  opacity:.12; font-size:22px; pointer-events:none;
}
body[data-theme="minecraft"] .calendar-card::after {
  content:"⛏️"; position:absolute; right:14px; top:12px; opacity:.10; font-size:34px; pointer-events:none;
}
body[data-theme="minecraft"] .chores-card::after {
  content:"🧱"; position:absolute; right:12px; bottom:8px; opacity:.11; font-size:32px; pointer-events:none;
}
.minecraft-swatch {
  background:linear-gradient(135deg,#2bd8e0 0 42%,#f28a3e 42% 70%,#70b84b 70%);
  border:1px solid rgba(255,255,255,.18);
}
@media (max-width:900px) {
  body[data-theme="minecraft"] .hero { padding-right:24px; padding-bottom:190px; }
  body[data-theme="minecraft"] .hero::after { width:235px; right:50%; transform:translateX(50%); }
}


/* Parker v0.1.9 - theme picker stacking, alphabet controls, dinosaur fact */
.hero {
  position:relative;
  z-index:40;
  overflow:visible;
}
.main-content-grid,
.weather-card,
.spanish-card,
.dino-fact-card {
  position:relative;
  z-index:1;
}
.theme-picker {
  z-index:9999;
}
body[data-theme="minecraft"] .hero {
  z-index:40;
  overflow:visible;
}
body[data-theme="minecraft"] .hero::before,
body[data-theme="minecraft"] .hero::after {
  z-index:0;
}
body[data-theme="minecraft"] .hero-copy,
body[data-theme="minecraft"] .hero-actions,
body[data-theme="minecraft"] .micro-admin-button {
  position:relative;
  z-index:2;
}

.alphabet-actions { display:flex; align-items:center; gap:7px; }
.alphabet-next-button {
  border:1px solid var(--border);
  background:rgba(255,255,255,.075);
  color:var(--text);
  border-radius:999px;
  padding:8px 11px;
  font:inherit;
  font-size:.7rem;
  font-weight:850;
  cursor:pointer;
}
.alphabet-next-button:hover,
.alphabet-speak-button:hover { background:rgba(255,255,255,.12); }

.dino-fact-card {
  margin-top:20px;
  padding:28px 30px;
  overflow:hidden;
}
.dino-fact-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}
.dino-fact-heading h2 { margin:5px 0 0; }
.dino-fact-emoji {
  font-size:3.5rem;
  line-height:1;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.24));
}
.dino-fact-text {
  font-size:1.08rem;
  line-height:1.65;
  margin:20px 0 18px;
  max-width:950px;
}
.dino-fact-footer {
  border-top:1px solid var(--border);
  padding-top:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:.76rem;
}
.dino-fact-footer span:first-child {
  color:var(--pink);
  font-weight:900;
}
body[data-theme="dino"] .dino-fact-card::after {
  content:"🦖";
  position:absolute;
  right:4%;
  bottom:-35px;
  font-size:150px;
  opacity:.07;
  pointer-events:none;
  transform:rotate(-8deg);
}
@media(max-width:650px){
  .alphabet-actions{flex-direction:column;align-items:flex-end;}
  .dino-fact-card{padding:24px 20px;}
  .dino-fact-footer{flex-direction:column;}
}

/* Feels-like weather context */
.weather-feels-like {
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  margin-top:5px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:750;
}
.weather-feels-like strong { color:var(--text); }
.weather-feels-like.prominent {
  margin-top:7px;
  padding:5px 9px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:var(--text);
  font-size:.86rem;
}
.weather-feels-like.prominent strong {
  color:var(--pink);
  font-size:1rem;
}

/* Parker v0.1.11 - PWA standalone polish */
@media (display-mode: standalone) {
  body { min-height:100vh; min-height:100dvh; }
  .dashboard-shell, .admin-shell {
    padding-top:max(18px, env(safe-area-inset-top));
    padding-left:max(0px, env(safe-area-inset-left));
    padding-right:max(0px, env(safe-area-inset-right));
    padding-bottom:max(24px, env(safe-area-inset-bottom));
  }
}

/* Parker v0.1.12 - school specials */
.special-reminder {
  margin-top:7px; padding:7px 10px; border:1px solid var(--border);
  border-radius:12px; background:rgba(255,255,255,.055);
  color:var(--text); font-size:.78rem; font-weight:800;
}
.special-next { margin-top:7px; color:var(--muted); font-size:.72rem; line-height:1.45; }
.specials-config-row {
  display:grid; grid-template-columns:minmax(150px,.8fr) 1fr auto;
  gap:9px; align-items:end; margin:8px 0 12px;
}
.specials-config-row code {
  color:var(--text); background:rgba(255,255,255,.06);
  border:1px solid var(--border); border-radius:8px; padding:4px 7px;
}
@media(max-width:800px){.specials-config-row{grid-template-columns:1fr;}}

/* Dynamic school specials calendar overlay */
.calendar-specials-toggle {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:8px;
  color:var(--muted);
  font-size:.72rem;
  font-weight:800;
  cursor:pointer;
  user-select:none;
}
.calendar-specials-toggle input {
  width:15px;
  height:15px;
  accent-color:var(--pink);
}
.calendar-special-event {
  border-color:color-mix(in srgb, var(--pink) 45%, transparent);
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--pink) 18%, transparent),
    color-mix(in srgb,var(--lavender) 14%, transparent));
  color:var(--text);
  font-weight:850;
}
.calendar-day-events .calendar-special-event {
  box-shadow:inset 3px 0 0 var(--pink);
}
