:root {
  color-scheme: light;
  --bg:#faf8f4; --paper:#fffdf9; --ink:#2d2635; --muted:#6d626e;
  --line:#e9e2e0; --purple:#625184; --purple-wash:#ede6f7;
  --warm:#a64534; --coral:#a34737; --coral-wash:#fae6dd;
  --green:#345d46; --green-wash:#e4efe3; --gold:#775320; --gold-wash:#f7eccf;
  font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*,*::before,*::after {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--ink)}
button,input,select,textarea {font:inherit;color:inherit}
button,a,input,select,textarea {-webkit-tap-highlight-color:transparent}
button {cursor:pointer}
a {color:inherit}
:focus-visible {outline:3px solid var(--purple);outline-offset:3px}
h1,h2,h3,p {margin:0}
h1 {font-size:clamp(2rem,5vw,3.45rem);letter-spacing:-.06em;line-height:1.03}
h2 {font-size:clamp(1.3rem,3vw,1.6rem);line-height:1.15;letter-spacing:-.04em}
h3 {font-size:1.05rem;line-height:1.25}
small,.small {font-size:.875rem}
.muted {color:var(--muted)}
.top {background:var(--paper);border-bottom:1px solid var(--line)}
.top-inner,.layout {max-width:1232px;margin:auto;padding-inline:clamp(16px,4vw,48px)}
.top-inner {height:74px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.brand {display:flex;align-items:center;gap:11px;text-decoration:none;font-weight:780;line-height:1.2;white-space:nowrap}
.brand small {display:block;margin-top:4px;color:var(--muted);font-weight:500;font-size:.78rem}
.brand-icon {display:grid;place-items:center;background:var(--coral-wash);color:var(--warm);width:42px;height:42px;border-radius:14px;font-size:1.55rem}
.nav {display:flex;gap:6px;overflow:auto;padding:17px 3px 19px;scrollbar-width:thin}
.nav a {display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:9px;color:var(--muted);white-space:nowrap;text-decoration:none;font-size:.9rem;font-weight:650}
.nav a span {font-size:1.13rem;line-height:1}
.nav a:hover,.nav a[aria-current="page"] {background:var(--purple-wash);color:var(--purple)}
.button {min-height:41px;padding:8px 13px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-weight:680;font-size:.875rem;text-decoration:none;text-align:center;line-height:1.25}
.button:hover {background:#f2ede8}
.button.primary {background:var(--coral);border-color:var(--coral);color:white}
.button.primary:hover {background:#87392b}
.button.subtle {background:#f4eef9;border-color:#ece2f5;color:#564474}
.button[aria-pressed="true"] {background:var(--purple);color:white}
.hero {display:grid;grid-template-columns:1fr minmax(190px,34%);position:relative;overflow:hidden;background:#eee6f6;border:1px solid #e8dff0;border-radius:23px;min-height:245px}
.hero-copy {z-index:1;padding:clamp(24px,4vw,42px)}
.hero h1 {margin:12px 0}
.hero p {max-width:40ch;color:#574b63}
.hero-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:23px}
.hero-art {position:relative;display:grid;place-items:center;min-height:225px;isolation:isolate}
.plate {width:clamp(138px,20vw,217px);aspect-ratio:1;border-radius:50%;background:#fffaf0;border:2px solid #fffdf8;box-shadow:inset 0 0 0 13px #fffaf0,inset 0 0 0 15px #eddccd,0 13px 30px #6b4d7a25;position:relative;transform:rotate(-9deg)}
.plate span {position:absolute;line-height:1;filter:drop-shadow(0 5px 4px #5a3e2830)}
.plate span:nth-child(1) {top:22%;left:23%;font-size:clamp(37px,5.4vw,66px);transform:rotate(-16deg)}
.plate span:nth-child(2) {top:34%;left:49%;font-size:clamp(34px,4.8vw,59px);transform:rotate(23deg)}
.plate span:nth-child(3) {top:53%;left:28%;font-size:clamp(36px,5vw,62px);transform:rotate(12deg)}
.spark {position:absolute;color:#806a9a;font-size:1.55rem}
.spark.one {top:17%;right:16%}
.spark.two {bottom:18%;left:12%;color:#aa6256}
.kicker {font-size:.8rem;font-weight:750;letter-spacing:.05em;text-transform:uppercase;color:var(--purple)}
.page-title {display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:10px 0 20px}
.page-title p {margin-top:7px;color:var(--muted)}
.section {margin-top:22px}
.section-head {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.section-head p {margin-top:4px;color:var(--muted)}
.stats,.cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stat,.card,.panel {background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:16px}
.stat {padding:16px 18px}
.stat strong {display:block;font-size:1.85rem;line-height:1.12;margin:4px 0;letter-spacing:-.04em}
.stat p {color:var(--muted);font-size:.875rem}
progress {width:100%;height:7px;display:block;margin-top:10px;accent-color:var(--purple);border-radius:9px}
progress::-webkit-progress-bar {background:#eee7ef;border-radius:9px}
progress::-webkit-progress-value {background:var(--purple);border-radius:9px}
.card {display:flex;flex-direction:column;gap:10px;overflow-wrap:anywhere}
.card-head {display:flex;align-items:center;gap:10px}
.food-icon {width:42px;height:42px;border-radius:12px;background:#f4eee6;flex:none;display:grid;place-items:center;font-size:1.44rem}
.badges,.actions,.toolbar,.filters,.segmented {display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.badge {display:inline-flex;align-items:center;border-radius:6px;padding:3px 7px;font-size:.8rem;font-weight:680;line-height:1.35}
.draft {background:#f0ece9;color:#574e58}
.watch {background:var(--purple-wash);color:var(--purple)}
.done,.low {background:var(--green-wash);color:var(--green)}
.hold,.allergy {background:var(--coral-wash);color:var(--warm)}
.iron {background:var(--gold-wash);color:var(--gold)}
.plan {background:#eee9f8;color:#564474}
.card dl {margin:0;font-size:.875rem;display:grid;gap:4px}
.card dl div {display:grid;grid-template-columns:minmax(85px,35%) 1fr;gap:7px}
dt {color:var(--muted)}
dd {margin:0}
.card .actions {margin-top:auto;padding-top:3px}
.card .actions .button {min-height:37px;padding:6px 10px}
.list {display:grid;gap:8px}
.row {display:flex;align-items:center;gap:11px;padding:10px 0}
.row+.row {border-top:1px solid var(--line)}
.row-info {flex:1;min-width:0;overflow-wrap:anywhere}
.row-info p {color:var(--muted);font-size:.875rem;margin-top:3px}
.split {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.table-wrap {overflow:auto;border:1px solid var(--line);border-radius:12px}
table {width:100%;border-collapse:collapse;text-align:left;font-size:.875rem}
th,td {padding:9px 11px;vertical-align:top;min-width:100px}
thead {background:#f4eef6;color:#534464}
tbody tr+tr {border-top:1px solid var(--line)}
tbody th {font-weight:670}
.allergen-details summary {cursor:pointer;font-weight:680;color:var(--purple);padding:9px 0}
.allergen-details .small {margin-bottom:11px}
#allergens {scroll-margin-top:10px}
footer {padding:20px 0 27px;font-size:.8rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between}
.filters {margin-bottom:12px}
.filters label {min-width:145px}
.filters label:first-child {flex:1}
label {display:grid;gap:4px;font-size:.875rem;font-weight:650}
input,select,textarea {width:100%;min-height:42px;border:1px solid #d9cfd9;border-radius:8px;background:white;padding:7px 10px}
select {appearance:none;padding-right:28px;background:white linear-gradient(45deg,transparent 50%,var(--purple) 50%) right 14px top 17px/6px 6px no-repeat;background-image:linear-gradient(45deg,transparent 50%,var(--purple) 50%),linear-gradient(135deg,var(--purple) 50%,transparent 50%);background-position:right 15px top 18px,right 9px top 18px;background-size:6px 6px}
textarea {min-height:75px;resize:vertical}
.segmented {margin-bottom:14px}
.empty {border:1px dashed #d9cfd9;border-radius:12px;padding:15px;color:var(--muted);grid-column:1/-1}
.month-head {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:10px}
.calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.weekday {text-align:center;color:var(--muted);font-size:.875rem;font-weight:650}
.day {position:relative;min-height:56px;background:#fff;border:1px solid var(--line);border-radius:7px;text-align:left;padding:5px 7px}
.day:hover,.day[aria-pressed=true] {background:var(--purple-wash);border-color:#b9a7cc}
.day[aria-current=date] {box-shadow:inset 0 0 0 1px var(--purple);font-weight:750}
.day-name {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--purple);font-size:.75rem}
.day-count {display:none;color:var(--purple);font-size:.75rem}
dialog {width:min(620px,calc(100% - 22px));border:1px solid var(--line);border-radius:19px;padding:20px;background:var(--paper);color:var(--ink);max-height:calc(100dvh - 24px)}
dialog::backdrop {background:#2f24396b}
.form-grid {display:grid;grid-template-columns:1fr 1fr;gap:11px}
.wide {grid-column:1/-1}
.checkbox {display:flex;align-items:center;gap:7px}
.checkbox input {min-height:auto;width:17px;height:17px;accent-color:var(--purple)}
fieldset {border:1px solid var(--line);border-radius:9px;padding:8px 10px}
legend {font-size:.875rem;font-weight:650}
fieldset .checkbox {display:inline-flex;margin:3px 9px 3px 0}
.form-actions {display:flex;gap:8px;justify-content:flex-end;margin-top:15px}
.toast {position:fixed;z-index:5;bottom:15px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:8px 15px;border-radius:8px;max-width:90vw}
.toast:empty {display:none}
@media(max-width:780px) {
  .cards {grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero {grid-template-columns:1fr minmax(125px,30%)}
  .spark.one {right:9%}
}
@media(max-width:540px) {
  .top-inner {height:65px}
  .brand-icon {width:34px;height:34px;border-radius:10px}
  .brand small {font-size:.73rem}
  .nav {padding-block:11px}
  .nav a {padding-inline:9px}
  .hero {grid-template-columns:1fr;min-height:0}
  .hero-art {position:absolute;right:-24px;top:-35px;min-height:150px;width:130px;opacity:.72}
  .hero h1,.hero p {max-width:calc(100% - 45px)}
  .hero h1 {max-width:calc(100% - 72px)}
  .hero-copy {padding:20px}
  .stats {gap:5px}
  .stat {padding:8px}
  .stat strong {font-size:1.35rem}
  .stat p {font-size:.8rem}
  .split,.cards {grid-template-columns:1fr}
  .page-title {align-items:flex-start}
  .filters label {min-width:0}
  .filters label:first-child {flex-basis:100%}
  .filters label:not(:first-child) {flex:1}
  .day {min-height:45px;padding:4px}
  .day-name {display:none}
  .day-count {display:block}
  .month-head strong {font-size:.9rem}
}
.nav .nav-action {display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:9px;border:0;background:transparent;color:var(--muted);white-space:nowrap;font-size:.9rem;font-weight:650}
.nav .nav-action:hover {background:var(--coral-wash);color:var(--warm)}
.nav .nav-action span {font-size:1.13rem;line-height:1}
.reading-banner {background:var(--purple-wash);color:var(--purple);font-weight:660;margin:0 0 12px;border-radius:8px;padding:7px 11px;font-size:.875rem}
#result-count {margin-bottom:9px}
.card dd,.row-info {white-space:pre-wrap}
@media(max-width:540px) {.nav .nav-action {padding-inline:9px}}
.table-stack {display:grid;gap:2px}
@media(max-width:370px) {
  .brand {gap:6px}
  .brand small {font-size:.68rem}
  #print-report {padding-inline:7px;font-size:.75rem}
  .hero h1,.hero p {max-width:calc(100% - 32px)}
  .hero-art {right:-47px}
  .form-grid {grid-template-columns:1fr}
}
.top-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.sync-status {font-size:.8rem;color:var(--muted)}
.sync-status[data-status="saved"] {color:var(--green)}
.sync-status[data-status="offline"] {color:var(--warm)}
.button[hidden] {display:none}
.catalog {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
.catalog-group {border:1px solid var(--line);border-radius:14px;background:var(--paper);min-width:0}
.catalog-group summary {display:flex;gap:9px;align-items:center;cursor:pointer;list-style:none;padding:12px}
.catalog-group summary::-webkit-details-marker {display:none}
.catalog-group summary::after {content:"";width:8px;height:8px;flex:none;border-right:2px solid var(--purple);border-bottom:2px solid var(--purple);transform:rotate(-45deg);margin-inline:5px}
.catalog-group[open] summary::after {transform:rotate(45deg);margin-top:-3px}
.catalog-icon {display:grid;place-items:center;border-radius:8px;background:#f4eee6;width:34px;height:34px;flex:none}
.catalog-group h2 {font-size:1.04rem}
.group-count {margin-left:auto;color:var(--muted);font-size:.78rem;white-space:nowrap}
.catalog-list {margin:0;padding:0 12px;list-style:none}
.catalog-item {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line);min-height:55px}
.catalog-info {min-width:0;overflow-wrap:anywhere}
.catalog-name {display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.catalog-name h3 {font-size:.97rem}
.catalog-info .badges:not(:empty),.catalog-info p {margin-top:3px}
.catalog-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;flex:none}
.catalog-actions .button {font-size:.79rem;padding-inline:7px;min-height:38px}
.try-button {color:var(--green);background:var(--green-wash);border-color:#d8e7d7}
.try-button:hover {background:#d5e7d6}
@media(max-width:850px) {.catalog {grid-template-columns:1fr}}
@media(max-width:540px) {
  .top-inner {min-height:77px;height:auto;padding-block:8px}
  .top-actions {gap:3px 5px}
  .top-actions #print-report {order:-1;min-height:35px}
  .sync-status {order:2;flex:0 0 100%;text-align:right;font-size:.73rem}
  #sync-retry {min-height:27px;padding:4px 6px;font-size:.73rem}
  .catalog-group summary {padding:10px}
  .catalog-list {padding-inline:10px}
  .catalog-actions {max-width:100px}
  .catalog-actions .button {min-height:39px}
}
.week-count {margin:6px 0 16px}
.week-count strong {font-size:1.4rem;margin-right:5px}
.section-description {margin:7px 0 12px}
.plain-button {padding:0;min-height:30px;background:transparent;border:0;text-align:left;color:var(--purple);justify-content:flex-start}
.plain-button:hover {background:transparent;text-decoration:underline}
.shortlist {padding:0}
.day-lists>div {min-width:0}
.day-lists .row-info p {overflow-wrap:anywhere}
.day-lists .row {gap:8px}
.calendar-row-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;max-width:12rem}
.remove-day-button {color:var(--warm)}
.calendar-undo {display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--purple-wash);border-radius:9px;padding:8px 10px;margin-bottom:12px;font-size:.875rem}
@media(max-width:480px) {
  .day-lists .row {flex-wrap:wrap}
  .day-lists .row-info {flex-basis:calc(100% - 50px)}
  .calendar-row-actions {max-width:none;padding-left:50px;justify-content:flex-start}
}
.day-notes>p {margin:9px 0}
.day-notes h3 {margin:17px 0 10px}
.source-links {color:var(--purple)}
.recipe-form {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.recipe-form .checkbox {grid-column:1/-1}
.recipe-card {background:#fffefb}
.pair-icons {display:flex;gap:3px}
.pair-icons .food-icon {width:35px;height:35px;font-size:1.22rem}
#recipe-results h2 {font-size:1.22rem}
.allergen-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px}
.allergen-card summary {cursor:pointer;font-weight:750}
.allergen-card summary .badge {margin-left:6px;vertical-align:middle}
.allergen-card .source-links {margin-bottom:9px}
@media(max-width:640px) {
  .day-lists,.allergen-grid {grid-template-columns:1fr}
  .day-lists {gap:17px}
  .allergen-card {padding:13px}
  .table-wrap :is(th,td) {min-width:0;padding:7px 6px}
  .table-wrap th {font-size:.79rem}
}
.ingredient-list {color:var(--purple);font-size:.9rem;font-weight:650}
.recipe-guidance {margin-top:14px;color:var(--muted)}
.recipe-guidance summary {cursor:pointer;color:var(--purple);font-weight:680}
.recipe-guidance p {margin:7px 0}
.recipe-filters {margin:18px 0}
.recipe-card .badge {overflow-wrap:anywhere}
.food-link {text-decoration-color:#b9a9c9;text-underline-offset:3px}
.food-link:hover {color:var(--purple);text-decoration-color:currentColor}
.product-detail {display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.5fr);gap:clamp(16px,4vw,38px);padding:clamp(14px,3vw,26px)}
.product-figure {margin:0}
.product-image {position:relative;display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden;border-radius:13px;background:var(--purple-wash)}
.product-image img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--paper)}
.product-figure figcaption {font-size:.8rem;color:var(--muted);margin:6px 0 0}
.product-icon .food-icon {font-size:5.5rem;background:transparent;width:auto;height:auto}
.product-facts {min-width:0}
.product-facts>p,.product-facts>.badges {margin-top:7px}
.product-facts h2:not(:first-child) {margin-top:20px}
.product-facts dl {display:grid;gap:0;margin:8px 0 12px}
.product-facts dl div {display:grid;grid-template-columns:minmax(100px,.85fr) 1.4fr;gap:8px;padding:7px 0;border-bottom:1px solid var(--line);font-size:.9rem}
.product-facts dd {white-space:pre-wrap;overflow-wrap:anywhere}
.product-breadcrumb {margin:5px 0 12px}
@media(max-width:640px) {
  .product-detail {grid-template-columns:1fr}
  .product-image {max-height:290px}
}
#language {width:auto;min-width:101px;min-height:37px;font-size:.875rem;background-color:var(--paper)}
.nav a .nav-label {font-size:inherit;line-height:inherit}
@media(max-width:540px) {
  #language {min-width:87px;min-height:34px;padding-block:5px;font-size:.775rem}
  #language {background-position:right 15px top 14px,right 9px top 14px}
  .top-inner .top-actions {max-width:60%}
}
@media(max-width:370px) {
  .top-actions {flex-direction:column;align-items:flex-end}
}
.guide-links {margin:8px 0 0;line-height:1.55}
.school-grid,.reaction-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.school-card,.reaction-item {padding:12px;border:1px solid var(--line);border-radius:11px}
.school-card p,.reaction-item p,.allergen-advice p,.food-preparation article p {margin-top:6px}
.school-card p,.reaction-item p,.allergen-advice p,.food-preparation article p:not(.guide-links) {font-size:.94rem}
.reaction-memo {border-color:#d4a298;scroll-margin-top:10px}
.emergency-call {padding:10px 12px;background:var(--coral-wash);color:var(--warm);font-weight:740;border-radius:9px;margin-bottom:10px}
.reaction-item.urgent {background:#fdf2ee;border-color:#e3c5bb}
.reaction-item.urgent h3 {color:var(--warm)}
#allergy-emergency+section h3 {margin-top:16px}
.allergen-card {scroll-margin-top:12px}
.allergen-card[open] summary {padding-bottom:10px}
.allergen-advice {padding:10px 0;border-top:1px solid var(--line)}
.allergen-advice-list {padding-bottom:7px}
.allergen-record-title {margin:5px 0 8px}
.food-preparation article {background:#f7f3ed;border-radius:9px;padding:11px}
.food-preparation .actions {margin-top:10px}
.recipe-prep {font-size:.875rem}
.recipe-prep summary {cursor:pointer;color:var(--purple);font-weight:680}
.recipe-prep ul {margin:7px 0;padding-left:18px}
.recipe-prep li+li {margin-top:5px}
.recipe-prep li p {color:var(--muted)}
.recipe-note {color:var(--warm)}
@media(max-width:680px) {
  .school-grid,.reaction-grid {grid-template-columns:1fr}
}
.knowledge-shortcuts {display:flex;flex-wrap:wrap;gap:7px;margin:0 0 15px}
.knowledge-shortcuts a:first-child {color:var(--warm);background:var(--coral-wash);border-color:#e3c5bb}
.knowledge-search {max-width:36rem;margin:0 0 12px}
#knowledge-count {margin-bottom:9px}
.knowledge-results {display:grid;gap:8px}
.knowledge-article {scroll-margin-top:10px;padding:0}
.knowledge-article summary {display:grid;gap:3px;cursor:pointer;padding:12px 36px 12px 14px;position:relative;list-style:none}
.knowledge-article summary::-webkit-details-marker {display:none}
.knowledge-article summary::after {content:"+";position:absolute;right:14px;top:12px;color:var(--purple);font-weight:700}
.knowledge-article[open] summary::after {content:"−"}
.knowledge-article.safety-article .knowledge-title {color:var(--warm)}
.knowledge-title {font-weight:750}
.knowledge-article summary .muted {font-size:.9rem}
.knowledge-body {border-top:1px solid var(--line);padding:12px 14px}
.knowledge-body>p+p {margin-top:9px}
.aid-steps {margin:10px 0;padding-left:22px}
.aid-steps li+li {margin-top:8px}
.aid-figures {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.aid-photo {margin:0;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.aid-photo a {display:block}
.aid-photo img {display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:contain;background:#fff}
.aid-photo figcaption {padding:8px 10px;font-weight:650}
.aid-photo small {font-weight:400;color:var(--muted)}
@media(max-width:540px) {.aid-figures {grid-template-columns:1fr}}
.plate-age {margin-block:12px}
.example-plates {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:11px}
.plate-example {background:#f8f5f0;border:1px solid var(--line);border-radius:12px;padding:12px}
.plate-example ul {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;list-style:none;padding:0;margin:10px 0}
.plate-example li {display:grid;align-content:start;gap:3px;padding:7px 8px;border-radius:6px;overflow-wrap:anywhere;background:var(--coral-wash)}
.plate-example li:nth-child(2) {background:var(--gold-wash)}
.plate-example li:nth-child(3) {background:var(--green-wash)}
.plate-example li:nth-child(4) {background:var(--purple-wash)}
.plate-example li span {font-size:.75rem;color:var(--muted)}
.plate-example li a {font-size:.9rem;font-weight:700}
.plate-example p {font-size:.9rem}
@media(max-width:620px) {.example-plates {grid-template-columns:1fr}}
.food-icon {position:relative;overflow:hidden}
.food-icon-initial {font-size:.82rem;font-weight:750;color:var(--purple);letter-spacing:.01em}
.pair-icons .food-icon-initial {font-size:.72rem}
.food-icon img {position:absolute;display:block;inset:0;width:100%;height:100%;object-fit:cover;background:var(--paper);opacity:0}
.food-icon img.loaded {opacity:1}
.auth-page {min-height:100vh;display:grid;place-items:center;padding:20px}
.auth-card {width:min(400px,100%);background:var(--paper);border:1px solid var(--line);border-radius:23px;padding:28px;display:grid;gap:18px}
.auth-card .brand {font-size:1.15rem}
.auth-tabs {margin:0}
.auth-tabs .button {flex:1}
.auth-form {display:grid;gap:12px}
.auth-form label {display:grid;gap:5px;font-weight:650;font-size:.9rem}
.auth-form input {min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:white}
.auth-form .button.primary {min-height:46px}
.auth-error {color:var(--warm);font-size:.9rem;min-height:1.2em}
.auth-error:empty {display:none}
.data-tools p {margin-top:6px}
.data-tools .actions {margin-top:12px}
.auth-card [hidden] {display:none}
@media(max-width:540px) {
  .top-inner {height:auto;min-height:74px;padding-block:8px}
  #logout {min-height:34px;padding:5px 9px;font-size:.775rem}
}
.drop {display:inline-block;width:10px;height:10px;border:1.5px solid #9fb6c9;border-radius:0 50% 50% 50%;transform:rotate(45deg);background:transparent;flex:none}
.drop.on {background:#4aa3df;border-color:#3b8fc8}
.day .drop {position:absolute;top:7px;right:7px}
.water-toggle,.water-status {gap:9px}
.water-toggle[aria-pressed="true"] {background:#e3f1fb;border-color:#b5d8ef;color:#1f5f8b}
.water-status {display:inline-flex;align-items:center;font-size:.875rem;color:var(--muted)}
.water-status.on {color:#1f5f8b}
@media(max-width:540px) {.day .drop {top:5px;right:4px;width:8px;height:8px}}
.food-icon-drawn img {background:transparent}
.product-image.drawn img {object-fit:contain;background:transparent;padding:4%}
.plate span img {display:block;width:1.6em;height:1.6em}
.plate span:nth-child(1) {top:12%;left:14%}
.plate span:nth-child(2) {top:22%;left:42%}
.plate span:nth-child(3) {top:44%;left:22%}
.allergen-summary {margin:12px 0 10px;line-height:1.55}
.allergen-schools {margin:4px 0 12px;border-top:1px solid var(--line);padding-top:8px}
.allergen-schools>summary,.schools-detail>summary {cursor:pointer;font-weight:700;color:var(--purple);font-size:.9rem}
.schools-detail>summary {display:flex;flex-direction:column;gap:3px;font-size:1.05rem;color:var(--ink)}
.schools-detail[open]>summary {margin-bottom:12px}
.table-scroll {overflow-x:auto;margin:6px 0 10px;-webkit-overflow-scrolling:touch}
.compare-table {border-collapse:collapse;min-width:1080px;width:100%;font-size:.86rem}
.compare-table th,.compare-table td {text-align:left;vertical-align:top;padding:9px 10px;border-bottom:1px solid var(--line)}
.compare-table thead th {font-size:.78rem;color:var(--muted);font-weight:700}
.compare-table tbody th {font-weight:700;width:150px}
.compare-table .my-choice {background:var(--purple-wash);min-width:190px}
.compare-table thead .my-choice {color:var(--purple)}
.compare-table td.my-choice span {font-weight:650;color:var(--purple)}
.compare-table td.my-choice span {display:block;margin-bottom:6px}
.compare-table td.my-choice select {width:100%;min-height:34px;font-size:.84rem;padding:6px 8px;border:1px solid #d9cdea;border-radius:8px;background:#fff}
.compare-table td.my-choice small {display:block;margin-top:5px;color:var(--muted);font-size:.74rem}
.compare-table td.my-choice small.own {color:var(--warm)}
.compare-table .recommended {background:var(--green-wash);color:var(--green);font-weight:650;min-width:150px}
.compare-table thead .recommended {color:var(--green)}
.cell-pick {all:unset;display:block;cursor:pointer;border-radius:8px;padding:6px 8px;margin:-6px -8px;border:1px dashed transparent}
.cell-pick:hover {border-color:#cdbfe0;background:#faf7fd}
.cell-pick:focus-visible {outline:3px solid var(--purple);outline-offset:2px}
.cell-pick[aria-pressed="true"],.compare-table td.picked {background:var(--purple-wash);color:var(--purple);font-weight:650;border-color:#cdbfe0}
.tries {display:grid;gap:10px}
.tries>p {margin:0}
.try-row {border-top:1px solid var(--line);padding-top:10px}
.try-row:first-of-type {border-top:0;padding-top:0}
.try-row h3 {font-size:.92rem;margin-bottom:6px}
.try-fields {display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
.try-reacted {display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;min-height:44px}
.try-reacted span {font-weight:650;font-size:.9rem;margin-right:4px}
.try-note {display:grid;gap:5px;margin-top:8px}
.try-note[hidden],.try-row[hidden] {display:none}
.add-try {justify-self:start}
.tag-fields {display:grid;gap:10px}
.tag-fields>p {margin:0}
.checkbox.locked {opacity:.75;cursor:default}
.tag-hint {color:var(--green)}
@media(max-width:540px) {.try-fields {grid-template-columns:1fr}}
.pre-line {white-space:pre-line}
.tries-done {color:var(--green);background:var(--green-wash);border-radius:9px;padding:8px 10px;margin:10px 0 0}
.button.danger {color:var(--warm);border-color:#efcdc4}
.button.danger:hover {background:var(--coral-wash)}
.form-actions .push-left {margin-right:auto}
.update-banner {position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:20;display:flex;align-items:center;gap:12px;
  background:var(--ink);color:#fff;border-radius:14px;padding:10px 12px 10px 16px;box-shadow:0 10px 30px #2d263540;font-size:.92rem;max-width:calc(100% - 24px)}
.report {display:grid;gap:16px;max-width:900px}
.report-actions {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.report-head h1 {font-size:clamp(1.6rem,4vw,2.3rem)}
.report-head p {color:var(--muted);margin-top:6px}
.report-block {background:var(--paper);border:1px solid var(--line);border-radius:15px;padding:16px}
.report-block h2 {font-size:1.15rem;margin-bottom:10px}
.report-summary {margin:0;padding-left:18px;display:grid;gap:4px}
.report-table {width:100%;border-collapse:collapse;font-size:.88rem}
.report-table th,.report-table td {text-align:left;vertical-align:top;padding:7px 8px;border-bottom:1px solid var(--line)}
.report-table th {font-size:.78rem;color:var(--muted)}
.report-table small {color:var(--muted)}
@media print {
  @page {size:A4;margin:14mm}
  body {background:#fff;font-size:11pt}
  .top,.nav,main>footer,.report-actions,.toast,.update-banner,.reading-banner {display:none!important}
  .layout {padding:0;max-width:none}
  .report-block {border:0;padding:0;break-inside:auto}
  .report-table tr {break-inside:avoid}
  .report-block h2 {break-after:avoid}
  a {text-decoration:none}
}
.forgot summary {cursor:pointer;color:var(--purple);font-weight:650;font-size:.9rem}
.forgot p {margin-top:6px}
.users-list {display:grid;gap:10px}
.user-row {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;border-bottom:1px solid var(--line);padding:10px 0}
.user-row:last-child {border-bottom:0}
.reset-link {display:flex;gap:8px;flex-wrap:wrap;width:100%}
.reset-link input {flex:1;min-width:220px;min-height:40px;padding:6px 10px;border:1px solid var(--line);border-radius:9px;font-size:.85rem}
.invite-code {font-family:ui-monospace,Menlo,monospace;background:var(--purple-wash);padding:2px 8px;border-radius:6px}
.pdf-help {background:var(--purple-wash);border-radius:12px;padding:12px 14px;font-size:.92rem}
.pdf-help ol {margin:6px 0 0;padding-left:20px;display:grid;gap:3px}
@media print {.pdf-help {display:none!important}}
.report>* {min-width:0}
.report .table-scroll {margin:0}
.report-table {min-width:520px}
.report-head h1 {overflow-wrap:anywhere}
@media print {.report .table-scroll {overflow:visible} .report-table {min-width:0}}
details.collapsible>summary {cursor:pointer;list-style:none;display:grid;gap:4px;padding-right:30px;position:relative}
details.collapsible>summary::-webkit-details-marker {display:none}
details.collapsible>summary::after {content:'+';position:absolute;right:2px;top:0;font-size:1.4rem;line-height:1;color:var(--purple)}
details.collapsible[open]>summary::after {content:'−'}
details.collapsible[open]>summary {margin-bottom:12px}
.collapsible-title {font-size:clamp(1.3rem,3vw,1.6rem);font-weight:700;letter-spacing:-.04em;line-height:1.15}
details.collapsible .emergency-call {font-size:.92rem}
@media print {details.collapsible {display:block}}
.child-card {display:flex;align-items:center;gap:16px;margin-bottom:18px}
.child-card.empty-card {justify-content:space-between;background:var(--purple-wash);border-color:#e1d6ee}
.child-card.empty-card p {color:var(--muted);margin-top:4px;max-width:640px}
.child-avatar {flex:none;width:64px;height:64px;border-radius:20px;background:var(--coral-wash);color:var(--warm);display:grid;place-items:center;font-size:1.8rem;font-weight:800}
.child-info {flex:1;min-width:0;display:grid;gap:6px}
.child-info h2 {font-size:1.35rem}
.child-age {color:var(--muted);font-weight:600}
.child-note {color:var(--muted)}
.age-hints {margin:2px 0 0;padding-left:18px;font-size:.9rem;color:var(--green);display:grid;gap:2px}
.allergy-flag {background:#f7d3cc;color:#8f2f22;font-weight:800}
.allergy-note {background:#fbe2dc;color:#8f2f22;border-radius:10px;padding:8px 10px;font-size:.9rem;margin:10px 0 0}
.report-child {display:grid;gap:4px;margin:0}
.report-child div {display:grid;grid-template-columns:150px 1fr;gap:8px}
.report-child dt {color:var(--muted)}
.report-child dd {margin:0}
@media(max-width:540px) {.child-card {flex-wrap:wrap} .child-card>.button {width:100%} .child-avatar {width:52px;height:52px;font-size:1.5rem}}
.knowledge-body h3 {font-size:1.02rem;margin:18px 0 6px}
.knowledge-body h3:first-child {margin-top:4px}
.condition-list {margin:6px 0 10px;padding-left:20px;display:grid;gap:4px}
.condition-figure {margin:12px 0 8px}
.condition-figure img {display:block;width:100%;max-width:560px;height:auto;border-radius:20px}
.personal-note {display:inline-block;background:var(--purple-wash);color:var(--purple,#6b4f8a);font-weight:700;font-size:.85rem;border-radius:999px;padding:4px 12px;margin:2px 0 6px}
.child-conditions {margin-top:2px}
.badge.condition {background:var(--purple-wash);color:#5b3f7a;text-decoration:none;font-weight:700}
.badge.condition:hover {text-decoration:underline}
#edit-form select {width:100%}
.plate-food {position:absolute;display:block;aspect-ratio:1;filter:drop-shadow(0 4px 3px #5a3e2830);transition:transform .2s}
.plate-food img {display:block;width:100%;height:100%}
.plate-food:hover {z-index:2;filter:drop-shadow(0 6px 6px #5a3e2845)}
.plate-food.newest {z-index:1}
.plate-food.pop {animation:plate-pop .7s cubic-bezier(.2,1.4,.4,1) both}
@keyframes plate-pop {from {opacity:0;scale:.3} to {opacity:1;scale:1}}
.plate-caption {text-align:center;font-size:.85rem;font-weight:700;color:#6b5a7a;margin:10px 0 0}
@media(max-width:700px) {.plate-caption {display:none}}
@media (prefers-reduced-motion:reduce) {.plate-food.pop {animation:none}}
@media(max-width:700px) {.plate-food {pointer-events:none}}
.chip-field>label {display:block;font-weight:700;margin-bottom:6px}
.chips {display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:46px;padding:6px 8px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:text}
.chips:focus-within {border-color:#8f78ad;box-shadow:0 0 0 3px #8f78ad22}
.chip {display:inline-flex;align-items:center;gap:6px;background:#fbe2dc;color:#8f2f22;border-radius:999px;padding:4px 6px 4px 12px;font-weight:700;font-size:.9rem}
.chip small {font-weight:500;color:#a8574b;font-size:.75rem}
.chip-remove {border:0;background:#f3c6bd;color:#8f2f22;border-radius:50%;width:22px;height:22px;line-height:1;cursor:pointer;font-size:1rem;padding:0}
.chip-remove:hover {background:#eaa99c}
#allergy-entry {flex:1;min-width:160px;border:0;outline:0;padding:6px 4px;background:transparent;font:inherit}
.chip-field p {margin-top:4px}
.summary-panel>summary {display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 14px;cursor:pointer;list-style:none}
.summary-panel>summary::-webkit-details-marker {display:none}
.summary-panel>summary::after {content:'⌄';grid-column:2;grid-row:1;justify-self:end;font-size:1.3rem;line-height:1;color:var(--muted);transition:transform .2s}
.summary-panel[open]>summary::after {transform:rotate(180deg)}
.summary-title {font-size:1.25rem;font-weight:800}
.summary-total {grid-column:1/-1;color:var(--muted);font-size:.9rem;font-weight:600}
.summary-panel>summary .cat-bar {grid-column:1/-1;height:9px}
.cat-bar {display:flex;height:8px;border-radius:9px;background:#eee7ef;overflow:hidden;min-width:60px}
.cat-bar-done {background:var(--purple)}
.cat-bar-tried {background:#c9b6dd}
.cat-legend {margin:14px 0 6px;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dot {display:inline-block;width:10px;height:10px;border-radius:50%}
.dot.done {background:var(--purple)} .dot.tried {background:#c9b6dd;margin-left:6px}
.cat-list {list-style:none;padding:0;margin:0;display:grid}
.cat-row {display:grid;grid-template-columns:150px 1fr 64px 84px;align-items:center;gap:12px;width:100%;padding:9px 6px;border:0;border-top:1px solid var(--line);background:none;font:inherit;text-align:left;cursor:pointer;border-radius:8px}
.cat-row:hover {background:var(--purple-wash)}
.cat-name {font-weight:700;color:#5b3f7a}
.cat-count {font-variant-numeric:tabular-nums;font-weight:700;text-align:right}
.cat-plan {font-size:.8rem;color:var(--muted)}
.now-panel {display:grid;gap:16px}
.strip h3 {font-size:1rem;margin:0 0 8px;display:flex;align-items:center;gap:8px}
.strip h3 span {font-size:.8rem;font-weight:700;border-radius:999px;padding:1px 9px;background:#eee7ef;color:#5b3f7a}
.strip-watch h3 span {background:#efe3f7} .strip-plan h3 span {background:var(--gold-wash,#fbf0db);color:#8a6a1f} .strip-done h3 span {background:var(--green-wash,#e6f1dc);color:#3e6b2c}
.strip+.strip {border-top:1px solid var(--line);padding-top:14px}
.chip-row {display:flex;flex-wrap:wrap;gap:8px}
.food-chip {display:inline-flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;color:inherit;font-weight:600;font-size:.92rem}
.food-chip:hover {border-color:#b9a3cf;background:var(--purple-wash)}
.food-chip .food-icon {width:30px;height:30px;border-radius:50%;flex:none}
.food-chip .food-icon img {width:30px;height:30px}
.food-chip small {color:var(--muted);font-weight:500}
.chip-more {border-radius:999px}
@media(max-width:600px) {.cat-row {grid-template-columns:1fr 54px;gap:4px 10px} .cat-row .cat-bar {grid-column:1/-1;grid-row:2} .cat-plan {display:none}}
.food-chip .food-icon {font-size:.75rem}
.combo {position:relative;display:grid;gap:6px}
.combo>label {font-weight:700}
.combo-input {width:100%}
.combo-list {position:absolute;z-index:20;top:100%;left:0;right:0;margin:4px 0 0;padding:4px;list-style:none;max-height:300px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 28px #3b2a4a26}
.combo-list li {display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:9px;cursor:pointer}
.combo-list li[aria-selected="true"],.combo-list li[data-id]:hover {background:var(--purple-wash)}
.combo-list .food-icon {width:30px;height:30px;border-radius:50%;font-size:.75rem}
.combo-list .food-icon img {width:30px;height:30px}
.combo-list small {margin-left:auto;color:var(--muted);font-size:.78rem}
.combo-list .combo-empty {color:var(--muted);cursor:default;font-size:.9rem}
dialog .combo-list {position:static;max-height:260px}
.liking {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 4px}
.liking>span {font-weight:700;margin-right:2px}
.liking-button {display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 14px 6px 8px;font:inherit;font-weight:600;cursor:pointer}
.liking-button span {font-size:1.45rem;line-height:1;filter:grayscale(.6);opacity:.75;transition:transform .15s}
.liking-button:hover span {transform:scale(1.12)}
.liking-button[aria-pressed="true"] {background:var(--purple-wash);border-color:#8f78ad;color:#4b2f6a}
.liking-button[aria-pressed="true"] span {filter:none;opacity:1}
.liking-mark {margin-left:6px;font-size:1rem}
.food-chip .liking-mark {margin-left:-2px}
.liking-cell {white-space:nowrap}
.try-liking {display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.try-liking>span {font-size:.9rem;color:var(--muted);margin-right:4px}
.face-radio {cursor:pointer}
.face-radio input {position:absolute;opacity:0;width:1px;height:1px}
.face-radio span {display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:1.3rem;filter:grayscale(.6);opacity:.7}
.face-radio input:checked+span {background:var(--purple-wash);border-color:#8f78ad;filter:none;opacity:1}
.face-radio input:focus-visible+span {outline:2px solid #8f78ad;outline-offset:2px}
.liking-trail {margin-left:6px;font-size:1.1rem;letter-spacing:.02em}
/* Report for the paediatrician */
.rp {--rp-pink:#fbe4e8;--rp-pink-ink:#a3324a;--rp-green:#e2f3e6;--rp-green-ink:#2f7a45;--rp-yellow:#fdf0d3;--rp-yellow-ink:#8a6110;
  --rp-purple:#ece6f8;--rp-purple-ink:#5b3f9a;--rp-blue:#e4eefa;--rp-blue-ink:#2f5d8f;--rp-gray:#f1eff1;--rp-gray-ink:#6e6670;
  max-width:860px;gap:18px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rp-title,.rp h1,.rp-kicker,.rp-label,.rp-group h3,.rp-stat span,.rp-step h3,.rp-event h3,.rp-fact strong {font-family:"Rubik","Nunito","Arial Rounded MT Bold","Segoe UI",system-ui,sans-serif}
.rp-hero {position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;background:var(--rp-pink);border-radius:26px;padding:22px 24px}
.rp-hero::before,.rp-hero::after {content:'';position:absolute;border-radius:50%}
.rp-hero::before {width:150px;height:150px;right:-36px;top:-60px;background:#f6cdd6}
.rp-hero::after {width:90px;height:90px;right:170px;bottom:-62px;background:#fde9c4}
.rp-avatar {position:relative;z-index:1;width:58px;height:58px;border-radius:50%;background:#fff;color:var(--rp-pink-ink);display:grid;place-items:center}
.rp-avatar svg {width:34px;height:34px}
.rp-hero-text {position:relative;z-index:1;min-width:0}
.rp-kicker {margin:0;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:900;color:var(--rp-pink-ink)}
.rp h1 {margin:2px 0 0;font-size:clamp(1.8rem,5vw,2.6rem);font-weight:900;text-transform:uppercase;letter-spacing:.01em;line-height:1;overflow-wrap:anywhere}
.rp-dates {position:relative;z-index:1;display:grid;gap:6px;justify-items:end}
.rp-dates span {background:#fff;border-radius:999px;padding:5px 12px;font-size:.78rem;color:var(--muted);white-space:nowrap}
.rp-dates b {color:var(--ink)}
.rp-facts {display:grid;grid-template-columns:.8fr 1.1fr 1.1fr 1.5fr;gap:10px}
.rp-fact {border-radius:20px;padding:14px 16px;display:grid;align-content:start;gap:8px;min-width:0}
.rp-fact.rp-wide {grid-column:1/-1}
.rp-label {font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.rp-fact .rp-value {display:grid;gap:2px}
.rp-fact strong {text-transform:uppercase;font-weight:900;font-size:1rem;letter-spacing:.01em;overflow-wrap:anywhere}
.rp-fact small {font-size:.78rem;color:var(--muted);font-weight:700;text-transform:uppercase}
.rp-fact.rp-gray .rp-value {font-size:.9rem}
.rp-blue {background:var(--rp-blue)} .rp-blue .rp-label {color:var(--rp-blue-ink)}
.rp-purple {background:var(--rp-purple)} .rp-purple .rp-label {color:var(--rp-purple-ink)}
.rp-green {background:var(--rp-green)} .rp-green .rp-label {color:var(--rp-green-ink)}
.rp-yellow {background:var(--rp-yellow)} .rp-yellow .rp-label {color:var(--rp-yellow-ink)}
.rp-pink {background:var(--rp-pink)} .rp-pink .rp-label {color:var(--rp-pink-ink)}
.rp-gray {background:var(--rp-gray)} .rp-gray .rp-label {color:var(--rp-gray-ink)}
.rp-section {display:grid;gap:10px}
.rp-title {display:flex;align-items:center;gap:10px;margin:6px 0 2px;font-size:1.2rem;font-weight:900;text-transform:uppercase;letter-spacing:.01em;break-after:avoid}
.rp-title-icon {width:28px;height:28px;border-radius:50%;background:var(--rp-purple);color:var(--rp-purple-ink);display:grid;place-items:center;font-size:.9rem;font-weight:900;font-family:system-ui,sans-serif}
.rp-count {font-size:.75rem;font-weight:700;background:var(--rp-gray);color:var(--muted);border-radius:999px;padding:2px 9px;text-transform:none;font-family:system-ui,sans-serif;letter-spacing:0}
.rp-stats {display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.rp-stat {border-radius:18px;padding:14px 8px;text-align:center;display:grid;gap:6px;align-content:center;break-inside:avoid}
.rp-stat strong {font-size:1.9rem;font-weight:900;line-height:1;font-family:"Rubik","Nunito",system-ui,sans-serif}
.rp-stat strong small {font-size:.9rem}
.rp-stat span {font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em;line-height:1.25}
.rp-stat.rp-purple strong,.rp-stat.rp-purple span {color:var(--rp-purple-ink)} .rp-stat.rp-green strong,.rp-stat.rp-green span {color:var(--rp-green-ink)}
.rp-stat.rp-yellow strong,.rp-stat.rp-yellow span {color:var(--rp-yellow-ink)} .rp-stat.rp-gray strong,.rp-stat.rp-gray span {color:var(--rp-gray-ink)}
.rp-stat.rp-pink strong,.rp-stat.rp-pink span {color:var(--rp-pink-ink)} .rp-stat.rp-blue strong,.rp-stat.rp-blue span {color:var(--rp-blue-ink)}
.rp-liking {margin:2px 0 0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.85rem;color:var(--muted)}
.rp-liking span {color:var(--ink)}
.rp-event {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border-radius:20px;padding:14px 16px;break-inside:avoid}
.rp-event h3 {margin:0;font-size:1rem;font-weight:900;text-transform:uppercase}
.rp-event h3 small {text-transform:none;font-weight:500;color:var(--muted);font-family:system-ui,sans-serif}
.rp-event p {margin:3px 0 0;font-size:.88rem}
.rp-event-icon {width:44px;height:44px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden}
.rp-event-icon .food-icon {width:44px;height:44px;border-radius:50%;background:#fff!important}
.rp-event-icon .food-icon img {opacity:1}
.rp-letter {font-weight:900;font-size:1.1rem;color:var(--rp-yellow-ink)}
.rp-pill {background:#fff;border-radius:999px;padding:5px 12px;font-size:.78rem;font-weight:700;white-space:nowrap}
.rp-pink .rp-pill {color:var(--rp-pink-ink)} .rp-yellow .rp-pill {color:var(--rp-yellow-ink)}
.rp-group {border-radius:22px;padding:12px;break-inside:auto}
.rp-group h3 {display:flex;align-items:center;gap:8px;margin:2px 4px 10px;font-size:.95rem;font-weight:900;text-transform:uppercase;break-after:avoid}
.rp-group-icon {width:26px;height:26px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:.85rem}
.rp-group.rp-green h3 {color:var(--rp-green-ink)} .rp-group.rp-pink h3 {color:var(--rp-pink-ink)} .rp-group.rp-yellow h3 {color:var(--rp-yellow-ink)}
.rp-group.rp-purple h3 {color:var(--rp-purple-ink)} .rp-group.rp-blue h3 {color:var(--rp-blue-ink)} .rp-group.rp-gray h3 {color:var(--rp-gray-ink)}
.rp-rows {background:#fff;border-radius:16px;padding:2px 12px}
.rp-row {display:grid;grid-template-columns:1.3fr .8fr 2fr 1.2fr;gap:10px;padding:9px 0;border-top:1px dashed #ebe4e6;font-size:.86rem;align-items:start;break-inside:avoid}
.rp-row:first-child {border-top:0}
.rp-food {font-weight:700}
.rp-status {display:inline-block;border-radius:999px;padding:2px 10px;font-size:.76rem;font-weight:700}
.rp-status-done {background:var(--rp-green);color:var(--rp-green-ink)} .rp-status-watch {background:var(--rp-yellow);color:var(--rp-yellow-ink)}
.rp-status-hold {background:var(--rp-pink);color:var(--rp-pink-ink)} .rp-status-draft {background:var(--rp-gray);color:var(--rp-gray-ink)}
.rp-tries {display:grid;gap:2px;color:var(--muted)}
.rp-tries div {color:var(--ink)}
.rp-tries .rp-reacted {color:var(--rp-pink-ink);font-weight:600}
.rp-allergens {display:grid;gap:1px;font-size:.8rem}
.rp-allergens strong {color:var(--rp-yellow-ink);font-weight:700}
.rp-allergens small {color:var(--muted)}
.rp-muted {color:#b3aab4}
.rp-untried {background:var(--rp-gray);border-radius:20px;padding:12px 14px;break-inside:avoid}
.rp-untried p {margin:0 0 8px;font-size:.82rem;font-weight:700;color:var(--muted)}
.rp-untried>div {display:flex;flex-wrap:wrap;gap:6px}
.rp-chip {background:#fff;border:1px solid #e6e0e7;border-radius:999px;padding:4px 11px;font-size:.8rem}
.rp-chip-excluded {border-color:#f0b8c2;color:var(--rp-pink-ink)}
.rp-steps {display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rp-step {display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;background:var(--rp-blue);border-radius:18px;padding:12px 14px;break-inside:avoid}
.rp-step>span {width:24px;height:24px;border-radius:50%;background:#fff;color:var(--rp-blue-ink);display:grid;place-items:center;font-size:.78rem;font-weight:900}
.rp-step h3 {margin:0;font-size:.82rem;font-weight:900;text-transform:uppercase;color:var(--rp-blue-ink)}
.rp-step p {margin:3px 0 0;font-size:.86rem}
.rp-empty {margin:0;color:var(--muted)}
.rp-note {text-align:center;color:var(--muted);font-size:.85rem;margin:6px 0 0}
.pdf-status {margin:0;background:var(--purple-wash);border-radius:10px;padding:8px 12px}
@media(max-width:700px) {
  .rp-hero {grid-template-columns:auto 1fr;padding:18px}
  .rp-dates {grid-column:1/-1;justify-items:start;display:flex;flex-wrap:wrap}
  .rp-facts {grid-template-columns:1fr 1fr}
  .rp-stats {grid-template-columns:repeat(3,1fr)}
  .rp-row {grid-template-columns:1fr auto;gap:6px 10px}
  .rp-tries,.rp-allergens {grid-column:1/-1}
  .rp-steps {grid-template-columns:1fr}
  .rp-event {grid-template-columns:auto 1fr}
  .rp-event .rp-pill {grid-column:2;justify-self:start}
}
@media print {
  @page {size:A4;margin:12mm 12mm 16mm}
  body {font-size:10pt}
  .rp {max-width:none;gap:12px}
  .rp-facts {grid-template-columns:.8fr 1.1fr 1.1fr 1.5fr}
  .rp-stats {grid-template-columns:repeat(6,1fr)}
  .rp-row {grid-template-columns:1.3fr .8fr 2fr 1.2fr}
  .rp-steps {grid-template-columns:1fr 1fr}
  .rp-hero,.rp-fact,.rp-section>.rp-event,.rp-step,.rp-stat {break-inside:avoid}
  .pdf-status {display:none!important}
}
.print-mode .top,.print-mode .nav,.print-mode main>footer,.print-mode .report-actions,.print-mode .update-banner,.print-mode .toast,.print-mode .reading-banner {display:none!important}
.pdf-status .button {margin-left:6px;min-height:34px}
@media print {
  .rp {gap:10px}
  .rp-hero {padding:16px 20px}
  .rp-fact {padding:11px 14px}
  .rp-stat {padding:11px 6px}
  .rp-section {gap:8px}
  .rp-title {margin:2px 0 0}
  .rp-row {padding:7px 0}
  .rp-note {margin:0;font-size:.8rem}
}
/* Phones: nothing wider than the screen, inputs big enough that iOS does not zoom in, tabs stay at the top */
html,body {overflow-x:clip}
html {-webkit-text-size-adjust:100%;text-size-adjust:100%}
.nav,.table-scroll,.chip-row {overscroll-behavior-x:contain}
.top-menu {display:contents}
.menu-toggle,.label-short {display:none}
.nav {position:sticky;top:0;z-index:30;background:var(--bg)}
@media (pointer:coarse),(max-width:700px) {
  input:not([type=checkbox]):not([type=radio]),select,textarea {font-size:16px!important}
}
@media(max-width:700px) {
  .top {position:relative;z-index:40}
  .top-inner {height:58px;flex-wrap:nowrap}
  .brand {min-width:0;flex:1}
  .brand>span:last-child {min-width:0;overflow:hidden}
  .brand [data-copy="title"] {display:block;overflow:hidden;text-overflow:ellipsis}
  .brand small {display:none}
  .brand-icon {width:36px;height:36px;border-radius:11px;font-size:1.3rem;flex:none}
  .top-actions {flex-wrap:nowrap;gap:6px}
  .top-actions .button {min-height:38px;padding:6px 12px}
  #print-report .label-long {display:none}
  #print-report .label-short {display:inline}
  .menu-toggle {display:inline-flex;align-items:center;justify-content:center;width:40px;font-size:1.1rem}
  .top-menu {display:none;position:absolute;right:12px;top:54px;z-index:50;flex-direction:column;align-items:stretch;gap:10px;min-width:200px;
    background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 14px 30px #3b2a4a2a}
  .top.menu-open .top-menu {display:flex}
  .top-menu select,.top-menu .button {width:100%}
  .top-menu .sync-status {text-align:center}
  .nav {margin-inline:calc(-1 * clamp(16px,4vw,48px));padding:8px clamp(12px,4vw,48px);border-bottom:1px solid var(--line);scrollbar-width:none}
  .nav::-webkit-scrollbar {display:none}
  .nav a {padding:7px 11px}
}
.brand-icon img {width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.brand-icon:has(img) {background:none;overflow:hidden}
.week-plan .section-head {align-items:flex-start;gap:12px}
.week-plan .section-head p {margin:4px 0 0;max-width:620px}
.plan-list {list-style:none;margin:12px 0 0;padding:0;display:grid}
.plan-row {display:grid;grid-template-columns:92px 46px 1fr auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}
.plan-row:first-child {border-top:0}
.plan-row.quiet {grid-template-columns:92px 1fr}
.plan-day {display:block;font-weight:700;color:var(--muted);font-size:.86rem}
.plan-day::first-letter {text-transform:uppercase}
.plan-day.today {color:var(--purple)}
.plan-icon .food-icon {width:46px;height:46px;border-radius:50%}
.plan-body p {margin:3px 0 0}
.plan-food {font-weight:800;color:inherit;text-decoration:none}
.plan-food:hover {text-decoration:underline}
.plan-row.quiet strong {color:var(--muted)}
.mode-prompt {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px;background:var(--purple-wash)}
.mode-prompt p {margin:4px 0 0}
@media(max-width:600px) {
  .plan-row {grid-template-columns:40px 1fr auto;gap:4px 10px}
  .plan-row .plan-day {grid-column:1/-1}
  .plan-row.quiet {grid-template-columns:1fr}
  .plan-icon .food-icon {width:40px;height:40px}
  .week-plan .section-head {flex-wrap:wrap}
}

/* Baby portrait */
.child-avatar.portrait {background:none;overflow:hidden}
.child-avatar.portrait svg {width:100%;height:100%;display:block}
.portrait-builder {display:flex;gap:16px;align-items:flex-start;margin-top:10px}
.portrait-builder[hidden] {display:none}
.portrait-preview {flex:none;width:132px;height:132px}
.portrait-preview svg {width:100%;height:100%;display:block}
.portrait-controls {flex:1;min-width:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px 14px;align-items:end}
.portrait-controls .swatches {border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:6px}
.portrait-controls .swatches legend {width:100%;padding:0;margin-bottom:4px;font-size:.9rem;font-weight:700}
.swatch {position:relative;cursor:pointer}
.swatch input {position:absolute;opacity:0;width:1px;height:1px}
.swatch span:first-of-type {display:block;width:28px;height:28px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.15)}
.swatch input:checked + span {box-shadow:0 0 0 3px var(--warm)}
.swatch input:focus-visible + span {outline:2px solid var(--warm);outline-offset:3px}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:540px) {.portrait-builder {flex-direction:column;align-items:center} .portrait-controls {width:100%;grid-template-columns:1fr 1fr} .portrait-controls .swatches {grid-column:1/-1}}

/* Telegram bot */
.telegram-panel {display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.telegram-icon {flex:none;width:48px;height:48px;border-radius:16px;background:#e3f1fb;display:grid;place-items:center;font-size:1.5rem}
.telegram-text {flex:1;min-width:200px}
.telegram-text h2 {font-size:1.1rem;margin:0 0 4px}
.telegram-actions {display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:540px) {.telegram-actions {width:100%} .telegram-actions > * {flex:1;justify-content:center;text-align:center}}

/* Family invite page and panel */
.join-title {font-size:1.3rem;margin:4px 0 6px}
#join-signed:not([hidden]) {display:grid;gap:10px;margin-top:8px}
#family-panel h2 + .family-list + h2 {margin-top:18px}
.family-list {display:grid;gap:8px;margin:10px 0}
.family-row {display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:8px 10px;border-radius:12px;background:var(--coral-wash)}
.family-link {display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.family-link input {flex:1;min-width:200px}

/* Show-password eye */
.password-field {position:relative;display:block}
.password-field input {width:100%;padding-right:48px}
.password-eye {position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:none;border-radius:10px;cursor:pointer;display:grid;place-items:center;color:var(--muted)}
.password-eye:focus-visible {outline:2px solid var(--warm)}
.password-eye svg {width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-eye[aria-pressed="true"] .eye-slash {display:none}
.password-eye[aria-pressed="true"] {color:var(--warm)}

/* Who changed what */
.activity-day {font-size:.95rem;margin:14px 0 6px;color:var(--muted)}
.activity-row {display:flex;gap:12px;padding:8px 0;border-top:1px solid rgba(0,0,0,.06)}
.activity-time {flex:none;width:44px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.9rem;padding-top:1px}
.activity-who {font-weight:700;font-size:.92rem}
.brand-stack {display:flex;flex-direction:column}
.auth-card .brand small.brand-sub {display:block;font-size:.85rem}

/* Telegram sign-in */
.auth-or {display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.9rem;margin:14px 0 10px}
.auth-or::before,.auth-or::after {content:"";flex:1;height:1px;background:rgba(0,0,0,.1)}
.auth-or[hidden],.tg-login[hidden] {display:none}
.tg-login {display:flex;justify-content:center;min-height:44px}
.tg-note {background:#e3f1fb;border-radius:12px;padding:10px 12px;margin:0 0 12px}
