/* Leela Nurseries — brand-aligned (tokens from brand/tokens.css) */
:root{
  --green:#26B180; --green-deep:#1AAA82; --indigo:#5069A9; --purple:#672069;
  --coral:#F07550; --yellow:#FFE350; --charcoal:#3D3D3C; --cream:#F6F4EC;
  --pale:#CADEBA; --white:#fff; --line:#e3e0d6;
}
@font-face{font-family:'Kidsglow';src:url('/brand/assets/fonts/Kidsglow.ttf');font-display:swap}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,system-ui,sans-serif;color:var(--charcoal);background:var(--cream)}
.hidden{display:none!important}
.muted{color:#8a8a8a} .err{color:var(--coral);min-height:1em} code{background:#0001;padding:1px 5px;border-radius:4px}
button{font-family:inherit;background:var(--green);color:#fff;border:0;padding:9px 16px;border-radius:8px;cursor:pointer;font-weight:600}
button:hover{background:var(--green-deep)} button.ghost{background:transparent;color:var(--charcoal);border:1px solid var(--line)}
input,select{font-family:inherit;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px}
optgroup{color:var(--green-deep,#1AAA82);font-weight:700;font-style:normal}
optgroup option{color:var(--charcoal);font-weight:400}

/* login */
.login{display:grid;place-items:center;min-height:100vh}
.login-card{background:#fff;padding:34px;border-radius:18px;box-shadow:0 12px 40px #0001;width:340px;display:flex;flex-direction:column;gap:11px}
.brandmark{font-family:'Kidsglow';font-size:30px;color:var(--charcoal)} .brandmark span{color:var(--green)}
.login .hint{font-size:11.5px;color:#9a988e;line-height:1.7}

/* shell */
header{display:flex;justify-content:space-between;align-items:center;padding:12px 22px;background:#fff;border-bottom:1px solid var(--line)}
.logo{font-family:'Kidsglow';font-size:22px} .logo span{color:var(--green)}
.who{display:flex;gap:10px;align-items:center;font-size:14px}
nav{display:flex;gap:4px;padding:0 22px;background:#fff;border-bottom:1px solid var(--line)}
nav button{background:transparent;color:#8a8a8a;border-radius:0;border-bottom:3px solid transparent;padding:12px 18px;font-weight:600}
nav button.active{color:var(--charcoal);border-bottom-color:var(--green)}
main{padding:18px;max-width:100%}
/* Nuri floating emblem + right overlay */
.nuri{font-family:Georgia,'Times New Roman',serif;font-weight:600}
.nuri i{font-style:italic}
.lille-emblem{position:fixed;bottom:22px;right:22px;width:62px;height:62px;border-radius:50%;background:#fff;border:3px solid var(--green);box-shadow:0 6px 20px #0003;cursor:pointer;z-index:90;padding:4px;overflow:hidden}
.lille-emblem img{width:100%;height:100%;object-fit:contain}
.lille-emblem:hover{transform:scale(1.05)}
.lille-emblem.pulse{animation:emblemPulse 1.4s ease-in-out infinite}
@keyframes emblemPulse{0%,100%{box-shadow:0 6px 20px #0003,0 0 0 0 var(--green)}50%{box-shadow:0 6px 20px #0003,0 0 0 10px #26b18000}}
.lille-panel{position:fixed;top:0;right:0;bottom:0;width:360px;max-width:92vw;background:#fff;border-left:1px solid var(--line);box-shadow:-10px 0 36px #0003;z-index:95;display:flex;flex-direction:column}
.lille-panel.hidden{display:none}
.lille-min{background:transparent;color:#fff;border:0;font-size:18px;cursor:pointer;padding:0 4px;margin-left:auto}

/* read-only dish -> sub-recipe -> ingredient tree */
.dishtree{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.dt-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-bottom:1px solid #eef0ea;font-size:13px}
.dt-row:last-child{border-bottom:0}
.dt-l0{background:#fff}
.dt-l1{padding-left:30px;background:#fbfcfa}
.dt-l2{padding-left:54px;background:#f6f8f4}
.dt-tags{margin-left:6px}
.dt-slots{margin-left:auto;font-size:11px}
.dt-tog{cursor:pointer;color:var(--green-deep,#1AAA82);font-weight:700;width:12px;display:inline-block}
.dt-bullet{color:#b9c4bd}
.dt-tags .kchip{transition:background .1s}
.dt-tags .kchip:hover{background:var(--yellow,#FFE350)!important;color:#5a4a00!important}
.achip{display:inline-block;border:1.5px solid #e0c64a;background:#fff;color:#8a6d00;border-radius:20px;padding:2px 9px;margin:1px 2px;font-size:11px;font-weight:600;cursor:pointer}
.achip.on{background:var(--yellow,#FFE350);color:#5a4a00;border-color:#e0c64a}
.achip:hover{background:#fff3b0!important;color:#5a4a00!important;border-color:#caa800}
.achip.on:hover{background:var(--yellow,#FFE350)!important;color:#5a4a00!important;border-color:#caa800}

/* parent menu postcard — A4 landscape timetable */
.pc-wrap-a4{max-width:1040px}
.pc-card-a4{display:grid;grid-template-columns:260px 1fr;gap:0}
.pc-card-a4 .pc-side{background:var(--cream,#F6F4EC);padding:0 0 14px}
.pc-card-a4 .pc-side .pc-theme,.pc-card-a4 .pc-side .pc-greet,.pc-card-a4 .pc-side .pc-love,.pc-card-a4 .pc-side .pc-chip{margin-left:16px;margin-right:16px}
.pc-card-a4 .pc-main{padding:18px 20px;display:flex;flex-direction:column}
.pc-tt-title{font-family:Georgia,serif;color:#117a5e;font-size:20px;margin-bottom:8px}
.pc-tt{width:100%;border-collapse:collapse;font-size:12.5px;flex:1}
.pc-tt th,.pc-tt td{border:1px solid var(--pale,#CADEBA);padding:6px 8px;text-align:left;vertical-align:top}
.pc-tt thead th{background:#117a5e;color:#fff;font-weight:600}
.pc-tt tbody th{background:#eaf6ee;color:#117a5e;white-space:nowrap}
.pc-x{color:#b9c4bd}
.pc-card-a4 .pc-art{height:150px}
.pc-wrap{max-width:560px}
.pc-card{background:var(--cream,#F6F4EC);border-radius:16px;overflow:hidden;box-shadow:0 8px 28px #0002;border:1px solid var(--pale,#CADEBA)}
.pc-art{width:100%;height:170px;object-fit:cover;display:block}
.pc-art-fallback{background:linear-gradient(120deg,#8ed14f,#26B180,#117a5e)}
.pc-body{padding:16px 20px}
.pc-theme{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#117a5e;font-weight:700}
.pc-greet{font-family:Georgia,serif;color:#117a5e;margin:4px 0 6px;font-size:24px}
.pc-love{font-style:italic;color:#3D3D3C;margin:0 0 10px}
.pc-sec ul{margin:4px 0 10px;padding-left:20px;color:#3D3D3C}
.pc-chip{display:inline-block;margin:2px 6px 2px 0;padding:5px 11px;border-radius:20px;font-size:13px}
.pc-nut{background:#eaf6ee;color:#117a5e}.pc-ex{background:#fff3e6;color:#a05a00}
.pc-sign{font-family:Georgia,serif;font-style:italic;color:#117a5e;margin:10px 0 14px}
.pc-foot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--pale,#CADEBA);padding-top:10px}
.pc-foot img{height:34px;width:auto}

/* task manager — open = orange, closed = green */
.tk-table{width:100%;margin:4px 0 16px}
.tk-table td{vertical-align:middle;padding:7px 8px;border-bottom:1px solid var(--line)}
.tk-meta{font-size:11px;color:#8a8a8a;margin-top:2px}
.tk-h-open{color:#c8650b;margin:6px 0 2px}
.tk-h-closed{color:#117a5e;margin:18px 0 2px}
.tk-open b,.tk-open .tk-meta{color:#c8650b}
.tk-open td{background:#fff8f1}
.tk-hi{box-shadow:inset 3px 0 0 var(--coral,#F07550)}
.tk-p1{font-size:10px;font-weight:700;color:#fff;background:var(--coral,#F07550);border-radius:20px;padding:1px 7px}
.tk-closed td{color:#117a5e}
.tk-status{font-weight:600;color:#117a5e;text-transform:capitalize}

/* admin panes */
.apane{display:none}
.apane.show{display:block}

/* inline add-strip (no popups) — example row above the list */
.addstrip{background:#f3faf4;border:1px dashed var(--green,#26B180);border-radius:8px}
.addstrip.ig{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 10px;margin-bottom:12px}
tr.addstrip td{background:#f3faf4;padding:6px}
.addstrip input{width:100%;font-size:12px;padding:5px 7px}
.addstrip input::placeholder{color:#9bb3a3;font-style:italic}

/* Nuri rail */
.lille-head{background:linear-gradient(90deg,var(--green),var(--green-deep));color:#fff;padding:7px 14px;display:flex;align-items:center;gap:10px}
.lille-head .t{font-weight:800;font-size:14px;display:flex;align-items:center;gap:8px}
.lille-head .s{font-size:11px;opacity:.9}
.ai-badge{font-size:10px;font-weight:700;padding:2px 7px;border-radius:20px;margin-left:6px;vertical-align:middle}
.ai-badge.on{background:rgba(255,255,255,.25)}
.ai-badge.off{background:rgba(0,0,0,.18)}
.lille-chips{flex:none;padding:10px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:42vh;overflow:auto}
.lille-chips .chip{width:100%;text-align:center;font-size:11px;padding:6px 7px}
.lille-feed{flex:1;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:8px}
.msg{padding:9px 12px;border-radius:12px;font-size:13px;max-width:92%}
.msg.bot{background:#eef6f0;border:1px solid var(--pale);align-self:flex-start}
.msg.me{background:var(--green);color:#fff;align-self:flex-end}
.msg .narr{margin-bottom:6px} .msg table{margin-top:6px;font-size:12px} .msg .src{font-size:10.5px;color:#9a988e;margin-top:4px}
.lille-input{display:flex;gap:7px;padding:12px;border-top:1px solid var(--line)}
.lille-input input{flex:1}

/* sub-tabs */
.subnav{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.subnav button{background:transparent;color:#8a8a8a;border-radius:0;border-bottom:3px solid transparent;padding:9px 14px;font-weight:600}
.subnav button.active{color:var(--charcoal);border-bottom-color:var(--green)}
/* WIP tabs (light green) — work-in-progress areas, parked at the end of the subnav */
.subnav button.wip{background:#eaf6ee;color:#117a5e;border-radius:6px 6px 0 0}
.subnav button.wip.active{color:#0c5e47;border-bottom-color:#117a5e}

/* upload */
.drop{border:2px dashed var(--pale);border-radius:14px;padding:30px;text-align:center;background:#fff;cursor:pointer}
.drop:hover{border-color:var(--green);background:#fafdfb}
.drop b{color:var(--green-deep)}
.maprow{display:grid;grid-template-columns:160px 1fr;gap:8px;align-items:center;margin-bottom:6px}
.diffbox{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;margin:14px 0}
.diff-alert{background:#fff3f0;border:1px solid var(--coral);border-radius:10px;padding:10px 13px;margin:8px 0;color:#a33}
.opt-chip{background:#f3f5ef;border:1px solid var(--line);border-radius:7px;padding:3px 6px;margin-bottom:3px;font-size:11.5px;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.opt-chip a{color:var(--coral);cursor:pointer;margin-left:auto;font-weight:700}
/* meal/ingredient block cards — reuse opt-chip palette as a grid */
.mealgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin-bottom:6px}
.mealblock{background:#f3f5ef;border:1px solid var(--line);border-radius:8px;padding:9px 11px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transition:border-color .12s,box-shadow .12s}
.mealblock:hover{border-color:var(--green);box-shadow:0 1px 6px rgba(38,177,128,.14)}
.mealblock .mb-top{display:flex;align-items:baseline;gap:6px}
.mealblock .mb-name{font-weight:700;font-size:13px;line-height:1.2}
.mealblock .mb-ref{margin-left:auto;font-size:10px;color:#9a988e;white-space:nowrap}
.mealblock .mb-chips{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.mealblock .mb-foot{display:flex;align-items:center;gap:8px;font-size:11px;color:#7a8a80;margin-top:1px}
.mealblock .mb-foot a{margin-left:auto;color:var(--coral);font-weight:700;cursor:pointer}
.mealblock.add{background:#f3faf4;border:1px dashed var(--green,#26B180);cursor:default}
.mealblock.add input{font-size:12px;padding:5px 7px;width:100%}
.mealblock.add input::placeholder{color:#9bb3a3;font-style:italic}
.mealblock.warn{border-color:#d8a13a;background:#fdf7ec}
.mealgrp{margin:14px 0 4px;font-size:13px;font-weight:700;color:#5a6b60}
.mealgrp .muted{font-weight:400}
.opt-grp{margin-bottom:7px;padding-bottom:5px;border-bottom:1px dashed var(--line)}
.opt-grp:last-child{border-bottom:0;margin-bottom:0}
.opt-var{display:flex;align-items:center;gap:5px;font-size:11px;color:#444;padding:1px 0 1px 6px}
.vedit{margin-top:4px;font-size:10.5px}
.vedit summary{cursor:pointer;color:var(--indigo,#5069A9);font-weight:600}
.vrow{display:flex;align-items:center;gap:5px;margin-top:3px}
.vrow span{width:34px;font-weight:700;color:#666}
.vrow select{flex:1;font-size:10.5px}
.notecell{max-width:220px}
.notechip{font-size:10.5px;background:#fff7e6;border:1px solid #f0d9a0;border-radius:5px;padding:2px 6px;margin:2px 0;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dup-drawer{max-height:0;overflow:hidden;transition:max-height .3s ease}
.dup-drawer.open{max-height:60vh;overflow:auto;margin:6px 0 12px;padding:10px 12px;border:1px solid var(--coral);border-radius:10px;background:#fff7f4}
.dup-grp{border-bottom:1px dashed var(--line);padding:6px 0}
.dup-grp:last-child{border-bottom:0}
.dup-why{font-size:10.5px;font-weight:700;color:#fff;background:var(--coral);border-radius:20px;padding:1px 8px;margin-left:6px}
.statustog{border:0;border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;cursor:pointer}
.statustog.on{background:#e3f5ec;color:var(--green-deep,#1AAA82)}
.statustog.off{background:#f0e0e0;color:#a33}
.statussel{border:1px solid #0001;border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;cursor:pointer}
.statussel.on{background:#e3f5ec;color:var(--green-deep,#1AAA82)}
.statussel.off{background:#f0e0e0;color:#a33}
.statussel.ret{background:#ece6e0;color:#7a5a00}
.reval{border:0;border-radius:20px;padding:3px 10px;font-size:11px;font-weight:700;cursor:pointer;margin-left:6px;background:#eef2fb;color:var(--indigo,#5069A9)}
.reval.ok{background:#e3f5ec;color:var(--green-deep,#1AAA82)}
.reval.bad{background:#fbe2da;color:var(--coral)}
.rolecards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-bottom:8px}
.rolecard{border:1px solid var(--line);border-radius:9px;padding:8px 10px;font-size:12px}
.rolecard b{text-transform:none}
.nur-box{border:1px solid var(--line);border-radius:12px;padding:6px 14px 12px;margin-bottom:14px;background:#fff}
.nur-box>summary{cursor:pointer;font-size:15px;padding:8px 0;list-style:none}
.nur-box>summary::-webkit-details-marker{display:none}
.nur-box>summary::before{content:'▾';color:var(--green);margin-right:8px}
.nur-box:not([open])>summary::before{content:'▸'}
.slotchips{display:flex;gap:6px;flex-wrap:wrap}
.slotchip{border:1.5px solid #117a5e;border-radius:20px;padding:5px 12px;font-size:12.5px;font-weight:600;cursor:pointer;background:#117a5e;color:#fff}
.slotchip.on{background:#117a5e;color:#fff}
.slotchip.off{background:#fff;color:#5a6b60;border-color:var(--line);text-decoration:line-through}
/* contrast guard: any strong-green selected chip/badge gets readable white text */
.slotchip.on,.chipf.on,.tag-st.acc,.badge.leela,.kchip{color:#fff}
.dup-m{font-size:12.5px;padding:2px 0 2px 10px;cursor:pointer}
.dup-m:hover{color:var(--coral)}
.menu-week{margin-bottom:22px;padding-bottom:14px;border-bottom:1px dashed var(--line)}
.menu-week:last-child{border-bottom:0}
.adsec{margin-top:14px;border:1px solid var(--line);border-radius:10px;padding:4px 14px;background:rgba(255,255,255,0.5)}
.adsec>summary{cursor:pointer;list-style:none;padding:8px 0}
.adsec>summary::-webkit-details-marker{display:none}
.adsec>summary h3{display:inline-block;margin:0}
.adsec>summary::before{content:'▸';color:var(--green);font-weight:700;margin-right:8px}
.adsec[open]>summary::before{content:'▾'}
.special-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
@media(min-width:1200px){.special-grid{grid-template-columns:repeat(4,1fr)}}
.sp-card{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff}
.sp-head{margin-bottom:5px}
.sp-note{background:#fff7e6;border:1px solid #f0d9a0;border-radius:5px;padding:3px 7px;font-size:11.5px;margin:3px 0;font-weight:600}
.sp-day{margin-top:6px;border-top:1px dashed var(--line);padding-top:5px}
.sp-date{font-size:10.5px;font-weight:700;color:var(--indigo,#5069A9)}
.sp-meal{font-size:11.5px;padding:1px 0}
/* floating per-context chat widgets */
.chatw{position:fixed;width:75vw;max-width:75vw;height:520px;max-height:78vh;background:#fff;border:2px solid var(--cc,#26B180);border-radius:14px;box-shadow:0 14px 44px #0004,0 2px 8px #0002;display:flex;flex-direction:column;overflow:hidden;z-index:200}
.chatw.hidden{display:none}
.chatw-grip{position:absolute;right:2px;bottom:2px;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 50%,var(--cc,#26B180) 50%);border-bottom-right-radius:12px;opacity:.6;z-index:5}
.chatw-h{display:flex;align-items:center;gap:7px;padding:9px 12px;background:var(--cc,#26B180);color:#fff;cursor:move;font-size:13.5px}
.chatw-h b{font-weight:800}
.chatw-logo{width:24px;height:24px;border-radius:50%;background:#fff;object-fit:contain;padding:2px;box-shadow:0 0 0 2px #ffffff55;flex:none}
.chatw-ctx{font-size:10.5px;font-weight:700;background:#ffffff33;border-radius:20px;padding:2px 9px;line-height:1.4}
.chatw-acts{margin-left:auto;display:flex;gap:4px;align-items:center}
.chatw-acts button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:#ffffff22;color:#fff;border:0;font-size:16px;line-height:1;padding:0;cursor:pointer;border-radius:50%;font-weight:700}
.chatw-acts button:hover{background:#ffffff33}
.chatw-feed{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#fafdfb}
.chatw-feed .msg{max-width:82%;padding:10px 13px;border-radius:12px;font-size:15px;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.chatw-feed .msg.bot{background:#fff;border:1px solid var(--line);align-self:flex-start;border-top-left-radius:3px}
.chatw-feed .msg.me{background:var(--cc,#26B180);color:#fff;align-self:flex-end;border-top-right-radius:3px}
.chatw-in{display:flex;gap:6px;padding:9px;border-top:1px solid var(--line);background:#fff}
.chatw-in input{flex:1;border:1px solid var(--line);border-radius:20px;padding:10px 15px;font-size:15px}
.chatw-h{font-size:15.5px}
.chatw-send{display:inline-flex;align-items:center;justify-content:center;background:var(--cc,#26B180);color:#fff;border:0;border-radius:50%;width:36px;height:36px;min-width:36px;cursor:pointer;font-size:14px}
.chat-btns{display:flex;gap:7px;flex-wrap:wrap;align-self:flex-start;margin:2px 0}
.chat-btn{background:#fff;border:1.5px solid var(--cc,#26B180);color:var(--cc,#26B180);border-radius:20px;padding:7px 15px;font-size:13.5px;font-weight:600;cursor:pointer}
.chat-btn:hover{background:color-mix(in srgb,var(--cc,#26B180) 12%,#fff);color:var(--cc,#26B180)}
.chatw-actions{display:flex;gap:8px;padding:8px 10px;border-top:1px solid var(--line);background:#f6faf8}
.chatw-actions.hidden{display:none}
.chatw-act{flex:1;background:var(--cc,#26B180);color:#fff;border:0;border-radius:9px;padding:9px;font-size:13.5px;font-weight:700;cursor:pointer}
.chatw-act:last-child{flex:0 0 auto;background:#fff;color:var(--charcoal);border:1px solid var(--line)}
.chatw-act:hover{filter:brightness(.95)}
.chatw-chips{display:flex;gap:6px;flex-wrap:wrap;padding:7px 10px 0;background:#fff}
.chatw-chip{background:#fff;border:1px solid var(--cc,#26B180);color:var(--cc,#26B180);border-radius:20px;padding:5px 11px;font-size:12.5px;cursor:pointer;white-space:nowrap}
.chatw-chip:hover{background:color-mix(in srgb,var(--cc,#26B180) 12%,#fff);color:var(--cc,#26B180)}
.chatw-clip{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:50%;width:36px;height:36px;min-width:36px;cursor:pointer;font-size:16px}
.chatw-clip:hover{border-color:var(--cc,#26B180)}
.spinner{display:inline-block;width:13px;height:13px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px;margin-right:5px}
.spinner.dark{border-color:#5069a955;border-top-color:var(--indigo,#5069A9)}
@keyframes spin{to{transform:rotate(360deg)}}
.strike-grid{overflow-x:visible}
.strike-grid table.grid{width:100%;table-layout:fixed}
.strike-grid table.grid td,.strike-grid table.grid th{min-width:0 !important;word-break:break-word}
.prefbox{display:flex;gap:22px;align-items:flex-start;flex-wrap:wrap;max-width:920px}
.prefbox .prefcol{flex:1;min-width:300px}
.prefbox .menus-col{flex:0 0 290px;min-width:250px;border-left:1px solid var(--line);padding-left:18px}
@media(max-width:700px){.prefbox .menus-col{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:12px}}
.week-list{display:flex;flex-direction:column;gap:8px}
.week-card{text-align:left;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--charcoal);cursor:pointer;width:100%;transition:border-color .12s,background .12s}
.week-card:hover{border-color:var(--green);background:#fafdfb}
.week-card.sel{border-color:var(--green);background:#eef6f0;box-shadow:inset 4px 0 0 var(--green)}
.week-card .wc-top b{color:var(--charcoal)}
.week-card.sel .wc-top b{color:var(--green-deep)}
.wc-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.wc-acc{font-size:10.5px;font-weight:700;color:#fff;background:var(--green-deep);border-radius:20px;padding:1px 8px}
.wc-period{font-size:11.5px;color:#8a8a8a;margin-top:3px}
.section-break{border:0;border-top:2px solid var(--line);margin:34px 0 0}
.section-title{margin-top:18px}
.editrow td{background:#f6f8fc;padding:8px}
.editrow .maprow{margin:6px 0}
.atag{background:#ffe9e0;color:#a33;border-radius:4px;padding:0 5px;font-size:9.5px;font-weight:700}
.atog{display:inline-flex;align-items:center;gap:3px;margin:3px 8px 3px 0;font-size:12px}.atog input{width:auto}
.compliance{border-radius:10px;padding:10px 14px;margin-bottom:12px;font-size:14px}
.compliance .big{font-size:22px;font-weight:800;vertical-align:middle}
.compliance.ok{background:#eef6f0;border:1px solid var(--green);color:var(--green-deep)}
.compliance.warn{background:#fff6d6;border:1px solid var(--yellow);color:#7a5a00}
.failgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:12px}
.failbox{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.failbox.add .fb-h{background:#eef6f0}.failbox.rm .fb-h{background:#fff3f0}
.fb-h{padding:6px 10px;font-weight:700;font-size:12px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}
.fb-h span{background:#0001;border-radius:10px;padding:0 7px}
.fb-b{padding:8px 10px;display:flex;flex-wrap:wrap;gap:4px;max-height:140px;overflow:auto}
.namechip{background:#f3f5ef;border:1px solid var(--line);border-radius:6px;padding:1px 7px;font-size:11.5px}
.namechip.bad{background:#fff0ec;border-color:var(--coral);color:#a33}
table.mgr{overflow:visible}
.kgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:14px}
@media(max-width:1000px){.kgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:860px){.kgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.kgrid{grid-template-columns:1fr}}
.kbox{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.kbox-h{background:linear-gradient(90deg,var(--green),var(--green-deep));color:#fff;padding:8px 12px;font-weight:800;display:flex;justify-content:space-between}
.kbox-h span{font-weight:600;opacity:.9}
.kchip{display:inline-block;padding:1px 8px;border-radius:20px;font-size:10.5px;font-weight:500;color:#fff}
.kchip.std{background:#dfeee4;color:#2c5a3a}
/* soft allergen tags — free-of (green) vs contains (amber); never bold/shouty */
.tag{display:inline-block;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:500;margin:1px 2px}
.tag-free{background:#eaf6ee;color:#117a5e;border:1px solid #cfe8d8}
.tag-contains{background:#fdeee4;color:#a0461a;border:1px solid #f3d7c4}
/* unified diet/allergen chip — one shape everywhere, registry colour inline. free/cohort=solid, contains=outlined */
.dchip{display:inline-block;padding:2px 9px;border-radius:20px;font-size:10.5px;font-weight:600;color:#fff;margin:1px 2px;border:1.5px solid transparent;line-height:1.6}
.dchip-out{background:#fff!important}
.chipf{border:1px solid var(--indigo,#5069A9);background:#fff;color:var(--indigo,#5069A9);border-radius:20px;padding:2px 10px;font-size:11px;font-weight:600;cursor:pointer}
.chipf.on{background:var(--indigo,#5069A9);color:#fff}
/* Dispatch / stickers A4 */
.dispatch-wrap{background:#e8e8e8;padding:16px;border-radius:10px}
.a4{background:#fff;max-width:820px;margin:0 auto;padding:14px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;box-shadow:0 2px 10px #0002}
.sticker{border:1px solid #ccc;border-radius:6px;padding:8px;font-size:11px;cursor:pointer;position:relative;min-height:96px}
.sticker:hover{outline:2px solid var(--green)}
.st-top{display:flex;justify-content:space-between;align-items:flex-start;gap:4px}
.st-top b{color:#7a1f3d;font-size:10.5px;line-height:1.1}
.st-slot{color:#fff;font-size:8px;font-weight:700;padding:2px 5px;border-radius:3px;white-space:nowrap}
.st-body{display:flex;justify-content:space-between;align-items:flex-end;margin-top:6px;gap:6px}
.st-dish{font-weight:600;font-size:11px;line-height:1.2}
.st-count{border:2px solid #333;border-radius:5px;padding:1px 8px;font-weight:800;font-size:15px;min-width:30px;text-align:center}
.st-tag{color:#cf2e2e;font-weight:800;font-size:10px;margin-top:4px}
.st-class{font-weight:700;font-size:10px;margin-top:3px;text-transform:uppercase}
.st-child{font-size:10px;color:#333;margin-top:2px}
.sticker-drawer{position:fixed;top:0;right:0;bottom:0;width:340px;background:#fff;border-left:1px solid var(--line);box-shadow:-10px 0 30px #0003;z-index:96;overflow:auto}
.sd-h{background:linear-gradient(90deg,var(--green),var(--green-deep));color:#fff;padding:12px 14px;font-weight:800;display:flex;justify-content:space-between}
.sd-h a{color:#fff;cursor:pointer}.sd-b{padding:14px}.sd-b ul{margin:4px 0;padding-left:18px}.sd-b li{font-size:13px}
@media print{ nav,header,#lille,#lilleEmblem,.filters,.subnav{display:none!important} .dispatch-wrap{background:#fff;padding:0} .a4{box-shadow:none} }
.tag-st{padding:2px 9px;border-radius:20px;font-size:11px;font-weight:700}
.tag-st.acc{background:var(--green);color:#fff}
.tag-st.off{background:var(--yellow);color:#5a4a00}
.tag-st.none{background:#e2e2e2;color:#777}
.assigndd{position:relative;display:inline-block}
.assigndd summary{cursor:pointer;list-style:none;min-width:80px}
.assigndd summary::-webkit-details-marker{display:none}
.assigndd .dd-panel{position:absolute;z-index:20;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px;box-shadow:0 8px 24px #0002;min-width:220px;margin-top:4px}
.btn-outline-green{background:#fff;color:var(--green-deep);border:2px solid var(--green);font-weight:700}
.btn-outline-green:hover{background:var(--green);color:#fff}
.btn-applyall{background:#fff;color:var(--coral);border:2px solid var(--coral);font-weight:800;letter-spacing:.02em}
.btn-applyall:hover{background:var(--coral);color:#fff}
.modal-ov{position:fixed;inset:0;background:#0006;display:grid;place-items:center;z-index:100}
.modal{background:#fff;border-radius:14px;padding:22px;width:440px;max-width:92vw;box-shadow:0 20px 60px #0004}
.modal .maprow{grid-template-columns:120px 1fr}
.menu-strip{background:#faf9f3;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:14px}
.menu-strip table{border:0;background:transparent} .menu-strip tr.sel td{background:#eef6f0}

/* attendance matrix */
table.grid{font-size:12px;min-width:max-content}
table.grid th.sticky,table.grid td.sticky{position:sticky;left:0;background:#fff;z-index:1;min-width:150px;box-shadow:1px 0 0 var(--line)}
table.grid th.sticky{background:#faf9f3}
table.grid th.day{text-align:center;padding:4px 5px;font-size:10px;line-height:1.2;white-space:nowrap}
table.grid th.day .dnum{font-size:12px;color:var(--charcoal)}
table.grid td.att{text-align:center;padding:4px 6px}
td.att.yes{color:var(--green-deep);font-weight:800;background:#eef6f0}
td.att.no{background:#fafafa}
tr.clickable:hover td.sticky{background:#faf9f3}

.badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:700;background:var(--pale);color:#2c5a3a}
.badge.admin{background:var(--purple);color:#fff}.badge.leela{background:var(--green);color:#fff}
.badge.nursery{background:var(--indigo);color:#fff}.badge.parent{background:var(--coral);color:#fff}
.flag{display:inline-block;padding:1px 7px;border-radius:6px;font-size:11px;font-weight:700;background:var(--yellow);color:#5a4a00;margin:1px}
.impersonating{background:#fff6d6;border:1px solid var(--yellow);padding:8px 14px;border-radius:10px;margin-bottom:14px;font-size:13px}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin-bottom:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px 12px}
.card .n{font-size:24px;font-weight:800;color:var(--green)} .card .l{font-size:11px;color:#8a8a8a;text-transform:uppercase;letter-spacing:.03em}

table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
th,td{text-align:left;padding:4px 8px;font-size:12px;border-bottom:1px solid var(--line);line-height:1.3}
th{background:#faf9f3;font-size:10px;text-transform:uppercase;letter-spacing:.03em;color:#8a8a8a;font-weight:700}
tr:hover td{background:#faf9f3} tr.clickable{cursor:pointer}
h2{font-weight:700;margin:0 0 4px} h3{margin:18px 0 8px;font-weight:700}
.sub{color:#8a8a8a;margin:0 0 16px;font-size:14px}
.row{display:flex;gap:18px;flex-wrap:wrap} .col{flex:1;min-width:280px}
.prov{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:12px}
.prov h4{margin:0 0 10px;text-transform:capitalize;display:flex;justify-content:space-between;align-items:center}
.prov .grid{display:grid;grid-template-columns:90px 1fr;gap:8px;align-items:center;margin-bottom:8px}
.dot{width:9px;height:9px;border-radius:50%;display:inline-block;background:#ccc}.dot.on{background:var(--green)}
.toolbar{display:flex;gap:10px;margin-bottom:14px;align-items:center;flex-wrap:wrap}
.ok{color:var(--green-deep);font-weight:600}.bad{color:var(--coral);font-weight:600}
.back{cursor:pointer;color:var(--indigo);font-weight:600;margin-bottom:10px;display:inline-block}

/* logo */
.welcome{font-family:Georgia,serif;color:var(--green,#1AAA82);font-size:15px;letter-spacing:1px;margin:0 0 6px;text-align:center;opacity:.8}
.login-logo{width:260px;max-width:80%;height:auto;display:block;margin:0 auto 12px}
a.logo{display:inline-flex;align-items:center;text-decoration:none;cursor:pointer}
a.logo:hover{opacity:.85}
.logo img{height:46px;width:auto;vertical-align:middle;display:block}

/* filters */
.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:14px}
.filters label{font-size:11px;color:#8a8a8a;text-transform:uppercase;letter-spacing:.04em;display:block;margin-bottom:3px}
.filters .fg{display:flex;flex-direction:column} .filters select,.filters input{min-width:130px}
.filters .count{margin-left:auto;font-weight:700;color:var(--green-deep);align-self:center}
.filters{align-items:flex-end}
.filters button{height:36px}
/* table sits in a matching card flush under the filters bar → one aligned unit */
.filters.attached{margin-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:0}
.gridwrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 12px 12px;padding:0 12px 12px;margin-bottom:14px}

/* AI dock */
.aidock{margin-top:26px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.aidock .head{background:linear-gradient(90deg,var(--green),var(--green-deep));color:#fff;padding:11px 16px;font-weight:700;display:flex;align-items:center;gap:8px}
.aidock .body{padding:14px 16px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.chip{background:var(--pale);color:#2c5a3a;border:0;border-radius:20px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer}
.chip:hover{background:#bcd6a8}
.airesult{background:#faf9f3;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:12px;min-height:20px;font-size:13.5px}
.airesult .narr{background:#eef6f0;border-left:3px solid var(--green);padding:8px 11px;border-radius:6px;margin-bottom:10px}
.airesult .src{font-size:11px;color:#9a988e;margin-top:6px}
.chatrow{display:flex;gap:8px}.chatrow input{flex:1}
.kv{display:grid;grid-template-columns:1fr auto;gap:2px 14px;max-width:420px}
.kv .k{padding:4px 0;border-bottom:1px solid var(--line)}.kv .v{padding:4px 0;border-bottom:1px solid var(--line);font-weight:700;text-align:right}

/* Menu Master — meal list view (rows -> sub-recipe tabs -> ingredients) */
.mlist{width:100%;border-collapse:collapse;font-size:13px}
.mlist thead th{text-align:left;font-size:11px;color:#8a8a8a;font-weight:600;border-bottom:1px solid var(--line);padding:6px 8px}
.mlrow{cursor:pointer;border-bottom:1px solid var(--line)}
.mlrow:hover{background:#f6faf7}
.mlrow.open{background:#eef6f0}
.mlrow td{padding:7px 8px;vertical-align:middle}
.mltw{color:#8a8a8a;text-align:center;width:24px}
.mlexp td{padding:0}
.mlexp-cell{background:#fbfdfb;border-bottom:2px solid var(--green,#26B180);padding:10px 14px 14px!important}
.mltabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:8px;border-bottom:1px solid var(--line)}
.mltab{background:transparent;color:#6a6a6a;border:0;border-bottom:3px solid transparent;border-radius:0;padding:6px 12px;font-weight:600;font-size:12px;letter-spacing:.3px}
.mltab.on{color:var(--charcoal);border-bottom-color:var(--green)}
.mlingr{width:100%;border-collapse:collapse;font-size:12.5px;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mlingr thead th{background:#f3f5ef;text-align:left;font-size:11px;color:#6a6a6a;padding:5px 8px;border-bottom:1px solid var(--line)}
.mlingr td{padding:5px 8px;border-bottom:1px solid #eef0ea}
.mlingr tr:last-child td{border-bottom:0}
.mlfoot{margin-top:8px;font-size:12.5px;color:#3D3D3C}

/* legible multi-slot chip in the meal catalog (was .kchip = white-on-white) */
.slottag{display:inline-block;padding:2px 9px;margin:1px 2px;border-radius:20px;font-size:11px;font-weight:600;background:#eef2fb;color:#3a4a6b;border:1px solid #d6def0;white-space:nowrap}

/* new-enrollment (new students) — maroon-muted prominence */
.newtag{display:inline-block;background:#f3e3e9;color:#7a1f3d;border:1px solid #e3c3cf;border-radius:20px;padding:1px 9px;font-size:11px;font-weight:700;white-space:nowrap}
details.newenroll{border:1px solid #b06a82;background:#f9f1f4}
details.newenroll>summary h3{color:#7a1f3d}

/* A7 print cards + A3 connection map */
.card-doc{max-width:760px;margin:0 auto;color:var(--charcoal);font-size:13px}
.card-doc.land{max-width:1040px}
.cd-head{display:flex;align-items:center;gap:12px;border-bottom:3px solid var(--green-deep,#1AAA82);padding-bottom:10px;margin-bottom:14px}
.cd-logo{height:48px;width:auto}
.cd-brand{font-family:Georgia,serif;font-size:22px;color:#117a5e}.cd-brand i{font-style:italic}
.cd-sub{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#8a8a8a}
.cd-title{font-family:Georgia,serif;color:#117a5e;font-size:26px;margin:0 0 8px}
.cd-ref{font-size:13px;color:#9a988e;font-family:inherit}
.cd-sub{margin:0 0 10px}
.cd-tags{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.cd-pill{display:inline-block;padding:4px 11px;border-radius:20px;font-size:12px;background:#eef2fb;color:#3a4a6b;font-weight:600}
.cd-free{background:#eaf6ee;color:#117a5e}.cd-cont{background:#fff3e6;color:#a05a00}
.cd-2col{display:grid;grid-template-columns:1fr 280px;gap:20px;margin-top:10px}
.cd-h3{color:#117a5e;border-bottom:1px solid var(--pale,#CADEBA);padding-bottom:3px;margin:0 0 6px;font-size:14px}
.cd-h4{color:#555;margin:10px 0 3px;font-size:12px}
.cd-tbl{width:100%;border-collapse:collapse;font-size:12px}
.cd-tbl th,.cd-tbl td{border-bottom:1px solid #eef0ea;padding:4px 6px;text-align:left}
.cd-tbl thead th{color:#117a5e;border-bottom:1px solid var(--pale,#CADEBA)}
.cd-nut{width:100%;border-collapse:collapse}
.cd-nut th{text-align:left;padding:5px 6px;font-weight:600;border-bottom:1px solid #eef0ea}
.cd-nut td{text-align:right;padding:5px 6px;border-bottom:1px solid #eef0ea;font-variant-numeric:tabular-nums}
.cd-nutbig{max-width:360px;font-size:15px;margin:14px 0}
.cd-nutbig .cd-nut th,.cd-nutbig .cd-nut td{padding:9px 8px}
.cd-warn{color:var(--coral);font-weight:700;margin-top:8px}
.cd-menu{width:100%;border-collapse:collapse;font-size:12px;margin-top:8px}
.cd-menu th,.cd-menu td{border:1px solid var(--pale,#CADEBA);padding:6px 8px;vertical-align:top}
.cd-menu thead th{background:#117a5e;color:#fff}.cd-menu tbody th{background:#eaf6ee;color:#117a5e;white-space:nowrap}
.cd-foot{display:flex;justify-content:space-between;border-top:1px solid var(--pale,#CADEBA);margin-top:16px;padding-top:8px;font-size:11px;color:#9a988e}
.cd-poster{text-align:center}
.cd-poster-h{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:14px}
.cd-poster-h img{height:70px}
.cd-poster-brand{font-family:Georgia,serif;font-size:20px;color:#117a5e}.cd-poster-brand i{font-style:italic}
.cd-poster-t{font-family:Georgia,serif;font-size:34px;color:#117a5e;line-height:1}
.cd-poster-d{color:#8a8a8a;font-size:13px}
.cd-poster .cd-menu{font-size:14px}.cd-poster .cd-menu td{height:46px}
.cd-poster-f{margin-top:14px;font-style:italic;color:#117a5e;font-size:15px}
/* A3 map */
.cm-wrap{padding:6px 2px}
.cm-row{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-bottom:10px}
.cm-row2{gap:10px}
.cm-node{background:#f3faf4;border:1px solid var(--green,#26B180);border-radius:8px;padding:7px 11px;display:flex;flex-direction:column;min-width:90px}
.cm-node b{font-size:12.5px;color:#117a5e}.cm-node span{font-size:10px;color:#8a8a8a}
.cm-arr{color:var(--green-deep,#1AAA82);font-weight:700;font-size:16px}
.cm-legend{font-size:11.5px;color:#5a6b60;margin:6px 0 0}

/* new-enrollment rows in the leela batch view */
.row-new td{background:#fdecec}
.row-new td.sticky b,.row-new td.sticky{color:#a31515}

/* AI "Generate with AI" — Fia purple action button + generator panel */
.btn-ai{background:linear-gradient(92deg,#672069,#9b51e0);color:#fff;border:0;border-radius:8px;padding:9px 15px;font-weight:700;cursor:pointer;box-shadow:0 2px 10px #67206933}
.btn-ai:hover{filter:brightness(1.07)}
.btn-ai:disabled{opacity:.6;cursor:not-allowed}
.ai-genpanel{border:1px solid #9b51e0;background:linear-gradient(180deg,#faf5fd,#fff);border-radius:12px;padding:12px 14px;margin-bottom:14px;box-shadow:0 6px 20px #67206918}
.ai-genhead{font-weight:800;color:#672069;display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ai-genhead .back{margin-left:auto;font-weight:600}
.ai-genbody{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.ai-genbody .fg{display:flex;flex-direction:column;gap:3px}
.ai-genbody .fg>label{font-size:11px;color:#7a5a8a;font-weight:600}
.ai-genbody .chipf.on{background:#672069;color:#fff;border-color:#672069}

/* leela pending new-student expander */
.pexp-tog{display:inline-block;width:12px;color:var(--green-deep,#1AAA82);font-weight:700;cursor:pointer}
.pdet-card{background:#fafbf8;border-left:3px solid var(--indigo,#5069A9);padding:10px 14px;margin:0}
.pdet-meta{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:8px}
.pdet-kv{display:flex;flex-direction:column;font-size:13px}
.pdet-kv label{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#8a8a8a}
.pdet-sec{font-size:13px;margin-top:6px}
.pdet-sec>label{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#8a8a8a;display:block;margin-bottom:3px}
.pdet-att{display:flex;flex-wrap:wrap;gap:5px}
.att-cell{border:1px solid var(--line);border-radius:7px;padding:4px 7px;text-align:center;min-width:46px;background:#fff}
.att-cell .ac-d{font-size:9px;color:#8a8a8a;display:block;text-transform:uppercase}
.att-cell b{font-size:12px}
.att-cell .att.yes{color:#1AAA82;font-weight:700;font-size:11px}

/* nursery roster: pending new student (awaiting Leela ID) */
.row-pending td,table.grid tr.row-pending td.sticky{background:#fdecec!important}
.row-pending td.sticky{color:#a31515;font-weight:600}

.dt-head{font-size:11px;color:#8a8a8a;font-weight:700;text-transform:uppercase;letter-spacing:.3px;border-bottom:2px solid var(--line);background:#f6f5f1}

.att.frozen{background:#f1efe8;color:#9a8f6a;font-size:10px;cursor:not-allowed}
.day.frozen{background:#f1efe8;color:#9a8f6a}

/* roster: weekend columns (grey, no check) + sticky date header on scroll */
td.att.weekend{background:#eceae3}
table.grid th.day.weekend{background:#e3e0d6;color:#8a8068}
table.grid thead th{position:sticky;top:0;z-index:3}
table.grid thead th.day{background:#faf9f3}
table.grid thead th.sticky{top:0;left:0;z-index:6}
