/* Layout: app mobile-first, colonne centrée, barre d'onglets fixe en bas ; chaque famille a sa couleur */
:root{
  --bg:#F7F5FB; --surface:#FFFFFF; --sunk:#F0EDF6; --ink:#2E2A3A; --muted:#6C6680; --line:#E6E1EF;
  --accent:#3B8A66; --accent-ink:#FFFFFF; --accent-soft:#E0F3E8;
  --f1:#3E7CA8; --f1-soft:#E2EFF9; --f2:#B9507A; --f2-soft:#FBE5EE; --off:#8E8A9C;
  --warn:#9A6400;
  /* teintes pastel des rubriques */
  --mint:#E6F6EE; --lavender:#EEEAFB; --peach:#FDEDE1; --butter:#FFF6DA; --sky:#E4F1FB;
  --nap:#8E86D9; --nap-2:#C4BEF0;
  --display:"Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body:"Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --r:14px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#16141D; --surface:#1F1C28; --sunk:#191621; --ink:#ECE8F4; --muted:#A39DB5; --line:#302C3C;
  --accent:#7FCBA2; --accent-ink:#10201A; --accent-soft:#1E3329;
  --f1:#86BCE0; --f1-soft:#1C2C3A; --f2:#EC9BBB; --f2-soft:#3A2230; --off:#7E7990; --warn:#E0B04F;
  --mint:#1C2C25; --lavender:#25213A; --peach:#33251E; --butter:#302A18; --sky:#1B2A36;
  --nap:#A69FEA; --nap-2:#5F57A8;
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#16141D; --surface:#1F1C28; --sunk:#191621; --ink:#ECE8F4; --muted:#A39DB5; --line:#302C3C;
  --accent:#7FCBA2; --accent-ink:#10201A; --accent-soft:#1E3329;
  --f1:#86BCE0; --f1-soft:#1C2C3A; --f2:#EC9BBB; --f2-soft:#3A2230; --off:#7E7990; --warn:#E0B04F;
  --mint:#1C2C25; --lavender:#25213A; --peach:#33251E; --butter:#302A18; --sky:#1B2A36;
  --nap:#A69FEA; --nap-2:#5F57A8;
  color-scheme:dark}
*{box-sizing:border-box}
html,body{background:var(--bg)}
body{color:var(--ink);font:15px/1.45 var(--body);font-variant-numeric:tabular-nums}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--surface)}
.wrap{max-width:640px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
h1,h2,h3{font-family:var(--display);margin:0;line-height:1.15;text-wrap:balance}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* En-tête */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--surface);border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;gap:12px;padding-block:10px}
.brand{font-family:var(--display);font-weight:700;font-size:19px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand small{display:block;font-family:var(--body);font-weight:600;font-size:12px;color:var(--muted);letter-spacing:.02em}
.role{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.role select{border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:6px 10px;font-weight:700;font-size:13px;max-width:46vw}

main{padding-block:16px 110px;display:grid;gap:16px}
.note-bar{border-radius:10px;padding:10px 12px;font-size:13px;background:var(--sunk);color:var(--muted)}
.note-bar.warn{color:var(--warn)}

/* Navigation date */
.daynav{display:flex;align-items:center;gap:8px}
.daynav h2{flex:1;font-size:24px;text-transform:capitalize}
.iconbtn{width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;flex:none}
.iconbtn svg{width:20px;height:20px}
.pill{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 12px;font-weight:700;font-size:13px}

/* Bandeau lieu de garde */
.where{border-radius:var(--r);padding:14px 16px;display:grid;gap:2px;background:var(--sunk)}
.where.f1{background:var(--f1-soft)} .where.f2{background:var(--f2-soft)}
.where .lbl{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.where .val{font-family:var(--display);font-weight:700;font-size:21px}
.where.f1 .val{color:var(--f1)} .where.f2 .val{color:var(--f2)}
.where .sub{color:var(--muted);font-size:13px}

/* Fiche enfant */
.child{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.child-h{display:flex;align-items:center;gap:12px;padding:14px 16px;width:100%;border:0;background:none;text-align:left}
.child.open .child-h{border-bottom:1px solid var(--line)}
.child-id{min-width:0}
.child-id .meta{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mot{color:var(--accent)}
.chev{flex:none;width:22px;height:22px;color:var(--muted);transition:transform .15s}
.chev svg{width:22px;height:22px}
.child.open .chev{transform:rotate(90deg)}
.avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:20px;color:var(--surface);flex:none}
.avatar.f1{background:var(--f1)} .avatar.f2{background:var(--f2)}
.child-h h3{font-size:20px}
.child-h .meta{font-size:12.5px;color:var(--muted)}
.child-h .stamp{margin-left:auto;font-size:12px;color:var(--muted);text-align:right}
.child-b{padding:14px 16px 16px;display:grid;gap:16px}
.sec-t{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}

.tiles{display:grid;gap:10px}
.tile{border:1px solid var(--line);border-radius:var(--r);padding:10px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;background:var(--bg)}
.tile .ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line)}
.tile .ic svg{width:28px;height:28px}
.tile .tx{min-width:0}
.tile .tx b{display:block;font-family:var(--display);font-size:24px;line-height:1}
.tile .tx span{font-size:12.5px;color:var(--muted)}
.tile .pm{display:flex;gap:8px}
.pm button{width:52px;height:48px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-family:var(--display);font-size:24px;font-weight:700;line-height:1}
.pm button.plus{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pm button:active{transform:scale(.96)}
.pm button:disabled{opacity:.4;cursor:default;transform:none}
.ic.selles{color:#8A5A2B} .ic.pipi{color:#C49A0C} .ic.matin{color:#D08A00} .ic.aprem{color:#5B5FC7} .ic.bib{color:var(--f1)}

.sec-n{text-transform:none;letter-spacing:0;font-weight:600}
.naps{display:grid;gap:10px}
.tl{padding-inline:10px}
.tl-bar{position:relative;height:30px;border-radius:8px;background:var(--sunk);border:1px solid var(--line);overflow:hidden}
.nap{position:absolute;top:3px;bottom:3px;border-radius:5px;background:#5B5FC7}
.nap.live{background:repeating-linear-gradient(135deg,#5B5FC7 0 6px,#8C8FE0 6px 12px)}
.now{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--accent)}
.tl-ticks{position:relative;height:18px;font-size:11px;color:var(--muted)}
.tl-ticks span{position:absolute;top:3px;transform:translateX(-50%)}
.btn-big{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;border-radius:14px;border:0;background:#5B5FC7;color:#fff;font-family:var(--display);font-weight:700;font-size:18px;padding:8px 16px}
.btn-big svg{width:22px;height:22px}
.btn-big.wake{background:#D08A00}
.nap-live{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;padding:10px 12px;border-radius:14px;background:var(--sunk)}
.nap-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.nap-list li{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px}
.nap-list input{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:6px 8px}
.nap-d{color:var(--muted);min-width:60px}
.nap-x{margin-left:auto;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);font-size:18px;line-height:1;color:var(--muted)}
.meals{display:grid;gap:10px}
.meal{display:grid;gap:6px}
.meal-l{display:flex;align-items:center;gap:6px;font-weight:700;font-size:14px}
.meal-l svg{width:18px;height:18px;color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:8px 13px;font-weight:600;font-size:13.5px;min-height:38px}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.chip:disabled{cursor:default}
.chip:disabled:not([aria-pressed="true"]){opacity:.55}
.lvl{display:inline-flex;gap:2px;margin-right:6px;vertical-align:-1px}
.lvl i{width:5px;height:11px;border-radius:2px;background:currentColor;opacity:.25}
.lvl i.on{opacity:1}

textarea,.field input,.field select{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:10px 12px;resize:vertical}
textarea{min-height:70px}
textarea[readonly]{background:var(--sunk);color:var(--muted)}
.notes{display:grid;gap:12px}
.notes label{display:grid;gap:6px;font-weight:700;font-size:13.5px}
.notes label small{font-weight:600;color:var(--muted)}

/* Planning */
.month{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mstat{border-radius:var(--r);padding:12px 14px;background:var(--surface);border:1px solid var(--line)}
.mstat .who{font-weight:700;font-size:13px;display:flex;align-items:center;gap:6px}
.dot{width:10px;height:10px;border-radius:50%;flex:none}
.dot.f1{background:var(--f1)} .dot.f2{background:var(--f2)} .dot.off{background:var(--off)}
.mstat b{font-family:var(--display);font-size:24px;display:block;line-height:1.2}
.mstat span{color:var(--muted);font-size:12.5px}
.week{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.drow{display:grid;grid-template-columns:62px minmax(0,1fr);gap:10px;padding:12px 14px;border-top:1px solid var(--line);align-items:start}
.drow:first-child{border-top:0}
.drow.today{background:var(--accent-soft)}
.drow.we{opacity:.75}
.dname{font-weight:700;text-transform:capitalize;font-size:13px;color:var(--muted)}
.dname b{display:block;font-family:var(--display);font-size:24px;color:var(--ink);line-height:1}
.dbody{display:grid;gap:8px;min-width:0}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden}
.seg button{border:0;border-left:1px solid var(--line);background:var(--bg);padding:9px 4px;font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seg button:first-child{border-left:0}
.seg button[aria-pressed="true"].f1{background:var(--f1);color:var(--surface)}
.seg button[aria-pressed="true"].f2{background:var(--f2);color:var(--surface)}
.seg button[aria-pressed="true"].off{background:var(--off);color:var(--surface)}
.seg button:disabled{cursor:default}
.dline{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.dline input[type=time]{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:5px 8px}
.dline input.dnote{flex:1;min-width:140px;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:6px 10px}
.tag{font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 8px;background:var(--sunk);color:var(--muted)}
.linkbtn{border:0;background:none;color:var(--accent);font-weight:700;font-size:12.5px;padding:2px}

/* Historique */
.filters{display:flex;gap:6px;flex-wrap:wrap}
.hday{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;display:grid;gap:8px;text-align:left;width:100%}
.hday-h{display:flex;align-items:baseline;gap:8px}
.hday-h h3{font-size:18px;text-transform:capitalize}
.hday-h span{font-size:12.5px;color:var(--muted)}
.hline{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px;align-items:start;font-size:13.5px}
.hline .nm{font-weight:700;display:flex;align-items:center;gap:6px}
.hline p{margin:0;color:var(--muted)}
.hline q{grid-column:2;color:var(--ink);font-style:italic;quotes:none}

/* Réglages */
.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:12px}
.card h3{font-size:18px}
.card p.help{margin:0;color:var(--muted);font-size:13px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.field{display:grid;gap:5px;font-size:13px;font-weight:700;min-width:0}
.check{display:flex;gap:8px;align-items:center;font-size:13.5px;font-weight:600}
.check input{width:20px;height:20px;accent-color:var(--accent)}
.rythme{display:grid;grid-template-columns:auto repeat(5,minmax(0,1fr));gap:6px;align-items:center;font-size:12.5px}
.rythme .h{font-weight:700;color:var(--muted);text-align:center}
.rbtn{border:1px solid var(--line);border-radius:10px;padding:8px 2px;font-weight:700;font-size:12px;background:var(--bg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rbtn.f1{background:var(--f1);border-color:var(--f1);color:var(--surface)}
.rbtn.f2{background:var(--f2);border-color:var(--f2);color:var(--surface)}

.recap{margin:0;font-size:15px}
.nn{margin:0;padding:10px 12px;border-radius:12px;background:var(--accent-soft);font-style:italic;display:grid;gap:4px}
.nn cite{font-style:normal;font-size:12px;font-weight:700;color:var(--muted)}
.upcoming{display:grid}
.up{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:2px 10px;padding:9px 0;border-top:1px solid var(--line);align-items:center;font-size:14px}
.up:first-child{border-top:0}
.up-d{font-weight:700;color:var(--muted);text-transform:capitalize}
.up-w{display:flex;align-items:center;gap:8px;font-weight:700;min-width:0}
.up-h{color:var(--muted);font-size:13px}
.up-n{grid-column:2/-1;color:var(--muted);font-size:12.5px}
.empty{border:1px dashed var(--line);border-radius:16px;padding:20px;text-align:center;color:var(--muted)}

/* Onglets */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
.tabs .wrap{display:grid;grid-template-columns:repeat(4,1fr)}
.tabs button{border:0;background:none;padding:9px 2px 10px;display:grid;justify-items:center;gap:2px;font-size:11.5px;font-weight:700;color:var(--muted)}
.tabs button svg{width:24px;height:24px}
.tabs button[aria-current="page"]{color:var(--accent)}
#toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:9px 14px;border-radius:10px;font-size:13px;font-weight:600;max-width:calc(100% - 32px)}
@media (max-width:380px){.month{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}.pm button:active{transform:none}}

/* ---------- Application réelle : en-tête, connexion, membres ---------- */
.me{border-radius:999px;padding:6px 12px;font-weight:700;font-size:12.5px;background:var(--sunk);color:var(--ink);white-space:nowrap;max-width:50vw;overflow:hidden;text-overflow:ellipsis}
.me.f1{background:var(--f1-soft);color:var(--f1)} .me.f2{background:var(--f2-soft);color:var(--f2)} .me.nounou{background:var(--accent-soft);color:var(--accent)}
.auth{max-width:440px;width:100%;justify-self:center;margin-top:24px}
.auth hr{border:0;border-top:1px solid var(--line);margin:4px 0;width:100%}
.btn-main{min-height:48px;border-radius:14px;border:0;background:var(--accent);color:var(--accent-ink);font-family:var(--display);font-weight:700;font-size:17px;padding:8px 16px}
.btn-main:disabled{opacity:.6}
.mb-list{list-style:none;margin:0;padding:0;display:grid}
.mb-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:14px;flex-wrap:wrap}
.mb-list li:first-child{border-top:0}
.mb-n{flex:1;min-width:0;overflow-wrap:anywhere}
.mb-n small{color:var(--muted);font-weight:600}
.mb-r{color:var(--muted);font-size:12.5px;font-weight:700}
.invite{display:grid;gap:10px}
.sel{user-select:all;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
code{background:var(--sunk);padding:1px 5px;border-radius:5px}
/* ---------- Heures de repas, rapport parents, urgences ---------- */
.meal-l{flex-wrap:wrap}
.meal-t{margin-left:auto;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:4px 8px;font-size:13px;font-weight:600}
.meal-t:disabled{background:var(--sunk);color:var(--muted)}
.report{display:grid;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.rp{display:grid;grid-template-columns:30px 92px minmax(0,1fr);gap:4px 10px;align-items:center;padding:10px 12px;border-top:1px solid var(--line)}
.rp:first-child{border-top:0}
.rp-ic{width:26px;height:26px;color:var(--muted)}
.rp-ic svg{width:26px;height:26px}
.rp-ic.selles{color:#8A5A2B} .rp-ic.aprem{color:#5B5FC7} .rp-ic.bib{color:var(--f1)} .rp-ic.matin{color:#D08A00}
.rp-l{font-weight:700;font-size:13.5px;color:var(--muted)}
.rp-v{font-family:var(--display);font-weight:700;font-size:17px;line-height:1.25}
.rp-v small{font-family:var(--body);font-weight:600;font-size:13px;color:var(--muted)}
.rp-tl{grid-column:1/-1;padding-top:4px}
.urg{display:grid;gap:8px}
.urg-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:8px;align-items:center}
.urg-row input{width:100%;border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:9px 10px}
.urg-show{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.urg-show summary{font-weight:700;cursor:pointer;color:var(--f2)}
.urg-show ul{list-style:none;margin:8px 0 0;padding:0;display:grid}
.urg-show li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.urg-show a{font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}
@media (max-width:420px){.urg-row{grid-template-columns:minmax(0,1fr) auto}.urg-row input[type=tel]{grid-row:2}.rp{grid-template-columns:30px minmax(0,1fr)}.rp-v{grid-column:2}}
[hidden]{display:none!important}

/* ---------- Aliments ---------- */
.foods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.food span{overflow-wrap:anywhere}
.food{display:grid;justify-items:center;gap:3px;padding:8px 4px 7px;border:1px solid var(--line);border-radius:12px;background:var(--bg);font-size:12px;font-weight:700;line-height:1.15;color:var(--muted)}
.food svg{width:28px;height:28px;color:var(--ink)}
.food[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.food[aria-pressed="true"] svg{color:var(--accent)}
.food:active{transform:scale(.96)}
.food:disabled{cursor:default;transform:none}
.food:disabled:not([aria-pressed="true"]){opacity:.5}
.rp-foods{display:block;font-family:var(--body);font-weight:600;font-size:13.5px;color:var(--ink)}
/* ---------- Habillage pastel et illustrations ---------- */
body{background:radial-gradient(520px 260px at 0% 0%,var(--lavender),transparent 70%),radial-gradient(480px 240px at 100% 0%,var(--peach),transparent 70%),var(--bg);background-repeat:no-repeat}
.top{background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(8px)}
.brand{display:flex;align-items:center;gap:10px}
.brand .mark{width:36px;height:36px;flex:none}
.brand .mark svg{width:36px;height:36px;display:block}
.brand-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.hello{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.hello h2{font-size:24px}
.illu-mobile{width:110px;height:64px;flex:none}
.where{position:relative;padding-right:84px;min-height:84px}
.where .illu-house{position:absolute;right:14px;bottom:10px;width:58px;height:52px;color:var(--off)}
.where.f1 .illu-house{color:var(--f1)} .where.f2 .illu-house{color:var(--f2)}
.illu-bear{width:96px;height:96px;justify-self:center}
.empty{display:grid;justify-items:center;gap:8px;background:var(--surface);border-style:solid}
.illu-cloud{width:130px;height:74px}
.avatar.f1{background:var(--f1-soft);color:var(--f1)} .avatar.f2{background:var(--f2-soft);color:var(--f2)}
.child{border-color:transparent;box-shadow:0 1px 2px rgba(60,40,90,.06),0 6px 18px rgba(60,40,90,.06)}
.sec{border-radius:16px;padding:12px}
.sec-couches{background:var(--mint)} .sec-siestes{background:var(--lavender)} .sec-repas{background:var(--peach)} .sec-humeur{background:var(--butter)}
.sec .tile,.sec .chip,.sec .food,.sec .nap-list input,.sec .meal-t{background:var(--surface)}
.sec .tl-bar{background:var(--surface)}
.sec .nap-live{background:var(--surface)}
.nap{background:var(--nap)}
.nap.live{background:repeating-linear-gradient(135deg,var(--nap) 0 6px,var(--nap-2) 6px 12px)}
.btn-big{background:var(--nap)}
.btn-big.wake{background:#E0A43A}
.chip[aria-pressed="true"],.food[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.sec .chip[aria-pressed="true"],.sec .food[aria-pressed="true"]{background:var(--accent-soft)}
.rp-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--sunk)}
.rp-ic svg{width:18px;height:18px}
.rp-ic.selles{background:var(--mint)} .rp-ic.aprem{background:var(--lavender);color:var(--nap)} .rp-ic.bib{background:var(--sky)} .rp-ic.matin{background:var(--butter)}
.rp-ic.repas{background:var(--peach);color:#C7845A}
.nn{background:var(--mint)}
.tabs{background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px)}
.tabs button[aria-current="page"] svg{background:var(--accent-soft);border-radius:999px;padding:2px 12px;box-sizing:content-box}
.card,.week,.mstat,.hday{border-color:var(--line)}
/* ---------- Planning : lecture simple, édition au toucher ---------- */
.drow{display:block;padding:0}
.dsum{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;padding:10px 14px;border:0;background:none;text-align:left}
.dsum:disabled{cursor:default}
.dwho{display:grid;gap:1px;padding:9px 12px;border-radius:12px;background:var(--sunk);min-width:0}
.dwho.f1{background:var(--f1-soft)} .dwho.f2{background:var(--f2-soft)}
.dwho-t{font-family:var(--display);font-weight:700;font-size:17px;line-height:1.2;color:var(--muted)}
.dwho.f1 .dwho-t{color:var(--f1)} .dwho.f2 .dwho-t{color:var(--f2)}
.dwho-h{font-size:12.5px;font-weight:600;color:var(--muted)}
.dwho-n{font-size:12.5px;color:var(--ink);overflow-wrap:anywhere}
.drow.we .dwho{background:none;padding-block:4px}
.drow.open{background:var(--bg)}
.dedit{display:grid;gap:10px;padding:0 14px 14px 82px}
.dedit .dnote{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 10px}
.dedit .seg button{background:var(--surface)}
@media (max-width:420px){.dedit{padding-left:14px}.dedit .seg{grid-template-columns:minmax(0,1fr)}.dedit .seg button{border-left:0;border-top:1px solid var(--line)}.dedit .seg button:first-child{border-top:0}}