:root{--fond:#f6f7f9;--surface:#fff;--surface-2:#eef1f5;--texte:#1c2430;--discret:#5b6676;--accent:#2f5d8a;--accent-texte:#fff;--bordure:#e2e6ec;--danger:#b42318;--ok:#1f7a4d;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--fond:#12161c;--surface:#1c222b;--surface-2:#252d38;--texte:#e8ecf1;--discret:#9aa5b4;--accent:#7fb0e0;--accent-texte:#0d1a26;--bordure:#2c3440;--danger:#f08a80;--ok:#6fd3a0;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--fond:#12161c;--surface:#1c222b;--surface-2:#252d38;--texte:#e8ecf1;--discret:#9aa5b4;--accent:#7fb0e0;--accent-texte:#0d1a26;--bordure:#2c3440;--danger:#f08a80;--ok:#6fd3a0;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--fond);color:var(--texte);-webkit-tap-highlight-color:transparent;margin:0}button,input,select{font:inherit;color:inherit}.app{flex-direction:column;min-height:100dvh;display:flex}.entete{z-index:2;padding:calc(env(safe-area-inset-top) + 8px) 12px 8px 16px;background:var(--surface);border-bottom:1px solid var(--bordure);letter-spacing:.01em;color:var(--accent);justify-content:space-between;align-items:center;font-weight:700;display:flex;position:sticky;top:0}.entete-droite{align-items:center;gap:8px;display:flex}.etat{letter-spacing:0;color:var(--discret);background:var(--surface-2);border-radius:99px;padding:3px 8px;font-size:.75rem;font-weight:500}.contenu{padding:16px 16px calc(96px + env(safe-area-inset-bottom));flex:1;width:100%;max-width:720px;margin:0 auto}h1{margin:4px 0 16px;font-size:1.5rem}h2{margin:0 0 6px;font-size:1.1rem}h3{text-transform:uppercase;letter-spacing:.06em;color:var(--discret);margin:18px 0 6px;font-size:.8rem}.carte{background:var(--surface);border:1px solid var(--bordure);border-radius:14px;margin-bottom:12px;padding:14px 16px}.discret{color:var(--discret);margin:0;line-height:1.45}.vide{text-align:center;padding:24px 0}.info{color:var(--ok);margin:0}.erreur{color:var(--danger);margin:0}.nav-basse{z-index:2;background:var(--surface);border-top:1px solid var(--bordure);padding-bottom:env(safe-area-inset-bottom);grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.nav-basse a{min-height:60px;color:var(--discret);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:.8rem;text-decoration:none;display:flex}.nav-basse a span{font-size:1.35rem}.nav-basse a.actif{color:var(--accent);font-weight:600}.bouton{cursor:pointer;border:1px solid var(--bordure);background:var(--surface-2);border-radius:12px;min-height:44px;padding:0 16px;font-weight:600}.bouton.principal{background:var(--accent);color:var(--accent-texte);border-color:var(--accent)}.bouton.danger{color:var(--danger)}.bouton:disabled{opacity:.45;cursor:default}.lien{color:var(--accent);cursor:pointer;background:0 0;border:0;padding:8px 0}.lien.danger{color:var(--danger);margin-top:16px;display:block}.icone{cursor:pointer;min-width:44px;min-height:44px;color:var(--discret);background:0 0;border:0;font-size:1.2rem}input,select{border:1px solid var(--bordure);background:var(--surface);border-radius:10px;width:100%;min-height:44px;padding:8px 12px;font-size:16px}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:var(--accent);flex:none;margin:0}.formulaire{flex-direction:column;gap:12px;display:flex}.formulaire label{color:var(--discret);flex-direction:column;gap:4px;font-size:.9rem;display:flex}.deux-colonnes{grid-template-columns:1fr 1fr;gap:10px;display:grid}.liens{flex-wrap:wrap;justify-content:space-between;gap:8px;display:flex}.ecran-centre{flex-direction:column;justify-content:center;max-width:440px;min-height:100dvh;margin:0 auto;padding:24px 16px;display:flex}.logo{text-align:center;color:var(--accent);letter-spacing:.02em}.segments{background:var(--surface-2);border-radius:12px;grid-template-columns:1fr 1fr;margin-bottom:14px;padding:4px;display:grid}.segments button{min-height:40px;color:var(--discret);cursor:pointer;background:0 0;border:0;border-radius:9px;font-weight:600}.segments button.actif{background:var(--surface);color:var(--texte);box-shadow:0 1px 2px #0000001f}.barre-ajout{gap:8px;margin-bottom:10px;display:flex}.barre-ajout .bouton{flex:none;min-width:48px;font-size:1.3rem}.puces{scrollbar-width:none;gap:6px;margin-bottom:6px;padding-bottom:6px;display:flex;overflow-x:auto}.puce{border:1px solid var(--bordure);background:var(--surface);cursor:pointer;white-space:nowrap;border-radius:99px;flex:none;min-height:36px;padding:6px 12px}.puce.active{background:var(--accent);color:var(--accent-texte);border-color:var(--accent)}.liste{background:var(--surface);border:1px solid var(--bordure);border-radius:14px;margin:0;padding:0;list-style:none;overflow:hidden}.liste li{border-bottom:1px solid var(--bordure);align-items:center;padding-left:12px;display:flex}.liste li:last-child{border-bottom:0}.case{cursor:pointer;flex:1;align-items:center;gap:12px;min-height:52px;padding:8px 0;display:flex}.case>span{flex-direction:column;line-height:1.3;display:flex}.liste li.fait .case>span{color:var(--discret);text-decoration:line-through}.meta{color:var(--discret);flex-wrap:wrap;gap:8px;margin-top:2px;font-size:.78rem;display:flex}.retard{color:var(--danger);font-weight:600}.badge{background:var(--surface-2);border-radius:6px;padding:0 6px}.prio{color:var(--danger);margin-right:6px;font-weight:800}.interrupteur{color:var(--discret);align-items:center;gap:10px;margin:4px 0 12px;font-size:.9rem;display:flex}.actions-bas{gap:8px;margin-top:16px;display:flex}.actions-bas .bouton{flex:1}.fond-modal{z-index:10;background:#00000073;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.modal{background:var(--surface);width:100%;max-width:560px;max-height:90dvh;padding:18px 16px calc(18px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;overflow-y:auto}.titre-modal{justify-content:space-between;align-items:center;display:flex}.bloc{border-top:1px solid var(--bordure);flex-direction:column;gap:8px;padding-top:12px;display:flex}.bloc h3{margin:0}.bloc summary{cursor:pointer;color:var(--danger)}.code{letter-spacing:.15em;font-family:ui-monospace,monospace;font-size:1.2rem}.champ{flex-direction:column;gap:6px;display:flex}.libelle{color:var(--discret);font-size:.9rem}.grille-emoji{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;display:grid}.emoji{aspect-ratio:1;background:var(--surface-2);cursor:pointer;border:2px solid #0000;border-radius:10px;min-width:0;min-height:36px;padding:0;font-size:1.3rem}.emoji.choisi{border-color:var(--accent);background:var(--surface)}.apercu{text-align:center;margin:4px 0;font-size:1.2rem;font-weight:600}.sous-titre{color:var(--discret);margin:-10px 0 16px;font-weight:600}@media (width<=340px){.grille-emoji{grid-template-columns:repeat(4,minmax(0,1fr))}}.cal-entete{justify-content:space-between;align-items:center;display:flex}.cal-entete h2{text-transform:capitalize;margin:0}.cal-entete .icone{color:var(--texte);font-size:1.6rem}.cal-grille{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:6px;display:grid}.cal-jour-nom{text-align:center;color:var(--discret);padding:4px 0;font-size:.75rem}.cal-case{cursor:pointer;background:0 0;border:0;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-height:44px;padding:2px 0;font-size:.95rem;display:flex}.cal-case .points{height:8px;color:var(--accent);letter-spacing:1px;font-size:.7rem;line-height:8px}.cal-case.hors-mois{color:var(--discret);opacity:.5}.cal-case.aujourdhui{color:var(--accent);font-weight:800}.cal-case.choisi{background:var(--accent);color:var(--accent-texte)}.cal-case.choisi .points{color:var(--accent-texte)}.cal-jour{border-top:1px solid var(--bordure);margin-top:10px;padding-top:4px}.cal-jour h3{text-transform:none;letter-spacing:0;color:var(--texte);font-size:.95rem}.cal-jour h3:first-letter{text-transform:uppercase}.liste-evt{flex-direction:column;gap:6px;margin:0 0 10px;padding:0;list-style:none;display:flex}.evt{text-align:left;background:var(--surface-2);cursor:pointer;border:0;border-radius:10px;align-items:flex-start;gap:12px;width:100%;padding:10px 12px;display:flex}.evt-heure{color:var(--accent);min-width:52px;font-size:.9rem;font-weight:700}.evt-texte{flex-direction:column;display:flex}.plein{width:100%}.formulaire label.interrupteur{color:var(--texte);flex-direction:row;align-items:center;margin:0}.petit{margin-top:6px;font-size:.85rem}.positif{color:var(--ok)}.negatif{color:var(--danger)}.bilan{text-align:center;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 10px;display:grid}.bilan div{background:var(--surface-2);border-radius:10px;flex-direction:column;gap:2px;min-width:0;padding:8px 4px;display:flex}.bilan small{color:var(--discret);font-size:.78rem}.bilan strong{overflow-wrap:anywhere;font-size:1rem}.jauge{background:var(--surface-2);border-radius:99px;width:100%;height:8px;display:block;overflow:hidden}.jauge span{background:var(--ok);border-radius:99px;height:100%;display:block}.jauge.alerte span{background:#d08a12}.jauge.depasse span{background:var(--danger)}.actions-bas.haut{margin:0 0 4px}.titre-section{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.titre-section .lien{font-size:.85rem}:is(.liste li:has(>.ligne-cat),.liste li:has(>.ligne-op)){padding-left:0}.ligne-cat{cursor:pointer;text-align:left;background:0 0;border:0;grid-template-columns:1fr auto;align-items:center;gap:6px 10px;width:100%;padding:12px;display:grid}.ligne-cat .jauge{grid-column:1/-1}.ligne-cat.choisie{background:var(--surface-2)}.cat-montant{white-space:nowrap;font-weight:600}.cat-montant small{color:var(--discret);font-weight:400}.ligne-op{cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 12px;display:flex}.op-emoji{flex:none;font-size:1.3rem}.op-texte{flex-direction:column;flex:1;min-width:0;display:flex}.op-montant{white-space:nowrap;font-weight:700}.puces.enveloppe{flex-wrap:wrap;overflow:visible}.liste-cat{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.ligne-edit-cat{grid-template-columns:48px minmax(0,1fr) 96px 44px;align-items:center;gap:6px;display:grid}.ligne-edit-cat input{padding:8px}.champ-emoji{text-align:center}
