@font-face { font-family: 'Space Grotesk'; src: url(/fonts/space-grotesk.woff2) format('woff2'); font-weight: 300 700; }
/* Deux modes : nuit (les couleurs du site et de l'admin) et jour. apparence.js pose
   data-mode="jour" ou "nuit" sur <html> avant le premier rendu, selon le réglage du
   client ou, en automatique, celui de son appareil. Les blancs transparents passent par
   --fg-rgb : blancs la nuit, encre le jour. Restent toujours de nuit : les captures du Shelly et la carte de pluie.
   La carte énergie et la maquette 3D suivent le mode choisi. */
:root, :root[data-mode="jour"] :is(.sh-fig, .rmap) {
  color-scheme: dark;
  --fg-rgb: 255 255 255; --veil-rgb: 14 14 13;
  --bg: #0d0d0d; --surface: #161615; --surface-2: #1a1a19; --glass: rgb(var(--fg-rgb) / .031); --line: rgb(var(--fg-rgb) / .078); --line-2: rgb(var(--fg-rgb) / .133);
  --field: #0d0d0dcc; --well: #0000004d; --glow: #f2b5331a;
  --ink: #fff; --ink-2: #c3c2b7; --muted: #898781;
  --sun-1: #ffe29a; --sun: #f2b533; --sun-3: #e8862a; --ok: #2fbf2f; --bad: #e5677a; --ia: #8f7cf0;
  /* Le soleil, l'IA, le vert et le rouge quand ils sont du texte. */
  --sun-ink: #f2b533; --sun-stroke: #fab219; --t-sun: #ffd56b; --t-ia: #c9c0fb; --t-ok: #7fe0b0; --t-bad: #ff8a93;
  --t-blue: #8fbcf3; --t-warm: #e5a067; --icon: #e9e7df; --exp: #45c96b; --imp: #ff6b63;
  --grad-sun-txt: linear-gradient(180deg, #fff6d6, #f2b533); --grad-ia-txt: linear-gradient(90deg, #c9c0fb, #8be3ef);
  --txt-halo: 0 1px 6px rgba(0, 0, 0, 0.7);
  /* Les cartes de l'accueil et la carte énergie. */
  --card-a: rgb(var(--fg-rgb) / .055); --card-b: rgb(var(--fg-rgb) / .018); --card-line: rgb(var(--fg-rgb) / .07);
  --card-shadow: inset 0 1px 0 rgb(var(--fg-rgb) / .06), 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --orb-a: #2a2a28; --orb-b: #151514; --hub: #141413;
  --bat-chg-a: #234d32; --bat-chg-b: #10261a; --bat-dis-a: #522724; --bat-dis-b: #2a1210;
  --rain-rgb: 190 212 255; --moon: #e4e8f5; --moon-rgb: 205 215 255;
  /* Ceux du dashboard, pour la carte énergie portée telle quelle (accueil.js). */
  --border: rgb(var(--fg-rgb) / .1); --track: #2c2c2a; --s1: #3987e5;
}
/* Jour : papier chaud, encre presque noire, le même soleil. */
:root[data-mode="jour"] {
  color-scheme: light;
  --fg-rgb: 29 27 22; --veil-rgb: 255 255 255;
  --bg: #f4f3ef; --surface: #ffffff; --surface-2: #ffffff; --glass: #ffffffb8; --line: rgb(var(--fg-rgb) / .1); --line-2: rgb(var(--fg-rgb) / .17);
  --field: #ffffff; --well: rgb(var(--fg-rgb) / .05); --glow: #f2b53338;
  --ink: #161512; --ink-2: #48463f; --muted: #6c6962;
  --ok: #1e8f3c; --bad: #c43c52; --ia: #6a53dc;
  --sun-ink: #9a5f00; --sun-stroke: #e39b00; --t-sun: #9a5f00; --t-ia: #5b45cf; --t-ok: #17834a; --t-bad: #c43c52;
  --t-blue: #2f6fc4; --t-warm: #b0600f; --icon: #48463f; --exp: #1e9a48; --imp: #d6453c;
  --grad-sun-txt: linear-gradient(180deg, #d1920f, #8a5200); --grad-ia-txt: linear-gradient(90deg, #6a53dc, #1590a6);
  --txt-halo: 0 1px 4px rgb(255 255 255 / .9);
  --card-a: #ffffff; --card-b: #fbfaf7; --card-line: rgb(var(--fg-rgb) / .08);
  --card-shadow: inset 0 1px 0 #ffffff, 0 18px 36px -24px rgba(70, 50, 10, 0.28);
  --orb-a: #ffffff; --orb-b: #eeece6; --hub: #ffffff;
  --bat-chg-a: #e6f6ec; --bat-chg-b: #cdebd8; --bat-dis-a: #fbe8e6; --bat-dis-b: #f3d2ce;
  --rain-rgb: 47 111 196; --moon: #44537b; --moon-rgb: 68 83 123;
  --border: rgb(var(--fg-rgb) / .1); --track: #e4e1d9;
}
/* Le passage d'un mode à l'autre : fondu enchaîné de toute la page (apparence.js). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
/* Le ciel de nuit conserve les astres, avec les couleurs du mode choisi. */
:root[data-mode="jour"] .flow .stage.night { color: var(--ink); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 400 14px/1.5 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(900px 500px at 100% -10%, var(--glow), transparent 70%), var(--bg); background-attachment: fixed; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: 28px; }
button, .btn { font: 500 13px/1 'Space Grotesk', system-ui, sans-serif; color: var(--ink-2); background: rgb(var(--fg-rgb) / .039); border: 1px solid rgb(var(--fg-rgb) / .102); border-radius: 10px; padding: 9px 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover { color: var(--ink); background: rgb(var(--fg-rgb) / .071); }
button:disabled { opacity: .45; cursor: default; }
.go { background: linear-gradient(100deg, var(--sun-1), var(--sun) 55%, var(--sun-3)); color: #1b1305; border: 0; font-weight: 600; border-radius: 999px; padding: 11px 18px; justify-content: center; }
.go:hover { color: #1b1305; filter: brightness(1.06); background: linear-gradient(100deg, var(--sun-1), var(--sun) 55%, var(--sun-3)); }
.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.danger { color: #e5677acc; }
.danger:hover { color: var(--bad); border-color: #e5677a55; }
input, select { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus { outline: none; border-color: #f2b53388; }
input[readonly] { color: var(--ink-2); }
label { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }
.msg { min-height: 1.2em; margin: 0; font-size: 12px; color: var(--muted); }
.msg.err { color: var(--bad); }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sun-ink); }

.brand { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 26px; height: 26px; }
.brand b { font-weight: 600; }
.brand span { color: var(--ink-2); }
.brand em { font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-ink); border: 1px solid #f2b53355; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* Connexion et invitation */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.gate-card { width: min(380px, 100%); display: grid; gap: 12px; padding: 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.gate-card .brand { justify-content: center; margin-bottom: 8px; }
.gate-card h2 { font-size: 22px; text-align: center; }
.gate-card .hint { text-align: center; }
.gate-oubli { justify-self: center; }
/* « Rejoindre la bêta » : la demande de maquette du site, qui ouvre un espace. */
.gate-join { margin: 2px 0 0; text-align: center; font-size: 14px; color: var(--ink-2); }
.gate-join[hidden] { display: none; }
.gate-join a { color: var(--sun-ink); font-weight: 600; text-decoration: none; }
.gate-join a:hover { text-decoration: underline; text-underline-offset: 3px; }
.inscription-accueil { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); }
.inscription-accueil h2 { font-size: 24px; margin-bottom: 7px; }
.inscription-accueil p { color: var(--ink-2); margin: 0 0 7px; }
.inscription-accueil small { color: var(--ink-2); }
.inscription-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; max-width: 340px; }
.base-house-note { margin: 0 24px 16px; color: var(--ink-2); font-size: 12px; }
.flow.maison-base :is(.sunt, #compassLink) { display: none; }
@media (max-width: 800px) { .inscription-accueil { align-items: flex-start; flex-direction: column; padding: 20px; } .inscription-actions { max-width: 100%; } }
.gate-pw, .gate-code { display: grid; gap: 12px; }
.gate-pw[hidden], .gate-code[hidden], .gate-btns[hidden] { display: none; }
.gate-code-t { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); text-align: center; }
.gate-code-t b { color: var(--ink); font-weight: 600; }
#lCode { text-align: center; font-size: 22px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
#lCode::placeholder { font-size: 15px; letter-spacing: 0; }
.gate-btns { display: flex; justify-content: center; gap: 10px; }
.hint.legal a, .legal-foot a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.hint.legal a:hover, .legal-foot a:hover { color: var(--ink-2); }
/* Pied de page : mentions légales (site public, rubrique « Espace client »). */
.legal-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 28px 16px 36px; font-size: 12px; color: var(--muted); }

/* Aperçu (l'owner, depuis l'admin) */
/* Dans l'app iPhone (?app=<onglet>, apparence.js) : ni barre ni onglets, l'app a les siens. */
.in-app .bar, .in-app .apercu, .in-app .legal-foot { display: none; }
.in-app .main { padding-top: 12px; }
.apercu { margin: 0; padding: 8px 16px; text-align: center; font-size: 13px; color: #1b1305; background: linear-gradient(100deg, var(--sun-1), var(--sun) 55%, var(--sun-3)); }

/* Barre et onglets */
.bar { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex: 1; }
.tabs button { white-space: nowrap; background: transparent; border-color: transparent; color: var(--muted); border-radius: 999px; padding: 9px 14px; font-size: 14px; }
.tabs button[aria-selected="true"] { color: var(--ink); background: #f2b53321; border-color: #f2b53361; }
.me { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13px; }
.me span { margin-right: 6px; }
.me .me-name { margin-right: 6px; color: inherit; text-decoration: none; }
.me .me-name:hover { color: var(--ink); }

/* --colonne : 1 240 px, plus large sur un grand écran (apparence.js). */
.main { padding: 24px 24px 48px; max-width: var(--colonne, 1240px); margin: 0 auto; }
.tab { display: grid; gap: 14px; }

/* Ma maison en 3D */
.sim-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.when { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.word { max-width: 760px; margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--ink-2); white-space: pre-line; }
.word b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun-ink); font-weight: 500; margin-bottom: 4px; }
.sim { height: min(780px, calc(100svh - 140px)); min-height: 520px; }
#simView .hint { margin-top: 12px; }
.sim-empty { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--ink-2); }
.sim-empty h2 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.sim-empty p { margin: 0 auto; max-width: 460px; }

/* Mes connecteurs */
.c-head { display: grid; gap: 6px; margin-bottom: 6px; }
.c-head .hint { max-width: 640px; font-size: 13px; }
.conn { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 10px; min-width: 0; }
.conn.on { border-color: #2fbf2f33; }
.conn.soon { opacity: .6; }
.conn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conn-head h3 { font-size: 17px; }
.pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: #2fbf2f55; }
.pill.bad { color: var(--bad); border-color: #e5677a55; }
.pill .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
.conn-form, .conn-on { display: grid; gap: 10px; margin-top: 4px; }
.who { margin: 0; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { padding: 12px 14px; border-radius: 14px; background: rgb(var(--fg-rgb) / .024); border: 1px solid var(--line); display: grid; gap: 2px; }
.tile span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile small { font-size: 12px; color: var(--ink-2); min-height: 1.2em; }
/* Compteur Shelly : l'adresse à coller dans le Shelly, puis ceux qui s'y sont reliés. */
.sh-url { display: flex; gap: 8px; margin-top: 5px; }
.sh-url input { flex: 1; min-width: 0; font: 12px/1.3 ui-monospace, Menlo, monospace; }
.sh-url button { flex: none; }
.sh-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.shd-h:has(.shd-g1e) { flex-wrap: wrap; }
.shd-g1e { margin: 0; flex-basis: 100%; }
.sh-devs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* Un Shelly : sa ligne (état, modèle, Supprimer), une tuile par chose mesurée, et le
   réglage de la tuile touchée, sur place. Verre neutre, la couleur sur la pastille. */
.shd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.shd-h { display: flex; align-items: center; gap: 10px; }
.shd-h > span { flex: 1; min-width: 0; }
/* Sur un téléphone, Déconnecter / Supprimer passent sous le nom : il garde la largeur. */
@media (max-width: 520px) { .shd-h { flex-wrap: wrap; } .shd-h > span:not(.shd-pic) { flex-basis: calc(100% - 64px); } .shd-h > .conn-pair { margin-left: 54px; } }
.shd-h b { font-weight: 500; font-size: 14px; }
.shd-h small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shd-h > .shd-pic { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.shd-ic { width: 28px; height: 28px; opacity: .85; }
.shd-ic .led { fill: currentColor; }
/* La photo produit, fond blanc fondu dans une tuile claire. */
.shd-h > .shd-pic:has(.shd-ph) { background: #eeeeea; border-color: transparent; }
.shd-ph { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; }
.shd-r .shd-ph { width: 22px; height: 22px; flex: none; border-radius: 5px; background: #eeeeea; mix-blend-mode: normal; }
.shd-h .dot { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); border: 2px solid var(--surface); }
.shd-h .dot.on { background: #5fd38d; box-shadow: 0 0 8px #5fd38d99; }
.shd-del { font-size: 12px; padding: 6px 12px; color: #e5677acc; background: transparent; border: 1px solid var(--line); border-radius: 999px; }
.shd-del.rep { color: var(--ink); }
.shd-del:hover { color: var(--t-bad); border-color: var(--t-bad)66; }
.shd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.shd-tile { --c: #b9b1f7; display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 14px;
  background: rgb(var(--fg-rgb) / .024); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; min-width: 0; }
.shd-tile:hover { background: rgb(var(--fg-rgb) / .043); }
.shd-tile.on { background: #b9b1f712; border-color: #b9b1f755; }
.shd-tile:disabled { cursor: default; }
.shd-tile > i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); flex: none; }
.shd-tile.reseau { --c: #df7a80; }
.shd-tile.production { --c: #f2cc75; }
.shd-tile.aucun { --c: var(--muted); border-style: dashed; }
.shd-tile.aucun > i { box-shadow: none; }
.shd-tile.off { opacity: .55; }
.shd-tile.off > i { background: var(--muted); box-shadow: none; }
.shd-tile .t { flex: 1; min-width: 0; }
.shd-tile .t b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shd-tile .t small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shd-tile .w { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shd-ed:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; background: rgb(var(--fg-rgb) / .02); border: 1px solid var(--line-2); }
.shd-ed-h { display: flex; align-items: baseline; justify-content: space-between; }
.shd-ed-h b { font-weight: 500; font-size: 13px; color: var(--ink-2); }
.shd-ed-h small { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.shd-q { margin: 2px 0 0; font-size: 13px; font-weight: 500; }
.shd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shd-chips.sub { padding-top: 2px; }
.shd-chip { font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgb(var(--fg-rgb) / .031); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
.shd-chip:hover { color: var(--ink); }
.shd-chip.on { background: #b9b1f71f; border-color: #b9b1f780; color: var(--ink); }
.shd-chips.sub .shd-chip { font-size: 12px; }
.shd-app:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.shd-f { display: grid; gap: 5px; font-size: 13px; font-weight: 500; max-width: 420px; }
.shd-f[hidden] { display: none; }
.shd-f .hint { font-weight: 400; }
.shd-room { max-width: 260px; }
.shd-ed .conn-btns { align-items: center; }
.meter-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.meter-setting b { font-weight: 500; }
.meter-setting small { display: block; color: var(--muted); }
.meter-setting button { color: var(--sun-ink); min-height: 44px; }
.meter-form { max-width: 620px; margin: 24px auto; }
.meter-form h3 { font-size: 22px; margin: 8px 0; letter-spacing: -.025em; }
.meter-step { font-size: 12px; color: var(--muted); margin: 0; }
.meter-form .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.meter-form .hint { margin: 12px 0 18px; }
.meter-form fieldset { padding: 0; border: 0; margin: 18px 0; display: grid; gap: 10px; }
.meter-choice { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); cursor: pointer; min-height: 72px; }
.meter-choice:has(input:checked) { border-color: var(--sun-ink); background: #f2b53312; }
.meter-choice input { width: 18px; height: 18px; flex: none; accent-color: var(--sun-ink); margin: 0; }
.meter-choice b { display: block; font-weight: 500; }
.meter-choice small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 3px; }
.meter-row { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.meter-row-head { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.meter-row-head b { font-weight: 500; }
.meter-row label:not(.sh-inv) { display: grid; gap: 5px; color: var(--ink-2); font-size: 13px; }
.meter-row select, .meter-row input:not([type=checkbox]) { width: 100%; font-size: 16px; min-height: 48px; }
.meter-form .conn-btns button { min-height: 48px; }
.meter-note { background: var(--well); padding: 15px; border-radius: 12px; color: var(--ink-2); font-size: 13px; margin: 18px 0; }
/* Les pinces du compteur, une carte chacune : ce qu'elle mesure, l'appareil, sa pièce. */
.pnc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0 0 12px; display: grid; gap: 8px; transition: background .2s; }
.pnc.rien { background: transparent; }
.pnc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pnc-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--fg-rgb) / .05); color: var(--ink-2); transition: background .2s, color .2s; }
.pnc-ic.on { background: rgb(143 124 240 / .14); color: var(--t-ia); }
.pnc-ic svg { width: 22px; height: 22px; }
.pnc-t { flex: 1; min-width: 0; }
.pnc-t b { display: block; font-weight: 500; }
.pnc-t small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnc-w { font-size: 14px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(var(--fg-rgb) / .045); white-space: nowrap; }
.pnc-w::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgb(47 191 47 / .16); }
.pnc-w.off::before { background: var(--muted); box-shadow: none; }
.pnc .shd-q { margin-top: 8px; color: var(--ink-2); }
.pnc .shd-chip { font-size: 14px; padding: 8px 13px; }
.pnc .shd-chip.on, .shd-ed .shd-chip.on { background: rgb(143 124 240 / .1); border-color: rgb(143 124 240 / .55); }
.pnc-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.pnc-uses button { font: inherit; display: grid; justify-items: center; align-content: center; gap: 5px; min-height: 72px; padding: 10px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; line-height: 1.2; text-align: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pnc-uses button:hover { border-color: var(--line-2); color: var(--ink); }
.pnc-uses button[aria-pressed=true] { border-color: rgb(143 124 240 / .6); background: rgb(143 124 240 / .08); color: var(--ink); }
.pnc-uses svg { width: 22px; height: 22px; }
.pnc-plus { justify-self: start; font: inherit; font-size: 13px; color: var(--t-ia); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.pnc-f { display: grid; gap: 6px; margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.pnc-f input { width: 100%; font-size: 16px; min-height: 46px; }
.pnc-inv { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.pnc-inv input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--ia); }
.pnc-inv small { display: block; color: var(--muted); }
/* Le choix d'une pièce : un bouton comme un champ, sa liste en dessous, en feuille sur un téléphone. */
.shd-room, [data-piece] { position: relative; max-width: none; }
.rp-t { font: inherit; width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); cursor: pointer; text-align: left; font-size: 16px; font-weight: 400; }
.rp-t[aria-expanded=true] { border-color: var(--sun-stroke); box-shadow: 0 0 0 3px var(--glow); }
.rp-i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgb(var(--fg-rgb) / .05); color: var(--ink-2); flex: none; }
.rp-i svg { width: 16px; height: 16px; }
.rp-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-n.ph { color: var(--muted); }
.rp-c { display: grid; color: var(--muted); transition: transform .2s; }
.rp-c svg { width: 16px; height: 16px; }
.rp-t[aria-expanded=true] .rp-c { transform: rotate(180deg); }
.rp-p { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); }
.rp-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px -14px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .06); animation: rp-in .18s cubic-bezier(.2, .9, .3, 1); }
@keyframes rp-in { from { opacity: 0; transform: translateY(-4px); } }
.rp-s { width: 100%; min-height: 42px; border: 0; background: rgb(var(--fg-rgb) / .05); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--ink); }
.rp-s:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--sun-stroke); }
.rp-l { max-height: 280px; overflow-y: auto; margin-top: 6px; overscroll-behavior: contain; }
.rp-g { font-size: 12px; color: var(--muted); padding: 8px 10px 4px; margin: 0; }
.rp-o { font: inherit; width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--ink); padding: 9px 10px; min-height: 42px; border-radius: 9px; cursor: pointer; text-align: left; font-size: 15px; }
.rp-o:hover, .rp-o.hl { background: rgb(var(--fg-rgb) / .055); }
.rp-o .n { flex: 1; min-width: 0; }
.rp-o small { color: var(--muted); font-size: 12px; }
.rp-o mark { background: rgb(242 181 51 / .3); color: inherit; border-radius: 3px; }
.rp-o .ck { display: grid; color: var(--t-ia); }
.rp-o .ck svg { width: 16px; height: 16px; }
.rp-o.new { color: var(--t-ia); font-weight: 500; }
.rp-o .pl { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgb(143 124 240 / .14); }
.rp-o .pl svg { width: 15px; height: 15px; }
.rp-sans .n { color: var(--muted); }
.rp-none { padding: 10px; color: var(--muted); font-size: 14px; margin: 0; }
.rp-sheet { position: fixed; inset: 0; z-index: 1000; }
.rp-veil { position: absolute; inset: 0; background: rgb(0 0 0 / .32); animation: rp-fade .2s; }
@keyframes rp-fade { from { opacity: 0; } }
.rp-sheet .rp-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; display: flex; flex-direction: column; border-radius: 22px 22px 0 0; padding: 8px 14px calc(18px + env(safe-area-inset-bottom)); animation: rp-up .28s cubic-bezier(.2, .9, .3, 1); }
/* La WebView fournit la hauteur réellement disponible entre les barres natives. */
.in-app .rp-sheet { bottom: auto; height: var(--app-height, 100dvh); }
.in-app .rp-sheet .rp-box { max-height: 78%; }
@keyframes rp-up { from { transform: translateY(100%); } }
.rp-grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 10px; }
.rp-h { margin: 0 0 10px; text-align: center; font-weight: 500; }
.rp-sheet .rp-l { max-height: none; flex: 1; }
.rp-sheet .rp-o { min-height: 48px; }
/* L'image d'un appareil : son pictogramme sur sa teinte, ou une photo. */
.hav { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; overflow: hidden; color: var(--hc, var(--ink-2)); background: color-mix(in srgb, var(--hc, #8a8794) 16%, transparent); }
.hav svg { width: 22px; height: 22px; }
.hav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hav.sh { background: #f3f1ec; }
.hav.sh img { object-fit: contain; padding: 4px; }
.hav.vide { background: rgb(var(--fg-rgb) / .05); color: var(--ink-2); }
.hav.sm { width: 30px; height: 30px; border-radius: 9px; }
.hav.sm svg { width: 17px; height: 17px; }
.hav.lg { width: 48px; height: 48px; border-radius: 14px; }
.hav.lg svg { width: 26px; height: 26px; }
.shd-qs { font-weight: 400; color: var(--muted); }
.hsw { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.hsw button { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; background: var(--hc); cursor: pointer; position: relative; }
.hsw button[aria-checked=true]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink); }
.himg { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-width: 440px; }
.himg button { font: inherit; display: grid; justify-items: center; gap: 8px; padding: 12px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; text-align: center; cursor: pointer; }
.himg button[aria-checked=true] { border-color: rgb(143 124 240 / .6); background: rgb(143 124 240 / .08); color: var(--ink); }
.himg small { display: block; font-size: 11px; color: var(--muted); }
.shd-ed .conn-btns .msg { flex: 1; }
@media (max-width: 560px) { .shd-tiles { grid-template-columns: minmax(0, 1fr); } }
.shd-ret:empty { display: none; }
.shd-revient:empty { display: none; }
.shd-revient { display: grid; gap: 10px; margin-bottom: 14px; }
.shd-rv { border: 1px solid #f2b53366; background: linear-gradient(#f2b5331f, #f2b5330a); border-radius: 16px; padding: 14px 16px; }
.shd-rv h3 { margin: 0 0 4px; font-size: 15.5px; color: var(--t-sun); }
.shd-rv p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.shd-rv .acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shd-rv .acts small { color: var(--muted); font-size: 12.5px; flex-basis: 100%; }
.shd-r small em { display: block; font-style: normal; color: var(--t-sun); font-size: 12px; }
.shd-ret { display: grid; gap: 6px; }
.shd-ret .hint { margin: 0; }
.shd-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.shd-r small { flex: 1; min-width: 0; }
.shd-r .shd-ic { width: 20px; height: 20px; flex: none; }
.mr-os .shd-r { justify-content: flex-start; margin: 4px 0; }
.mr-os .shd-r.off { opacity: .6; }
.sh-add:not([hidden]) { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgb(var(--fg-rgb) / .016); }
.sh-add-h { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sh-add-h b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.sh-imp { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: rgb(var(--fg-rgb) / .016); }
.sh-imp:empty { display: none; }
.sh-imp.busy { border-color: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(120deg, #8f7cf0, #3fc6d9, #8f7cf0) border-box;
  background-size: 100% 100%, 240% 100%; animation: fc-ia-flow 3s linear infinite; }
.imp-att, .imp-voies, .imp-voies li { min-width: 0; }
.imp-att { display: grid; gap: 10px; }
.imp-avis { padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(120deg, #8f7cf0, #3fc6d9) border-box; }
.imp-avis.warn { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(120deg, #e5677a, #8f7cf0) border-box; }
.imp-avis p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sh-imp .ia-k { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: linear-gradient(90deg, #8f7cf0, #3fc6d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-imp .ia-k svg { width: 13px; height: 13px; color: var(--t-ia); }
.imp-dev { margin: 0; font-size: 13px; font-weight: 500; }
.imp-voies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.imp-voies li { display: grid; gap: 5px; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.imp-v { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--ink); }
.imp-v input { width: auto; flex: none; margin: 2px 0 0; padding: 0; accent-color: var(--sun); }
.imp-v span { flex: 1; display: grid; gap: 2px; font-size: 13px; }
.imp-v b { font-weight: 500; }
.imp-v small, .imp-n, .imp-rq { font-size: 12px; color: var(--muted); }
.imp-n, .imp-rq { margin: 0; line-height: 1.45; font-variant-numeric: tabular-nums; }
.imp-rq.ia { color: var(--t-ia); }
.imp-off .imp-v { opacity: .6; cursor: default; }
.imp-h { margin: 0; font-size: 13px; font-weight: 600; }
.shd .sh-imp { margin-top: 10px; }
.shd-hist { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.shd-hist .hint { margin: 0; }
.shd-hist button { justify-self: start; }
.shd-eff, .shd-usage { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.shd-eff .hint, .shd-usage .hint { margin: 0; }
.shd-eff > button, .shd-effd { justify-self: start; }
.shd-effd { width: 100%; max-width: 220px; }
.shd-usage .pj-acts, .shd-effok .pj-acts { margin: 0; }
.shd-effok { display: grid; gap: 6px; }
.shd-tuto summary { cursor: pointer; font-size: 12px; color: var(--ink-2); }
.shd-tuto ol { margin: 6px 0 2px; padding-left: 20px; display: grid; gap: 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.shd-tuto b { color: var(--ink-2); font-weight: 600; }
.imp-todo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 9px 11px; border-radius: 10px; border: 1px dashed var(--line-2); }
.imp-todo p { flex: 1 1 220px; margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.imp-todo.warn { border-style: solid; border-color: #e5677a66; background: #e5677a0d; }
.imp-todo button { flex: none; padding: 7px 12px; font-size: 12px; }
.imp-bars { width: 100%; height: 40px; display: block; }
.imp-bars rect.off { opacity: .22; }
.imp-plage { justify-self: start; width: auto; min-width: 0; max-width: 100%; text-overflow: ellipsis; font-size: 12px; padding: 7px 10px; }
.imp-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -2px; }
.imp-lots { display: grid; gap: 6px; }
.sh-fig { margin: 10px 0 2px; display: flex; gap: 0; width: min(100%, 290px); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #000; color: #e8e8e8; font: 500 11.5px/1.2 system-ui, sans-serif; }
.sh-side { display: grid; align-content: start; gap: 4px; padding: 8px 6px; background: #1b1b1d; border-right: 1px solid rgb(var(--fg-rgb) / .078); }
.sh-side i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.sh-side svg { width: 17px; height: 17px; fill: none; stroke: #9a9a9f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-side i.on { background: #2f6fe322; box-shadow: 0 0 0 1.5px var(--sun); }
.sh-side i.on svg { stroke: #4b8df8; }
.sh-list { flex: 1; min-width: 0; display: grid; align-content: start; gap: 4px; padding: 8px; }
.sh-list b { text-align: center; font-weight: 500; font-size: 11px; color: #bbb; margin-bottom: 2px; }
.sh-list span { padding: 5px 9px; border-radius: 8px; background: #2a2a2c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-list span.on { box-shadow: 0 0 0 1.5px var(--sun); background: #f2b5331f; color: #fff; }
/* Relier un ancien Shelly : une tuile, puis un guide pas à pas. */
.sh-g1 { border: 1px solid var(--line-2); border-radius: 16px; background: rgb(var(--fg-rgb) / .02); }
.sh-g1 > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px; }
.sh-g1 > summary::-webkit-details-marker { display: none; }
.sh-g1 > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; }
.sh-g1[open] > summary::after { transform: rotate(45deg); }
.sh-g1 > summary:hover { background: rgb(var(--fg-rgb) / .02); border-radius: 16px; }
.sh-g1-discret:not([open]) { border: 0; background: none; margin-top: 6px; }
.sh-g1-discret:not([open]) > summary { padding: 10px 0; min-height: 44px; }
.sh-g1-discret:not([open]) > summary:hover { background: none; }
.sh-g1-discret:not([open]) > summary::after { display: none; }
.sh-g1-discret:not([open]) > summary b { font-weight: 400; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sh-g1-discret > summary:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; border-radius: 6px; }
.g1-art { flex: none; display: flex; }
.g1-stack { display: flex; }
.g1-stack img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: contain; padding: 3px; box-sizing: border-box; box-shadow: 0 0 0 2px #1d1d1c; }
.g1-stack img + img { margin-left: -14px; }
.g1-gal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 2px 16px 14px; }
.g1-gal span { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 8px; border-radius: 12px; background: rgb(var(--fg-rgb) / .024); border: 1px solid var(--line); }
.g1-gal img { width: 56px; height: 56px; border-radius: 12px; background: #fff; object-fit: contain; padding: 4px; box-sizing: border-box; }
.g1-gal small { font-size: 11.5px; color: var(--ink-2); text-align: center; }
@media (max-width: 560px) {
  .g1-gal { grid-template-columns: repeat(3, 1fr); }
}
.g1-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.g1-t b { font-size: 16px; font-weight: 600; color: var(--ink); }
.g1-t small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.g1-intro { margin: 0 16px 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.g1-steps { list-style: none; counter-reset: g1; margin: 0; padding: 8px 16px 18px; display: grid; gap: 0; }
.g1-steps > li { counter-increment: g1; position: relative; display: grid; gap: 6px; padding: 0 0 20px 46px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); transition: opacity .2s; }
.g1-steps > li::before { content: counter(g1); position: absolute; left: 0; top: -3px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 'Space Grotesk', system-ui, sans-serif; color: #1a1300; background: linear-gradient(180deg, var(--sun-1), var(--sun)); }
.g1-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: 2px; border-left: 1.5px dashed var(--line-2); }
.g1-steps > li.g1-off { opacity: .45; }
.g1-steps > li.g1-off::before { background: rgb(var(--fg-rgb) / .078); color: var(--muted); }
.g1-steps > li.g1-done::before { content: "✓"; background: var(--ok); color: #fff; }
.g1-steps > li > b { font-size: 15px; font-weight: 600; color: var(--ink); }
.g1-steps > li > span { display: block; }
.g1-ip { font: 500 20px/1.2 ui-monospace, Menlo, monospace; padding: 12px 14px; letter-spacing: .02em; }
.g1-copy { justify-self: start; padding: 12px 20px; font-size: 14px; }
.g1-copy:disabled { opacity: .5; cursor: default; }
.g1-code > summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.g1-code textarea { margin-top: 6px; width: 100%; box-sizing: border-box; resize: vertical; font: 11px/1.4 ui-monospace, Menlo, monospace; color: var(--ink-2); background: rgb(var(--fg-rgb) / .024); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; }
.g1-fig { margin-top: 4px; }
.conn-on .ha-add textarea { display: block; margin: 8px 0; width: 100%; box-sizing: border-box; resize: vertical; font: 12px/1.5 ui-monospace, Menlo, monospace; color: var(--ink); background: rgb(var(--fg-rgb) / .024); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; white-space: pre; overflow: auto; }
.ha-add .sh-steps > li { padding-bottom: 8px; }
.ha-add code { font: 12px ui-monospace, Menlo, monospace; }
.in-app #tab-reglages .ha-add textarea { font-family: ui-monospace, Menlo, monospace; }
.ha-st .rg-dot { display: inline-block; vertical-align: 1px; margin: 0 4px 0 0; }
/* La carte Ecojoko : l'état du compte, la journée du Linky. */
.ecojoko .ej-st, .v2c .ej-st { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin: 0 0 12px; border-radius: 14px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); font-size: 13.5px; }
.ecojoko .ej-st .bad, .v2c .ej-st .bad { color: var(--bad); }
.rg-dot.bad { background: var(--bad); }
.ecojoko .ej-hp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ecojoko .ej-hp > div { padding: 10px; border-radius: 12px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); font-variant-numeric: tabular-nums; }
.ecojoko .ej-hp small { display: block; font-size: 11.5px; color: var(--muted); }
.ecojoko .ej-hp b { font-size: 17px; font-weight: 600; }
.ecojoko .rg-li.dim { opacity: .6; }
.g1-scr .g1-new { text-align: center; padding: 7px 9px; background: #3b74d8; color: #fff; }
.g1-scr .g1-new.on { background: #3b74d8; color: #fff; box-shadow: 0 0 0 1.5px var(--sun); }
.g1-scr .g1-lib { text-align: center; padding: 6px 9px; background: none; box-shadow: inset 0 0 0 1.2px #3b74d8; }
.g1-none { display: grid; gap: 3px; padding: 8px 9px; border-radius: 10px; background: #2b3a55; font-size: 10.5px; line-height: 1.35; color: #d8dde8; }
.g1-scr .g1-none b { text-align: left; margin: 0; font-size: 11px; font-weight: 600; color: #fff; }
.g1-card { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #2a2a2c; }
.g1-card em { flex: 1; font-style: normal; font-weight: 600; }
.g1-tog { display: grid; justify-items: center; gap: 3px; font-size: 8px; line-height: 1.1; text-align: center; color: #bbb; padding: 3px; border-radius: 7px; }
.g1-tog i { width: 26px; height: 15px; border-radius: 8px; background: #3b74d8; position: relative; }
.g1-tog i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.g1-play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #3b74d8; }
.g1-play svg { width: 14px; height: 14px; fill: #fff; }
.g1-tog.on, .g1-play.on { box-shadow: 0 0 0 1.5px var(--sun); }
[data-k=g1st] { display: grid !important; gap: 4px; }
.g1-ok { color: var(--ok); font-weight: 500; }
.g1-err { color: var(--bad); }
.g1-wait { color: var(--muted); }
.g1-warn { color: var(--sun-ink); font-weight: 500; }
.g1-tip { font-size: 12.5px; color: var(--muted); }
.sh-inv { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.sh-inv input { width: auto; margin: 0; accent-color: var(--sun); }
/* Qui mesure le réseau : le Shelly ou l'onduleur, en verre teinté quand il est choisi. */
.sh-reseau:not([hidden]) { display: grid; gap: 8px; }
.tile.sun b { color: var(--sun-ink); }
.conn-btns { display: flex; gap: 8px; justify-content: space-between; }
/* Déconnecter (on garde l'historique) et Supprimer (on efface tout), côte à côte. */
.conn-pair { display: flex; gap: 8px; margin-left: auto; }
/* Un appareil déconnecté : grisé, ses boutons restent nets. */
.zd-dev.paused > :not(.conn-btns), .shd.paused > :not(.shd-h), .shd.paused .shd-h > :not(.conn-pair) { opacity: .5; }

/* ── Accueil : la carte « Énergie en ce moment » et « En ce moment » du dashboard
   Helyo Home (dashboard/www/accueil.html), reprises telles quelles ── */
.bento { display: grid; align-items: start; gap: 16px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.tile2 {
  position: relative; border-radius: 22px; padding: 22px 24px;
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
}
.tile2 h2 { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* La production prévue du jour, en petit à droite du titre de l'énergie : la
   case « IA · prévu » de Énergie › Production. « prévu » tout court, le
   contour violet → cyan dit déjà que c'est l'IA. Un clic ouvre la production. */
.flowh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fc-pill { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; color: var(--ink-2); white-space: nowrap; cursor: pointer;
  padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid transparent; position: relative; z-index: 2;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(135deg, #8f7cf0, #3fc6d9) border-box; }
.fc-pill[hidden] { display: none; }
.fc-pill svg { width: 13px; height: 13px; fill: none; stroke: var(--t-ia); stroke-width: 1.8; stroke-linejoin: round; }
.fc-pill b { font-weight: 600; font-variant-numeric: tabular-nums; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-pill small { font-size: 11px; color: var(--muted); }
.fc-pill:hover { color: var(--ink); }
.flowp { display: flex; align-items: center; gap: 8px; }
/* Sa maison en photo : pastille de verre neutre, l'icône seule en couleur. */
.mp-pill { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; color: var(--ink-2); white-space: nowrap; cursor: pointer;
  padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .039); position: relative; z-index: 2; }
.mp-pill[hidden] { display: none; }
.mp-pill svg { width: 13px; height: 13px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linejoin: round; }
.mp-pill:hover { color: var(--ink); }
.mp-pill.wait svg { stroke: var(--ink-2); }
/* Maison en préparation : une roue tourne à la place de l'appareil photo. */
.mp-spin { display: none; width: 12px; height: 12px; border-radius: 50%; border: 1.8px solid #f2b53340; border-top-color: var(--sun); animation: mp-tourne .9s linear infinite; }
.mp-pill.wait svg { display: none; }
.mp-pill.wait .mp-spin { display: inline-block; }
@keyframes mp-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mp-spin { animation-duration: 2.4s; } }
.mp-pill.pick { color: var(--ink); border-color: #f2b533aa; background: #f2b5331f; }
@media (max-width: 480px) { .mp-pill span { display: none; } .mp-pill { padding: 5px 8px; } }
.fc-pill:focus-visible { outline: 2px solid #8f7cf0; outline-offset: 2px; }
.flow .stage { position: relative; aspect-ratio: 3 / 2; margin-top: 6px; border-radius: 16px; overflow: hidden; }
/* La maison au centre : c'est elle qui consomme, les trois sources y
   arrivent. Façade au 223° (sud-ouest) : vue de face, on regarde le nord-est,
   le soleil se lève donc à droite, derrière le pignon, et se couche à gauche.
   Un voile de lumière, découpé sur la silhouette, vient du côté du soleil :
   le pignon sud-est le matin, la façade l'après-midi. */
/* Le cadre de la maison ne prend aucun clic, son image seule (la fenêtre de la
   consommation, comme le dashboard) : ce cadre transparent passait sur le soleil du
   matin, collé à elle, et le rendait muet. Les points de la scène restent au-dessus. */
.flow .house { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 900 / 805; z-index: 1; pointer-events: none; }
.flow .house img { pointer-events: auto; cursor: pointer; }
.flow .node[data-go] { z-index: 2; }
.flow .house img { display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)) brightness(var(--hb, 1)) saturate(var(--hs, 1)) sepia(var(--hw, 0));
  transition: filter 2s ease; }
/* Le masque à la taille de l'image : à sa taille d'origine (900 px), il débordait de la
   maison et la lumière dessinait un pan sombre à côté d'elle. */
.flow .house .light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: var(--lg, none);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity 2s ease; }
/* Lampes allumées la nuit : un halo chaud autour de la maison. */
.flow .house .glow { position: absolute; inset: 10% 5% 0; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 190, 90, 0.22), transparent); opacity: 0; transition: opacity 2s ease; }
.flow .stage.night .house.lit .glow { opacity: 1; }
/* Consommation posée sur la maison, en pastille de verre. */
.flow .node.badge { z-index: 2; flex-direction: column; gap: 0; text-align: center; padding: 8px 16px; border-radius: 16px;
  background: rgb(var(--veil-rgb) / .62); border: 1px solid rgb(var(--fg-rgb) / .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.flow .node.badge .lab { margin-top: 3px; }
/* Réseau : réinjecté en vert, soutiré en rouge, comme l'anneau. */
.flow .node.grid.exp .val { color: var(--exp); }
.flow .node.grid.imp .val { color: var(--imp); }
/* Ciel : étoiles la nuit, pluie quand il pleut (gouttes dessinées par rainDraw). */
.flow .sky { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 2s ease; }
.flow .stage.night .sky.stars { opacity: 1; background:
    radial-gradient(1px 1px at 12% 18%, rgb(var(--fg-rgb) / .7), transparent 60%),
    radial-gradient(1px 1px at 27% 8%, rgb(var(--fg-rgb) / .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 22%, rgb(var(--fg-rgb) / .6), transparent 60%),
    radial-gradient(1px 1px at 63% 12%, rgb(var(--fg-rgb) / .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 20%, rgb(var(--fg-rgb) / .7), transparent 60%),
    radial-gradient(1px 1px at 88% 7%, rgb(var(--fg-rgb) / .4), transparent 60%),
    radial-gradient(1px 1px at 6% 34%, rgb(var(--fg-rgb) / .4), transparent 60%),
    radial-gradient(1px 1px at 94% 36%, rgb(var(--fg-rgb) / .5), transparent 60%); }
.flow canvas.sky { width: 100%; height: 100%; }
.flow .stage.rain .sky.drops { opacity: 1; }
/* Course du soleil : un arc en pointillé du lever au coucher. */
/* Horizon au sol. Plus de fil à plomb de l'astre vers le sol (retiré le 01/10). */
.flow .horizon { fill: rgb(var(--fg-rgb) / .015); stroke: rgb(var(--fg-rgb) / .14); stroke-width: 1; stroke-dasharray: 3 5; }
.flow .arc { fill: none; stroke: rgba(250, 178, 25, 0.28); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.flow .stage.night .arc { stroke: rgb(var(--fg-rgb) / .12); }
.flow .stage.night .arc-done { stroke: rgba(205, 215, 255, 0.35); }
/* La lune n'alimente pas la maison, même si un appareil remonte une production. */
.flow .stage.night #p_sun, .flow .stage.night #d_sun { display: none; }
.flow .sun.down .orb { opacity: 0.45; }
/* Astre derrière la maison (vers le nord-est) : dessiné par-dessus, en
   transparence, plutôt que caché. */
.flow .node.sun.behind { z-index: 2; opacity: 0.55; }
/* Vue du dessus, nord en haut : la maison et sa façade sud-ouest côté rue,
   la course du jour (centre = zénith, bord = horizon), soleil et lune. */
.flow .compass { flex-shrink: 0; width: 150px; text-align: center; }
.flow .compass svg { width: 100%; height: auto; display: block; overflow: visible; }
.flow .compass .cap { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; margin-top: 2px; }
.flow .compass #compassCap { display: block; color: var(--ink-2); }
/* La boussole ouvre l'ensoleillement en 3D (ensoleillement.html). */
.flow a.compass { text-decoration: none; color: inherit; border-radius: 12px; transition: transform .2s; }
.flow a.compass:hover { transform: scale(1.04); }
.flow a.compass:hover .to3d, .flow a.compass:focus-visible .to3d { color: var(--ink-2); }
.flow a.compass:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 4px; }
.flow .sun.moon .orb { border-color: rgba(205, 215, 255, 0.35); box-shadow: 0 0 30px rgba(190, 205, 255, 0.18); }
.flow .arc-done { fill: none; stroke: rgba(250, 178, 25, 0.55); stroke-width: 2; stroke-linecap: round; }
.flow .sunt { position: absolute; font-size: 11px; color: color-mix(in srgb, var(--sun-ink) 85%, transparent); transform: translate(-50%, calc(-100% - 8px)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow .stage.night .sunt { color: var(--muted); }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow .wire { fill: none; stroke: rgb(var(--fg-rgb) / .08); stroke-width: 2; stroke-linecap: round; transition: stroke 600ms ease, stroke-width 600ms ease; }
/* Un seul segment allongé sur le ruban : aucune bille ne masque le terrain. */
.flow .flow-current { fill:none; stroke-linecap:round; stroke-dasharray:22 78; filter:blur(.6px); animation:flowCurrent 2.5s linear infinite; pointer-events:none; }
@keyframes flowCurrent { from { stroke-dashoffset:100; } to { stroke-dashoffset:0; } }
.flow .flow-paused .flow-current, #tab-accueil[hidden] .flow-current { animation-play-state:paused; }
@media(prefers-reduced-motion:reduce) { .flow .flow-current { display:none; animation:none; } }
.flow .hub { fill: var(--hub); stroke: rgb(var(--fg-rgb) / .16); stroke-width: 1.5; }
/* En parcelle, les liaisons passent par-dessus l'image (comme les apps) ; l'arc et l'horizon restent derrière. */
.flow svg.wires.top { z-index: 1; pointer-events: none; }
/* Là où arrive le soleil en parcelle : un point jaune sur les panneaux, qui respire. */
.flow .hub-pan { fill: var(--sun); stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 0 5px rgb(242 181 51 / .75)); animation: hubPan 2.4s ease-in-out infinite; }
@keyframes hubPan { 50% { filter: drop-shadow(0 0 11px rgb(242 181 51 / .9)); } }
@media (prefers-reduced-motion: reduce) { .flow .hub-pan { animation: none; } }
.flow .node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 14px; }
.flow .node.below { flex-direction: column; gap: 8px; text-align: center; }
.flow .node.right .txt { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap; }
/* La légende suit le soleil sur son arc, à l'opposé de la puissance. */
.flow .solar-caption { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  width: max-content; box-sizing: border-box; padding: 1px 4px; border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); text-align: center; overflow-wrap: anywhere; font-size: 11px; line-height: 1.2;
  color: var(--muted); text-shadow: var(--txt-halo); pointer-events: none; }
.flow .solar-caption b { font-weight: 500; white-space: nowrap; }
.flow .stage.night .solar-caption { display: none; }
.flow .sun-true { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--sun);
  opacity: .8; pointer-events: none; z-index: 1; }
.flow .sun-true[hidden] { display: none; }
.flow .node.sun .stag { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-size: 17px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--sun-ink);
  text-shadow: var(--txt-halo); }
.flow .node.sun.moon .stag, .flow .node.sun.down .stag { display: none; }
/* Lune couchée : sa phase et l'heure de son lever, sous la pastille pâle. */
.flow .node.sun .mcap { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  pointer-events: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; text-shadow: var(--txt-halo); }
.flow .node.sun .mcap:empty { display: none; }
.flow .lune-bulle { position: absolute; z-index: 6; width: 200px; box-sizing: border-box; padding: 12px; border-radius: 16px;
  background: rgb(30 32 40 / 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgb(255 255 255 / 0.14); box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  color: #f2f2f2; font-size: 13px; line-height: 1.3; animation: lb-in 0.2s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.94); } }
.lune-bulle .lb-t { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.lune-bulle .lb-o svg { width: 26px; height: 26px; display: block; }
.lune-bulle b { display: block; font-size: 15px; font-weight: 600; }
.lune-bulle .lb-t span:not(.lb-o) { color: rgb(255 255 255 / 0.65); font-size: 12px; }
.lune-bulle .lb-l { display: flex; gap: 8px; align-items: center; margin-top: 5px; }
.lune-bulle .lb-l svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lune-bulle .lb-s { color: var(--sun); }
.flow .orb {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--orb-a), var(--orb-b) 70%);
  border: 1.5px solid rgb(var(--fg-rgb) / .12);
  transition: box-shadow 800ms ease, border-color 800ms ease;
}
.flow .orb svg { width: 34px; height: 34px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 800ms ease; }
.flow .val { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow .lab { font-size: 12px; color: var(--muted); margin-top: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow .lab b { color: var(--ink-2); font-weight: 400; }
/* D'où vient la charge de la batterie : sous la puissance, à la couleur du trait. */
.flow .lab .orig { display: block; margin-top: 2px; }
/* État des pastilles : couleur de la source, halo quand elle travaille. */
.flow .sun.on .orb { border-color: rgba(250, 178, 25, 0.7); box-shadow: 0 0 34px rgba(250, 178, 25, 0.35), inset 0 0 18px rgba(250, 178, 25, 0.15); }
.flow .sun.on .orb svg { stroke: var(--sun-stroke); }
.flow .grid.imp .orb { border-color: rgba(255, 107, 99, 0.6); box-shadow: 0 0 26px rgba(255, 107, 99, 0.22); }
.flow .grid.imp .orb svg { stroke: #ff6b63; }
.flow .grid.exp .orb { border-color: rgba(69, 201, 107, 0.6); box-shadow: 0 0 26px rgba(69, 201, 107, 0.22); }
.flow .grid.exp .orb svg { stroke: #45c96b; }
.flow .home .orb { border-color: rgb(var(--fg-rgb) / .35); box-shadow: 0 0 30px rgb(var(--fg-rgb) / .08); }
.flow .home .orb svg { stroke: var(--ink); }
/* Batterie : l'anneau est la jauge de charge, en conic-gradient. */
.flow .bat .orb { border: none; background:
    var(--bat-in, radial-gradient(circle at 35% 30%, var(--orb-a), var(--orb-b) 70%)) padding-box,
    conic-gradient(var(--soc-c, #45c96b) calc(var(--soc, 0) * 1%), rgb(var(--fg-rgb) / .1) 0) border-box;
  border: 4px solid transparent; }
.flow .bat.active .orb { box-shadow: 0 0 28px rgba(69, 201, 107, 0.2); }
/* Fond de la pastille : vert sombre en charge, rouge sombre en décharge,
   neutre au repos ; l'anneau garde la couleur du niveau de charge. */
.flow .bat.chg .orb { --bat-in: radial-gradient(circle at 35% 30%, var(--bat-chg-a), var(--bat-chg-b) 72%); box-shadow: 0 0 28px rgba(69, 201, 107, 0.28); }
.flow .bat.dis .orb { --bat-in: radial-gradient(circle at 35% 30%, var(--bat-dis-a), var(--bat-dis-b) 72%); box-shadow: 0 0 28px rgba(255, 107, 99, 0.24); }
.flow .bat.chg .orb svg { stroke: #45c96b; }
.flow .bat.dis .orb svg { stroke: #ff6b63; }
.flow .foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 12px 24px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.flow .foot .ftxt { flex: 1 1 auto; min-width: 0; }
.flow .foot .fine { margin-top: 6px; }
.flow .foot #fToday b { font-weight: 500; }
/* Fraîcheur des mesures : une ligne discrète sous le pied de la carte */
.flow .fresh, .lc-pop .pop-fresh { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 18px; font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--ink-2) 80%, transparent); font-variant-numeric: tabular-nums; }
.flow .fresh[hidden] { display: none; }
.lc-pop .pop-fresh { margin-top: 16px; }
.fresh .src { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fresh .src b { font-weight: 500; color: var(--ink-2); }
.fresh .src i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); flex: none; }
.fresh .src.old i { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent); }
.fresh .src.none i { background: var(--line-2); box-shadow: none; }
.flow .fresh .warn { flex-basis: 100%; text-align: right; color: var(--bad); }
/* La journée de 0 h à 24 h : production (ambre), consommation (violet),
   la production prévue en pointillé après maintenant. */
.flow .dayc { margin-top: 8px; }
.flow .dayc svg { display: block; width: 100%; height: 56px; overflow: visible; }
.flow .dayc .hx { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }

.now2 { --c: #2fbf71; position: relative; overflow: hidden; }
.now2::before { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 26%, transparent), transparent); transition: background 0.6s; }
.now2 .nh { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.now2 .nh h2 { display: flex; align-items: center; gap: 8px; }
.now2 .nh h2 i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.now2 .wx { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; padding: 5px 11px; border-radius: 999px; background: rgb(var(--fg-rgb) / .06); }
.now2 .wx svg { width: 18px; height: 18px; }
.now2 .wx:hover { color: var(--ink); }
.now2 .lead { position: relative; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin-top: 12px; }
.now2 .sig, .now2 .flx { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.now2 .flx { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.now2 .flx.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 380px) { .now2 .flx.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Température par pièce (fenêtre de la case « Dedans », Ecojoko). */
.lc-pop .amb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.lc-pop .amb-top b { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.lc-pop .amb-j { display: inline-flex; gap: 3px; margin: 12px 0 6px; padding: 3px; border-radius: 999px; background: rgb(var(--fg-rgb) / .06); }
.lc-pop .amb-j button { border: 0; background: none; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.lc-pop .amb-j button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.lc-pop .amb-svg { display: block; width: 100%; height: auto; margin: 4px 0 2px; overflow: visible; }
.lc-pop .amb-svg text { font-size: 9px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.lc-pop .amb-svg .in { fill: none; stroke: #f5b26b; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc-pop .amb-svg .ext { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .8; }
.lc-pop .amb-svg circle { fill: #f5b26b; }
.lc-pop .amb-note { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.lc-pop .amb-h { margin: 14px 0 2px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lc-pop .amb-p { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; gap: 4px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lc-pop .amb-p .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-pop .amb-p .h { color: var(--muted); text-align: right; }
.lc-pop .amb-p .amb-b { display: block; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: rgb(var(--fg-rgb) / .08); }
.lc-pop .amb-p .amb-b i { display: block; height: 100%; border-radius: 2px; background: #f5b26b; }
.lc-pop .amb-src { margin: 10px 0 0; font-size: 11.5px; color: var(--muted); }
.now2 .fl { position: relative; }
.now2 .fl .s { overflow: hidden; text-overflow: ellipsis; }
.now2 .fl .ring { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; }
.case-mesure { position: relative; min-width: 0; }
.case-mesure > a { display: block; height: 100%; }
.now2 :is(.case-mesure,.cz-w):has(.aide-mesure) .l { padding-right: 18px; }
.now2 :is(.case-mesure,.cz-w):has(.aide-mesure) .fl .ring { display: none; }
.aide-mesure { position: absolute; top: 0; right: 0; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 0; }
.aide-mesure::before { content: "?"; display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.now2 .fl .ring circle { fill: none; stroke: rgb(var(--fg-rgb) / .08); stroke-width: 5; }
.now2 .fl .ring .f { stroke: var(--k); stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--k) 60%, transparent)); }
.now2 .fl .v small { font-size: 10px; font-weight: 400; color: var(--muted); }
.now2 .fl .pb { display: block; height: 3px; margin-top: 4px; border-radius: 2px; background: rgb(var(--fg-rgb) / .08); }
.now2 .fl .pb i { display: block; height: 100%; border-radius: 2px; background: var(--k); box-shadow: 0 0 6px var(--k); }
.now2 .sg { --k: #ffb46b; padding: 10px 12px; border-radius: 14px; min-width: 0; border: 1px solid color-mix(in srgb, var(--k) 30%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--k) 16%, transparent), color-mix(in srgb, var(--k) 4%, transparent)); }
.now2 .sg .l { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.now2 .sg .v { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--k) 55%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.now2 .sg .v small { font-size: 0.5em; font-weight: 400; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); }
.now2 .sg .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now2 .sg { position: relative; }
.now2 .sg .ring, .now2 .sg .wi { position: absolute; top: 9px; right: 9px; }
.now2 .sg .ring { width: 26px; height: 26px; }
.now2 .sg .ring circle { fill: none; stroke: rgb(var(--fg-rgb) / .08); stroke-width: 5; }
.now2 .sg .ring .f { stroke: var(--k); stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--k) 60%, transparent)); }
.now2 .sg .wi { width: 30px; height: 30px; }
.now2 .sg .wi svg { width: 100%; height: 100%; overflow: visible; }
a.sg, a.fl, a.act, .calm a { color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.sg:hover, a.fl:hover, a.act:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--k) 60%, transparent); }
.now2 .fl { --k: #9085e9; padding: 8px 10px; border-radius: 12px; min-width: 0; background: color-mix(in srgb, var(--k) 8%, transparent); border: 1px solid color-mix(in srgb, var(--k) 22%, transparent); }
.now2 .fl .l { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now2 .fl .l i { width: 6px; height: 6px; border-radius: 50%; background: var(--k); }
.now2 .fl .v { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.now2 .fl .s { font-size: 10px; color: var(--muted); white-space: nowrap; }
/* Batterie qui charge (vert) ou se décharge (rouge) : verre teinté. */
.now2 .fl.tint { background: color-mix(in srgb, var(--k) 14%, transparent); border-color: color-mix(in srgb, var(--k) 40%, transparent); }
.now2 .fl.tint .s { color: var(--k); }
/* Couleurs uniformes (choix de l'owner, 14/10) : toutes les cases dans le
   même verre neutre que la tuile Énergie ; la couleur ne reste que sur la
   pastille ou l'icône de chaque case, comme repère. */
.now2::before { display: none; }
.now2 .sg, .now2 .fl { background: rgb(var(--fg-rgb) / .04); border-color: rgb(var(--fg-rgb) / .08); }
.now2 .sg .v { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
.now2 .sg .l::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--k); margin-right: 6px; vertical-align: 1px; }
.calm { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.calm span { font-size: 12px; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .06); white-space: nowrap; }
.calm span em { font-style: normal; color: var(--muted); margin-left: 4px; }
@media (max-width: 560px) { .now2 .fl { padding: 8px; } .now2 .fl .ring { display: none; } .now2 .sg .v { font-size: 22px; } }
/* Ce que l'espace ajoute : la maison de la maquette, le message de la scène, les jours. */
.flow .house[hidden] { display: none; }
.flow .house img:not([src]) { visibility: hidden; }
.flow .stage-msg { position: absolute; right: 4px; top: 2px; z-index: 3; margin: 0; max-width: min(58%, 340px);
  padding: 8px 14px; border-radius: 14px; font-size: 12px; color: var(--ink-2); text-align: left;
  background: rgb(var(--veil-rgb) / .72); border: 1px solid rgb(var(--fg-rgb) / .12); backdrop-filter: blur(8px); }
.flow .stage-msg a { color: var(--sun-ink); }
.flow .node[hidden] { display: none; }
.now2 .vz { display: flex; align-items: center; justify-content: space-between; }
.now2 .days { position: relative; margin-top: 14px; display: grid; gap: 6px; }
.now2 .days .dh { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.now2 .days .dh small { text-transform: none; letter-spacing: 0; margin-left: 4px; }
.now2 .dy { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px;
  background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .07); color: inherit; text-decoration: none; font-size: 13px; }
.now2 .dy:hover { border-color: rgb(var(--fg-rgb) / .18); }
.now2 .dy .wi { width: 26px; height: 26px; color: var(--icon); }
.now2 .dy .wi svg { width: 100%; height: 100%; display: block; }
.now2 .dy .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.now2 .dy b { font-weight: 600; color: var(--t-sun); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.now2 .wx { color: var(--ink-2); }

.bento > *, .tab > * { min-width: 0; }

/* ── Réglages : des appareils, pas des formulaires (comme l'app iPhone) ──
   La liste : sa maison en tête, ses appareils en tuiles (une case claire, sa photo ou son
   dessin), qui mesure le réseau, l'apparence en trois écrans, son compte. Toucher un
   appareil ouvre sa page à la place : lui en grand, ce qu'il dit en ce moment, puis des
   lignes groupées dans des cartes, les actions rouges tout en bas. */
#tab-reglages { --rg-sep: rgb(var(--fg-rgb) / .08); --rg-hover: #1c1c1b; --rg-chev: #6c6a64; --rg-track: #3a3a38; --rg-hero: #121211;
  display: block; width: 100%; max-width: 760px; margin: 0 auto; }
:root[data-mode="jour"] #tab-reglages { --rg-hover: #fbfaf7; --rg-chev: #b5b2a8; --rg-track: #e4e1d9; --rg-hero: #ffffff; }
/* Dans l'app : la police du téléphone, comme ses écrans natifs. */
.in-app #tab-reglages, .in-app #tab-reglages :is(button, input, select, textarea, h1, h2, h3) { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.rg-t { margin: 8px 4px 16px; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .2px; }
.rg-h2 { margin: 36px 4px 12px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: 0; }
.rg-h3 { margin: 28px 4px 10px; font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: 0; }
.rg-pt { margin: 4px 4px 8px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0; }
.rg-lead { margin: 0 4px 12px; font-size: 15px; line-height: 21px; color: var(--ink-2); }
.rg-foot { margin: 8px 16px 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-foot a { color: var(--sun-ink); }
.rg-msg { margin: 8px 16px 0; font-size: 13px; }
.rg-msg:empty { display: none; }
.rg-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 36px 4px 12px; }
.rg-sh .rg-h2 { margin: 0; }
.rg-a { font-size: 17px; color: var(--sun-ink); text-decoration: none; }
.rg-a:hover { color: var(--t-sun); }

/* Sa maison : le rendu de sa photo (ou l'image de sa maquette) sur une grande carte. */
.rg-hero { display: block; position: relative; height: 320px; border-radius: 28px; background: var(--rg-hero); overflow: hidden; color: var(--ink); text-decoration: none; }
.rg-hero:hover { background: var(--rg-hover); }
.rg-hero img { display: block; width: min(262px, 72%); height: 234px; object-fit: contain; margin: 16px auto 0; }
.rg-hero-b { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rg-hero-b > span { min-width: 0; }
.rg-hero-b b { display: block; font-size: 22px; line-height: 28px; font-weight: 700; }
.rg-hero-b small { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--ink-2); }
.rg-hero .rg-chev { margin-bottom: 7px; }

/* Ses appareils : deux par rangée sur un téléphone. */
.rg-devs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, calc(50% - 6px)), 1fr)); gap: 12px; }
.rg-dev { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 0; min-height: 182px; padding: 14px 14px 16px; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rg-dev:hover { background: var(--rg-hover); color: var(--ink); }
.rg-dev:focus-visible, .rg-li:focus-visible, .rg-hero:focus-visible, .rg-looks button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.rg-dev-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rg-dev-n { display: block; min-width: 0; }
.rg-dev-n b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-dev-n small { display: block; margin-top: 1px; font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-dev-v { display: block; margin-top: auto; font-size: 15px; line-height: 30px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rg-dev-att { display: block; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--sun-ink); white-space: normal; }
.rg-dev-v b { font-size: 26px; font-weight: 600; letter-spacing: -.4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rg-dev.rg-vide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
.rg-dev.rg-vide .rg-dev-n b, .rg-dev.rg-vide .rg-dev-n small { white-space: normal; }
.rg-dev:disabled { cursor: default; }
.rg-jauge { display: block; height: 4px; border-radius: 2px; background: var(--rg-track); margin-top: -4px; }
.rg-jauge i { display: block; height: 100%; border-radius: inherit; background: #45c96b; }
.rg-jauge.big { height: 8px; border-radius: 4px; margin-top: 14px; }
/* La fiche d'une seule batterie d'un compte : les autres en puces, le compte au pied. */
.zd-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.zd-puce { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; cursor: pointer; }
.zd-puce.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.zd-puce:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.zd-sous { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.zd-compte { margin-top: 18px; }
.zd-seul > :not(.zd-devs):not(.msg) { display: none !important; }
/* La case de l'appareil : claire comme une photo produit, de nuit comme de jour. */
.rg-plate { flex: none; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: #f4f3ef; overflow: hidden; }
.rg-plate.ph { background: #fff; }
:root[data-mode="jour"] .rg-plate { box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .06); }
.rg-plate svg { width: 44px; height: 44px; }
.rg-plate img { width: 48px; height: 48px; object-fit: contain; }
/* La photo détourée de sa voiture : un profil large, qui prend toute la plaque. */
.rg-plate img.vt-photo { width: 100%; height: 100%; padding: 3px; box-sizing: border-box; }
.rg-plate.sm { width: 40px; height: 40px; border-radius: 12px; }
.rg-plate.sm svg { width: 32px; height: 32px; }
.rg-plate.sm img { width: 36px; height: 36px; }
.rg-plate.xl { width: 128px; height: 128px; border-radius: 32px; }
.rg-plate.xl svg { width: 104px; height: 104px; }
.rg-plate.xl img { width: 112px; height: 112px; }
.rg-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 4px; background: var(--muted); margin-top: 4px; }
.rg-dot.on { background: #45c96b; }
.rg-pill { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; padding: 4px 8px; border-radius: 10px; color: var(--ink-2); background: rgb(var(--fg-rgb) / .08); white-space: nowrap; }
.rg-pill.sun { color: var(--sun-ink); background: rgba(242, 181, 51, 0.14); }
.rg-pill.bad { color: var(--bad); background: rgba(229, 103, 122, 0.14); }

/* Les listes groupées : une carte, des lignes séparées d'un filet (décalé après l'icône). */
.rg-list { display: block; border-radius: 24px; background: var(--surface); overflow: hidden; }
.rg-list:empty { display: none; }
.rg-li { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 0; padding: 12px 16px; border: 0; border-radius: 0;
  background: none; color: var(--ink); font: inherit; font-size: 17px; line-height: 22px; text-align: left; text-decoration: none; }
button.rg-li, label.rg-li, a.rg-li { cursor: pointer; }
button.rg-li:hover, label.rg-li:hover, a.rg-li:hover { color: var(--ink); background: rgb(var(--fg-rgb) / .035); }
button.rg-li:disabled { cursor: default; background: none; }
.rg-li + .rg-li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--rg-sep); }
.rg-list.ics > .rg-li + .rg-li::before { left: 60px; }
.rg-li:has(> .rg-plate.sm) + .rg-li:has(> .rg-plate.sm)::before, .rg-me + .rg-li::before { left: 68px; }
.rg-li .t { flex: 1; min-width: 0; }
.rg-li .t b { display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.rg-li .t small { display: block; margin-top: 1px; font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.rg-li .t small.sun { color: var(--sun-ink); }
.rg-li .t small.bad { color: var(--bad); white-space: normal; }
/* « Annuler » sous le formulaire d'un autre compte (Sunology, 0.976). */
.conn-form .rc-ann { justify-self: start; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.rg-li .v { flex: 0 1 auto; max-width: 72%; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Le nom choisi reste visible, même quand l'aide passe sur plusieurs lignes. */
.rg-reseau .v { max-width: 40%; text-align: right; }
@media (max-width: 700px) {
  .rg-reseau .rg-li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 10px; gap: 8px 12px; }
  .rg-reseau .rg-ic { grid-column: 1; grid-row: 1 / 3; }
  .rg-reseau .t { grid-column: 2; }
  .rg-reseau .v { grid-column: 2; max-width: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .rg-reseau .rg-ud { grid-column: 3; grid-row: 1 / 3; }
}
.rg-li.bad .t, .rg-li.bad .t b { color: var(--bad); }
.rg-li.sun .t { color: var(--sun-ink); }
.rg-li .su-source { color: var(--sun-ink); }
.rg-acts .rg-li { justify-content: center; }
.rg-acts .rg-li .t { flex: none; text-align: center; }
.rg-chev { flex: none; width: 9px; height: 9px; margin: 0 5px 0 0; border: solid var(--rg-chev); border-width: 2px 2px 0 0; border-radius: 1px; transform: rotate(45deg); }
.rg-ud { flex: none; position: relative; width: 10px; height: 16px; }
.rg-ud::before, .rg-ud::after { content: ""; position: absolute; left: 2px; width: 6px; height: 6px; border: solid var(--muted); border-width: 1.8px 1.8px 0 0; }
.rg-ud::before { top: 3px; transform: rotate(-45deg); }
.rg-ud::after { bottom: 3px; transform: rotate(135deg); }
/* Un menu dans une ligne : le vrai <select>, invisible, la couvre (le menu du téléphone). */
.rg-sel select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; font-size: 16px; cursor: pointer; }
.rg-sel select:disabled { cursor: default; }
.rg-reseau { margin-top: 12px; }
/* Les pictogrammes des lignes, dans leur case teintée. */
.rg-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--muted); background: rgb(var(--fg-rgb) / .06); }
.rg-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-ic.reseau { color: #e0606e; background: rgba(224, 96, 110, 0.16); }
.rg-ic:is(.sun, .production, .q, .aucun) { color: var(--sun-stroke); background: rgba(242, 181, 51, 0.16); }
.rg-ic:is(.prise, .appareil) { color: #a79ef0; background: rgba(144, 133, 233, 0.18); }
.rg-ic.maison { color: #6aa8f0; background: rgba(106, 168, 240, 0.16); }
.rg-ic.bat { color: #45c96b; background: rgba(69, 201, 107, 0.16); }
.rg-ic.instagram { color: #e4508a; background: rgba(228, 80, 138, 0.16); }
.rg-ic.discord { color: #7c86f5; background: rgba(88, 101, 242, 0.18); }
.rg-ic .ico { width: 18px; height: 18px; }
.rg-li:has(> .rg-ic) + .rg-li:has(> .rg-ic)::before { left: 60px; }
.rg-ic.off { color: var(--muted); background: rgb(var(--fg-rgb) / .06); }
:root[data-mode="jour"] .rg-ic.reseau { color: #c94452; }
:root[data-mode="jour"] .rg-ic:is(.prise, .appareil) { color: #6a5cd6; }
:root[data-mode="jour"] .rg-ic.maison { color: #2f6fc4; }
:root[data-mode="jour"] .rg-ic.bat { color: #1e8f3c; }
/* L'interrupteur « Compter … » : vert quand il compte. */
.rg-switch { flex: none; position: relative; display: block; width: 51px; height: 31px; padding: 0; border: 0; border-radius: 16px; background: var(--rg-track); cursor: pointer; transition: background .2s; }
.rg-switch:hover { background: var(--rg-track); }
.rg-switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transition: transform .2s; }
.rg-switch[aria-checked="true"], .rg-switch[aria-checked="true"]:hover { background: #45c96b; }
.rg-switch[aria-checked="true"]::before { transform: translateX(20px); }
.rg-switch:disabled { cursor: default; opacity: .6; }
.rg-switch:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.rg-sw.ask { background: rgba(242, 181, 51, 0.07); }
.rg-sw.ask .t small { color: var(--sun-ink); }

/* Apparence : trois écrans en miniature. */
.rg-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 20px 12px 16px; border-radius: 24px; background: var(--surface); }
.rg-looks button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; line-height: 20px; }
.rg-looks button:hover { background: none; color: var(--ink); }
.rg-ph { display: block; width: 78px; height: 132px; padding: 3px; border: 2px solid transparent; border-radius: 18px; }
.rg-ph > span { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 12px 8px; border-radius: 14px; background: #0d0d0d; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .08); }
[data-look="jour"] .rg-ph > span { background: #f4f3ef; }
[data-look="auto"] .rg-ph > span { background: linear-gradient(135deg, #f4f3ef 50%, #0d0d0d 50%); }
.rg-ph i { display: block; height: 20px; border-radius: 7px; background: rgba(128, 128, 128, 0.3); }
.rg-ph i:first-child { width: 60%; height: 6px; border-radius: 3px; background: rgba(128, 128, 128, 0.6); }
.rg-ph i:nth-child(2) { height: 34px; }
.rg-radio { position: relative; width: 22px; height: 22px; border: 1.5px solid #5f5e59; border-radius: 11px; }
[aria-checked="true"] > .rg-ph { border-color: #f2b533; }
[aria-checked="true"] > .rg-radio { border-color: #f2b533; background: #f2b533; }
[aria-checked="true"] > .rg-radio::after { content: ""; position: absolute; left: 6.5px; top: 3px; width: 5px; height: 10px; border: solid #1b1305; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Mon compte. */
.rg-me { cursor: default; }
.rg-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px; background: #2b2415; color: #f2b533; font-size: 17px; font-weight: 600; }
:root[data-mode="jour"] .rg-av { background: #fbefd2; color: #9a5f00; }
.rg-me .t b { overflow-wrap: anywhere; }

/* La page d'un appareil. */
.rg-back { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 4px; padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); cursor: pointer; }
.rg-back:hover { background: var(--rg-hover); color: var(--ink); }
.rg-back svg { width: 10px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rg-hero2 { display: flex; flex-direction: column; align-items: center; margin: 8px 0 24px; text-align: center; }
.rg-hero2 h1 { margin: 16px 0 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: 0; }
.rg-st { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 7px; margin: 6px 16px 0; font-size: 15px; line-height: 20px; color: var(--ink-2); }
.rg-st .rg-dot { margin: 0; }
.rg-st .bad { color: var(--bad); }
/* La fiche d'un appareil relié, en tête de sa page : comme une carte de l'app Shelly
   (bandeau signal · mise à jour · modèle, photo détourée dans un rond sombre, pastilles,
   la valeur en grand), un liseré vert tant qu'il consomme ou produit. */
.shd-h:has(> .rg-fiche) { display: block; }
.rg-fiche { margin: 4px 0 20px; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--card-line); transition: border-color .3s, box-shadow .3s; }
.rg-fiche.on { border-color: rgba(69, 201, 107, 0.6); box-shadow: 0 0 0 1px rgba(69, 201, 107, 0.35), 0 0 26px rgba(69, 201, 107, 0.22); }
.rg-fiche.off .rg-fm { opacity: .6; }
.rg-fs { display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 12px; line-height: 16px; color: var(--muted); background: rgb(var(--fg-rgb) / .04); }
.rg-fs .ic { flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rg-fs svg, .rg-chips svg, .rg-fw svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rg-fs svg { width: 14px; height: 14px; }
.rg-fs .upd { color: var(--t-blue); }
.rg-fs .ko, .rg-fs .faible { color: var(--bad); }
.rg-fs .rg-dot { margin: 0; }
.rg-fs .sp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.rg-fm { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "ph nm w" "ph ch w"; gap: 8px 14px; align-items: center; padding: 16px; }
.rg-fm:has(> .rg-chips:empty) { grid-template-areas: "ph nm w"; }
.rg-fph { grid-area: ph; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #2a2a2a, #0c0c0c 72%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06); }
:root[data-mode="jour"] .rg-fph { background: radial-gradient(circle at 50% 30%, #ffffff, #e8e6df 78%); box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .08); }
.rg-fph img { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); }
:root[data-mode="jour"] .rg-fph img { filter: drop-shadow(0 3px 5px rgba(60, 40, 10, 0.2)); }
.rg-fph svg { width: 64px; height: 64px; }
.rg-fn { grid-area: nm; min-width: 0; align-self: end; }
.rg-fm:has(> .rg-chips:empty) .rg-fn { align-self: center; }
.rg-fn h1 { margin: 0; font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: 0; overflow-wrap: anywhere; }
.rg-fn h1 .rg-beta { font-size: 11px; }
.rg-chips { grid-area: ch; align-self: start; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.rg-chips:empty { display: none; }
.rg-chips span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 10px; border-radius: 10px; background: var(--well);
  font-size: 13px; line-height: 17px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rg-chips span.sun { color: var(--sun-ink); background: rgba(242, 181, 51, 0.14); }
.rg-chips span.bad { color: var(--bad); background: rgba(229, 103, 122, 0.14); }
.rg-chips svg { width: 14px; height: 14px; }
.rg-fiche .rg-fw { grid-area: w; display: grid; justify-items: center; gap: 2px; min-width: 76px; padding: 10px; border-radius: 16px; background: var(--well); }
.rg-fiche .rg-fw:empty { display: none; }
.rg-fiche .rg-fw svg { width: 20px; height: 20px; color: var(--muted); }
.rg-fiche.on .rg-fw svg { color: #ffd34d; }
:root[data-mode="jour"] .rg-fiche.on .rg-fw svg { color: var(--sun-stroke); }
.rg-fiche .rg-fw b { font-size: 18px; line-height: 22px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rg-fiche .rg-fw small { display: block; font-size: 11px; line-height: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 420px) {
  /* Les pastilles passent sous la photo, sur toute la largeur. */
  .rg-fm { grid-template-columns: 70px minmax(0, 1fr) auto; grid-template-areas: "ph nm w" "ch ch ch"; gap: 12px; padding: 14px; }
  .rg-fn { align-self: center; }
  .rg-fph { width: 70px; height: 70px; }
  .rg-fph svg { width: 54px; height: 54px; }
  .rg-fn h1 { font-size: 19px; line-height: 24px; }
  .rg-fiche .rg-fw { min-width: 68px; padding: 8px; }
}
.rg-beta { margin-left: 4px; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--t-ia); vertical-align: 4px; }
.rg-tag { flex: none; font-size: 12px; line-height: 16px; font-weight: 600; padding: 3px 8px; border-radius: 10px; color: #45c96b; background: rgba(69, 201, 107, 0.14); }
:root[data-mode="jour"] .rg-tag { color: #1e8f3c; }
.rg-tag.att { color: #f2b533; background: rgba(242, 181, 51, 0.14); white-space: nowrap; }
:root[data-mode="jour"] .rg-tag.att { color: #9a5f00; }
.rg-need + .rg-tag.att, .t > .rg-tag.att { display: inline-block; margin-top: 5px; }
.zd-3ct-src { margin-bottom: 14px; }
.zd-ajout[hidden], .zd-deja[hidden], .zd-plus[hidden] { display: none; }
.zd-mes .rg-list { margin-bottom: 12px; }
.zd-me .t b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.zd-src { font-size: 11px; line-height: 15px; font-weight: 600; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.zd-src.cloud { color: #c9c0fb; background: rgba(201, 192, 251, 0.14); }
.zd-src.local { color: #9dbcff; background: rgba(120, 165, 255, 0.15); }
.zd-src.deux { color: #f2b533; background: rgba(242, 181, 51, 0.14); }
:root[data-mode="jour"] .zd-src.cloud { color: #5b45cf; background: rgba(91, 69, 207, 0.1); }
:root[data-mode="jour"] .zd-src.local { color: #2a6bd8; background: rgba(42, 107, 216, 0.1); }
:root[data-mode="jour"] .zd-src.deux { color: #9a5f00; }
.zd-plus { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 16px; padding: 13px 14px; border-radius: 16px; border: 1.5px dashed rgb(var(--fg-rgb) / .22);
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.zd-plus:hover { border-color: rgb(var(--fg-rgb) / .4); }
.zd-plus .pl { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; font-weight: 600;
  color: #1b1305; background: linear-gradient(90deg, #fde08a, #f2b533 55%, #e88a2a); }
.zd-plus b { display: block; font-weight: 600; }
.zd-plus small { display: block; color: var(--muted); font-size: 13px; }
.zd-deja { display: grid; gap: 6px; margin: 10px 0 8px; }
.zd-deja > b { font-size: 13px; font-weight: 600; }
.zd-ip-l { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgb(var(--fg-rgb) / .05); font-size: 13px; }
.zd-muet { color: #f2b533; }
:root[data-mode="jour"] .zd-muet { color: #9a5f00; }
.zd-ip-l small, .zd-ip-n { color: var(--muted); font-size: 12.5px; }
.zd-ok { color: #45c96b; font-weight: 600; }
:root[data-mode="jour"] .zd-ok { color: #1e8f3c; }
.zd-src { margin-bottom: 12px; }
/* Relier un appareil : recherche, types d'appareil, puis les sources par famille. */
.rg-add { container-type: inline-size; }
.rg-search { position: relative; margin: 6px 0 0; }
.rg-search svg { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.rg-search > svg { left: 16px; color: var(--muted); }
.rg-search input { width: 100%; height: 50px; margin: 0; padding: 0 46px; border: 1px solid transparent; border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
:root[data-mode="jour"] .rg-search input { border-color: rgb(var(--fg-rgb) / .1); }
.rg-search input::placeholder { color: var(--muted); }
.rg-search input::-webkit-search-cancel-button { display: none; }
.rg-search input:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgb(242 181 51 / .22); }
.rg-search .x { position: absolute; right: 6px; top: 50%; display: none; width: 36px; height: 36px; margin: -18px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.rg-search .x svg { position: static; margin: 0; }
.rg-search.has .x { display: grid; place-items: center; }
.rg-fams { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
/* Cinq types côte à côte : le dessin au-dessus du nom, pour que « Compteurs et prises » tienne. */
.rg-fam { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; margin: 0; padding: 14px; border: 1px solid transparent; border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.rg-fam:hover { background: var(--rg-hover); }
:root[data-mode="jour"] .rg-fam:hover { background: #fbfaf7; }
.rg-fam .rg-plate { width: 46px; height: 46px; border-radius: 13px; }
.rg-fam .rg-plate :is(svg, img) { width: 38px; height: 38px; }
.rg-fam b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.rg-fam small { display: block; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.rg-fam[aria-pressed="true"] { border-color: var(--sun); background: rgb(242 181 51 / .1); }
.rg-fam[aria-pressed="true"] small { color: var(--sun-ink); }
.rg-relies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 4px 0; }
.rg-relies > span { margin-right: 2px; font-size: 13px; color: var(--muted); }
.rg-relies button { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 12px 6px 10px; border: 0; border-radius: 999px; background: rgba(69, 201, 107, .14); color: #45c96b; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
:root[data-mode="jour"] .rg-relies button { color: #1e8f3c; }
.rg-relies button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rg-count { margin: 14px 4px -14px; font-size: 13px; color: var(--muted); }
.rg-add .rg-h3 small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.rg-src { min-height: 68px; }
.rg-src .t b { font-weight: 500; }
.rg-src .t small { white-space: nowrap; }
.rg-src mark { padding: 0 1px; border-radius: 3px; background: rgb(242 181 51 / .3); color: inherit; }
.rg-need { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin-top: 2px; font-size: 12.5px; line-height: 17px; color: var(--ink-2); }
.rg-need > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rg-need i { font-style: normal; color: var(--muted); }
.rg-need em { flex: none; font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--t-ia); }
.rg-need em.ctrl { color: var(--sun-ink); }
.rg-src.soon { opacity: .62; }
.rg-src.soon .t small { white-space: normal; }
.rg-none { margin-top: 20px; padding: 24px; border-radius: 24px; background: var(--surface); }
.rg-none b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; }
.rg-none p { margin: 0 0 14px; max-width: 60ch; color: var(--ink-2); }
/* Sur grand écran, chaque famille sur deux colonnes : la liste tient deux fois moins haut. */
@container (min-width: 760px) {
  .rg-srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rg-srcs > .rg-li:nth-child(odd):not(:last-child) { box-shadow: inset -1px 0 var(--rg-sep); }
  .rg-srcs > .rg-li:nth-child(2)::before { display: none; }
  .rg-srcs > .rg-li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@container (max-width: 640px) {
  .rg-fams { display: flex; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
  .rg-fams::-webkit-scrollbar { display: none; }
  .rg-fam { flex: none; flex-direction: row; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 999px; }
  .rg-fam .rg-plate { width: 32px; height: 32px; border-radius: 50%; }
  .rg-fam .rg-plate :is(svg, img) { width: 26px; height: 26px; }
  .rg-fam small { display: none; }
  .rg-need { display: block; }
  .rg-need > span { white-space: normal; }
  .rg-need em { margin-left: 6px; }
}
.rg-card { padding: 18px 16px 16px; border-radius: 24px; background: var(--surface); }
.rg-k { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-big { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.rg-big b { font-size: 44px; line-height: 50px; font-weight: 600; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.rg-big span { font-size: 17px; line-height: 22px; color: var(--ink-2); }
/* La journée par demi-heure : barres jointives, de la teinte de la série (claires en haut ;
   sous l'axe, claires en bas). */
.rg-bars { margin-top: 14px; }
.rg-bars .up, .rg-bars .dn { display: flex; gap: 2px; }
.rg-bars .up { height: 48px; align-items: flex-end; }
.rg-bars .dn { height: 40px; align-items: flex-start; border-top: 1px solid rgb(var(--fg-rgb) / .14); }
.rg-bars.prod .up { border-bottom: 1px solid rgb(var(--fg-rgb) / .14); }
.rg-bars i { flex: 1; min-width: 0; display: block; }
.rg-bars .up i { border-radius: 2px 2px 0 0; background: linear-gradient(#ffd56b, #d08a12); }
.rg-bars.reseau .up i { background: linear-gradient(#df7a80, #9d3540); }
.rg-bars.reseau .dn i { border-radius: 0 0 2px 2px; background: linear-gradient(#8e4a55, #eeb0b8); }
.rg-bars.bat .up i { background: linear-gradient(#8fe3a8, #2f9a52); }
.rg-bars.bat .dn i { border-radius: 0 0 2px 2px; background: linear-gradient(#a8524c, #f0aaa2); }
.rg-bars.jour { touch-action: pan-y; cursor: crosshair; outline-offset: 4px; }
.rg-bars.jour.vise i { opacity: .38; }
.rg-bars.jour.vise i.on { opacity: 1; }
.rg-jour .rg-leg + .rg-g { margin-top: 22px; }
.rg-det { margin: 8px 0 0; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rg-bars.vise ~ .rg-det { color: var(--ink); }
.rg-leg i.chg { background: #45c96b; }
.rg-leg i.dis { background: #d9837b; }
.rg-ax { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; line-height: 14px; color: var(--muted); }
.rg-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.rg-leg span { display: inline-flex; align-items: center; gap: 6px; }
.rg-leg i { width: 8px; height: 8px; border-radius: 4px; }
.rg-leg i.prod { background: #f2b533; }
.rg-leg i.imp { background: #df7a80; }
.rg-leg i.exp { background: #eeb0b8; }
/* Ce qu'une page reprend d'avant (formulaires, adresse du Shelly, guides) : en cartes. */
.rg-dp .conn-on, .rg-dp .conn-form { display: block; margin: 0; }
.rg-dp .conn-on > * + *, .rg-dp .sh-devs > * + *, .rg-dp .zd-devs > * + *, .rg-dp .zd-dev > * + *, .rg-dp .shd-page > * + * { margin-top: 12px; }
.rg-dp .rg-h3 { margin: 28px 4px 10px; }
.rg-dp .rg-h3 + *, .rg-dp .shd-page > .shd-now:empty + .rg-h3 { margin-top: 0; }
.rg-dp .rg-h3:first-child, .rg-dp .zd-dev:first-child > .rg-h3:first-child { margin-top: 8px; }
.rg-dp .rg-foot { margin-top: 8px; }
.rg-dp .sh-devs, .rg-dp .zd-devs { display: block; }
.rg-dp .sh-devs:empty, .rg-dp .zd-devs:empty, .rg-dp .shd-now:empty, .rg-dp .shd-info:empty, .rg-dp .shd-acts:empty { display: none; }
/* « Pourquoi il n'est pas en direct » : carte neutre, la couleur sur les pastilles. */
.rg-dp .shd-g1:empty, .rg-dp .shd-page .shd-tiles:empty { display: none; }
.pq { display: grid; gap: 12px; }
.pq h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.pq h3 svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--sun-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pq ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pq ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.pq b { color: var(--ink); font-weight: 600; }
.pq ul li::before { flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pq ul li.ok::before { content: "✓"; color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.pq ul li.warn::before { content: "!"; color: var(--sun-ink); background: color-mix(in srgb, var(--sun-ink) 18%, transparent); }
.pq ul li.ko::before { content: "✕"; color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.pq-why { margin: 0; padding: 12px 14px; border-radius: 16px; background: rgb(var(--fg-rgb) / .045); font-size: 14px; line-height: 20px; color: var(--ink-2); }
.pq ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.pq .pq-b { width: 100%; min-height: 44px; }
.pq-adr { display: grid; gap: 2px; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.pq-adr .sh-url input { min-height: 44px; }
.pq-adr .sh-url button { min-height: 44px; }
.pq .ghost.pq-b { justify-content: center; text-align: center; border: 1px solid var(--line); color: var(--ink); }
.rg-dp .conn-form { display: grid; gap: 12px; padding: 18px 16px; border-radius: 24px; background: var(--surface); }
.rg-dp .conn-form .go { justify-self: start; }
.rg-dp .conn-on > .who { padding: 15px 16px; border-radius: 24px; background: var(--surface); font-size: 15px; line-height: 20px; }
.rg-dp .conn-on > .msg:empty { display: none; }
.rg-dp :is(.sh-add, .sh-g1) { border: 0; border-radius: 24px; background: var(--surface); }
.rg-dp .sh-g1-discret:not([open]) { background: none; padding: 0 16px; }
.rg-dp .sh-add:not([hidden]) { padding: 18px 16px; }
.rg-dp .conn-on > .go { justify-self: start; }
/* Leurs boutons Déconnecter, Supprimer… : des lignes, comme en bas d'une page de l'app. */
.rg-dp :is(.conn-on, .conn-form) > .conn-btns { display: block; padding: 0; border-radius: 24px; background: var(--surface); overflow: hidden; }
.rg-dp :is(.conn-on, .conn-form) > .conn-btns .conn-pair { display: contents; }
.rg-dp :is(.conn-on, .conn-form) > .conn-btns :is(button, .hint) { display: flex; justify-content: center; width: 100%; margin: 0; padding: 15px 16px; border: 0; border-radius: 0;
  background: none; box-shadow: inset 0 1px var(--rg-sep); color: var(--ink); font: inherit; font-size: 17px; line-height: 22px; }
.rg-dp :is(.conn-on, .conn-form) > .conn-btns .hint { font-size: 13px; line-height: 18px; color: var(--muted); }
.rg-dp :is(.conn-on, .conn-form) > .conn-btns > :first-child, .rg-dp :is(.conn-on, .conn-form) > .conn-btns > .conn-pair:first-child > :first-child { box-shadow: none; }
.rg-dp :is(.conn-on, .conn-form) > .conn-btns button:hover { background: rgb(var(--fg-rgb) / .035); }
.rg-dp :is(.conn-on, .conn-form) > .conn-btns .danger { color: var(--bad); }
/* La page d'un Shelly : ses lignes, le réglage ouvert juste sous la sienne. */
.rg-dp .shd-page { display: block; padding: 0; border: 0; }
.rg-dp .shd-page .shd-h { display: block; }
.shd-page .shd-ln.on { background: rgb(var(--fg-rgb) / .035); }
.shd-page .shd-ln.on .rg-chev { transform: rotate(135deg); margin-top: -4px; }
.shd-page .shd-ln:disabled .rg-chev { display: none; }
.shd-page .shd-ed:not([hidden]) { border: 0; border-top: 1px solid var(--rg-sep); border-radius: 0; padding: 14px 16px 16px; background: rgb(var(--fg-rgb) / .025); }
.shd-page .shd-ed .rg-list { background: rgb(var(--fg-rgb) / .045); border-radius: 16px; }
.shd-page .shd-ed .rg-li { font-size: 15px; line-height: 20px; min-height: 0; }
.rg-pad { padding: 15px 16px; }
.rg-dp .shd-page.paused > :not(.shd-h, .shd-acts) { opacity: .5; }
.rg-dp .shd:not(.shd-page) { padding: 14px 16px; border: 0; border-radius: 24px; background: var(--surface); }
/* Une batterie : sa charge en grand, ses lignes. */
.rg-dp .zd-dev { display: block; padding: 0; border: 0; background: none; }
.rg-dp .zd-dev.paused > :not(.rg-h3, .rg-acts) { opacity: .5; }
.rg-dp .zd-dev.paused > .rg-foot { opacity: 1; }

/* Mon installation (projet.js) : sa page. */
#setInst { margin-top: 16px; padding: 4px 18px 18px; border-radius: 24px; background: var(--surface); }
/* Dans l'app, une seule page à la fois : pas de liste, pas de titre (la feuille a le sien). */
.solo #rgMain, .solo #rgInst > .rg-pt { display: none; }
@media (max-width: 560px) {
  .rg-hero { height: 300px; }
  .rg-hero img { height: 214px; }
  .rg-looks { padding: 18px 6px 14px; gap: 4px; }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bento { gap: 12px; }
  .tile2 { padding: 18px; border-radius: 20px; }
  .flow .stage { aspect-ratio: 1 / 1; }
  .flow .orb { width: 58px; height: 58px; }
  .flow .orb svg { width: 26px; height: 26px; }
  .flow .val { font-size: 20px; }
  .flow .node.right .txt { left: calc(100% + 10px); }
  .flow .node.sun .stag { font-size: 14px; }
  .flow .lab { font-size: 11px; }
  .flow .sunt { display: none; }
  .flow .compass { width: 110px; }
}
@media (max-width: 560px) {
  .tabs button { padding: 8px 11px; font-size: 13px; }
  .now2 .sg .ring, .now2 .sg .wi { width: 20px; height: 20px; top: 8px; right: 8px; }
  .now2 .sg .l { padding-right: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { .flow .wire, .flow .orb { transition: none; } }

/* Mot de passe */
.dlg { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 20px; padding: 22px; width: min(380px, calc(100% - 32px)); }
.dlg::backdrop { background: #000a; }
.dlg form { display: grid; gap: 12px; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; }
/* Le contrat et l'installation (onglet Réseau) : saisis par le client, ou relevés sur sa facture. */
/* Avertissement avant de supprimer un appareil et son historique. */
.dlg.del { width: min(500px, calc(100% - 32px)); border-color: #ff6b6355; }
.dlg.del h3 { margin: 0; }
.del-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ff6b631f; color: #ff6b63; }
.del-l { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.del-l b { color: var(--ink); font-weight: 600; }
.dlg.del .dlg-btns { flex-wrap: wrap; }
/* Déconnecter, délier : rien n'est effacé, la même fenêtre sans le rouge. */
.dlg.del.soft { border-color: var(--line-2); }
.dlg.del.soft .del-ic { background: rgb(var(--fg-rgb) / .071); color: var(--muted); }
.dlg.del:not(.soft) .dlg-btns .danger { background: #ff6b63; color: #1a0d0c; border-color: #ff6b63; }
.dlg.ct { width: min(620px, calc(100% - 24px)); max-height: calc(100svh - 32px); overflow-y: auto; }
/* « Écrivez-nous » (Réglages › Mon compte) : de quoi il s'agit, puis le message. */
.dlg.wr { width: min(460px, calc(100% - 32px)); }
.dlg.wr h3 { margin: 0; }
.dlg.wr .shd-chip.on { background: rgba(242, 181, 51, 0.14); border-color: #f2b53388; }
.dlg.wr .wr-top { border-style: dashed; }
.dlg.wr textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; resize: vertical; }
.dlg.wr textarea:focus { outline: none; border-color: #f2b53388; }
.ct-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-top h3 { margin: 0; }
.ct .x { background: none; border: 0; font-size: 22px; color: var(--muted); padding: 2px 6px; }
.ct-sub, .ct-hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ct h4 { margin: 8px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.ct-read { display: grid; gap: 6px; }
.ct-file { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed #f2b53366; border-radius: 14px; background: #f2b5330a; cursor: pointer; }
.ct-file:hover { border-color: #f2b533aa; }
.ct-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ct-file:focus-within { outline: 2px solid #f2b53388; outline-offset: 2px; }
.ct-file span { font-weight: 600; color: var(--sun-ink); }
.ct-file small { color: var(--muted); font-size: 12px; }
.ct-file.off { opacity: .45; cursor: default; filter: grayscale(1); }
.ct-file.busy span::after { content: " …"; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ct-grid label, .ct-row label { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }
.ct .u { position: relative; display: block; }
.ct .u input { padding-right: 64px; }
.ct .u i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.ct input.lu { border-color: #f2b53399; background: #f2b53312; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 36px; gap: 8px; align-items: end; }
.ct-row + .ct-row { margin-top: 8px; }
.ct-row button { height: 42px; padding: 0; background: none; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); }
.ct-add { justify-self: start; background: none; border: 0; color: var(--sun-ink); padding: 2px 0; font-size: 13px; }
.e-ct { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.e-ct button { background: rgb(var(--fg-rgb) / .051); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--ink); filter: none; }
.e-ct a.go { padding: 8px 14px; font-size: 13px; }
.ct-inst { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.e-ct button.go { background: linear-gradient(100deg, var(--sun-1), var(--sun) 55%, var(--sun-3)); color: #1b1305; border: 0; }
.e-ctedit { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* La fenêtre seule, dans l'app iPhone (?ouvrir=maison) : plein écran sur le fond de la
   page, sans son titre ni sa croix (la feuille de l'app a les siens). */
.solo-maison .mp { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 16px 16px 28px; }
.solo-maison .mp::backdrop { background: var(--bg); }
.solo-maison .mp .ct-top { display: none; }
/* Seule, la fenêtre « Ma maison » ne laisse pas voir l'accueil de l'espace derrière elle, même avant de s'ouvrir. */
.solo-maison .bar, .solo-maison .main, .solo-maison .legal-foot, .solo-maison .apercu { visibility: hidden; }
.mp-state { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: rgb(var(--fg-rgb) / .031); border: 1px solid var(--line); color: var(--ink-2); }
.mp-adr { padding: 12px; border-radius: 12px; border: 1px solid rgb(242 181 51 / .45); background: rgb(242 181 51 / .06); }
.mp-adr > p { margin: 0 0 8px; font-size: 13px; color: var(--ink); }
/* Les repères de la parcelle, à glisser par le client (comme dans l'admin). */
.mp-rp { display: grid; gap: 8px; }
.mp-rp[hidden] { display: none; }
.mp-rp h4, .mp-rp .ct-hint { margin: 0; }
#mpRpChoix[hidden], #mpRpChoix button[hidden] { display:none; }
#mpRpChoix [aria-pressed="true"] { background:var(--ink); color:var(--surface); }
#mpRpVoir { justify-self:start; }
.mp-rp-box { position:relative; width:100%; min-width:0; aspect-ratio:1; overflow:hidden; background:var(--surface); border-radius:14px; }
#mpScene.flow { position:absolute; inset:0; display:block; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; background:transparent; }
#mpScene .stage { margin:0; transform-origin:top left; pointer-events:none; }
#mpScene.native-scene .orb { width:min(56px,15cqw); height:min(56px,15cqw); }
#mpScene.native-scene { container-type:inline-size; }
.mp-rp-box.sans-reperes .mp-rp-pin { display:none; }
.mp-rp-box .mp-rp-pin { z-index:5; }
.mp-rp-box .mp-rp-pin.v { background:transparent; border:2px dashed #526dc7; box-shadow:none; }
.mp-rp-pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px #0006; cursor: grab; touch-action: none; }
.mp-rp-pin.v::before { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:max(44px,var(--prise-largeur,0px)); height:max(44px,var(--prise-hauteur,0px)); }
.mp-rp-pin:active { cursor: grabbing; }
.mp-rp-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mp-rp-pin.m { background: #b3a8ff; }
.mp-rp-pin.b { background: #45c96b; }
.flow .hub, .flow .hub-pan { display: none; }
.mp-rp-pin.p { background: var(--sun); }
.mp-rp-pin[hidden] { display: none; }
.mp-rp-pin i { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 700;
  color: #1d1c19; background: #fff; padding: 1px 7px; border-radius: 99px; box-shadow: 0 1px 4px #0004; pointer-events: none; }
.mp-rp-pin.b i { top: auto; bottom: 26px; }
.mp-rp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-vers { display: grid; gap: 8px; }
.mp-vers h4 { margin: 0; }
.mp-vers .ct-hint { margin: 0; }
/* Le style de sa maison : Maquette (la maison seule) ou Parcelle (tout le terrain). Chaque
   carte montre la maison du client dans ce style et ses atouts ligne à ligne ; une seule
   marque, « Sur l'accueil ». Étroite (apps, téléphone), la carte passe en ligne. */
.mp-styles { display: grid; gap: 8px; container-type: inline-size; }
.mp-styles h4, .mp-styles .ct-hint { margin: 0; }
.mp-sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-sty { position: relative; display: flex; flex-direction: column; text-align: left; color: var(--ink); border-radius: 16px; border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .02); overflow: hidden; transition: border-color .2s, background-color .2s; }
.mp-sty.libre { cursor: pointer; }
.mp-sty.libre:hover { border-color: #f2b53366; }
.mp-sty.on { border-color: #f2b533aa; background-color: #f2b5331a; }
.mp-pic { position: relative; margin: 8px 8px 0; border-radius: 11px; overflow: hidden; background: #121211; aspect-ratio: 9 / 7; display: grid; place-items: center; }
.mp-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mp-sty.ex .mp-pic img, .mp-sty.verrou .mp-pic img { opacity: .5; filter: saturate(.6); }
.mp-sty.prep .mp-pic img { opacity: .55; filter: blur(3px) saturate(.5); }
.mp-sty.prep .mp-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .1) 50%, transparent 70%) 0 0 / 200% 100%; animation: mp-balaye 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mp-sty.prep .mp-pic::after, .mp-chip.prep i, .mp-etat i.tourne { animation: none; } }
@keyframes mp-balaye { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.mp-chip { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: rgb(0 0 0 / .65); color: #fff; }
.mp-chip.on { background: #f2b533; color: #1b1305; }
.mp-chip.on::before { content: "✓"; font-size: 11px; }
.mp-chip.ex { background: rgb(255 255 255 / .14); color: #e9e7df; font-weight: 500; }
.mp-chip.prep i, .mp-etat i.tourne { width: 10px; height: 10px; border-radius: 50%; background: none; border: 1.5px solid #f2b533; border-right-color: transparent; animation: mp-tourne 1s linear infinite; flex: none; }
.mp-pic .mp-pro { position: absolute; top: 8px; right: 8px; margin: 0; }
.mp-stxt { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.mp-stxt .mp-n { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mp-stxt > b { font-size: 17px; font-weight: 500; margin: 1px 0 8px; }
.mp-atouts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.mp-atouts li { display: grid; grid-template-columns: 17px 1fr; gap: 8px; align-items: start; font-size: 12.5px; line-height: 1.38; color: var(--ink-2); }
.mp-atouts svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mp-atouts li.fort { color: var(--ink); }
.mp-atouts li.fort svg { stroke: var(--sun); }
.mp-atouts li.faible { color: var(--muted); }
.mp-seul { display: inline-block; margin-top: 3px; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--sun-ink); border: 1px solid color-mix(in srgb, var(--sun) 55%, transparent); border-radius: 99px; padding: 0 7px; }
.mp-spied { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); display: grid; gap: 7px; justify-items: start; }
.mp-spied .go, .mp-spied .of-go-ia { width: 100%; justify-content: center; }
.mp-etat { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.mp-etat i { width: 8px; height: 8px; border-radius: 50%; background: #f2b533; flex: none; }
.mp-etat i.libre { background: none; border: 1.5px solid var(--ink-2); }
.mp-etat.on { color: var(--sun-ink); font-weight: 500; }
.mp-afficher, .mp-afficher:hover { border: 0; background: none; padding: 0; min-height: 0; font: inherit; font-size: 12.5px; text-align: left; color: var(--ink-2); cursor: pointer; }
.mp-sty.libre:hover .mp-afficher { color: var(--ink); }
.mp-afficher:focus-visible { outline: 2px solid #f2b53388; outline-offset: 3px; border-radius: 4px; }
.mp-cq { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.mp-cq .mp-dots i { width: 7px; height: 7px; border-width: 1px; }
.mp-lien, .mp-lien:hover { border: 0; background: none; padding: 0; min-height: 0; font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.mp-lien:hover { color: var(--ink); }
/* La demande d'un style : la photo d'abord. */
.mp-dem { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid #f2b533aa; background: rgb(var(--fg-rgb) / .025); }
.mp-dem h5 { margin: 0; font-size: 16px; font-weight: 500; }
.mp-dem .mp-q { margin: -6px 0 0; }
.mp-phs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-ph { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; text-align: left; padding: 9px; border-radius: 12px; font: inherit; color: var(--ink-2); }
.mp-ph[aria-checked="true"] { border-color: #f2b533aa; background-color: #f2b5331a; color: var(--ink); }
.mp-ph b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.mp-ph small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.mp-ph small.conseil { color: var(--sun-ink); }
.mp-mini { width: 60px; height: 46px; border-radius: 8px; overflow: hidden; background: rgb(var(--fg-rgb) / .06); display: grid; place-items: center; }
.mp-mini img { width: 100%; height: 100%; object-fit: cover; }
.mp-mini.plus { font-size: 22px; color: var(--ink-2); }
.mp-astuce { margin: 0; display: grid; grid-template-columns: 17px 1fr; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.mp-astuce svg { width: 16px; height: 16px; fill: none; stroke: var(--sun); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mp-cout { margin: 0; font-size: 12px; color: var(--muted); }
.mp-cout:empty { display: none; }
.mp-dbtns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
#mpDemOr:empty { display: none; }
#mpDemOr .mp-or { padding-top: 4px; }
/* Les repères avec la Maquette : un encart dit qu'ils se placent en Parcelle. */
.mp-rp-sans { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 13px; color: var(--ink-2); }
.mp-rp-sans svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.mp-rp-sans p { margin: 0; }
.mp-rp-sans button { margin-top: 8px; }
.mp-state.vient { border-color: #f2b533aa; background: #f2b5331a; color: var(--ink); }
@container (max-width: 470px) {
  .mp-sgrid, .mp-phs { grid-template-columns: 1fr; }
  .mp-sty { display: grid; grid-template-columns: 40% 1fr; }
  .mp-pic { margin: 8px 0 8px 8px; aspect-ratio: auto; min-height: 112px; align-self: start; }
  .mp-pic img { height: auto; }
  .mp-stxt { padding: 9px 11px 11px; }
  .mp-stxt > b { font-size: 16px; margin-bottom: 6px; }
  .mp-chip { top: 6px; left: 6px; font-size: 11px; padding: 2px 8px; }
}
.mp-pro { margin-left: 4px; padding: 0 7px; font-size: 10.5px; vertical-align: 1px; }
.mp-v em { font-style: normal; color: var(--muted); }
.mp-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.mp-v { display: grid; gap: 4px; padding: 6px 6px 8px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; border-radius: 12px; border: 1px solid var(--line-2);
  background: repeating-conic-gradient(rgb(var(--fg-rgb) / .039) 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.mp-v img { display: block; width: 100%; aspect-ratio: 900 / 805; object-fit: contain; }
.mp-v:hover { color: var(--ink); border-color: #f2b53366; }
.mp-v.on { color: var(--ink); border-color: #f2b533aa; background-color: #f2b5331f; }
.mp-v:focus-visible { outline: 2px solid #f2b53388; outline-offset: 2px; }
.mp-img { display: block; max-width: 100%; max-height: 240px; border-radius: 12px; object-fit: contain; justify-self: start; }
.mp-or { display: grid; gap: 8px; }
.mp-or h4 { margin: 0; }
.mp-or .ct-hint { margin: 0; }
.mp-tt { position: relative; height: 260px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse 60% 30% at 50% 68%, #f2b53314, transparent 70%), rgb(var(--fg-rgb) / .02); }
.mp-tt.empty { height: 180px; }
.mp-tt:active { cursor: grabbing; }
.mp-tt:focus-visible { outline: 2px solid #f2b53388; outline-offset: 2px; }
.mp-tt > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-tt-front { pointer-events: none; }
.mp-tt-front .mp-k { pointer-events: auto; }
.mp-tt img { position: absolute; pointer-events: none; filter: drop-shadow(0 12px 16px #0009); -webkit-user-drag: none; }
.mp-tt img.photo { border-radius: 10px; border: 1px solid var(--line-2); }
.mp-tt img[hidden], .mp-tt-glyph[hidden] { display: none; }
.mp-tt-glyph { position: absolute; left: 50%; top: 68%; transform: translate(-50%, -108%); pointer-events: none; }
.mp-tt-glyph svg { width: 64px; height: 64px; fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.mp-k { cursor: pointer; }
.mp-k circle { fill: var(--surface-2); stroke: var(--line-2); }
.mp-k text { font: 500 11px 'Space Grotesk', system-ui, sans-serif; fill: var(--muted); }
.mp-k.n text { fill: var(--ink); }
.mp-k.on circle { fill: color-mix(in srgb, var(--sun) 16%, var(--surface-2)); stroke: #f2b533; }
.mp-k.on text { fill: var(--sun-ink); }
.mp-fl { font: 600 9px 'Space Grotesk', system-ui, sans-serif; fill: var(--sun-ink); letter-spacing: 0.12em; text-transform: uppercase; }
.mp-tt-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mp-tt-nav button { width: 36px; height: 36px; justify-content: center; padding: 0; border-radius: 50%; font-size: 18px; }
.mp-face { display: grid; justify-items: center; gap: 4px; margin-top: 10px; }
.mp-face small { font-size: 12px; color: var(--muted); }
.mp-tt-nav b { min-width: 150px; text-align: center; font-weight: 500; font-size: 14px; color: var(--ink); }
.mp-chg { justify-self: start; background: none; border: 1px dashed #f2b53366; color: var(--sun-ink); border-radius: 12px; padding: 10px 14px; }
.mp-chg[hidden], .mp-photo[hidden] { display: none; }
.mp-photo { display: grid; gap: 10px; }
.mp-note { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }
.mp-note small { color: var(--muted); }
.mp-note textarea { font: inherit; font-size: 13px; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; }
.mp-note textarea:focus { outline: none; border-color: #f2b53388; }
.mp .dlg-btns { flex-wrap: wrap; }
.mp-drop { margin-right: auto; background: none; border: 0; padding: 8px 0; }
@media (max-width: 560px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; }
  .ct-row label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .bar { padding: 12px 16px; gap: 10px; }
  .tabs { order: 3; flex-basis: 100%; overflow-x: auto; }
  .me { margin-left: auto; }
  .me > span { display: none; } /* pas les icônes des boutons ronds : le mégaphone disparaissait */
  .main { padding: 18px 16px 40px; }
  h1 { font-size: 23px; }
  /* La maquette au-dessus de son tableau de bord, empilés : la hauteur suit le contenu
     (une hauteur fixe faisait passer le texte d'en dessous par-dessus la frise). */
  .sim { min-height: 0; height: auto; }
  .sim .s3-stage { height: 62svh; min-height: 360px; max-height: 560px; }
  .conns { grid-template-columns: 1fr; }
}

.conn-head .pill.beta { margin-left: auto; margin-right: -2px; color: var(--t-ia); border-color: color-mix(in srgb, var(--t-ia) 40%, transparent); }

/* ── Énergie (energie.js) : la page Énergie du dashboard (solaire.html), reprise
   pour l'espace : mêmes cartes, mêmes graphes, mêmes teintes par onglet. ── */
#tab-energie { gap: 16px; position: relative; }
/* Chaque onglet teinte très légèrement le fond, de la couleur de son domaine,
   comme le dashboard : violet le Bilan, jaune la production, vert la batterie,
   rouge le réseau, violet clair la consommation. */
#tab-energie { --tabc: #8f7cf0; --tab1: rgba(143, 124, 240, 0.20); --tab2: rgba(124, 104, 230, 0.10); }
#tab-energie[data-m="production"] { --tabc: #f2b533; --tab1: rgba(242, 181, 51, 0.14); --tab2: rgba(247, 220, 111, 0.06); }
#tab-energie[data-m="batterie"] { --tabc: #199e70; --tab1: rgba(25, 158, 112, 0.16); --tab2: rgba(47, 191, 113, 0.07); }
#tab-energie[data-m="reseau"] { --tabc: #98c6ff; --tab1: rgba(86, 141, 210, 0.10); --tab2: rgba(106, 168, 240, 0.07); }
#tab-energie[data-m="conso"] { --tabc: #9085e9; --tab1: rgba(144, 133, 233, 0.15); --tab2: rgba(144, 133, 233, 0.06); }
#tab-energie[data-m="appareils"] { --tabc: #9085e9; --tab1: rgba(144, 133, 233, 0.15); --tab2: rgba(144, 133, 233, 0.06); }
#tab-energie[data-m="ia"] { --tabc: #8f7cf0; --tab1: rgba(143, 124, 240, 0.16); --tab2: rgba(63, 198, 217, 0.08); }
#tab-energie::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(1200px 820px at 78% -8%, var(--tab1), transparent 70%), radial-gradient(1000px 720px at -5% 105%, var(--tab2), transparent 70%); }

/* En-tête et période : la liste Jour / Mois / Année, ‹ dates ›, « à l'instant ». */
.e-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.e-hd .eyebrow { color: var(--muted); letter-spacing: .16em; }
.pctl { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: flex-end; }
.pctl label.per { display: inline; font-size: 12px; color: var(--muted); }
#tab-energie #eConsoDate, #tab-energie select.range { width: auto; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 34px 10px 14px; min-height: 44px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23c3c2b7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
#tab-energie select.range:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.pnav { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; min-height: 44px; }
.pstep { font: inherit; font-size: 20px; line-height: 1; color: var(--ink); background: none; border: 0; width: 40px; height: 42px; padding: 0; justify-content: center; border-radius: 8px; }
.pstep:hover { background: none; }
.pstep:disabled { color: var(--track); opacity: 1; }
.pstep:focus-visible { outline: 2px solid var(--s1); outline-offset: -2px; }
.plabel { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 168px; text-align: center; }
.stamp { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stamp:empty { display: none; }

/* Onglets : la piste du dashboard, l'onglet choisi dans la teinte de son domaine. */
.e-bilan-outils { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.e-bilan-outils:has(.e-tabs[hidden]):not(:has(.e-pdf:not([hidden]))) { display:none; }
.e-pdf { display:grid; place-items:center; width:44px; height:44px; flex:none; color:var(--ink-2); border-radius:50%; }
.e-pdf:hover,.e-pdf:focus-visible { background:var(--track); color:var(--ink); }
.e-pdf[hidden] { display:none; }
@media(max-width:640px) {
  #tab-energie { position:relative; }
  #eTop { position:relative; }
  #tab-energie:has(.e-pdf:not([hidden])) #eTop h1 { padding-right:48px; }
  #eTop .e-pdf { position:absolute; top:0; right:0; }
}
.e-tabs { display: inline-flex; justify-self: start; background: var(--track); border-radius: 10px; padding: 3px; max-width: 100%; }
.e-tabs button { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 9px 18px; min-height: 40px; white-space: nowrap; justify-content: center; }
.e-tabs button:hover { background: none; color: var(--ink-2); }
.e-tabs button[aria-selected="true"] { color: var(--ink); background: color-mix(in srgb, var(--tabc) 20%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tabc) 45%, transparent), 0 0 18px color-mix(in srgb, var(--tabc) 22%, transparent); transition: background .4s, box-shadow .4s; }
.e-tabs button:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }
/* L'onglet IA : la signature violet → cyan, un cadenas tant que l'admin ne l'a pas ouvert. */
.e-tabs .e-tab-ia { display: inline-flex; align-items: center; gap: 6px; }
.e-tab-ia .ia-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e-tab-ia .ia-k svg { width: 12px; height: 12px; color: var(--t-ia); }
.e-tab-ia .lk { display: inline-flex; color: var(--muted); }
.e-tab-ia .lk svg { width: 13px; height: 13px; }
.ia-lock { border: 1px solid transparent; background: linear-gradient(160deg, rgba(143, 124, 240, 0.10), rgba(63, 198, 217, 0.05) 60%, transparent) padding-box, linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
  linear-gradient(120deg, #8f7cf066, #3fc6d955, #8f7cf066) border-box; text-align: center; padding: 40px 24px; justify-items: center; }
.ia-lock-ic { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; color: var(--t-ia);
  background: linear-gradient(140deg, rgba(143, 124, 240, 0.22), rgba(63, 198, 217, 0.14)); box-shadow: 0 0 28px rgba(143, 124, 240, 0.25); }
.ia-lock-ic svg { width: 30px; height: 30px; }
.ia-lock h3 { font-size: 20px; font-weight: 500; }
.ia-lock h3 .ia-k { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; background: linear-gradient(90deg, #8f7cf0, #3fc6d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ia-lock h3 .ia-k svg { width: 16px; height: 16px; color: var(--t-ia); }
.ia-lock p { max-width: 520px; margin: 10px auto 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.ia-lock ul { list-style: none; margin: 16px auto 0; padding: 0; display: grid; gap: 8px; max-width: 420px; text-align: left; }
.ia-lock li { position: relative; padding-left: 22px; font-size: 13px; color: var(--ink-2); }
.ia-lock li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #8f7cf0, #3fc6d9); }
.ia-lock p.mu { color: var(--muted); font-size: 12px; margin-top: 18px; }
.e-pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
#eApps, .e-apps { min-width: 0; }
.e-empty h2 { font-size: 18px; }
.e-empty p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.e-empty a { color: var(--sun-ink); }

/* Cartes et graphes */
.e-card h3, .e-duo h3, .pair h3 { margin: 0; font-size: 15px; font-weight: 500; }
.e-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; }
.e-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.e-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); padding-top: 3px; }
.e-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.e-legend i { width: 8px; height: 8px; border-radius: 50%; }
.e-legend-rooms { margin-top: 16px; }
.e-legend i.ln { width: 14px; height: 2px; border-radius: 1px; }
.e-none { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
/* Énergie › Consommation : les appareils suivis par les Shelly du client, comme la page
   Consommation du dashboard — « En ce moment » (total, barre, détail), puis par pièce. */
.e-lc-tog { font: inherit; font-size: 13px; color: var(--ink-2); background: rgb(var(--fg-rgb) / .05); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.e-lc-tog::after { content: "›"; display: inline-block; transition: transform 200ms ease; }
.e-lc-tog[aria-expanded="true"]::after { transform: rotate(90deg); }
.e-lc-tog:hover { color: var(--ink); }
.e-lc-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.e-lc-head b { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.e-lc-head span { font-size: 13px; color: var(--ink-2); }
.e-lc-bar { display: flex; gap: 2px; height: 12px; margin: 14px 0 6px; border-radius: 6px; overflow: hidden; background: var(--track); }
.e-lc-bar span { min-width: 2px; }
.e-lc-rows:not([hidden]) { display: grid; }
.e-lc-r { display: grid; grid-template-columns: 10px minmax(0, 1.2fr) minmax(40px, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 2px; border-top: 1px solid var(--border); font-size: 14px; }
.e-lc-r:first-child { border-top: 0; }
.e-lc-r i { width: 9px; height: 9px; border-radius: 50%; }
.e-lc-r .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-lc-r .nm small { color: var(--muted); font-size: 12px; margin-left: 8px; }
.e-lc-r.flat .nm { color: var(--ink-2); }
.e-lc-r .rbar, .e-rk .rbar { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.e-lc-r .rbar > span, .e-rk .rbar > span { display: block; height: 100%; border-radius: 4px; transition: width .6s ease; }
.e-lc-r .v { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.e-lc-r .v small { color: var(--muted); font-size: 12px; margin-left: 8px; display: inline-block; min-width: 38px; }
.e-lc-off { grid-column: 1 / -1; margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.e-lc-off small { font-size: 11px; }
.e-duo.rooms { align-items: stretch; margin-bottom: 16px; }
.e-duo.rooms > .e-card { margin: 0; }
.e-rtot { display: flex; align-items: baseline; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.e-rtot b { font-size: 32px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.e-rtot span { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.e-rooms { margin: 14px 0 6px; display: grid; }
.e-rk { border-top: 1px solid var(--border); }
.e-rk > summary, .e-rk > .sm { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 2px; }
.e-rk > .sm { cursor: default; }
.e-rk > summary::-webkit-details-marker { display: none; }
.e-rk > summary:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; border-radius: 6px; }
.e-rk .nm { font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-rk .nm::before { content: "›"; color: var(--muted); display: inline-block; width: 10px; flex-shrink: 0; transition: transform 200ms ease; }
.e-rk.flat .nm::before { content: ""; }
.e-rk[open] .nm::before { transform: rotate(90deg); }
.e-rk .nm i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.e-rk.flat .nm { color: var(--ink-2); }
.e-rk .v { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.e-rk .v small { color: var(--muted); font-size: 12px; margin-left: 8px; }
.e-rk .devs { padding: 2px 0 12px 20px; display: grid; gap: 6px; }
.e-rk .dv { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.e-rk .dv > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-rk .dv small { color: var(--muted); font-size: 11.5px; }
.e-rk .dv .rbar { height: 5px; }
.e-rk .dv .rbar > span { background: var(--ink-2); opacity: 0.6; }
/* Un appareil ouvre sa fiche (heure, jour, mois, année) : la ligne se touche. */
.e-rk .dv[data-app], #tab-energie .e-lc-r[data-app] { cursor: pointer; border-radius: 6px; margin: 0 -6px; padding: 4px 6px; }
.e-rk .dv[data-app]:hover, #tab-energie .e-lc-r[data-app]:hover { background: rgb(var(--fg-rgb) / .045); color: var(--ink); }
.e-rk .dv[data-app]:focus-visible, #tab-energie .e-lc-r[data-app]:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 1px; }
.e-rk .dv[data-app] .v::after, #tab-energie .e-lc-r[data-app] .v::after { content: "›"; margin-left: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) {
  .e-lc-r { grid-template-columns: 10px minmax(0, 1fr) auto; row-gap: 6px; }
  .e-lc-r .rbar { grid-column: 2 / -1; grid-row: 2; height: 5px; }
  .e-lc-r .nm small { display: block; margin: 2px 0 0; }
  .e-rk > summary, .e-rk > .sm { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .e-rk > summary .rbar, .e-rk > .sm .rbar { grid-column: 1 / -1; grid-row: 2; height: 5px; }
  .e-rk .dv { grid-template-columns: minmax(0, 1fr) auto; }
  .e-rk .dv .rbar { display: none; }
}
.e-chart { position: relative; margin-top: 14px; }
.e-chart svg { display: block; width: 100%; height: 220px; overflow: visible; cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.e-card.big .e-chart svg { height: 290px; }
.e-chart .ax { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.e-chart .grid { stroke: rgb(var(--fg-rgb) / .1); stroke-width: 1; }
.e-chart .zero { stroke: rgb(var(--fg-rgb) / .17); stroke-width: 1; }
.e-tip { position: absolute; top: 0; pointer-events: none; z-index: 3; background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 12px; font-size: 12px; line-height: 1.55; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
/* Au doigt : en haut à droite, jamais sous le pouce. */
.e-tip.pin { left: auto !important; right: 0; top: -6px; }
.e-tip .tt { color: var(--muted); margin-bottom: 4px; }
.e-tip .tt:has(.tth) { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.e-tip .tth { color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.e-tip .tt:only-child { margin-bottom: 0; }
.e-tip .tr { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.e-tip .tr i { width: 9px; height: 9px; border-radius: 2px; }
.e-tip .mu, .mu { color: var(--muted); }

/* Quatre tuiles sobres : pastille, total en grand, une ligne de détail. */
.bk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bk .bt { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.bk .l { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bk .l i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bk .v { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.bk .v small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 5px; letter-spacing: 0; }
.bk .s { font-size: 12px; color: var(--ink-2); margin-top: 8px; font-variant-numeric: tabular-nums; }
.bk .s b { color: var(--ink); font-weight: 500; }

/* D'où vient l'énergie et la comparaison, côte à côte sous le Bilan. */
.e-duo, .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.e-bilan-duo { align-items: stretch; }
.e-duo.one, .pair.one { grid-template-columns: minmax(0, 1fr); }
.pair { align-items: stretch; }
.e-ringbox { display: flex; align-items: center; gap: 24px; margin-top: 22px; flex-wrap: wrap; }
.e-ringbox svg { width: 200px; height: 200px; flex-shrink: 0; }
.e-ringrows { flex: 1 1 190px; min-width: 0; }
.e-ringrows .r { display: grid; grid-template-columns: 10px minmax(min-content, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; font-size: 13px; border-top: 1px solid var(--border); }
.e-ringrows .r:first-child { border-top: 0; }
.e-ringrows i { width: 9px; height: 9px; border-radius: 50%; }
.e-ringrows .pc { font-weight: 500; font-variant-numeric: tabular-nums; }
.e-ringrows .out { color: var(--t-bad); font-weight: 400; }
.e-ringrows .kw { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.e-cmpmodes { display: inline-flex; background: var(--track); border-radius: 8px; padding: 2px; }
.e-cmpmodes[hidden] { display: none; }
.e-cmpmodes button { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; border-radius: 6px; padding: 5px 10px; }
.e-cmpmodes button:hover { background: none; }
.e-cmpmodes button[aria-selected="true"] { background: var(--surface); color: var(--ink); }
/* Les mêmes lignes servent au comparatif du jour (#eCmpRows) et aux deux cartes de la vue Heure (#eHourCompare). */
#eCmpRows { margin-top: 10px; }
#eHourCompare .e-sub { margin-bottom: 10px; }
:is(#eCmpRows, #eHourCompare) .cmp { padding: 10px 0; border-top: 1px solid var(--border); }
:is(#eCmpRows, #eHourCompare) .cmp:first-child { border-top: 0; }
:is(#eCmpRows, #eHourCompare) .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; }
:is(#eCmpRows, #eHourCompare) .dl { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(#eCmpRows, #eHourCompare) .dl.good { color: var(--t-ok); background: rgba(47, 191, 113, 0.16); }
:is(#eCmpRows, #eHourCompare) .dl.bad { color: var(--t-bad); background: rgba(224, 72, 84, 0.2); }
:is(#eCmpRows, #eHourCompare) .dl.flat { color: var(--muted); background: var(--track); }
:is(#eCmpRows, #eHourCompare) .bars { display: grid; grid-template-columns: 52px minmax(0, 1fr) 78px; align-items: center; gap: 4px 10px; margin-top: 7px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
:is(#eCmpRows, #eHourCompare) .ebar { height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; }
:is(#eCmpRows, #eHourCompare) .ebar span { display: block; height: 100%; border-radius: 4px; }
:is(#eCmpRows, #eHourCompare) .v { text-align: right; color: var(--ink-2); }
:is(#eCmpRows, #eHourCompare) .note { font-size: 12px; color: var(--muted); }

/* Comparatif annuel détaillé : nouvelle carte indépendante, sous le bilan existant. */
.e-year { border-color: rgb(242 181 51 / .18); background: radial-gradient(ellipse at 100% 0%, rgb(242 181 51 / .055), transparent 38%), var(--surface); }
.e-year-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; }
.e-year-head h3 { font-size: 17px; font-weight: 500; }
.e-year-controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.e-year-views { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: rgb(var(--fg-rgb) / .025); }
.e-year-views button { border: 0; border-radius: 8px; background: transparent; padding: 7px 10px; color: var(--muted); font-size: 12px; }
.e-year-views button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.e-year-nav { display: inline-flex; align-items: center; gap: 7px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgb(var(--fg-rgb) / .025); }
.e-year-nav button { width: 30px; height: 30px; justify-content: center; padding: 0; border: 0; background: transparent; font-size: 19px; }
.e-year-nav span { min-width: 150px; text-align: center; color: var(--ink-2); font-size: 12px; }
.e-year-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 20px; }
.e-year-kpi { min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--fg-rgb) / .022); }
.e-year-kpi-name { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12px; }
.e-year-kpi-name i { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.e-year-kpi > b { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 5px; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.e-year-kpi > small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.e-year-delta { flex: none; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 500; }
.e-year-delta.good { color: var(--t-ok); background: color-mix(in srgb, var(--t-ok) 13%, transparent); }
.e-year-delta.bad { color: var(--t-bad); background: color-mix(in srgb, var(--t-bad) 13%, transparent); }
.e-year-delta.flat { color: var(--muted); background: var(--track); }
.e-year-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.e-year-chart { min-width: 0; padding: 12px 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--fg-rgb) / .016); }
.e-year-chart-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 9px; }
.e-year-chart-h b { font-size: 13px; font-weight: 500; }
.e-year-chart-h span { color: var(--muted); font-size: 11px; }
.e-year-chart .e-chart { margin-top: 6px; }
.e-year-chart .e-chart svg { height: 205px; }
.e-year-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.e-year-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.e-year-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.e-year-legend i.ln { width: 14px; height: 2px; border-radius: 2px; }
.e-year-foot { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.e-year-empty { margin-top: 16px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .e-year-head { flex-direction: column; }
  .e-year-controls { width: 100%; }
  .e-year-views { flex: 1; }
  .e-year-views button { flex: 1; }
  .e-year-nav { flex: 1; justify-content: space-between; }
  .e-year-charts { grid-template-columns: 1fr; }
  .e-year-chart .e-chart svg { height: 190px; }
}

/* Production : la carte soleil (chiffre doré, l'instant qui bat, l'arc du jour) et
   la case « IA · prévu » à droite, au contour violet → cyan qui circule. */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hero-row.has-fc { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.sunhero { overflow: hidden; }
.sunhero::before { content: ""; position: absolute; inset: -60% -10% 30% 45%; pointer-events: none; background: radial-gradient(closest-side, rgba(242, 181, 51, 0.16), transparent); }
.sh-main { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#tab-energie .label { font-size: 13px; color: var(--ink-2); }
#tab-energie .value { font-size: 56px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
#tab-energie .unit { font-size: 20px; color: var(--ink-2); margin-left: 6px; }
.sunhero .value { background: var(--grad-sun-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-now { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; color: var(--ink-2); padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(242, 181, 51, 0.1); border: 1px solid rgba(242, 181, 51, 0.2); }
.sh-now b { color: var(--t-sun); font-weight: 600; font-variant-numeric: tabular-nums; }
.sh-now i { width: 7px; height: 7px; border-radius: 50%; background: #f2b533; animation: sh-pulse 2s ease-out infinite; }
.sh-now.off i { background: var(--muted); animation: none; }
@keyframes sh-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 181, 51, 0.6); } 100% { box-shadow: 0 0 0 8px rgba(242, 181, 51, 0); } }
.sh-sun { flex: 0 0 168px; text-align: center; }
.sh-sun:empty { display: none; }
.sh-sun svg { display: block; width: 168px; height: 84px; overflow: visible; }
.sh-hm { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 3px; }
.sh-sun small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.sh-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; position: relative; }
.sh-s { --c: #f2b533; padding: 12px 14px; border-radius: 14px; background: rgb(var(--fg-rgb) / .035); border: 1px solid rgb(var(--fg-rgb) / .06); min-width: 0; }
.sh-s.d { --c: #f7dc6f; }
.sh-s.h { --c: #7fe0b0; }
.sh-s .k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); }
.sh-s .k i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.sh-s b { display: block; font-size: 24px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.sh-s b small, .bv b small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.sh-s > small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.sh-s .sh-now { font-size: 12px; gap: 6px; padding: 3px 9px 3px 7px; background: color-mix(in srgb, var(--c) 10%, transparent); border-color: color-mix(in srgb, var(--c) 22%, transparent); }
.sh-s .sh-now b { display: inline; font-size: inherit; margin: 0; color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
.sh-s .sh-now i { width: 6px; height: 6px; background: var(--c); animation-name: sh-pulse-c; }
.sh-s .sh-now.off i { background: var(--muted); animation: none; }
@keyframes sh-pulse-c { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.fc-ia { border: 1px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(120deg, #8f7cf0, #3fc6d9, #8f7cf0) border-box;
  background-size: 100% 100%, 240% 100%; animation: fc-ia-flow 8s linear infinite; }
@keyframes fc-ia-flow { to { background-position: 0 0, 240% 0; } }
.fc-ia .ia-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; background: linear-gradient(90deg, #8f7cf0, #3fc6d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-ia .ia-k svg { width: 13px; height: 13px; color: var(--t-ia); }
#tab-energie .fc-ia .value { font-size: 44px; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-ia-s { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.fc-ia-s b { color: var(--ink-2); font-weight: 500; }
.fc-ia-bar { margin-top: auto; padding-top: 16px; }
.fc-ia-bar .t { position: relative; height: 10px; border-radius: 5px; background: rgb(var(--fg-rgb) / .07); }
.fc-ia-bar .t > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, #8f7cf0, #3fc6d9); box-shadow: 0 0 12px rgba(143, 124, 240, 0.45); }
.fc-ia-bar .t > i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: 0.85; }
.fc-ia-bar .l { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fc-ia-bar .l b { color: var(--t-ia); font-weight: 600; }

/* Batterie, comme le dashboard : la carte Batterie (la charge en grand, sa barre, ce
   qu'elle fait, l'anneau maison / batterie de la période) à côté de la prévision (IA). */
.e-btop > .tile2 { margin: 0; }
.e-bnow .bbar { height: 8px; margin: 14px 0 10px; border-radius: 4px; background: var(--track); overflow: hidden; }
.e-bnow .bbar span { display: block; height: 100%; border-radius: 4px; transition: width .9s cubic-bezier(.2, .9, .3, 1.1); }
.e-bnow .bsub { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.e-bnow .bnow-list { margin-top: 14px; }
.hsplit { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.hsplit svg { width: 96px; height: 96px; flex-shrink: 0; }
.hsplit .sk { display: grid; gap: 10px; font-size: 12px; min-width: 0; }
.hsplit .sk div { display: grid; grid-template-columns: 10px auto; column-gap: 8px; align-items: baseline; }
.hsplit .sk i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.hsplit .sk b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.hsplit .sk b small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.hsplit .sk span { grid-column: 2; color: var(--muted); }
.hsplit .sk p { margin: 0; font-size: 11px; color: var(--muted); }
/* La prévision : violet de l'IA, pas l'ambre d'une alerte. */
.e-bfc .label { display: flex; align-items: center; gap: 6px; }
.e-bfc .ia-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e-bfc .ia-k svg { width: 13px; height: 13px; color: var(--t-ia); }
.e-bfc .lk { display: inline-flex; margin-left: auto; color: var(--muted); }
.e-bfc .lk svg { width: 15px; height: 15px; }
.bfc-v { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; color: var(--t-ia); font-variant-numeric: tabular-nums; }
.bfc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 4px 0 10px; }
.e-bfc .e-chart { margin-top: 8px; }
.e-bfc .e-chart svg { height: 96px; }
.bfc-ext { display: grid; gap: 10px; min-width: 70px; }
.bfc-ext div { display: grid; }
.bfc-ext span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bfc-ext b { font-size: 20px; font-weight: 500; color: var(--t-ia); font-variant-numeric: tabular-nums; line-height: 1.15; }
.bfc-ext i { font-style: normal; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bfc-s { font-size: 13px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.bfc-s.mu { font-size: 12px; color: var(--muted); }
.bfc-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.e-bfc .e-none a { color: var(--t-ia); }
/* Fermée tant que l'admin n'a pas ouvert l'IA : la question, ce qu'elle fera. */
.e-bfc.lock { border: 1px solid transparent; background: linear-gradient(160deg, rgba(143, 124, 240, 0.10), rgba(63, 198, 217, 0.05) 60%, transparent) padding-box, linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
  linear-gradient(120deg, #8f7cf066, #3fc6d955, #8f7cf066) border-box; }
.bfc-q { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin-top: 10px; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e-bfc.lock p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.e-bfc.lock p.mu { font-size: 12px; color: var(--muted); }
/* Santé de la batterie : les chiffres de ses modules, puis chaque module. */
.bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.bv { padding: 12px 14px; border-radius: 14px; background: rgb(var(--fg-rgb) / .035); border: 1px solid rgb(var(--fg-rgb) / .06); min-width: 0; }
.bv span { display: block; font-size: 12px; color: var(--ink-2); }
.bv b { display: block; font-size: 24px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.bv > small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.bv.warn > small { color: var(--t-bad); }
.bh-mods { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; }
.bh-mod { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 72px; }
.bh-mod .cell { position: relative; width: 44px; height: 66px; border-radius: 9px; border: 1px solid rgb(var(--fg-rgb) / .14); background: rgb(var(--fg-rgb) / .03); overflow: hidden; }
.bh-mod .cell::before { content: ""; position: absolute; top: -1px; left: 50%; width: 12px; height: 3px; margin-left: -6px; border-radius: 0 0 2px 2px; background: rgb(var(--fg-rgb) / .16); }
.bh-mod .cell span { position: absolute; left: 3px; right: 3px; bottom: 3px; border-radius: 6px; background: linear-gradient(180deg, #3fc796, #199e70); }
.bh-mod.off .cell span { background: linear-gradient(180deg, #ffb0a6, #ff6b63); }
.bh-mod b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bh-mod small { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Consommation : le total en grand, ses repères à côté. */
.hkpi { margin-top: 14px; display: flex; align-items: flex-end; gap: 12px 28px; flex-wrap: wrap; }
.hkpi .big { display: flex; align-items: baseline; gap: 8px; }
.hkpi .big b { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hkpi .big span { font-size: 14px; color: var(--muted); }
.hkpi .big .eur { font-style: normal; font-size: 22px; color: var(--ink-2); margin-left: 8px; font-variant-numeric: tabular-nums; }
.e-eur { margin: 8px 0 0; }
.hkpi .stats { display: flex; gap: 12px 22px; flex-wrap: wrap; padding-bottom: 3px; }
.hkpi .st { display: grid; gap: 2px; }
.hkpi .st i { font-style: normal; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.hkpi .st b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* Énergie › Conso : la part du soutiré en heures pleines (rose réseau) et creuses (bleu). */
.e-hphc { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--fg-rgb) / .045); display: grid; grid-template-columns: auto minmax(160px, 1fr); gap: 6px 22px; align-items: center; }
.e-hphc i { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.e-hphc b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.e-hphc b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.e-hphc b.vide { font-size: 15px; font-weight: 500; color: var(--muted); }
.e-hphc b .hp, .e-hphc b .hc { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; background: #df7a80; }
.e-hphc b .hc { background: var(--t-blue); margin-left: 8px; }
.e-hphc-j { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.e-hphc-j span:first-child { background: #df7a80; }
.e-hphc-j span:last-child { background: var(--t-blue); flex: 1; }
.e-hphc p { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.e-hphc p.note { grid-column: 1 / -1; }
.e-bande { fill: var(--t-blue); }
.e-hphc-ferme { margin-top: 14px; }
@media (max-width: 640px) { .e-hphc { grid-template-columns: minmax(0, 1fr); } }
/* La bascule « HP / HC » dans la légende de la carte Consommation. */
.e-hphc-sw { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 11px 4px 9px; border: 1px solid rgb(var(--fg-rgb) / .14); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.e-hphc-sw .rail { position: relative; flex: none; width: 26px; height: 15px; border-radius: 999px; background: rgb(var(--fg-rgb) / .26); transition: background .15s; }
.e-hphc-sw .rail::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .15s; }
.e-hphc-sw[aria-checked="true"] .rail { background: var(--t-blue); }
.e-hphc-sw[aria-checked="true"] .rail::after { transform: translateX(11px); }
.e-hphc-sw[aria-checked="false"] { color: var(--ink-2); }
.e-hphc-sw[aria-busy] { opacity: .6; cursor: progress; }
.e-hphc-sw:focus-visible { outline: 2px solid var(--t-blue); outline-offset: 2px; }
.e-hphc-err { color: #c2410c; }
@media (prefers-reduced-motion: reduce) { .e-hphc-sw .rail, .e-hphc-sw .rail::after { transition: none; } }
@media (max-width: 640px) { .e-hphc-sw { min-height: 40px; } }

@media (max-width: 860px) {
  .bk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bk .v { font-size: 26px; }
  .e-duo, .pair, .hero-row.has-fc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pctl { justify-content: flex-start; width: 100%; }
  .pctl label.per { display: none; }
  .pnav { flex-grow: 1; }
  .plabel { min-width: 0; flex-grow: 1; }
  .e-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .e-tabs button { min-width: 0; padding: 9px 4px; font-size: 13px; }
  .bk .bt { padding: 14px; }
  .bk .v { font-size: 24px; }
  .bk .s { font-size: 11px; }
  #tab-energie .value { font-size: 44px; }
  .sh-main { align-items: flex-start; }
  .sh-sun { flex-basis: 120px; }
  .sh-sun svg { width: 120px; height: 60px; }
  .sh-s b, .bv b { font-size: 20px; }
  .sh-src, .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-chart svg { height: 200px; }
  .e-card.big .e-chart svg { height: 240px; }
  .e-ringbox svg { width: 160px; height: 160px; margin: 0 auto; }
  .hkpi .big b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .sh-now i, .fc-ia { animation: none; } }

/* Accueil : le soleil, le réseau, la batterie et la maison ouvrent leur onglet d'Énergie. */
.flow [data-go] { cursor: pointer; }
.flow [data-go] .orb { transition: transform .2s ease, box-shadow .2s ease; }
.flow [data-go]:hover .orb { transform: scale(1.06); }
.flow [data-go]:focus-visible { outline: 2px solid var(--s1); outline-offset: 4px; border-radius: 16px; }
.flow .node.badge[data-go]:hover { border-color: rgb(var(--fg-rgb) / .28); }

/* Fenêtres Production et Réseau de l'accueil (accueil.js), celles du dashboard :
   chiffre + arc du soleil, courbe du jour, où part la production, l'installation ;
   pour le réseau, la frise heure par heure et trois cases. */
.lc-pop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lc-pop[hidden] { display: none; }
.lc-pop .box { width: min(100%, 520px); max-height: calc(100vh - 32px); overflow: auto; padding: 20px 22px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.lc-pop .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lc-pop .top .eyebrow { margin: 0; color: var(--muted); letter-spacing: .16em; }
.lc-pop .x { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--ink-2); font: inherit; font-size: 18px; cursor: pointer; }
.lc-pop .all { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink); text-decoration: none; padding: 11px; border-radius: 12px; background: var(--track); }
.lc-pop .all:hover { background: rgb(var(--fg-rgb) / .14); }
.lc-pop .lc-off { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.lc-pop .lc-off a { color: var(--ink-2); }
.lc-pop .ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.lc-pop .ph-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lc-pop .ph-l b { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: var(--grad-sun-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lc-pop .ph-l span { font-size: 14px; color: var(--ink-2); }
.lc-pop .ph-l .ph-fc { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t-ia); }
.lc-pop .ph-fc i { width: 12px; border-top: 1.5px dashed var(--t-ia); }
.lc-pop .ph-sun { flex: 0 0 132px; text-align: center; }
.lc-pop .ph-sun svg { display: block; width: 132px; height: 66px; overflow: visible; }
.lc-pop .ph-hm { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; }
.lc-pop .ph-sun small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; }
.lc-pop .pc { margin-top: 14px; padding: 12px 12px 8px; border-radius: 16px; background: linear-gradient(180deg, rgba(242, 181, 51, 0.08), rgb(var(--fg-rgb) / .02)); border: 1px solid rgba(242, 181, 51, 0.14); }
.lc-pop .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); min-height: 18px; }
.lc-pop .pc-top em { font-style: normal; display: flex; align-items: center; gap: 5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-pop .pc-top em b { color: var(--t-sun); font-weight: 600; }
.lc-pop .pc-top em .pv { color: var(--t-ia); }
.lc-pop .pc-top em i { width: 8px; height: 8px; border-radius: 2px; margin-left: 6px; }
.lc-pop .pc-top em i.h { background: #f2b533; }
.lc-pop .pc-top em i.f { width: 12px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--t-ia); }
.lc-pop .pc-svg { display: block; width: 100%; height: 110px; margin-top: 8px; touch-action: pan-y; cursor: crosshair; }
.lc-pop .pc-ax { position: relative; height: 16px; margin-top: 4px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-pop .pc-ax span { position: absolute; transform: translateX(-50%); }
.lc-pop .pc-ax span:first-child { transform: none; }
.lc-pop .ps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.lc-pop .ps.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lc-pop .ps-h { margin: 14px 0 -2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lc-pop .psc { --c: #f2b533; position: relative; overflow: hidden; padding: 12px; border-radius: 16px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .06); min-width: 0; }
.lc-pop .psc::before { content: ""; position: absolute; inset: -40% 40% 55% -30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 22%, transparent), transparent); pointer-events: none; }
.lc-pop .psc .l { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.lc-pop .psc .l i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.lc-pop .psc b { display: block; font-size: 24px; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.lc-pop .psc small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.lc-pop .psc .sh { height: 4px; border-radius: 2px; background: var(--track); margin-top: 8px; overflow: hidden; }
.lc-pop .psc .sh span { display: block; height: 100%; border-radius: 2px; background: var(--c); }
.lc-pop .psc .ch { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.lc-pop .psc .ch span { font-size: 11px; color: var(--ink-2); padding: 3px 7px; border-radius: 999px; background: rgb(var(--fg-rgb) / .06); font-variant-numeric: tabular-nums; }
.lc-pop .pi { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.lc-pop .pit { display: grid; grid-template-columns: minmax(0, 1fr) 8px; grid-template-rows: auto auto auto; column-gap: 8px; padding: 10px; border-radius: 14px; background: rgba(242, 181, 51, 0.05); border: 1px solid rgba(242, 181, 51, 0.12); }
.lc-pop .pit.nog { grid-template-columns: minmax(0, 1fr); }
.lc-pop .pit .n { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-pop .pit .g { grid-column: 2; grid-row: 1 / span 3; position: relative; border-radius: 4px; background: var(--track); overflow: hidden; }
.lc-pop .pit .g span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px; background: linear-gradient(0deg, #f2b533, #ffe08a); box-shadow: 0 0 8px rgba(242, 181, 51, 0.6); }
.lc-pop .pit b { font-size: 17px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.lc-pop .pit small { font-size: 11px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.lc-pop .gh { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.lc-pop .gh b { font-size: 44px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.lc-pop .gh span { font-size: 14px; color: var(--ink-2); }
.lc-pop .gph { margin-top: 18px; }
.lc-pop .gph-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.lc-pop .gph-row > span { font-size: 14px; color: var(--ink-2); }
.lc-pop .gph-row > div { text-align: right; }
.lc-pop .gph-row b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lc-pop .gph-row small { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.lc-pop .gf { margin-top: 14px; }
.lc-pop .gf-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 15px; }
.lc-pop .gf-top em { font-style: normal; }
.lc-pop .gf-top em.mv { color: var(--imp); }
.lc-pop .gf-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 6px; touch-action: pan-y; cursor: crosshair; }
.lc-pop .gf-bars i { flex: 1; border-radius: 2px; transition: opacity 0.15s; }
.lc-pop .gf-bars i.m { background: linear-gradient(180deg, #ff9a93, rgba(255, 107, 99, 0.55)); }
.lc-pop .gf-bars i.e { background: rgb(var(--fg-rgb) / .08); }
.lc-pop .gf-bars i.dim { opacity: 0.45; }
.lc-pop .gf-bars s { position: absolute; top: -3px; bottom: -3px; width: 1px; background: rgb(var(--fg-rgb) / .55); }
.lc-pop .gf-ax { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-top: 4px; }
.lc-pop .gts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.lc-pop .gt { padding: 10px; border-radius: 14px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); min-width: 0; }
.lc-pop .gt .l { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.lc-pop .gt .l i { width: 6px; height: 6px; border-radius: 50%; }
.lc-pop .gt b { display: block; font-size: 17px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-pop .gt small { display: block; font-size: 11px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lc-pop .gt.ga { display: flex; align-items: center; gap: 8px; }
.lc-pop .gt.ga svg { width: 30px; height: 30px; flex-shrink: 0; }
.lc-pop .gch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lc-pop .gch span { font-size: 11px; color: var(--muted); padding: 4px 9px; border-radius: 999px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .06); font-variant-numeric: tabular-nums; }
/* Fenêtre de la maison : chaque appareil ouvre sa fiche. */
.lc-pop .e-lc-r[data-app] { cursor: pointer; border-radius: 8px; }
.lc-pop .e-lc-r[data-app]:hover { background: rgb(var(--fg-rgb) / .04); }
.lc-pop .e-lc-r[data-app]:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
/* Une ligne qui ouvre la fiche de l'appareil le dit : un chevron après sa valeur. */
.lc-pop .e-lc-r[data-app] .v::after { content: "›"; margin-left: 10px; color: var(--muted); font-size: 16px; }
/* Fiche d'un appareil, comme celle du dashboard : Jour / Sem. / Mois / Année, ‹ période ›,
   barres jointives (2 px) en dégradé de la série, clair en haut. */
.lc-pop.ap .top .eyebrow { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }
.lc-pop .ap-h { margin: -6px 0 14px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lc-pop .ap-h:has(.ap-av) { display: flex; align-items: center; gap: 12px; }
.lc-pop .ap-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; --tabc: #6ea2f2; }
.lc-pop .ap-tabs button { padding: 8px 4px; min-height: 36px; }
.lc-pop .ap-nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; margin: 12px 0; text-align: center; }
.lc-pop .ap-nav b { font-weight: 500; font-size: 15px; }
.lc-pop .ap-nav button { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 18px; border-radius: 10px; }
.lc-pop .ap-nav button:disabled { opacity: .35; cursor: default; }
.lc-pop .ap-c { padding: 14px 16px 12px; border-radius: 16px; background: rgb(var(--fg-rgb) / .03); border: 1px solid rgb(var(--fg-rgb) / .07); --ap1: #6ea2f2; --ap2: #3f6fc4; }
.lc-pop .ap-c.prod { --ap1: #f7c948; --ap2: #d9733a; }
.lc-pop .ap-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.lc-pop .ap-top span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lc-pop .ap-top em { font-style: normal; font-size: 13px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.lc-pop .ap-top em b { color: var(--ink); font-weight: 500; }
.lc-pop .ap-ch { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; }
.lc-pop .ap-y { display: flex; flex-direction: column; justify-content: space-between; height: 150px; font-size: 10px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; margin-top: -6px; padding-bottom: 0; }
.lc-pop .ap-y span { line-height: 12px; }
.lc-pop .ap-plot { position: relative; height: 150px; border-bottom: 1px solid rgb(var(--fg-rgb) / .14); }
.lc-pop .ap-plot s { position: absolute; left: 0; right: 0; border-top: 1px solid rgb(var(--fg-rgb) / .06); }
.lc-pop .ap-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; touch-action: none; cursor: crosshair; }
.lc-pop .ap-bars i { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.lc-pop .ap-bars i span { display: block; width: 100%; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--ap1), var(--ap2)); }
.lc-pop .ap-bars i.cur span { box-shadow: 0 0 10px color-mix(in srgb, var(--ap1) 45%, transparent); }
.lc-pop .ap-bars i.dim span { opacity: .4; }
.lc-pop .ap-x { grid-column: 2; display: flex; gap: 2px; margin-top: 6px; font-size: 10px; color: var(--muted); }
.lc-pop .ap-x span { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: visible; }
/* Fenêtre Batterie : les modules en cellules (cloud Deye), le détail du module touché. */
.lc-pop .pv-mods { display: flex; justify-content: space-around; gap: 8px; margin-top: 20px; }
.lc-pop .pv-mod { display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; color: inherit; background: none; border: 0; padding: 4px 6px; border-radius: 12px; cursor: pointer; }
.lc-pop .pv-mod:hover, .lc-pop .pv-mod.on { background: rgb(var(--fg-rgb) / .05); }
.lc-pop .pv-mod:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.lc-pop .pv-mod .cell { position: relative; width: 52px; height: 78px; border-radius: 10px; border: 1px solid rgb(var(--fg-rgb) / .14); background: rgb(var(--fg-rgb) / .03); overflow: hidden; }
.lc-pop .pv-mod .cell::before { content: ""; position: absolute; top: -1px; left: 50%; width: 14px; height: 3px; margin-left: -7px; border-radius: 0 0 2px 2px; background: rgb(var(--fg-rgb) / .16); }
.lc-pop .pv-mod .cell span { position: absolute; left: 3px; right: 3px; bottom: 3px; border-radius: 7px; background: linear-gradient(180deg, #3fc796, #199e70); box-shadow: 0 0 10px rgba(25, 158, 112, 0.4); }
.lc-pop .pv-mod b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-pop .pv-mod small { font-size: 10px; color: var(--muted); }
.lc-pop .pv-mod small.off { color: #fab219; }
.lc-pop .pv-det { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); font-size: 13px; }
.lc-pop .pv-det .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.lc-pop .pv-det .h small { color: var(--muted); font-size: 11px; }
.lc-pop .pv-det .r { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.lc-pop .pv-det .r span:first-child { color: var(--ink-2); }
@media (max-width: 480px) {
  .lc-pop .ph-l b, .lc-pop .gh b { font-size: 36px; }
  .lc-pop .ps.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-pop .ps.n3 .psc:last-child { grid-column: 1 / -1; }
}

/* Énergie › Production, comme solaire.html : la barre de ce qu'est devenue la production
   sous le chiffre du jour, la puissance à côté de l'origine de l'énergie, puis une case
   par champ de la maquette (energie.js). */
.sh-bar { position: relative; display: flex; gap: 3px; height: 8px; margin-top: 18px; border-radius: 4px; overflow: hidden; background: var(--track); }
.sh-bar span { min-width: 3px; border-radius: 4px; }
.e-duo.pow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; }
.e-duo.pow > .e-card { margin: 0; }
.e-panels .e-pans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.e-pans .pan { display: grid; grid-template-columns: minmax(0, 1fr) 8px; grid-auto-rows: auto; column-gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(242, 181, 51, 0.1), transparent 60%), rgb(var(--fg-rgb) / .03); border: 1px solid rgba(242, 181, 51, 0.14); }
.e-pans .pan .n { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-pans .pan .g { grid-column: 2; grid-row: 1 / span 4; position: relative; border-radius: 4px; background: var(--track); overflow: hidden; min-height: 60px; }
.e-pans .pan .g span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px; background: linear-gradient(0deg, #f2b533, #ffe08a); box-shadow: 0 0 8px rgba(242, 181, 51, 0.6); }
.e-pans .pan b { font-size: 26px; font-weight: 500; margin-top: 10px; font-variant-numeric: tabular-nums; }
.e-pans .pan small { font-size: 12px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.e-pans .pan small.o { color: var(--sun-ink); margin-top: 2px; }
@media (max-width: 860px) { .e-duo.pow { grid-template-columns: minmax(0, 1fr); } }

/* Ma maison en 3D en direct (simu3d.js, live) : la météo de l'heure sous le soleil, le
   point rouge du direct sur « Aujourd'hui », mesuré en or et prévu en violet. */
.s3-wx { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.s3-wx:empty { display: none; }
.s3-chips .s3-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: #e0606e; box-shadow: 0 0 0 3px rgba(224, 96, 110, 0.25); margin-right: 2px; }
.s3-follow .s3-chips .s3-dot { display: inline-block; animation: s3-blink 2s ease-in-out infinite; }
@keyframes s3-blink { 50% { opacity: 0.35; } }
.s3-vals .m { color: var(--sun-ink); }
.s3-vals .f { color: var(--t-ia); }
.s3 .s3-vals { gap: 5px; }
.e-duo.pow .e-ringrows .r > span { white-space: nowrap; }

/* Les essais de panneaux, repliés sous leur bouton (espace.js). */
.s3 .s3-fold { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  background: transparent; border: 1px solid var(--border); cursor: pointer; }
.s3 .s3-fold:hover { color: var(--ink); }
.s3 .s3-fold svg { width: 12px; height: 12px; transition: transform 0.2s; }
.s3 .s3-fold[aria-expanded="true"] svg { transform: rotate(180deg); }
.s3:not(.s3-unfold) .s3-setup { display: none; }
.s3.s3-unfold .s3-setup { flex-basis: 100%; order: 9; }
.s3:not(.s3-unfold) .s3-trial-note { display:none; }
.s3 .s3-trial-note { flex-basis:100%; order:10; margin:6px 0 0; color:var(--ink-2); font-size:13px; line-height:1.5; }

/* Facture estimée et rentabilité (onglet Réseau, energie.js), reprises de solaire.html :
   la facture découpée comme celle du fournisseur, l'économie réelle à côté ; l'économie
   cumulée depuis la pose face à ce qui a été investi, une barre par investissement. */
.e-bill .bill { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; margin-top: 14px; align-items: start; }
.bdonut { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.bdonut svg { width: 150px; height: 150px; display: block; }
.brows { width: 100%; }
.brows .r { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--ink-2); }
.brows .r i { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.brows .r .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.brows .r .n { grid-column: 2 / 4; font-size: 11px; color: var(--muted); margin-top: -2px; }
.brows .bill-help { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: -4px 0 -4px 6px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--ink-2); font: 600 12px/1 inherit; cursor: pointer; vertical-align: middle; position: relative; }
.brows .bill-help::after { content: ""; position: absolute; inset: -11px; }
.brows .bill-help:hover, .brows .bill-help[aria-expanded="true"] { background: var(--track); color: var(--ink); }
.brows .bill-help:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.brows .bill-explain { color: var(--ink-2); font-size: 12px; line-height: 1.45; margin-top: 4px; }
.brows .bill-explain[hidden] { display: none; }
.brows .tot { border-bottom: 0; font-size: 15px; color: var(--ink); font-weight: 600; }
#tab-energie .bnote { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.bsave .cl { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bsave .cv { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.bsave .cs { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.e-bill .bcmp { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.e-bill .bcmp .bb { height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.e-bill .bcmp .bb span { display: block; height: 100%; border-radius: 5px; }
.e-bill .bcmp .v { color: var(--ink-2); text-align: right; }
.e-roi .roi { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; margin-top: 14px; align-items: start; }
.roi .rv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.roi .rv b { font-size: 38px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.roi .rv span { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.roibar { position: relative; height: 14px; border-radius: 7px; background: var(--track); overflow: hidden; margin-top: 16px; }
.roibar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, rgba(224, 96, 110, 0.55), #f4b3ba); }
.roibar > i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--surface-2); }
.roisegs { display: flex; margin-top: 6px; font-size: 11px; color: var(--muted); }
.roisegs > div { min-width: 0; padding-right: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roisegs b { display: block; color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.roikpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.roikpi i { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.roikpi b { display: block; font-size: 18px; font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; }
.roikpi small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) { .e-bill .bill, .e-roi .roi { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .bdonut { grid-template-columns: minmax(0, 1fr); justify-items: center; } }

/* Prévu face au réel (Production) : fond « IA » violet/cyan et son liseré, comme tout
   ce qui apprend ; anneau lilas = prévu, point doré = produit, valeurs en haut à droite. */
.e-ia { border: 1px solid transparent; background: linear-gradient(160deg, rgba(143, 124, 240, 0.09), rgba(63, 198, 217, 0.05) 60%, transparent) padding-box, linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
  linear-gradient(120deg, rgba(143, 124, 240, 0.7), rgba(63, 198, 217, 0.6)) border-box; }
.e-ia h3 .ia-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; background: linear-gradient(90deg, #8f7cf0, #3fc6d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e-ia h3 .ia-k svg { width: 13px; height: 13px; color: var(--t-ia); }
.e-read { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 4px 18px; text-align: right; min-height: 44px; font-variant-numeric: tabular-nums; flex-shrink: 0; max-width: 60%; }
.e-read .rw { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.e-read .rv i { display: block; font-style: normal; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.e-read .rv b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.e-read .pv b { color: var(--t-ia); }
.e-read .ms b { color: var(--t-sun); }
@media (max-width: 560px) { .e-head:has(.e-read) { flex-wrap: wrap; } .e-read { max-width: none; width: 100%; justify-content: flex-start; text-align: left; } }
.e-fvr { margin-top: 12px; }
.e-fvr svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.e-fvr .g { stroke: rgb(var(--fg-rgb) / .06); }
.e-fvr .fu { fill: rgba(143, 124, 240, 0.07); }
.e-fvr .dl { stroke: rgb(var(--fg-rgb) / .28); stroke-width: 1.5; }
.e-fvr .pv { fill: none; stroke: var(--t-ia); stroke-width: 2; }
.e-fvr .ms { fill: url(#gFvr); }
.e-fvr text { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.e-fvr .cur { stroke: rgb(var(--fg-rgb) / .45); stroke-dasharray: 3 3; }
.e-fvr .curt { fill: var(--ink-2); font-size: 11px; }
.e-fvrs { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 10px 0 0; }
.e-fvrs b { color: var(--ink); font-weight: 500; }
/* Onglet IA : le graphique sur deux tiers, la case « Prévu » sur un tiers ; l'une sous l'autre sur petit écran. */
.e-ia2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.e-ia2.seul { grid-template-columns: minmax(0, 1fr); }
/* La confiance des prévisions : une bulle dans la case « Prévu », qui se déplie au toucher. */
.ia-conf { position: absolute; top: 18px; right: 20px; z-index: 6; --cf: var(--t-ia); }
.ia-conf [data-n="fragile"] { --cf: var(--t-sun); } .ia-conf [data-n="correcte"] { --cf: var(--t-blue); } .ia-conf [data-n="fiable"] { --cf: var(--t-ok); } .ia-conf [data-n="appr"] { --cf: var(--t-ia); }
.cf-b { display: inline-flex; align-items: center; gap: 5px; border: 1px solid color-mix(in srgb, var(--cf) 38%, transparent); background: color-mix(in srgb, var(--cf) 10%, transparent); color: var(--cf);
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 9px 5px 7px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.cf-b i { width: 7px; height: 7px; border-radius: 50%; background: var(--cf); }
.cf-b:hover, .cf-b[aria-expanded="true"] { background: color-mix(in srgb, var(--cf) 18%, transparent); }
.cf-b:focus-visible, .cf-x:focus-visible, .cf-l:focus-visible { outline: 2px solid var(--ia); outline-offset: 2px; }
.cf-p { position: absolute; right: 0; top: calc(100% + 6px); width: min(340px, calc(100vw - 56px)); max-height: min(560px, 72vh); overflow-y: auto; scrollbar-width: thin; background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .45); padding: 14px; font-size: 13px; line-height: 1.4;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; transform-origin: top right; animation: cf-ouvre .16s ease-out; }
@keyframes cf-ouvre { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cf-p { animation: none; } }
.cf-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cf-k { font-size: 11px; color: var(--muted); }
.cf-m { font-size: 20px; font-weight: 600; line-height: 1.15; color: var(--cf); }
.cf-x { border: 0; background: rgb(var(--fg-rgb) / .08); color: var(--ink-2); width: 26px; height: 26px; border-radius: 50%; font-size: 15px; line-height: 1; cursor: pointer; flex: none; }
.cf-r { margin: 0; color: var(--ink-2); }
.cf-ls { display: grid; gap: 4px; }
.cf-l { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; text-align: left; width: 100%; border: 0; background: rgb(var(--fg-rgb) / .055); color: inherit; font: inherit; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.cf-l[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--cf); background: color-mix(in srgb, var(--cf) 8%, transparent); }
.cf-n { font-weight: 600; }
.cf-v { color: var(--cf); font-weight: 600; font-size: 12px; }
.cf-q { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-2); }
.cf-d { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 2px 2px 4px; }
.cf-d p { margin: 0; font-size: 12px; }
.cf-j { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 1.5px; }
.cf-j i, .cf-lg i { border-radius: 22%; background: var(--t-ok); }
.cf-j i { aspect-ratio: 1; }
.cf-j i.m, .cf-lg i.m { background: var(--t-blue); } .cf-j i.r, .cf-lg i.r { background: var(--t-sun); }
.cf-j i.t, .cf-lg i.t { background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--fg-rgb) / .3); }
.cf-lg { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 10.5px; color: var(--ink-2); }
.cf-lg i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; }
.cf-a { margin: 0; font-size: 10.5px; color: var(--muted); }
.cf-c { border-top: 1px solid var(--line); padding-top: 9px; display: grid; gap: 6px; }
.cf-c h4 { margin: 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--t-ia); font-weight: 600; }
.cf-c p { margin: 0; font-size: 12px; }
#eIaPv > .label { padding-right: 130px; }
#eIaPv:has(.cf-p) { z-index: 20; }
@media (max-width: 720px) { .ia-conf { top: 15px; right: 16px; } }
.fc-ia-a { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 14px 0 0; }
.fc-ia-a:empty { display: none; }
.fc-ia-a b { color: var(--ink-2); font-weight: 500; }
@media (max-width: 900px) { .e-ia2 { grid-template-columns: minmax(0, 1fr); } .e-ia2 > .fc-ia { order: -1; } }
/* Onglet IA, aujourd'hui : le récit en haut (deux colonnes), puis en bas le soleil du jour
   et la batterie de la nuit côte à côte ; l'un sous l'autre sur petit écran. La couleur
   seulement sur les marques : lilas = prévu, doré = produit, vert = mesuré. */
.ia-recit { margin-bottom: 16px; }
.ia-recit h3, .ia-bas h3 { margin: 0; font-size: 15px; font-weight: 500; }
.ia-recit .e-head { align-items: baseline; }
.ia-ecrit { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ia-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; margin-top: 14px; }
.ia-cols.seul { grid-template-columns: minmax(0, 1fr); }
.ia-cols h4 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-ia); }
.ia-pts { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ia-pts li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--ink); font-variant-numeric: tabular-nums; }
.ia-pts li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--t-ia); }
/* Énergie › IA : prévisions de la maison, du réseau et du coût (energie.js, prvCard). */
.e-prv { --prv-maison: #5b8fdc; --prv-reseau: #d8667b; --prv-cout: #3fa585; margin-top: 16px; }
.prv-conf { text-align: right; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.prv-conf b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--t-ia); }
.prv-q { margin: 12px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prv-q b { color: var(--ink); font-weight: 500; }
.prv-t { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; margin-top: 8px; }
.prv-tu { appearance: none; font: inherit; color: var(--ink); text-align: left; background: var(--glass); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; align-content: start; cursor: pointer; }
.prv-tu:hover { border-color: rgb(var(--fg-rgb) / .3); }
.prv-tu[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px var(--c); }
.prv-tu:focus-visible, .prv-tout:focus-visible, .prv-g svg:focus-visible { outline: 2px solid var(--t-ia); outline-offset: 2px; }
.prv-tu .l { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.prv-tu .l .ct { display: none; }
.prv-tu .l::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; }
.prv-tu .v { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.prv-tu .v small { font-size: 13px; color: var(--muted); font-weight: 400; }
.prv-tu .s { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prv-tu .s i { font-style: normal; }
.prv-tu .s u { text-decoration: none; }
.prv-tu .s i.plus { color: var(--t-bad); }
.prv-tu .s i.moins { color: var(--t-ok); }
.prv-tu .s.f { color: var(--t-ia); }
.prv-gh { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 16px; }
.prv-gh b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.prv-tout { appearance: none; font: inherit; font-size: 12px; color: var(--ink); background: var(--glass); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.prv-tout[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prv-g { margin-top: 10px; }
.prv-g svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: pointer; border-radius: 6px; }
.prv-g .g { stroke: rgb(var(--fg-rgb) / .06); }
.prv-g .fu { fill: rgba(143, 124, 240, 0.07); }
.prv-g .se { fill: rgb(var(--fg-rgb) / .12); }
.prv-g .cur { fill: rgb(var(--fg-rgb) / .07); pointer-events: none; }
.prv-g .bs { fill: url(#gPrvS); }
.prv-g .bm { fill: url(#gPrvM); }
.prv-g .br { fill: url(#gPrvR); }
.prv-g .bc { fill: url(#gPrvC); }
.prv-g .pj { opacity: .36; }
.prv-g .wh { stroke: var(--t-ia); stroke-width: 2; opacity: .5; }
.prv-g .rg { fill: var(--surface-2); stroke: var(--t-ia); stroke-width: 2; }
.prv-g .cl { fill: none; stroke: var(--prv-cout); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.prv-g text { fill: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.prv-g text.auj { fill: var(--ink); font-weight: 600; }
.prv-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 11px; color: var(--ink-2); }
.prv-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.prv-leg i.r { border-radius: 50%; border: 2px solid var(--t-ia); box-sizing: border-box; }
.prv-leg i.f { width: 2px; background: var(--t-ia); opacity: .5; }
.prv-leg i.c { width: 12px; height: 2px; background: var(--prv-cout); vertical-align: 3px; }
@media (max-width: 560px) {
  .prv-t { gap: 6px; }
  .e-prv .e-head { flex-wrap: nowrap; }
  .prv-tu .l .lg { display: none; } .prv-tu .l .ct { display: inline; }
  /* Hauteur tenue : le graphique ne bouge pas sous le doigt quand une barre remplit les cases. */
  .prv-tu { padding: 9px 9px; border-radius: 12px; }
  .prv-tu .s { min-height: 3.9em; }
  .prv-tu .s u { display: none; } .prv-tu .s i { display: block; }
  .prv-tu .l { font-size: 9.5px; letter-spacing: 0.03em; }
  .prv-tu .v { font-size: 18px; } .prv-tu .v small { font-size: 11px; }
  .prv-tu .s { font-size: 10.5px; line-height: 1.3; overflow-wrap: anywhere; }
}
.ia-bas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.ia-bas.seul { grid-template-columns: minmax(0, 1fr); }
.ia-bas > .tile2 { margin: 0; min-width: 0; }
.ia-bas .e-sub b { color: var(--t-sun); font-weight: 600; font-size: 13px; }
.ia-bas .ia-pts { margin-top: 12px; }
.ia-bas .e-read .ok b { color: var(--t-ok); }
.ia-bas .e-read .pz b { color: var(--ink-2); }
.ia-g .g.un { stroke: rgb(var(--fg-rgb) / .22); stroke-dasharray: 2 4; }
.ia-g .nw { stroke: rgb(var(--fg-rgb) / .38); stroke-dasharray: 2 3; }
.ia-g .nwt { fill: var(--ink-2); }
.ia-g text.on { fill: var(--ink); font-weight: 700; }
.ia-g .sa { fill: url(#gIaSol); opacity: 0.8; }
.ia-g .sl { fill: none; stroke: var(--sun-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.ia-g .pl { fill: none; stroke: var(--t-ia); stroke-width: 2; stroke-dasharray: 5 4; stroke-linejoin: round; }
.ia-g .rl { stroke: var(--t-ia); stroke-width: 2; stroke-linecap: round; }
.ia-g .rp { fill: var(--t-ia); }
.ia-g .rp.on { fill: var(--surface-2); stroke: var(--t-ia); stroke-width: 2.5; }
.ia-g .cp { stroke: var(--t-bad); stroke-dasharray: 2 3; opacity: 0.75; }
.ia-g .bd { fill: var(--t-ia); opacity: 0.1; }
.ia-g .bm { fill: none; stroke: var(--t-ok); stroke-width: 2; stroke-linejoin: round; }
.ia-g .bz { fill: none; stroke: var(--t-ia); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: 0.75; }
.ia-g .bp { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ia-leg { margin-top: 8px; font-size: 11.5px; }
.ia-leg i.ln.pl, .ia-leg i.ln.bz { height: 0; background: none; border-top: 2px dashed var(--t-ia); }
.ia-leg i.ln.bp { background: linear-gradient(90deg, #8f7cf0, #3fc6d9); }
.ia-leg i.ln.bm { background: var(--t-ok); }
.ia-leg i.ln.cp { height: 0; background: none; border-top: 2px dotted var(--t-bad); }
.ia-appr { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.ia-appr b { display: inline-block; margin-right: 7px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--t-ia); background: rgba(143, 124, 240, 0.14); }
.ia-sep { border-top: 1px solid var(--line); margin: 16px 0 14px; }
.ia-bat .bfc-v { font-size: 30px; margin-top: 0; }
.ia-sol .e-head + .e-sub { margin-top: 0; }
.ia-bat-p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ia-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 14px 0 2px; }
.ia-mini div { display: grid; align-content: start; gap: 1px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.ia-mini span { font-size: 11px; color: var(--muted); }
.ia-mini b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ia-mini i { font-style: normal; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 561px) { .ia-bas .e-head { flex-wrap: nowrap; } .ia-bas .e-head > h3 { flex: 1 0 auto; } .ia-bas .e-read { flex: 0 1 auto; min-width: 0; max-width: none; } }
@media (max-width: 900px) { .ia-bas { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ia-cols { grid-template-columns: minmax(0, 1fr); } .ia-bat .bfc-v { font-size: 24px; } .ia-mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Cartes pas encore remplies (historique qui démarre, contrat pas saisi) : la carte grisée,
   et en clair ce qui la remplira. */
.ghost .roi, .ghost .bill { opacity: 0.35; filter: grayscale(1); pointer-events: none; }
/* Onglet Réseau : la case du moment à gauche de la rentabilité, comme le dashboard. */
.e-duo.net { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; }
.e-duo.net > .tile2 { margin: 0; }
.e-net .nl { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.e-net .nv { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.e-net .ns { font-size: 13px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ghost.e-net .nv, .ghost.e-net .ns { opacity: 0.4; }
.e-ghostchart { height: 170px; margin-top: 14px; border-radius: 10px; opacity: 0.5;
  background: repeating-linear-gradient(180deg, transparent 0 41px, rgb(var(--fg-rgb) / .06) 41px 42px); border-bottom: 1px solid rgb(var(--fg-rgb) / .12); }
.e-duo.net .e-roi .roi { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.e-duo.net .roikpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .e-duo.net { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .e-duo.net .roikpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.e-ghostnote { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }

/* Zendure en local : la batterie dessinée, une carte par batterie. */
.zd-art { width: 40px; height: 40px; border-radius: 50%; background: rgb(var(--fg-rgb) / .051); display: grid; place-items: center; color: var(--bat, #3fae84); }
.zd-art .zd-ic { width: 24px; height: 24px; }
.zd-devs { display: grid; gap: 12px; }
.zd-devs:empty { display: none; }
.zd-dev { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--fg-rgb) / .016); }
.zendure { display: grid; gap: 12px; }

/* Toutes les batteries en ce moment (Énergie › Batterie, fenêtre Batterie de l'accueil). */
.e-bats-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.e-bats-sum b { font-size: 15px; font-weight: 600; }
.e-bats-sum span { font-size: 13px; color: var(--ink-2); }
.e-bats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.e-bat { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); min-width: 0; }
.e-bat.off { opacity: 0.6; }
.e-bat .mc { position: relative; flex: none; width: 34px; height: 52px; border-radius: 8px; border: 1px solid rgb(var(--fg-rgb) / .14); background: rgb(var(--fg-rgb) / .03); overflow: hidden; }
.e-bat .mc::before { content: ""; position: absolute; top: -1px; left: 50%; width: 12px; height: 3px; margin-left: -6px; border-radius: 0 0 2px 2px; background: rgb(var(--fg-rgb) / .16); }
.e-bat .mc span { position: absolute; left: 3px; right: 3px; bottom: 3px; border-radius: 5px; background: linear-gradient(180deg, #3fc796, #199e70); box-shadow: 0 0 8px rgba(25, 158, 112, 0.4); }
.e-bat .bt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.e-bat .bt b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-bat .bt small { font-size: 12px; color: var(--muted); }
.e-bat .bp { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.e-bat .bp small { font-size: 12px; font-weight: 500; opacity: 0.7; margin-left: 1px; }
.e-bats-note { margin: 4px 2px 0; }
:is(.lc-pop, .home-batteries) .pop-bats { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(var(--fg-rgb) / .08); }
:is(.lc-pop, .home-batteries) .pop-bats.seul { margin-top: 0; padding-top: 0; border-top: 0; }
:is(.lc-pop, .home-batteries) .pop-bats-t { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lc-pop .e-bats { grid-template-columns: 1fr; }

/* Plusieurs batteries : la pastille du nœud de l'accueil, la liste de la fenêtre, la légende d'Énergie. */
.flow .bat .orb { position: relative; }
.flow .bat .nb { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: #d9f5e3; background: #173a26; border: 1px solid rgba(69, 201, 107, 0.55); box-shadow: 0 0 10px rgba(69, 201, 107, 0.25); }
.flow .bat .nb[hidden] { display: none; }
:is(.lc-pop, .home-batteries) .pop-bpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 18px; }
:is(.lc-pop, .home-batteries) .pop-b { display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; color: inherit; padding: 14px 8px 12px; border-radius: 16px; cursor: pointer;
  background: rgb(var(--fg-rgb) / .03); border: 1px solid rgb(var(--fg-rgb) / .08); min-width: 0; }
:is(.lc-pop, .home-batteries) .pop-b:hover { background: rgb(var(--fg-rgb) / .05); }
:is(.lc-pop, .home-batteries) .pop-b.on { background: rgba(69, 201, 107, 0.08); border-color: rgba(69, 201, 107, 0.45); }
:is(.lc-pop, .home-batteries) .pop-b.off { opacity: 0.6; }
:is(.lc-pop, .home-batteries) .pop-b:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
:is(.lc-pop, .home-batteries) .pop-b .cell { position: relative; width: 46px; height: 68px; border-radius: 10px; border: 1px solid rgb(var(--fg-rgb) / .14); background: rgb(var(--fg-rgb) / .03); overflow: hidden; margin-bottom: 4px; }
:is(.lc-pop, .home-batteries) .pop-b .cell::before { content: ""; position: absolute; top: -1px; left: 50%; width: 14px; height: 3px; margin-left: -7px; border-radius: 0 0 2px 2px; background: rgb(var(--fg-rgb) / .16); }
:is(.lc-pop, .home-batteries) .pop-b .cell span { position: absolute; left: 3px; right: 3px; bottom: 3px; border-radius: 7px; background: linear-gradient(180deg, #3fc796, #199e70); box-shadow: 0 0 10px rgba(25, 158, 112, 0.4); }
:is(.lc-pop, .home-batteries) .pop-b .cell i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 18px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
:is(.lc-pop, .home-batteries) .pop-b .cell i.in { color: #d9f5e3; animation: popBin 1.6s ease-in-out infinite; }
:is(.lc-pop, .home-batteries) .pop-b .cell i.out { color: #ffe3a1; animation: popBout 1.6s ease-in-out infinite; }
@keyframes popBin { 0%, 100% { transform: translateY(3px); opacity: 0.6; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes popBout { 0%, 100% { transform: translateY(-3px); opacity: 0.6; } 50% { transform: translateY(3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :is(.lc-pop, .home-batteries) .pop-b .cell i { animation: none; } }
:is(.lc-pop, .home-batteries) .pop-b b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
:is(.lc-pop, .home-batteries) .pop-b span { font-size: 13px; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.lc-pop, .home-batteries) .pop-b small { font-size: 11px; color: var(--muted); }
:is(.lc-pop, .home-batteries) .pop-bsub { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.e-bsel { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.e-bsel button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; cursor: pointer;
  background: rgb(var(--fg-rgb) / .03); border: 1px solid var(--line); }
.e-bsel button i { width: 10px; height: 10px; border-radius: 50%; }
.e-bsel button[aria-pressed="true"] { color: var(--ink); background: rgb(var(--fg-rgb) / .07); border-color: rgb(var(--fg-rgb) / .22); }
.e-bsel button[aria-pressed="false"] i { opacity: 0.3; }
.e-bsel button:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.lc-pop .pop-soc { margin-top: 16px; padding: 14px 14px 6px; border-radius: 16px; background: rgb(var(--fg-rgb) / .03); border: 1px solid rgb(var(--fg-rgb) / .08); }
.lc-pop .pop-soc-h { display: grid; gap: 2px; margin-bottom: 6px; }
.lc-pop .pop-soc-h b { font-size: 14px; font-weight: 600; }
.lc-pop .pop-soc-h small { font-size: 12px; color: var(--muted); }
.lc-pop .pop-soc .e-chart svg { height: 170px; }

.shd-h > .conn-pair { flex: none; }

/* ── Je débute dans mon projet ── */
.tabs .tab-debut { color: var(--ink-2); border-color: var(--line); background: transparent; padding-inline: 12px; }
.tabs .tab-debut:hover { color: var(--ink); background: rgb(var(--fg-rgb) / .035); }
.tabs .tab-debut[aria-selected="true"] { color: var(--ink); background: #f2b53321; border-color: #f2b53361; }
.tabs .tab-debut .s { display: none; }
@media (max-width: 900px) { .tabs .tab-debut .l { display: none; } .tabs .tab-debut .s { display: inline; } }
.pj-sim .s3-setup, .pj-sim .s3-fold { display: none; }
.pj-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.pj-box { border: 1px solid var(--line); border-radius: 18px; background: rgb(var(--fg-rgb) / .02); padding: 16px; display: grid; gap: 12px; align-content: start; }
.pj-year:empty, .pj-year[hidden] { display: none; }
.pj-tot { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.pj-tot:empty { display: none; }
.pj-tot div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--fg-rgb) / .031); border: 1px solid var(--line); }
.pj-tot b { font-size: 20px; font-weight: 600; color: var(--ink); }
.pj-tot small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.pj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* Une colonne « auto » prend la largeur du plus long nom de groupe : sur téléphone, la liste
   débordait de l'écran. Le nom passe à la ligne au lieu d'être coupé. */
.pj-box { grid-template-columns: minmax(0, 1fr); }
.pj-c { min-width: 0; }
.pj-voisin { font-size: 12px; color: var(--t-warm); }
.pj-c { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .02); cursor: pointer; }
.pj-c.on { border-color: #f2b533aa; background: #f2b53314; }
.pj-n { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.pj-n span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pj-x { width: 28px; height: 28px; padding: 0; justify-content: center; border-radius: 50%; background: none; border-color: transparent; color: var(--muted); font-size: 16px; }
.pj-x:hover { color: var(--ink); border-color: var(--line-2); }
.pj-q { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pj-q button { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; font-size: 17px; }
.pj-q button:disabled { opacity: .35; cursor: default; }
.pj-q b { min-width: 22px; text-align: center; font-size: 17px; color: var(--ink); }
.pj-q small { color: var(--ink-2); font-size: 12px; }
.pj-max, .pj-full { font-size: 11px; color: var(--muted); }
.pj-deja { font-style: normal; font-size: 10.5px; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; color: var(--ink-2); background: rgb(var(--fg-rgb) / .063); border: 1px solid var(--line); white-space: nowrap; }
.pj-full { color: var(--t-warm); }
.pj-none { padding: 14px; border: 1px dashed #f2b53366; border-radius: 14px; color: var(--ink-2); font-size: 13px; }
.pj-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pj-acts:not(:has(button:not([hidden]))) { display: none; }
@media (max-width: 760px) { .pj-grid { grid-template-columns: minmax(0, 1fr); } }
.pj-n .s3-k { color: var(--ink); }
@media (max-width: 480px) { .tabs { gap: 3px; } .tabs button { padding: 7px 9px; } }
.pj-h { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pj-h small { font-size: 11px; font-weight: 400; color: var(--muted); }
.pj-al { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pj-al:empty { display: none; }
.pj-al li { font-size: 12.5px; line-height: 1.45; padding: 8px 10px 8px 30px; border-radius: 10px; position: relative; color: var(--ink-2); background: rgb(var(--fg-rgb) / .024); border: 1px solid var(--line); }
.pj-al li::before { content: "i"; position: absolute; left: 9px; top: 8px; width: 14px; height: 14px; border-radius: 50%; font: 600 10px/14px 'Space Grotesk', sans-serif; text-align: center; background: rgb(var(--fg-rgb) / .133); color: var(--ink); }
.pj-al li.warn { border-color: var(--t-warm)55; background: #e5a06712; color: var(--ink); }
.pj-al li.warn::before { content: "!"; background: #e5a067; color: #1b1305; }
.pj-bom { width: 100%; border-collapse: collapse; font-size: 13px; }
.pj-bom td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.pj-bom td b { display: block; font-weight: 500; color: var(--ink); }
.pj-bom td small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pj-bom .q { text-align: center; width: 34px; color: var(--ink); }
.pj-bom .u { text-align: right; white-space: nowrap; width: 1%; }
.pj-bom .t { text-align: right; white-space: nowrap; color: var(--ink); width: 1%; }
.pj-bom tfoot td { border-bottom: 0; }
.pj-bom tfoot .tot td { font-size: 15px; font-weight: 600; color: var(--ink); padding-top: 10px; }
.pj-bom tfoot .pro td { color: var(--muted); }
.pj-px { padding: 5px 8px; border-radius: 8px; font-size: 13px; background: none; border: 1px dashed rgb(var(--fg-rgb) / .149); color: var(--ink-2); }
span.pj-px { border: 0; }
.pj-px.own { border-style: solid; border-color: #f2b53388; color: var(--sun-ink); }
.pj-rs { padding: 4px 6px; margin-left: 2px; background: none; border-color: transparent; color: var(--muted); }
.pj-pxi { width: 92px; padding: 5px 8px; text-align: right; }
.pj-note { margin: 0; font-size: 11.5px; }
.pj-val { margin-top: 14px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-color: #f2b53355; background: linear-gradient(100deg, #f2b53312, rgb(var(--fg-rgb) / .02)); }
.pj-val.sent { border-color: #2fbf2f55; background: #2fbf2f0d; }
.pj-val-t { display: grid; gap: 4px; }
.pj-val-t b { font-size: 16px; font-weight: 600; color: var(--ink); }
.pj-val-t span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.pj-val-f, .pj-val .msg { grid-column: 1 / -1; }
.pj-val-f { display: grid; gap: 8px; }
.pj-val textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--field); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; }
.pj-val textarea:focus { outline: none; border-color: #f2b53388; }
.pj-val .msg:empty { display: none; }
@media (max-width: 560px) { .pj-val { grid-template-columns: 1fr; } }
.pj-sec { margin-top: 22px; display: grid; gap: 12px; }
.pj-h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.pj-sec-sub { margin: 5px 0 1px; font-size: 12.5px; line-height: 1.45; }
#tab-projet.ame .c-head { padding-bottom: 8px; }
#tab-projet.ame .c-head h1 { max-width: 1200px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
#tab-projet.ame .c-head .hint { max-width: 700px; font-size: 16px; line-height: 1.5; }
.pj-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 28px; }
.pj-step { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgb(var(--fg-rgb) / .02); color: var(--muted); font-size: 13px; }
.pj-step b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border: 1px solid rgb(var(--fg-rgb) / .24); border-radius: 50%; font-size: 12px; }
.pj-step.active { border-color: #8d6821; background: #f2b5330b; color: var(--ink); }
.pj-step.active b { border-color: var(--sun); background: #f2b53320; color: var(--sun); }
.pj-step.done b { border-color: #347052; background: #1a3328; color: #70c89a; }
.pj-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pj-edit-link { color: var(--sun-ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.pj-edit-link:hover { text-decoration: underline; }
#tab-projet.ame > #pjView > #pjExW { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(110deg, rgb(var(--fg-rgb) / .045), rgb(var(--fg-rgb) / .02)); }
#tab-projet.ame #pjExW .pj-sec-sub { margin: 5px 0 0; }
#tab-projet.ame #pjExW .pj-mats { margin-top: 16px; }
#tab-projet.ame #pjExW .pj-pick { background: var(--field); border-radius: 13px; }
#tab-projet.ame #pjExN { margin-top: 10px; }
.pj-compose { margin-top: 30px; }
.pj-compose-head { margin-bottom: 16px; }
.pj-compose-head .eyebrow, #pjGainsW > .eyebrow { margin: 0 0 5px; color: var(--sun-ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pj-compose-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.pj-compose-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.pj-compose-main { min-width: 0; }
.pj-compose-main > .pj-sec { margin-top: 20px; }
.pj-model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 18px 0 10px; }
.pj-model-head h3, .pj-plist-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.pj-model-head p { margin: 3px 0 0; font-size: 12px; }
.pj-model-head .pj-vue { flex: none; margin: 0; }
.pj-aside { position: sticky; top: 18px; display: grid; gap: 12px; }
.pj-summary { padding: 20px; border: 1px solid #76591e; border-radius: 17px; background: linear-gradient(145deg, #211d14, rgb(var(--fg-rgb) / .025) 68%); }
.pj-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pj-summary-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.pj-summary-state { padding: 4px 9px; border-radius: 99px; background: #f2b5331b; color: #ffd77b; font-size: 11px; white-space: nowrap; }
.pj-summary > .pj-tot { grid-template-columns: 1fr; gap: 0; margin-top: 15px; }
.pj-summary > .pj-tot div { grid-template-columns: 1fr auto; align-items: baseline; padding: 10px 0; border: 0; border-bottom: 1px solid rgb(var(--fg-rgb) / .1); border-radius: 0; background: transparent; }
.pj-summary > .pj-tot div:first-child { grid-template-columns: 1fr; padding: 0 0 12px; }
.pj-summary > .pj-tot div:first-child b { font-size: 38px; line-height: 1; letter-spacing: -.05em; color: #ffd77b; }
.pj-summary > .pj-tot b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pj-summary > .pj-tot small { font-size: 12px; letter-spacing: 0; }
.pj-summary-extra { margin-top: 4px; }
.pj-summary-extra > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(var(--fg-rgb) / .1); font-size: 12px; }
.pj-summary-extra > div:last-child { border-bottom: 0; }
.pj-summary-extra span { color: var(--ink-2); }
.pj-summary-extra strong { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pj-summary .pj-reset { width: 100%; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-2); font-size: 12px; }
.pj-summary .pj-reset:hover { border-color: #8d6821; color: var(--ink); background: #f2b5330b; }
.pj-compose-main #pjMatW .pj-mats { grid-template-columns: 1fr; gap: 9px; }
.pj-summary > p { margin: 10px 0 0; font-size: 11px; }
.pj-plans { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.pj-plist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pj-plist-head .pj-acts { justify-content: flex-end; }
.pj-compose .pj-prod { margin-top: 14px; }
#pjView > .pj-val { margin: 20px 0 0; grid-template-columns: 1fr; border-color: #76591e; background: linear-gradient(145deg, #211d14, rgb(var(--fg-rgb) / .025) 68%); }
#pjView > .pj-val .pj-val-t b { font-size: 15px; }
#pjView > .pj-val > .go { width: 100%; background: linear-gradient(110deg, #ffdf8d, #e89a36); color: #20170a; font-weight: 700; }
#pjView > .pj-val .pj-val-f { grid-column: auto; }
#tab-projet.ame > #pjView > #pjGainsW { margin-top: 28px; padding: 20px; border: 1px solid #f2b53333; border-radius: 20px; background: radial-gradient(ellipse at 100% 0%, #f2b5330d, transparent 44%), rgb(var(--fg-rgb) / .018); }
#tab-projet.ame #pjGainsW .pj-sec-sub { margin: 5px 0 0; }
#tab-projet.ame .pj-gains div:first-child { border-color: #f2b53355; background: linear-gradient(145deg, #f2b53312, rgb(var(--fg-rgb) / .024)); }
.pj-details { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--fg-rgb) / .018); overflow: hidden; }
.pj-details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; }
.pj-details > summary::-webkit-details-marker { display: none; }
.pj-details > summary span { display: grid; gap: 2px; }
.pj-details > summary b { font-size: 14px; font-weight: 600; color: var(--ink); }
.pj-details > summary small { font-size: 11.5px; color: var(--muted); }
.pj-details > summary i { flex: none; font-style: normal; color: var(--sun-ink); font-size: 18px; }
.pj-details[open] > summary { border-bottom: 1px solid var(--line); }
.pj-details[open] > summary i { transform: rotate(45deg); }
.pj-detail-grid { margin: 0; padding: 14px; }
@media (max-width: 850px) { .pj-compose-layout { grid-template-columns: minmax(0, 1fr); } .pj-aside { position: static; } }
@media (max-width: 600px) { .pj-steps { grid-template-columns: 1fr; gap: 7px; margin-bottom: 20px; } .pj-step { min-height: 45px; padding: 8px 12px; } .pj-section-head { display: block; } .pj-edit-link { display: inline-block; margin-top: 10px; } .pj-model-head { display: block; } .pj-model-head .pj-vue { margin-top: 10px; } .pj-summary { padding: 16px; } .pj-summary > .pj-tot { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; } .pj-summary > .pj-tot div, .pj-summary > .pj-tot div:first-child { display: grid; grid-template-columns: 1fr; align-content: start; gap: 3px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: rgb(var(--fg-rgb) / .025); } .pj-summary > .pj-tot div:first-child b, .pj-summary > .pj-tot b { font-size: 17px; } }
.pj-mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pj-pick { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 2px; align-items: center;
  padding: 14px 34px 14px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgb(var(--fg-rgb) / .051), rgb(var(--fg-rgb) / .016)); cursor: pointer; transition: border-color .15s, background .15s; }
.pj-pick:hover, .pj-pick:focus-within { border-color: #f2b53388; background: linear-gradient(160deg, #f2b53314, rgb(var(--fg-rgb) / .02)); }
.pj-pick svg { grid-row: 1 / 4; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #f2b53318; fill: none; stroke: var(--sun); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.pj-pick.vide svg { background: rgb(var(--fg-rgb) / .051); stroke: var(--muted); }
.pj-pick .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pj-pick b { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.pj-pick small { font-size: 12px; color: var(--ink-2); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-pick .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-60%); font-style: normal; color: var(--muted); font-size: 16px; }
.pj-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.pj-pick select:disabled { cursor: default; }
.pj-pick.fixe, .pj-pick.fixe:hover { cursor: default; border-color: var(--line-2); background: linear-gradient(160deg, rgb(var(--fg-rgb) / .051), rgb(var(--fg-rgb) / .016)); }
.pj-in.pj-exo { margin-top: 10px; max-width: 520px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pj-exn a { color: var(--sun-ink); text-decoration: none; white-space: nowrap; }
.pj-exn a:hover { text-decoration: underline; }
/* Réglages › Mon installation : un groupe de panneaux par ligne (nombre, puissance, orientation, pente). */
#setInst .pj-in select { padding: 8px 10px; font-size: 14px; }
.in-h { margin: 18px 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.in-pan { display: grid; gap: 8px; }
.in-g { display: grid; grid-template-columns: 90px 120px minmax(0, 1fr) minmax(0, 1.3fr) 150px 28px; gap: 8px; align-items: end; }
.in-g label { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.in-g input, .in-g select { padding: 8px 10px; font-size: 14px; }
.in-g .u { position: relative; display: block; }
.in-g .u input { padding-right: 30px; }
.in-g .u i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.in-k { font-size: 12px; color: var(--muted); padding-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-g .pj-x { margin-bottom: 6px; }
#inAdd { margin-top: 10px; }
.in-n { margin-top: 10px; max-width: 680px; }
@media (max-width: 760px) {
  .in-g { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
  .in-g > :nth-child(3) { grid-column: 1; } .in-g > :nth-child(4) { grid-column: 2; }
  .in-g .in-k { grid-column: 1 / 3; padding-bottom: 0; }
  .in-g .pj-x { grid-column: 3; grid-row: 1; align-self: start; }
}
.pj-gains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pj-gains div { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgb(var(--fg-rgb) / .024); }
.pj-gains b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.pj-gains div:first-child b { background: linear-gradient(100deg, var(--sun-1), var(--sun) 55%, var(--sun-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pj-gains span { font-size: 13px; color: var(--ink); }
.pj-gains small a { color: var(--sun-ink); }
.pj-gains small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.pj-fact { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.pj-fact b { color: var(--ink); font-weight: 600; }
.pj-pose { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .024); justify-self: start; }
.pj-pose button { border: 0; background: none; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; color: var(--ink-2); }
.pj-pose button[aria-pressed="true"] { background: #f2b53322; color: var(--ink); }
.pj-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.pj-in label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); }
.pj-in label span { color: var(--ink-2); }
.pj-in input { padding: 8px 10px; font-size: 14px; }
.pj-in small { font-size: 10.5px; color: var(--muted); }
.pj-roi svg { width: 100%; height: auto; display: block; }
/* « J'améliore » : ce qui est en place en ambre foncé, les ajouts en ambre clair. */
.pj-o { color: var(--t-warm); }
.pj-a { color: var(--t-sun); }
#tab-projet.ame #pjYear { display: none !important; }
.pj-prod { display: grid; gap: 8px; align-content: start; }
.pj-prod svg { width: 100%; height: auto; display: block; }
.pj-prod text { font: 10px 'Space Grotesk', sans-serif; fill: var(--muted); }
.pj-ph { margin: 0; font-size: 13px; color: var(--muted); }
.pj-ph2 { font-size: 13px; color: var(--ink-2); }
.pj-ph2 b { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.pj-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.pj-leg span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pj-leg .o::before { background: linear-gradient(#c98326, #6e400b); }
.pj-leg .a::before { background: linear-gradient(#fff4d6, #ffd770); }
/* La production par mois : le détail d'un mois au survol ou au doigt (infobulle d'Énergie). */
.pj-pc { position: relative; }
.pj-pc svg { cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.pj-roih { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 6px; }
.pj-roih a, .ct-inst a { color: var(--sun-ink); }
.pj-vue { margin: 14px 0 2px; }
/* Réglages › Mon installation : ce qu'elle a coûté, une ligne par matériel ou dépense. */
.in-cost { display: grid; gap: 8px; }
.in-c { display: grid; grid-template-columns: minmax(0, 1fr) 160px 150px 28px; gap: 8px; align-items: end; }
.in-c label { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.in-c input { padding: 8px 10px; font-size: 14px; min-width: 0; width: 100%; }
.in-c .u { position: relative; display: block; }
.in-c .u input { padding-right: 30px; }
.in-c .u i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.in-cn { font-size: 13.5px; color: var(--ink); padding-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-c .pj-x { margin-bottom: 6px; }
#inCAdd { margin-top: 10px; }
/* Ses onduleurs, et quels panneaux sur lequel : une pastille de couleur par onduleur. */
.in-onds { display: grid; gap: 8px; }
.in-o { display: grid; grid-template-columns: 12px minmax(0, 1.6fr) 90px minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 8px; align-items: end; }
.in-o label { display: grid; gap: 3px; font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.in-o input, .in-o select { padding: 8px 10px; font-size: 14px; min-width: 0; width: 100%; }
.in-o .u { position: relative; display: block; }
.in-o .u input { padding-right: 30px; }
.in-o .u i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--muted); pointer-events: none; }
.in-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-bottom: 13px; }
.in-o .pj-x { margin-bottom: 6px; }
#inOAdd { margin-top: 10px; }
.in-brs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.in-br { display: grid; grid-template-columns: 12px auto; column-gap: 9px; row-gap: 2px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; line-height: 1.25; }
.in-br i { grid-row: 1 / 3; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.in-br b { font-weight: 500; color: var(--ink); font-size: 13px; }
.in-br small { font-size: 11.5px; color: var(--muted); }
.in-br small.trop, .in-n.warn { color: var(--bad); }
.in-br[aria-pressed="true"] { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); }
.in-cab { display: grid; gap: 16px; }
.in-cg { display: grid; gap: 7px; }
.in-cgh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.in-cgh b { font-weight: 500; }
.in-cgh small { color: var(--muted); }
.in-cgh button { padding: 5px 9px; font-size: 12px; }
.in-pv { display: flex; flex-wrap: wrap; gap: 4px; touch-action: none; user-select: none; -webkit-user-select: none; }
.in-pp { width: 22px; height: 34px; border-radius: 3px; cursor: pointer; border: 1px solid color-mix(in srgb, var(--c) 60%, #fff); background: color-mix(in srgb, var(--c) 78%, #000);
  background-image: linear-gradient(#0000 48%, #00000040 48% 52%, #0000 52%), linear-gradient(90deg, #0000 47%, #00000040 47% 53%, #0000 53%); }
@media (max-width: 760px) {
  .in-c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
  .in-c > :first-child { grid-column: 1 / 3; padding-bottom: 0; }
  .in-c > :last-child { grid-column: 3; grid-row: 1; }
  .in-o { grid-template-columns: 12px minmax(0, 1fr) 80px 28px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
  .in-o > :nth-child(4), .in-o > :nth-child(5) { grid-column: 2 / 4; }
  .in-o > span:nth-child(4), .in-o > span:nth-child(5) { display: none; }
  .in-o .pj-x { grid-column: 4; grid-row: 1; align-self: start; }
}
.pj-roi text { font: 10px 'Space Grotesk', sans-serif; fill: var(--muted); }
.pj-roi text.v { fill: var(--ink-2); }
.pj-roi text.mt { fill: var(--sun); font-weight: 600; }
.pj-roi line.z { stroke: rgb(var(--fg-rgb) / .2); stroke-width: 1; }
.pj-roi line.m { stroke: var(--sun); stroke-width: 1; stroke-dasharray: 3 3; }
@media (max-width: 900px) { .pj-gains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pj-mats { grid-template-columns: 1fr; } .pj-gains b { font-size: 23px; } }

/* L'adresse de la maison : demandée là où elle manque (météo, maquette, « Je débute »),
   changée dans Réglages › Mon compte. Les adresses trouvées s'affichent sous le champ. */
.adr { display: grid; gap: 8px; max-width: 460px; margin: 18px auto 0; text-align: left; }
.adr label { font-size: 13px; color: var(--ink-2); }
.adr input { font-size: 16px; }
.adr-sugg { display: grid; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.adr-sugg:empty { display: none; }
.adr-sugg button { all: unset; box-sizing: border-box; padding: 11px 14px; font-size: 14px; line-height: 1.35; color: var(--ink); cursor: pointer; border-top: 1px solid var(--line-2); }
.adr-sugg button:first-child { border-top: 0; }
.adr-sugg button:hover, .adr-sugg button:focus-visible { background: var(--field); }
.adr .dlg-btns { margin-top: 2px; }
.adr-autre { margin-top: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.sim-empty.wx-adr { padding: 40px 20px; }
.sim-empty p b { color: var(--ink); font-weight: 600; }
#adrDlg .hint { margin: 6px 0 2px; }
#adrDlg .adr { margin-top: 10px; }
#adrVal { white-space: nowrap; }
#adrBtn.manque #adrVal { color: var(--sun-ink); }

/* Le guide pratique, après la connexion et depuis le bouton de la barre. */
.me #guideBtn { white-space: nowrap; }
.news-launch { position: relative; display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.news-launch[hidden] { display: none; }
.news-launch:hover, .news-launch:focus-visible { color: var(--sun-ink); border-color: #f2b53377; background: #f2b53312; }
.news-launch span { font-size: 18px; line-height: 1; }
.news-launch i { position: absolute; top: 2px; right: 1px; width: 8px; height: 8px; border: 1.5px solid var(--surface); border-radius: 50%; background: #ef6b62; }
.dlg.guide { width: min(760px, calc(100% - 24px)); max-width: none; max-height: calc(100svh - 32px); overflow-y: auto; padding: 25px; border-radius: 22px;
  background: radial-gradient(520px 280px at 100% 0%, var(--glow), transparent 72%), var(--surface); }
.dlg.guide :focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 2px; }
.gp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.gp-head h2 { font-size: 25px; line-height: 1.15; letter-spacing: -.04em; }
.gp-lead { max-width: 590px; margin: 8px 0 0; color: var(--ink-2); font-size: 13px; }
.gp-head .x { flex: none; }
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.gp-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-content: start; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: rgb(var(--fg-rgb) / .022); }
.gp-card > :only-child { grid-column: 1 / -1; }
.gp-ic { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #f2b53355; border-radius: 11px; background: #f2b53316; color: var(--sun-ink); font-size: 17px; }
.gp-card h3, .gp-card h4 { font-size: 14px; line-height: 1.3; font-weight: 600; }
.gp-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.gp-card p b { color: var(--ink-2); font-weight: 600; }
.gp-card a { display: inline-block; margin-top: 9px; color: var(--sun-ink); font-size: 12px; text-decoration: none; }
.gp-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gp-note { margin: 13px 0 0; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--ia) 28%, transparent); border-radius: 11px; background: color-mix(in srgb, var(--ia) 6%, transparent); color: var(--ink-2); font-size: 11px; }
.gp-foot { margin-top: 13px; color: var(--muted); font-size: 12px; }
.gp-foot a { color: var(--ink-2); text-underline-offset: 3px; }
/* Nouveautés : un petit panneau sous le mégaphone (une feuille basse sur téléphone), jamais
   une fenêtre qui recouvre l'écran. Fermée, une annonce tient en deux lignes. */
.av-pop.news-pop { width: 360px; padding: 12px 8px 8px; }
.av-pop.news-pop > h3 { margin: 0 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.news-list { display: grid; gap: 2px; max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.news-item { padding: 9px 10px; border-radius: 11px; }
.news-item:hover, .news-item[open] { background: rgb(var(--fg-rgb) / .04); }
.news-item-head { display: flex; align-items: baseline; gap: 8px; color: var(--sun-ink); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.news-item-head time { margin-left: auto; color: var(--muted); letter-spacing: normal; text-transform: none; font-size: 11px; }
.news-item h3 { margin: 2px 0 0; font-size: 14px; line-height: 1.3; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.news-item.neuf h3::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--sun-ink); vertical-align: middle; }
.news-item > summary { display: block; cursor: pointer; list-style: none; }
.news-item > summary::-webkit-details-marker { display: none; }
.news-item > summary:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 4px; border-radius: 6px; }
.news-resume { margin: 3px 0 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.news-item:not([open]) .news-resume { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item ul { display: grid; gap: 6px; margin: 9px 0 0; padding: 0; list-style: none; }
.news-item li { position: relative; padding-left: 16px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.news-item li::before { position: absolute; left: 2px; color: var(--sun-ink); content: "•"; }
.news-empty { padding: 18px 12px; color: var(--muted); text-align: center; font-size: 13px; }
.news-tout { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; background: none; color: var(--sun-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.news-tout:hover { background: rgb(var(--fg-rgb) / .04); }
.news-tout[hidden] { display: none; }
@media (max-width: 640px) {
  .av-pop.news-pop { position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; max-width: none; z-index: 60; box-shadow: 0 -18px 60px #000a; }
  .news-list { max-height: 58vh; }
}
.news-band { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 7px 8px 7px 12px; border: 1px solid color-mix(in srgb, var(--sun-ink) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--sun-ink) 9%, transparent); font-size: 13px; }
.news-band[hidden] { display: none; }
.news-band-tag { flex: none; color: var(--sun-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.news-band-titre { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.news-band-voir, .news-band-x { flex: none; min-height: 32px; border: 0; background: none; font: inherit; cursor: pointer; }
.news-band-voir { padding: 0 8px; color: var(--sun-ink); font-weight: 600; }
.news-band-x { width: 32px; color: var(--muted); font-size: 18px; line-height: 1; }
.dlg.annonce { width: min(680px, calc(100% - 24px)); }
.gp-ic svg { display: block; }
.annonce .msg:empty { display: none; }
.annonce .msg { margin: 10px 0 0; }
@media (max-width: 560px) {
  .dlg.guide { padding: 19px; border-radius: 19px; }
  .gp-head { gap: 12px; margin-bottom: 16px; }
  .gp-head h2 { font-size: 22px; }
  .gp-grid { grid-template-columns: minmax(0, 1fr); }
  .gp-card { padding: 13px; }
}

/* Les logos des liens (Instagram, Discord, e-mail) : un masque teinté par la couleur du lien.
   Logos Instagram et Discord : Simple Icons (CC0). */
.ico { display: inline-block; flex: none; width: 1.1em; height: 1.1em; vertical-align: -0.2em; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ico-instagram { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077'/%3E%3C/svg%3E"); }
.ico-discord { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z'/%3E%3C/svg%3E"); }
.ico-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7.5 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.legal-foot .ico { margin-right: 5px; }

button.stamp { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
button.stamp:empty { display: none; }
button.stamp:hover { color: var(--sun-ink); }

.in-g .in-modele { grid-column: 1 / -1; padding-bottom: 10px; }

.ct-sale { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; font-size: 14px; color: var(--ink-2); }
.ct-sale input { width: 18px; height: 18px; accent-color: var(--sun); }
.ct-details { margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.ct-details summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.ct-details .ct-grid { margin-top: 12px; }
.ct-cost { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px; border-radius: 12px; background: rgb(var(--fg-rgb) / .035); }
.ct-cost b { font-size: 13px; font-weight: 500; }

/* Catalogue : choix visuel commun au projet et à l'installation. */
select[data-picker][hidden] { display:none!important; }
.catalogue-ouvrir { width:100%; text-align:left; padding:14px 36px 14px 14px; border:1px solid var(--line, #555); border-radius:14px; background:var(--bg, #171715); color:var(--ink); font:inherit; cursor:pointer; white-space:normal; }
.catalogue-ouvrir::after { content:'⌄'; float:right; color:#eab747; }
.pj-pick .catalogue-ouvrir { position:absolute; inset:0; opacity:0; height:100%; }
.pj-pick:focus-within { outline:2px solid #eab747; outline-offset:3px; }
.catalogue-dialog { box-sizing:border-box; width:min(760px,calc(100% - 24px)); max-height:90dvh; padding:24px; border:1px solid #69604a; border-radius:24px; background:var(--bg, #171715); color:var(--ink); box-shadow:0 24px 100px #0008; }
.catalogue-dialog::backdrop { background:#000a; backdrop-filter:blur(5px); }
.catalogue-entete { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.catalogue-entete h2 { font-size:24px; margin:0 0 20px; }
.catalogue-fermer { background:none; border:0; color:inherit; font-size:32px; cursor:pointer; }
.catalogue-recherche { display:grid; gap:8px; font-size:14px; }
.catalogue-recherche input { box-sizing:border-box; width:100%; padding:14px; font:inherit; font-size:16px; border:1px solid #7778; border-radius:14px; background:transparent; color:inherit; }
.catalogue-filtres { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.catalogue-filtres button { padding:8px 12px; border:1px solid #7778; border-radius:24px; color:inherit; background:transparent; cursor:pointer; }
.catalogue-filtres button[aria-pressed=true] { color:#1a160a; background:#eab747; border-color:#eab747; }
.catalogue-compte { font-size:13px; opacity:.7; }
.catalogue-resultats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.catalogue-carte { display:flex; flex-direction:column; align-items:flex-start; gap:10px; text-align:left; padding:18px; border:1px solid #7776; border-radius:18px; background:rgb(var(--fg-rgb) / .035); color:inherit; font:inherit; cursor:pointer; min-height:122px; overflow-wrap:anywhere; }
.catalogue-carte:hover { border-color:#eab747; }
.catalogue-carte.choisi { border:2px solid #eab747; background:#eab74712; }
.catalogue-carte small { font-size:12px; color:#c89427; }
.catalogue-carte b { font-size:17px; line-height:1.4; }
.catalogue-carte span { font-size:13px; opacity:.75; }
.catalogue-carte em { font-style:normal; font-size:12px; border-radius:12px; padding:5px 8px; background:#eab74722; }
.catalogue-quantite { display:flex; gap:12px; align-items:center; }
.catalogue-dialog :focus-visible { outline:2px solid #eab747; outline-offset:3px; }
@media(max-width:540px) { .catalogue-dialog { padding:18px; max-height:92dvh; } .catalogue-resultats { grid-template-columns:1fr; } .catalogue-entete h2 { font-size:21px; } }

#setInst #inMat { grid-template-columns:repeat(2,minmax(0,1fr)); }
.in-batteries { margin:24px 0; padding:20px; border:1px solid var(--line-2); border-radius:20px; scroll-margin-top:24px; }
.in-bat-fields { display:grid; grid-template-columns:minmax(0,2fr) minmax(100px,1fr); gap:16px; }
.in-bat-fields label { display:grid; gap:8px; color:var(--ink-2); }
.in-bat-fields input { width:100%; box-sizing:border-box; }
.in-bat-fields > p, .in-bat-fields > details { grid-column:1/-1; }
@media(max-width:560px) { #setInst #inMat,.in-bat-fields { grid-template-columns:1fr; } .in-batteries { padding:16px; } }

/* Même présentation ouverte pour panneaux, onduleurs et batteries. */
.in-batteries { padding:0; border:0; border-radius:0; }
.in-bat-fields { display:block; }
.in-bat-row { position:relative; display:grid; grid-template-columns:minmax(0,2fr) minmax(90px,1fr); gap:16px; padding-right:28px; margin:16px 0; }
.in-bat-row > small { grid-column:1/-1; color:var(--muted); }
@media(max-width:560px){.in-bat-row{grid-template-columns:1fr;}}

/* Accords : écran commun web/iPhone, accessible avant tout chargement de données. */
.accord-ecran{position:fixed;inset:0;z-index:10000;overflow:auto;background:var(--bg,#111);color:var(--ink,#eee);padding:24px 16px calc(32px + env(safe-area-inset-bottom));font-size:16px;line-height:1.65}
.accord-carte{max-width:780px;margin:0 auto}.accord-carte h1{font-size:30px}.accord-carte h2{font-size:22px}.accord-carte h3{font-size:18px;margin-bottom:6px}.accord-carte a{color:inherit;overflow-wrap:anywhere;text-decoration:underline}.accord-texte{border:1px solid #8886;border-radius:14px;padding:14px 18px;margin:14px 0}.accord-texte summary{cursor:pointer;font-weight:600}.accord-texte section{margin:22px 0}.accord-check{display:flex;gap:12px;align-items:flex-start;margin:20px 0}.accord-check input{flex:0 0 22px;width:22px;height:22px;margin-top:3px}.accord-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.accord-actions button{padding:12px 16px}.accord-ecran .msg{color:#edbd63}

.accord-ecran{margin:0;max-width:none;max-height:none;width:100%;height:100%;border:0;box-sizing:border-box}.accord-ecran::backdrop{background:var(--bg,#111)}.accord-carte .accord-check{font-size:16px;line-height:1.6;color:var(--ink,#eee)}

/* Découverte du simulateur : trois étapes communes au web et à l’app. */
.dlg.projet-guide { width: min(580px, calc(100% - 24px)); }
.pg-page { text-align: center; padding: 5px 8px 16px; min-height: 310px; }
.pg-page[hidden] { display: none; }
.pg-art { width: 110px; height: 110px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 32px; background: linear-gradient(145deg,#f2b53325,#8f7cf015); border: 1px solid #f2b53344; color: var(--sun-ink); font-size: 54px; }
.pg-step { color: var(--sun-ink); font-size: 10px; letter-spacing: .1em; margin: 0 0 10px; }
.pg-page h3 { font-size: 23px; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.pg-page > p:not(.pg-step) { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 auto; max-width: 430px; }
.pg-page .pg-note { font-size: 11px !important; color: var(--muted) !important; margin-top: 14px !important; }
.pg-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.pg-footer > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pg-footer button { min-height: 44px; }
.pg-later { display: block; margin: 12px auto 0; font-size: 12px; }
.pg-replay { justify-self: start; }
.guide-projet-only #app { display: none; }
@media (max-width: 420px) { .pg-footer button { font-size: 12px; padding-inline: 10px; } .pg-page { padding-inline: 0; } }

.guide-book { color: var(--sun-ink); background: #f2b53319; }
.guide-book svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guide-projet-only .projet-guide[open] { width: 100%; max-width: 100%; height: 100svh; max-height: 100svh; margin: 0; padding: 20px; border: 0; border-radius: 0; display: flex; flex-direction: column; }
.guide-projet-only .projet-guide > .gp-head .x { display: none; }
.guide-projet-only .pg-pages { flex: 1; display: grid; align-content: center; }
.guide-projet-only .pg-page { min-height: 0; }

.pg-art svg { width: 82px; height: 82px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.pg-art .pg-cursor { fill: var(--surface); stroke-width: 2.5; }


.gate-beta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -2px 0 8px; }
.gate-beta > span { border-radius: 999px; background: #f2b5331a; color: var(--sun-ink); font-size: 11px; font-weight: 600; padding: 4px 10px; }

.pg-access { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #f2b53340; background: #f2b53312; font-size: 12px; line-height: 1.5; color: var(--sun-ink); }

.gp-section { grid-column: 1 / -1; font-size: 16px; color: var(--ink); margin: 18px 0 0; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.gp-section:first-child { margin-top: 0; }
#pjGainsW .pj-estimation { padding: 13px 15px; margin: 12px 0 16px; border: 1px solid #f2b53366; border-radius: 12px; background: #f2b5330c; color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.pj-estimation strong { display: block; color: var(--sun-ink); font-size: 14px; margin-bottom: 4px; }

/* Guide de l’accueil : les vrais visuels de la scène, sans valeurs client. */
.dlg.accueil-guide { width: min(560px, calc(100% - 24px)); }
.accueil-guide .gp-head p { margin: 8px 0 0; }
.ag-rows { display: grid; gap: 8px; margin: 20px 0; }
.ag-row { display: flex; align-items: center; gap: 18px; min-height: 88px; }
.ag-row h3 { font-size: 17px; margin: 0 0 5px; }
.ag-row p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.ag-image, .ag-image.flow { width: 90px; height: 88px; flex: 0 0 90px; display: grid; place-items: center; min-height: 0; padding: 0; overflow: visible; border: 0; background: none; }
.ag-image img { width: 90px; height: 82px; object-fit: contain; }
.accueil-guide .gp-note { font-size: 12px; line-height: 1.5; }
#accueilGuideOk { width: 100%; margin-top: 12px; }
@media(max-width:480px) { .ag-row { gap: 12px; } .ag-rows { margin: 14px 0; } }

/* Conversation : mêmes repères que l'espace et les apps. */
.chat-thread { overflow-y:auto; max-height:440px; min-height:120px; padding:18px 4px; scrollbar-width:thin; }
.chat-message { max-width:86%; margin:0 0 22px; }
.chat-message.mine { margin-left:auto; }
.chat-author,.chat-meta { font-size:12px; color:var(--ink-2); margin:5px 3px; }
.chat-meta,.mine .chat-author { text-align:right; }
.chat-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; padding:12px 15px; border-radius:14px 14px 14px 4px; background:var(--glass); color:var(--ink); font-size:14px; }
.mine .chat-text { background:#f2b5331a; border-radius:14px 14px 4px 14px; }
.chat-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
#wrForm .chat-prevenir { display:flex; flex-direction:row; align-items:center; margin-top:12px; font-size:14px; line-height:1.35; min-height:44px; cursor:pointer; }
#wrForm .chat-prevenir input { width:20px; height:20px; margin:0 10px 0 2px; padding:0; flex:none; accent-color:var(--sun); }
.chat-actions button,.chat-heading button { min-height:44px; }
.chat-empty { text-align:center; padding:30px 10px; color:var(--ink-2); }
.chat-compose { border-top:1px solid var(--line); padding-top:14px; }
.chat-compose textarea,.chat-dialog textarea { display:block; width:100%; font:inherit; padding:12px; color:var(--ink); background:var(--surface); border:1px solid var(--line-2); border-radius:12px; resize:vertical; }
.chat-compose label,.chat-dialog label { display:block; margin:0 0 8px; font-size:13px; color:var(--ink-2); }
.chat-compose textarea:focus-visible,.chat-dialog textarea:focus-visible { outline:2px solid var(--sun); outline-offset:2px; }
.chat-badge { display:inline-block; background:var(--sun); color:#1b1305; border-radius:999px; min-width:21px; padding:1px 6px; font-size:12px; text-align:center; }
.chat-dialog { width:min(590px,calc(100vw - 24px)); max-height:calc(100dvh - 28px); padding:20px; }
.chat-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.chat-dialog .chat-thread { height:min(390px,40dvh); max-height:none; }
.chat-dialog #wrForm { border-top:1px solid var(--line); padding-top:12px; }
@media(max-width:600px) { .chat-message { max-width:93%; } .chat-dialog { padding:14px; } }

/* Assistance : casque et micro, commun à l’en-tête et aux réglages. */
.ico-support { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-3a8 8 0 0 1 16 0v6a4 4 0 0 1-4 4h-3'/%3E%3Crect x='2' y='10' width='4' height='8' rx='2'/%3E%3Crect x='18' y='10' width='4' height='8' rx='2'/%3E%3C/svg%3E"); }
/* En-tête : Assistance en icône ronde, comme le mégaphone ; son libellé au survol et au focus. */
/* `.news-launch i` dessine le point des nouveautés : l'icône reprend sa forme. */
#wrHeader .ico-support { position: static; width: 18px; height: 18px; border: 0; border-radius: 0; background: currentColor; color: var(--sun-ink); }
/* Réponse non lue : le même point que celui des nouveautés ; le nombre est dans le libellé. */
.hd-rond .chat-badge { position: absolute; top: 2px; right: 1px; width: 8px; height: 8px; min-width: 0; padding: 0; font-size: 0; border: 1.5px solid var(--surface); border-radius: 50%; background: #ef6b62; }
.hd-rond .hd-tip { position: absolute; top: calc(100% + 8px); left: 50%; z-index: 20; transform: translate(-50%, -4px); padding: 5px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.hd-rond:hover .hd-tip, .hd-rond:focus-visible .hd-tip { opacity: 1; transform: translate(-50%, 0); }
/* Assistance en Free : un petit cadenas sur le bouton ; la conversation reste lisible. */
.hd-rond .hd-lock { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; padding: 2.5px; border-radius: 50%; background: var(--surface); border: 1px solid color-mix(in srgb, var(--sun) 55%, transparent); fill: none; stroke: var(--sun-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
#wrLock .of-lock { margin: 4px 0 0; }
#logout[hidden] { display: none; }

/* Pièces jointes des réponses : image entière, ouverture accessible au clavier. */
.chat-image { display:block; max-width:360px; width:100%; padding:8px; margin-top:8px; text-align:left; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); cursor:pointer; }
.chat-image img { display:block; width:100%; max-height:220px; object-fit:contain; border-radius:6px; }
.chat-image span { display:block; padding:7px 2px 0; font-size:13px; }
.chat-image-draft { display:flex; align-items:center; gap:12px; margin:10px 0; }
.chat-image-draft[hidden] { display:none; }
.chat-image-draft img { width:100px; height:70px; object-fit:contain; }
.chat-image-viewer { width:min(1000px,96vw); max-height:94dvh; padding:16px; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.chat-image-viewer::backdrop { background:#000c; }
.chat-image-tools { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.chat-image-tools button { min-height:44px; }
.chat-image-scroll { overflow:auto; max-height:76dvh; }
.chat-image-scroll img { display:block; width:100%; }
.chat-image-viewer.zoom img { width:200%; max-width:none; }
.chat-image:focus-visible { outline:2px solid var(--sun); outline-offset:3px; }

/* Confirmation d’effacement : texte lisible et actions accessibles au toucher. */
#supprimerDlg .hint { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
#supprimerDlg .dlg-btns button { min-height: 44px; }
#supprimerValider { color: var(--bad); }

/* Mon compte : identité, informations, aide puis communauté ; effacement séparé. */
.account { margin-top: 36px; }
.account #rgCompte { margin-bottom: 6px; }
.ac-lead { color:var(--ink-2); margin:0 0 24px; font-size:14px; }
.ac-profile { display:flex; align-items:center; gap:16px; padding-bottom:26px; margin-bottom:26px; border-bottom:1px solid var(--line); }
.ac-avatar { display:grid; place-items:center; flex:none; width:64px; height:64px; border-radius:22px; background:#f2b53313; border:1px solid #f2b53324; color:var(--sun-ink); font-size:29px; font-weight:500; }
.ac-identity { flex:1; min-width:0; }
.ac-identity b { display:block; font-size:22px; font-weight:500; letter-spacing:-.025em; overflow-wrap:anywhere; }
.ac-identity span,.ac-identity small { display:block; color:var(--ink-2); font-size:13px; overflow-wrap:anywhere; }
.ac-identity small { color:var(--muted); font-size:12px; margin-top:4px; }
.account svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.ac-logout { min-height:44px; color:var(--ink-2); background:none; gap:8px; }
.ac-logout svg { width:17px; height:17px; }
.ac-groups { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:28px; }
.ac-group { min-width:0; }
.ac-group h3 { margin:0 0 11px; font-size:15px; font-weight:500; }
.ac-rows { background:var(--surface); border-radius:14px; padding:0 16px; }
.ac-row { display:flex; width:100%; gap:13px; align-items:center; text-align:left; min-height:76px; padding:17px 0; border:0; border-radius:0; background:none; }
.ac-row + .ac-row { border-top:1px solid var(--line); }
.ac-row:hover { background:none; }
.ac-row:hover b { color:var(--sun-ink); }
.ac-row .t { min-width:0; flex:1; }
.ac-row b { display:block; font-size:14px; line-height:1.4; font-weight:400; color:var(--ink); }
.ac-row small { display:block; overflow-wrap:anywhere; white-space:normal; font-size:12px; line-height:1.5; margin-top:4px; color:var(--muted); }
.ac-row #adrVal { white-space:normal; overflow-wrap:anywhere; }
.ac-row > svg { color:var(--ink-2); }
.ac-row .rg-chev { position:static; flex:none; }
.ac-community { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:20px 0 15px; margin-top:6px; border-bottom:1px solid var(--line); }
.ac-community p { flex:1; color:var(--muted); font-size:13px; margin:0; }
.ac-community > div { display:flex; gap:24px; }
.ac-community a { display:flex; align-items:center; gap:8px; min-height:44px; color:var(--ink-2); text-decoration:none; font-size:13px; }
.ac-community a:hover { color:var(--sun-ink); }
.ac-community .ico { width:18px; height:18px; }
.ac-soutien { display:flex; align-items:center; gap:14px; margin-top:16px; padding:16px; border-radius:14px; background:var(--surface); border:1px solid var(--line); }
.ac-soutien[hidden] { display:none; }
.ac-soutien-ico { flex:none; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:rgb(242 181 51 / .14); font-size:19px; line-height:1; }
.ac-soutien .t { flex:1; min-width:0; }
.ac-soutien b { display:block; font-size:14px; font-weight:500; color:var(--ink); }
.ac-soutien small { display:block; margin-top:4px; font-size:12px; line-height:1.5; color:var(--muted); max-width:62ch; }
.ac-cafe { flex:none; display:inline-flex; align-items:center; min-height:44px; padding:0 16px; border-radius:999px; color:var(--ink); }
.ac-cafe:hover { color:var(--sun-ink); background:rgb(var(--fg-rgb) / .071); }
@media(max-width:440px) { .ac-soutien { flex-wrap:wrap; } .ac-soutien .t { flex-basis:calc(100% - 54px); } .ac-cafe { margin-left:54px; } }
.ac-danger { margin-top:16px; }
.ac-danger summary { display:flex; align-items:center; gap:9px; min-height:44px; list-style:none; cursor:pointer; color:var(--ink-2); font-size:13px; }
.ac-danger summary::-webkit-details-marker { display:none; }
.ac-danger summary svg { width:17px; height:17px; }
.ac-danger summary .rg-chev { margin-left:auto; }
.ac-danger[open] summary .rg-chev { transform:rotate(135deg); }
.ac-danger p { font-size:13px; color:var(--ink-2); max-width:62ch; margin:8px 0 16px; }
.ac-delete { color:var(--bad); border-color:#e5677a55; background:none; min-height:44px; }
@media(max-width:760px) { .ac-groups { grid-template-columns:minmax(0,1fr); gap:24px; } .ac-profile { flex-wrap:wrap; gap:12px; } .ac-identity b { font-size:20px; } .ac-avatar { width:56px; height:56px; border-radius:18px; } .ac-community > div { flex-wrap:wrap; gap:20px; } }
@media(max-width:440px) { .ac-identity { flex-basis:calc(100% - 68px); } .ac-logout { margin-left:68px; flex:none; } .ac-community { display:block; } }

/* La vue web Android peut être attachée après le chargement : le dialogue suit
   la hauteur disponible actuelle, y compris après réouverture et clavier. */
.in-app .dlg.ct { max-height: calc(100dvh - 24px); }
.in-app .dlg.ct input { font-size: 16px; }

/* Économies : l’azur distingue l’argent évité de la batterie verte et des flux roses. */
#tab-energie { --eco: #98c6ff; }
:root[data-mode="jour"] #tab-energie { --eco: #225da1; }
:root[data-mode="jour"] #tab-energie[data-m="reseau"] { --tabc: #225da1; }
.e-finances { display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.e-finances .bill { display:block; }
.e-saving h3 { font-size:18px; margin:0; font-weight:500; }
.e-saving .saving-value { margin:18px 0; color:var(--eco); font-size:clamp(38px,4vw,56px); line-height:1.05; font-variant-numeric:tabular-nums; }
.saving-parts { display:flex; justify-content:space-between; gap:16px; font-size:13px; color:var(--ink-2); }
.saving-parts b { display:block; margin-top:6px; color:var(--ink); font-weight:500; }
.e-saving .bcmp { margin-top:24px; }
#eRoi .rv b { color:var(--eco); }
#eRoi .roibar > span { background:var(--eco); }
.roi-purchases { margin-top:16px; font-size:13px; }
.roi-purchases summary,.e-network-details > summary { cursor:pointer; color:var(--ink-2); padding:12px 0; }
.roi-purchases > div { display:flex; justify-content:space-between; gap:20px; padding:12px 0; border-bottom:1px solid var(--line); }
.roi-purchases b { white-space:nowrap; font-weight:500; }
.e-network-details { border-top:1px solid var(--line); padding-top:4px; }
.e-network-details > .e-net { margin:12px 0 16px; }
.e-network-details > .pair { margin-top:16px; }
#eSavings { width:100%; height:240px; }
@media(max-width:900px) { .e-finances { grid-template-columns:1fr; } }

.ct-reset { justify-self:start; background:none; border:0; padding:12px 0; color:var(--muted); text-decoration:underline; text-underline-offset:4px; font:inherit; font-size:13px; }
#ctResetDlg { max-height:calc(100dvh - 32px); overflow:auto; }
#ctResetDlg p { font-size:14px; line-height:1.6; color:var(--ink-2); }
#ctResetDlg .dlg-btns { flex-wrap:wrap; }
#ctResetConfirm { color:var(--bad); }

.e-saving .bcmp { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; font-size:12px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.e-saving .bcmp .bb { height:8px; border-radius:4px; background:var(--track); overflow:hidden; }
.e-saving .bcmp .bb span { display:block; height:100%; border-radius:4px; }

/* Total strictement limité aux barres mesurées de la période sélectionnée. */
.e-saving-total { display:grid; gap:4px; justify-items:end; min-width:90px; font-variant-numeric:tabular-nums; }
.e-saving-total span { font-size:11px; color:var(--ink-2); }
.e-saving-total b { font-size:18px; font-weight:500; color:var(--eco); white-space:nowrap; }
/* Le contrat appartient à Économies : actions azur, y compris en vue intégrée. */
#ctDlg { --ct-blue:#98c6ff; --ct-ink:#12263e; }
:root[data-mode="jour"] #ctDlg { --ct-blue:#225da1; --ct-ink:#fff; }
#ctGo { background:var(--ct-blue); color:var(--ct-ink); border-color:var(--ct-blue); }
#ctFileT,#ctInst { color:var(--ct-blue); }
#ctFileL { border-color:color-mix(in srgb,var(--ct-blue) 48%,transparent); background:color-mix(in srgb,var(--ct-blue) 5%,transparent); }
#ctFileL:hover { border-color:var(--ct-blue); }
#ctFileL:focus-within { outline-color:var(--ct-blue); }
#ctDlg input:focus { border-color:var(--ct-blue); outline-color:var(--ct-blue); }
#ctDlg input.lu { border-color:color-mix(in srgb,var(--ct-blue) 65%,transparent); background:color-mix(in srgb,var(--ct-blue) 7%,transparent); }
#ctSell { accent-color:var(--ct-blue); }

.lecture-guide [data-lecture="bilan"] figure { max-width: 390px; }
.lecture-guide h3 { margin: 1.4em 0 .35em; }
.lecture-guide [data-prix] { font-size: .85em; color: var(--muted); }
/* Glossaire : une carte par famille, repliée ; ses connecteurs en lignes séparées. */
.guide-titre-natif .lecture-guide > .gp-head { display: none; }
.guide-fermer-natif .lecture-guide > .gp-head .x { display: none; }
.gl-recherche { position: relative; margin: 16px 0 14px; }
.gl-recherche svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.gl-recherche input { width: 100%; min-height: 46px; padding-left: 42px; border-radius: 14px; }
.lecture-guide details { margin-top: 8px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.lecture-guide summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.lecture-guide summary::-webkit-details-marker { display: none; }
.lecture-guide summary .rg-plate { width: 40px; height: 40px; border-radius: 12px; }
.lecture-guide summary .rg-plate svg { width: 32px; height: 32px; }
.gl-nom { flex: 1; min-width: 0; }
.gl-nb { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--glass); color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.gl-chevron { flex: none; color: var(--muted); transition: rotate .18s ease; }
.lecture-guide details[open] .gl-chevron { rotate: 90deg; }
.lecture-guide details > p { margin: 0; padding: 2px 14px 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lecture-guide dl { margin: 0; }
.lecture-guide dl > div { padding: 12px 14px; border-top: 1px solid var(--line); }
.lecture-guide dt { font-weight: 600; }
.lecture-guide dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lecture-guide dd.gl-prevoir { margin-top: 6px; color: var(--ink-2); }
.gl-prevoir b { margin-right: 6px; color: var(--sun-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.gl-suite { margin-top: 18px; padding: 4px 14px; border-radius: 16px; background: var(--glass); }
.gl-suite p { margin: 0; padding: 12px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gl-suite p + p { border-top: 1px solid var(--line); }
.gl-suite b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .gl-chevron { transition: none; } }
.economies-guide { max-width: 860px; }
.economies-guide section { margin-top: 32px; }
.economies-guide p { max-width: 72ch; line-height: 1.6; }
.economies-guide figure { margin: 16px 0 0; }
.economies-guide figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.economies-guide figcaption { margin-top: 8px; line-height: 1.5; font-size: 13px; color: var(--muted); }
.guide-economies-only #app { display: none; }
.guide-economies-only .economies-guide[open] { width: 100%; max-width: 100%; height: 100svh; max-height: 100svh; margin: 0; padding: 20px; border: 0; border-radius: 0; }
/* Une WebView peut charger avant d'avoir sa taille définitive. Les unités svh
   et la hauteur en pourcentage peuvent alors garder le petit viewport initial.
   Dans les feuilles natives, suivre la hauteur courante, comme pour le contrat. */
.in-app .dlg.guide { max-height: calc(var(--app-height, 100dvh) - 32px); }
.in-app.solo-maison .mp { height: var(--app-height, 100dvh); max-height: var(--app-height, 100dvh); }
.in-app.guide-economies-only .economies-guide[open],
.in-app.guide-projet-only .projet-guide[open] { height: var(--app-height, 100dvh); max-height: var(--app-height, 100dvh); }

/* La maquette garde son éclairage astronomique ; ses commandes suivent l’apparence. */
:root[data-mode="jour"] .s3 {
  --s3-surface: var(--surface); --s3-line: var(--line); --s3-ink: var(--ink);
  --s3-ink-2: var(--ink-2); --s3-muted: var(--muted); --s3-sun: var(--sun-ink);
}
:root[data-mode="jour"] .s3 :is(.s3-hud, .s3-hint, .s3-tag) {
  background: #fffffff0; border-radius: 10px; padding: 6px; text-shadow: none;
}
:root[data-mode="jour"] .s3 :is(button, select, input) {
  color: var(--ink-2); background: var(--surface); border-color: var(--line-2);
}

:root[data-mode="jour"] .s3-stage { background: #d7eafa; }
:root[data-mode="jour"] .s3-stage::before { background: linear-gradient(#ffffffc9, #ffffff00); }

:root[data-mode="jour"] .s3-chips button[aria-pressed="true"] {
  color: var(--sun-ink); background: #f2b53321; border-color: #9a5f0066;
}
:root[data-mode="jour"] .s3-k { background: #ffffffd9; border-color: var(--line-2); }

/* La phase reste lisible sur papier clair, même quand la lune est sous l’horizon. */
:root[data-mode="jour"] .flow .sun.moon .orb {
  border-color: rgb(var(--moon-rgb) / .65); box-shadow: none;
}
:root[data-mode="jour"] .flow .sun.moon.down .orb { opacity: 1; }

/* Modèle et méthode dans la fiche Zendure existante. */
.zd-cloud-form { margin-top: 1.5rem; }
.zd-cloud-guide { margin: 1rem 0; font-size: .9rem; }
.zd-cloud-guide summary { cursor: pointer; font-weight: 500; }
.zd-voir { margin: .4rem 0 0; font-size: .85rem; }
.zd-cloud-modifier { margin: 1.2rem 0; }
.zd-cloud-form .zd-cloud-cancel { margin-left: .6rem; }

/* La même fiche de connexion cloud dans le navigateur et les vues intégrées. */
.sh-cloud { margin: 20px 0 28px; padding: 20px 16px; border-radius: 16px; background: var(--surface); }
.sh-cloud h3 { margin: 0 0 10px; font-size: 20px; }
.sh-cloud p { max-width: 70ch; line-height: 1.55; }
.sh-cloud summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
.sh-cloud-form { display: grid; gap: 14px; padding: 8px 0; }
.sh-cloud-form > label:not(.sh-cloud-accord) { display: grid; gap: 8px; }
.sh-cloud-form input:not([type=checkbox]) { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
.sh-cloud-accord { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.sh-cloud-accord input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }
.sh-cloud-form .go { justify-self: start; min-height: 44px; }
.sh-cloud > .danger { margin-top: 10px; min-height: 44px; color: var(--t-bad); }
.sh-cloud :is(input, button, summary):focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; }
.sh-cloud .hint { margin: 0; color: var(--ink-2); }
.sh-cloud-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.sh-cloud-lien { border: 0; background: none; padding: 10px 0; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.sh-cloud-liste { display: grid; gap: 12px; }
.sh-cloud-liste[hidden], .sh-cloud-manuel[hidden], .sh-cloud-accord[hidden] { display: none; }
.sh-cloud-manuel { display: grid; gap: 8px; }
.sh-cloud-manuel label { display: grid; gap: 8px; }
.sh-cloud-trouves { margin: 6px 0 0; font-size: 16px; }
.sh-cloud-quota .sh-cloud-lien { padding: 0; min-height: 0; }
.sh-cloud-devs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sh-cloud-devs li { border-bottom: 1px solid var(--line); }
.sh-cloud-devs label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; min-height: 56px; cursor: pointer; }
.sh-cloud-devs input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sun); }
.sh-cloud-devs .t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sh-cloud-devs .n { font-weight: 600; overflow-wrap: anywhere; }
.sh-cloud-devs .id { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sh-cloud-devs .why { font-size: 13px; color: var(--muted); line-height: 1.4; }
.sh-cloud-devs li.off label { cursor: default; }
.sh-cloud-devs li.off .n, .sh-cloud-devs li.off .id { color: var(--muted); }
.sh-cloud-devs .tag { flex: none; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); margin-top: 1px; white-space: nowrap; }
.sh-cloud-devs .tag.on { color: var(--t-ok); border-color: color-mix(in srgb, var(--t-ok) 45%, transparent); }

/* Présentation des batteries : indépendante de leur prise en compte énergétique. */
.home-batteries{margin:12px 18px 20px}.home-batteries-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}.home-batteries-head button{min-height:44px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:12px;padding:8px 14px}.home-batteries .pop-bpick{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}.home-batteries .pop-b{min-width:0}.home-batteries .pop-b.off{opacity:1}.home-batteries .pop-b.off .cell{opacity:.65}.home-batteries .pop-b span,.home-batteries .pop-b small{white-space:normal;overflow-wrap:anywhere}.battery-display{margin-bottom:18px}.battery-display summary{cursor:pointer;padding:12px 0;font-weight:600}.battery-display fieldset{border:0;padding:8px 0;margin:0}.battery-display legend{font-size:13px;color:var(--muted)}.battery-display label{display:flex;align-items:center;gap:10px;min-height:48px;cursor:pointer}.battery-display input{accent-color:#3987e5;width:20px;height:20px}.battery-display:focus-within{outline-offset:4px}

/* Le compagnon accompagne les explications sans remplacer leurs visuels. */
.compagnon { object-fit: contain; flex-shrink: 0; max-width: 100%; }
.compagnon-head { align-items: center; gap: 16px; }
.compagnon-head > .compagnon { width: 88px; height: 112px; }
.compagnon-head > div { flex: 1; min-width: 0; }
.compagnon-head > .x { align-self: flex-start; flex-shrink: 0; }
.chat-heading > .compagnon-small { width: 32px; height: 44px; }
.chat-heading > div { flex: 1; min-width: 0; }
.chat-empty > .compagnon { display: block; width: 120px; height: 156px; margin: 0 auto 16px; }
.compagnon-diagnostic { width: 64px; height: 82px; float: left; margin: 0 14px 8px 0; }
.conn-form > .hint:has(.compagnon-diagnostic) { display: flow-root; }
@media(max-width:480px) {
  .compagnon-head { gap: 12px; }
  .compagnon-head > .compagnon { width: 68px; height: 92px; }
}

/* Plages HP/HC : contrôles existants, masquage explicite dans les grilles. */
#ctHphc[hidden], #kHphc[hidden] { display: none; }
#ctHphc textarea, #kHphc textarea { width: 100%; box-sizing: border-box; min-height: 72px; }
#ctHphc small, #kHphc small { font-size: 12px; line-height: 1.5; }
#kHphc { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

#ctHphc textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
#ctHphc textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Bibliothèque privée du compte ; même formulaire dans les vues intégrées mobiles. */
.catalogue-personnel { margin:12px 0 18px; }
.catalogue-personnel p, .catalogue-perso-form p { color:var(--muted); font-size:14px; line-height:1.5; }
.catalogue-origines { display:flex; gap:8px; flex-wrap:wrap; }
.catalogue-origines button { min-height:44px; padding:10px 16px; border-radius:12px; border:1px solid rgb(var(--fg-rgb) / .25); background:transparent; color:inherit; font:inherit; cursor:pointer; }
.catalogue-origines button[aria-pressed=true] { background:#eab747; color:#241c0b; border-color:#eab747; }
.catalogue-modele { display:flex; flex-direction:column; gap:8px; min-width:0; }
.catalogue-modele .catalogue-carte { flex:1; width:100%; }
.catalogue-modele .catalogue-supprimer { color:#b3261e; border-color:rgb(179 38 30 / .45); }
.catalogue-modele .catalogue-archive { color:var(--muted); font-size:13px; }
.catalogue-perso-form form { display:grid; gap:16px; margin-top:18px; }
.catalogue-perso-form label { display:flex; flex-direction:column; gap:7px; margin-bottom:14px; font-size:14px; }
.catalogue-perso-form input, .catalogue-perso-form select { width:100%; box-sizing:border-box; min-height:46px; border:1px solid rgb(var(--fg-rgb) / .35); border-radius:10px; padding:10px 12px; background:var(--bg); color:var(--ink); font:inherit; }
.catalogue-perso-erreur { color:#cb5959 !important; }

/* Saisie guidée HP/HC, commune au web et aux vues intégrées des apps. */
.ct-horaires { grid-column:1/-1; min-width:0; margin:12px 0; }
/* Tempo (0.963) : la couleur du jour devant chaque prix. */
.ct-tempo { display:inline-block; width:max-content; align-self:flex-start; justify-self:start; margin-right:6px; padding:1px 8px; border-radius:999px; font-size:12px; font-weight:600; }
.ct-tempo.bleu { background:#d7e9fb; color:#12456f; }
.ct-tempo.blanc { background:#eceef1; color:#39424d; border:1px solid #cfd5dc; }
.ct-tempo.rouge { background:#f9d5d2; color:#8a1f18; }

.ct .ct-horaires h4 { margin:0 0 6px; font-size:16px; letter-spacing:0; text-transform:none; color:var(--ink); }
.ct-horaires .ct-hint { margin-bottom:16px; color:var(--ink-2); }
.ct-plage { position:relative; min-width:0; margin:0; padding:18px 0 12px; border:0; border-bottom:1px solid var(--line-2); }
.ct-plage + .ct-plage { margin-top:16px; }
.ct-plage legend { padding:0 52px 0 0; font-size:14px; color:var(--ink); }
.ct-plage-heures label { min-width:0; }
.ct-plage-heures { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.ct-plage input[type="time"] { width:100%; max-width:100%; min-width:0; min-inline-size:0; min-height:48px; display:block; appearance:none; overflow:hidden; font:inherit; font-variant-numeric:tabular-nums; box-sizing:border-box; }
.ct-plage-supprime { position:absolute; right:0; top:-24px; display:grid; place-items:center; width:48px; min-height:48px; padding:0; border:0; background:none; color:var(--ink-2); }
.ct-plage-supprime:disabled { opacity:.35; }
.ct-plage-supprime:hover:not(:disabled) { background:var(--glass); color:var(--ink); }
.ct-lendemain { font-size:12px; color:var(--ct-blue); margin:6px 0 0; }
.ct-lendemain:empty { display:none; }
#ctPlageAjout { padding:8px 0; min-height:48px; border:0; background:none; color:var(--ct-blue); font-size:13px; }
#ctPlageAjout:disabled { color:var(--ink-2); opacity:.6; }
#ctPlagesResume { margin:10px 0 16px; font-size:13px; }
#ctPlagesResume b { color:var(--ct-blue); font-weight:500; }
#ctPlagesResume p { margin:4px 0 12px; color:var(--ink-2); }
.ct-journee { display:flex; height:10px; overflow:hidden; border-radius:4px; background:var(--line-2); }
.ct-journee span { height:100%; }
.ct-journee .hc { background:var(--ct-blue); }
.ct-reperes { display:flex; justify-content:space-between; margin-top:5px; color:var(--ink-2); font-size:10px; font-variant-numeric:tabular-nums; }
.ct-plages-erreur { font-size:13px; color:var(--t-bad); }
.ct-plages-erreur:empty { display:none; }
#ctDlg input[aria-invalid="true"] { border-color:var(--t-bad); }
#ctPlagesResume[hidden] { display:none; }
.ct-horaires button:focus-visible { outline:2px solid var(--ct-blue); outline-offset:2px; }

.ct-plage input[type="time"]::-webkit-date-and-time-value { text-align:left; min-width:0; }

/* Deux liens indépendants : améliorer le projet ou décrire l'installation existante. */
.rg-house-card { margin-bottom: 16px; position: relative; background: var(--rg-hero); border-radius: 28px; overflow: hidden; }
.rg-improve { display: block; width: fit-content; max-width: calc(100% - 32px); margin: 16px 16px 0 auto; padding: 11px 17px; min-height: 44px; border: 1px solid #f2b53380; border-radius: 999px; background: #f2b53321; color: var(--sun-ink); font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; }
.rg-improve[hidden], .tabs [data-tab="projet"][hidden] { display: none; }
.rg-improve:hover { background: #f2b53335; }
.rg-improve:focus-visible { outline: 3px solid var(--sun-ink); outline-offset: -3px; }
.rg-house-card:has(.rg-improve:not([hidden])) .rg-hero { height: auto; min-height: 280px; }
.rg-house-card:has(.rg-improve:not([hidden])) .rg-hero-b { position: static; padding: 0 20px 18px; }
.rg-house-card:has(.rg-improve:not([hidden])) .rg-hero img { margin-top: 0; }

/* Heure propre à chaque source, face au nom. */
.lc-pop .psc .l:has(.prod-releve){display:flex;flex-wrap:wrap;align-items:baseline;gap:5px}
.lc-pop .prod-releve{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
.lc-pop .psc .prod-releve .src i{width:6px;height:6px;margin:0;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--ok) 18%,transparent)}
.lc-pop .psc .prod-releve .src.old i{background:var(--bad);box-shadow:0 0 0 3px color-mix(in srgb,var(--bad) 18%,transparent)}
.lc-pop .psc .prod-releve .src.none i{background:var(--line-2);box-shadow:none}

.lc-pop .ps:has(.prod-releve){grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}

@media(max-width:360px){.lc-pop .pc-top,.lc-pop .pc-top em{flex-wrap:wrap}}

.news-capture { margin: 10px 0 0; }
.news-capture img { display: block; width: min(100%, 280px); height: auto; border-radius: 14px; }
.news-capture figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }

/* Reprise des économies : même saisie dans le navigateur et les vues intégrées. */
.in-reprise { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.in-reprise-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 12px; }
.in-reprise-fields label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; }
.in-reprise-fields input { min-width: 0; width: 100%; min-height: 48px; font-size: 16px; }
.roi-reprise { display: grid; gap: 10px; margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.roi-reprise > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.roi-reprise span { color: var(--ink-2); font-size: 13px; }
.roi-reprise small { display: block; font-size: 11px; }
.roi-reprise b { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
@media (max-width: 600px) { .in-reprise-fields { grid-template-columns: 1fr; } }

/* Accès au détail partagé des panneaux depuis la fenêtre Production. */
.pv-entry{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px;margin:18px 0;border:1px solid var(--line-2);border-radius:14px;text-decoration:none;color:var(--ink);background:linear-gradient(110deg,var(--glow),transparent);min-height:64px}.pv-entry b{font-size:17px;font-weight:500}.pv-entry small{display:block;margin-top:4px;color:var(--ink-2);font-size:12px}.pv-entry:hover,.pv-entry:focus-visible{border-color:var(--sun-ink);color:var(--sun-ink)}

/* Le dossier envoyé reste accessible à côté du simulateur. */
.rg-project-row{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.rg-project-row:has(#rgDossier:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.rg-project-row>.rg-li{border-radius:24px;background:var(--surface);min-width:0;min-height:68px}
.rg-project-row>.rg-li::before{display:none}
.rg-dossier-lock{display:flex;flex:none;color:var(--sun-ink)}
.rg-dossier-lock svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rg-dossier[data-etat="valide"] .rg-dossier-lock{color:var(--ok,#398557)}
@media(max-width:600px){.rg-project-row:has(#rgDossier:not([hidden])){grid-template-columns:minmax(0,1fr)}}

/* ─── Offres Free, Plus et Pro : cadenas, pastille, carte du compte, fenêtre ─── */
.of-lock { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 18px; margin: 14px 0; border-radius: 18px; border: 1px solid var(--line-2); background: var(--glass); }
.of-lock b { font-size: 15px; font-weight: 600; color: var(--ink); }
.of-lock p { margin: 0 0 8px; max-width: 38ch; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.of-ic { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 2px; border-radius: 50%; background: color-mix(in srgb, var(--sun) 18%, transparent); color: var(--sun-ink); }
.of-ic svg { width: 19px; height: 19px; }
.of-lock.pro .of-ic { background: color-mix(in srgb, var(--ia) 20%, transparent); color: var(--t-ia); }
.of-go-ia, .of-go-ia:hover { background: linear-gradient(100deg, #b3a6ff, #8f7cf0 45%, #3fc6d9); color: #0c0a1c; border: 0; font-weight: 600; border-radius: 999px; padding: 11px 18px; justify-content: center; }
.of-go-ia:hover { filter: brightness(1.06); }
.of-lock .go, .of-lock .of-go-ia { min-height: 44px; }
/* Le cadenas sur un exemple d'affichage flouté (HE.cadenas(…, clé)) : on devine l'écran réservé. */
.of-apercu { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 500px; padding: 44px 16px 40px; margin: 14px 0; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; }
.of-fond { position: absolute; inset: 0; z-index: -1; -webkit-mask-image: linear-gradient(#000 60%, #0006); mask-image: linear-gradient(#000 60%, #0006); }
.of-flou, .of-flou img { display: block; width: 100%; height: 100%; }
.of-flou img { object-fit: cover; object-position: top center; user-select: none; pointer-events: none; }
.of-flou.jour, :root[data-mode="jour"] .of-flou.nuit { display: none; }
:root[data-mode="jour"] .of-flou.jour { display: block; }
.of-apercu > .of-lock { width: min(400px, 100%); margin: 0; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 54px rgb(0 0 0 / .24), 0 2px 6px rgb(0 0 0 / .08); }
.of-ex { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.of-badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); }
.of-badge svg { width: 12px; height: 12px; }
.of-badge.plus { border-color: color-mix(in srgb, var(--sun) 55%, transparent); color: var(--sun-ink); }
.of-badge.pro { border-color: transparent; color: var(--t-ia); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #8f7cf0, #3fc6d9) border-box; }
.ac-nom { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ac-identity .ac-nom span { display: inline-flex; }
.of-card { padding: 18px 20px; margin: 0 0 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.of-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.of-card h3 { margin: 0 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.of-nom { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.of-nom svg { width: 18px; height: 18px; color: var(--t-ia); }
.of-card .of-prix { display: block; font-size: 13px; color: var(--ink-2); }
.of-gift { display: block; margin-top: 4px; font-size: 12px; color: var(--t-ok); }
.of-card ul, .of-plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 7px; font-size: 13px; color: var(--ink-2); }
.of-card li, .of-plan li { display: flex; gap: 8px; align-items: flex-start; }
.of-card li svg, .of-plan li svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--t-ok); }
.dlg.of-dlg { width: min(880px, calc(100% - 24px)); max-height: calc(var(--app-height, 100dvh) - 24px); overflow: auto; }
.of-dlg h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.of-sub { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.of-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.of-plan { display: flex; flex-direction: column; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); }
.of-plan.cur { border-color: color-mix(in srgb, var(--sun) 70%, transparent); }
.of-plan.pro.cur { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, #8f7cf0, #3fc6d9) border-box; }
.of-plan h4 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 600; }
.of-plan h4 em { font-style: normal; font-size: 11px; font-weight: 500; padding: 1px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sun) 50%, transparent); color: var(--sun-ink); }
.of-plan .of-prix { margin: 6px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.of-plan .of-prix small { font-size: 12px; font-weight: 400; color: var(--muted); }
.of-plan ul { flex: 1; margin-bottom: 16px; }
.of-formule { display: inline-flex; gap: 4px; padding: 4px; margin-top: 14px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.of-formule button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; min-height: 36px; font-size: 13px; color: var(--ink-2); }
.of-formule button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #0003; font-weight: 500; }
.of-formule small { color: var(--t-ok); font-weight: 600; margin-left: 2px; }
.of-plan .of-eq { margin: 2px 0 0; min-height: 18px; font-size: 12px; color: var(--t-ok); }
.of-etat { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.of-etat b { color: var(--ink); font-weight: 500; }
.of-etat.refus { padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--t-bad, #d4553a) 45%, transparent); background: color-mix(in srgb, var(--t-bad, #d4553a) 10%, transparent); }
.of-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.of-actions button { min-height: 44px; }
.of-card .msg { margin: 8px 0 0; min-height: 0; }
.of-factures { display: grid; gap: 6px; margin-top: 10px; }
.of-factures a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.of-plan button { min-height: 44px; }
.of-dlg .msg { margin: 14px 0 0; min-height: 20px; }
.of-dlg .dlg-btns { margin-top: 10px; }
@media (max-width: 720px) { .of-plans { grid-template-columns: minmax(0, 1fr); } .of-plan ul { margin-bottom: 14px; } }

/* Prévisions : aux couleurs de l'IA en Pro, un petit cadenas violet sinon. */
.of-mini { width: 14px; height: 14px; color: var(--t-ia); vertical-align: -2px; }
.fc-pill.lk b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--t-ia); display: inline-flex; }
.fc-pill.lk small { display: none; }
.now2 .dy b.ia { color: var(--t-ia); }
.now2 .dh .dh-of { margin-left: auto; padding: 5px 11px; min-height: 32px; border-radius: 999px; font-size: 12px; color: var(--t-ia); border-color: color-mix(in srgb, var(--t-ia) 40%, transparent); background: none; gap: 5px; }
.lc-ia { color: var(--t-ia); font-weight: 500; }

/* Ma maison en photo : les rendus compris du style choisi, et l'envoi fermé quand l'offre ne le comprend pas
   ou que ses rendus sont faits. Le choix du style reste visible : chaque style a ses rendus. */
.mp-q { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.mp-q b { color: var(--ink); font-weight: 500; }
.mp-dots { display: inline-flex; gap: 5px; }
.mp-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.mp-dots i.on { background: var(--sun); border-color: var(--sun); }
.mp-q-aide { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.mp-q-fin { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.mp-ferme .mp-photo, .mp-ferme .mp-chg { display: none; }
.mp-sans .mp-or { display: none; }
.pj-val-q { grid-column: 1 / -1; }
.pj-val-q .of-lock { margin: 4px 0 0; }
.e-year-empty:has(.of-lock) { border: 0; padding: 0; }
.e-year-empty .of-lock { margin: 0; }
.house-tile{position:relative;padding-right:52px!important}.house-help{position:absolute;right:6px;top:6px;display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:var(--ink-2);font:600 16px inherit;border-radius:50%;cursor:pointer}.house-help:hover{background:var(--track)}.house-help:focus-visible{outline:2px solid var(--ink);outline-offset:-3px}.house-dialog{width:min(620px,calc(100% - 24px));max-height:calc(100svh - 32px);overflow-y:auto;padding:24px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:16px}.house-dialog h2{font-size:24px;line-height:1.2;margin:0 0 12px}.house-dialog p{line-height:1.5}.house-dialog h3{font-size:18px;margin:24px 0 8px}.house-dialog::backdrop{background:#0008}.house-terms{margin:20px 0}.house-terms div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:12px 0}.house-terms dd{margin:0;white-space:nowrap;font-weight:600}.house-warning{font-weight:600}.house-dialog form{display:flex;justify-content:flex-end;margin-top:24px}
.me-offre { all: unset; flex: none; display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; border-radius: 999px; }
.me-offre:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.me .me-offre .of-badge { display: inline-flex; margin-right: 0; padding: 3px 11px; font-size: 12px; }
/* Téléphone : garder la pastille dans le flux des actions. La fenêtre « À voir »
   rend .me relative : une pastille absolue y recouvrait le prénom et les boutons. */
@media (max-width: 560px) {
  .bar { position: relative; }
  .me-offre { position: static; }
}
/* « Votre offre a changé » : verre neutre, la couleur sur la pastille et les coches seulement. */
.oa-dlg { width: min(440px, calc(100% - 32px)); padding: 26px; }
.oa-dlg #oaBadge .of-badge { padding: 3px 11px; font-size: 12px; }
.oa-dlg h3 { margin: 14px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.oa-dlg p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.oa-dlg ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: 14px; }
.oa-dlg li { display: flex; gap: 9px; align-items: flex-start; }
.oa-dlg li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--t-ok); }
.oa-dlg.baisse li svg { color: var(--muted); }
.oa-dlg .oa-pied { font-size: 13px; color: var(--muted); }
.oa-dlg .dlg-btns { margin-top: 22px; }
.oa-dlg .dlg-btns button { min-height: 44px; }

/* Énergie › Mes appareils : graphique empilé par appareil et liste qui ouvre leur fiche. */
.e-apps .ea-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 14px; padding-bottom: 2px; }
.e-apps .ea-chips button { flex: none; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; }
.e-apps .ea-chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ea-chart { position: relative; padding-left: 52px; }
.ea-y { position: absolute; left: 0; top: 0; height: 170px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: var(--muted); }
.ea-cols { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; height: 170px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.ea-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; cursor: crosshair; border-radius: 3px; }
@media (hover: hover) { .ea-col:hover { background: rgb(var(--fg-rgb) / .04); } }
.ea-col > span { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 3px 3px 0 0; overflow: hidden; }
.ea-col i { display: block; min-height: 0; }
.ea-x { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
/* La bulle et le curseur pointillé du Bilan ; les autres barres pâlissent sous le doigt. */
.ea-cols .e-tip { top: -6px; }
.ea-cols .e-tip.pin { top: -6px; }
.ea-cur { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgb(var(--fg-rgb) / .702); pointer-events: none; }
.ea-cols.sel .ea-col:not(.on) > span { opacity: .4; }
.ea-leg { margin: 10px 0 8px; }
.ea-list { margin-top: 6px; }
.ea-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) minmax(60px, 120px) auto; align-items: center; gap: 12px; padding: 11px 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ea-row:hover { background: rgb(var(--fg-rgb) / .045); }
.ea-row:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 1px; }
.ea-dot { width: 10px; height: 10px; border-radius: 3px; }
.ea-nm { min-width: 0; }
.ea-nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ea-nm small { color: var(--muted); font-size: 12px; }
.ea-st { font-size: 11px; border-radius: 999px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; display: inline-block; }
.ea-st.on { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--t-ok); }
.ea-st.idle { background: rgb(var(--fg-rgb) / .06); color: var(--muted); }
.ea-st.off { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--t-bad); }
.ea-spark { height: 24px; display: flex; align-items: flex-end; gap: 1px; }
.ea-spark i { flex: 1; min-height: 1px; border-radius: 1px; opacity: .85; }
.ea-spark i.na { min-height: 0; height: 0; }
.ea-row .v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ea-row .v small { display: block; color: var(--muted); font-size: 11.5px; }
.ea-row .v::after { content: none; }
.ea-row::after { content: "›"; color: var(--muted); font-size: 16px; }
.ea-row { grid-template-columns: 10px minmax(0, 1fr) minmax(60px, 120px) auto 10px; }
@media (max-width: 650px) { .ea-spark { display: none; } .ea-row { grid-template-columns: 10px minmax(0, 1fr) auto 10px; } .ea-chart { padding-left: 44px; } }
/* Son image à la place de la pastille : la colonne s'élargit pour elle. */
.ea-row:has(.ea-av) { grid-template-columns: 34px minmax(0, 1fr) minmax(60px, 120px) auto 10px; }
@media (max-width: 650px) { .ea-row:has(.ea-av) { grid-template-columns: 34px minmax(0, 1fr) auto 10px; } }
.ea-av.hav.sm { width: 34px; height: 34px; border-radius: 10px; }
.lc-pop .ap-cmp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.lc-pop .ap-cmp > div { padding: 9px 11px; border-radius: 12px; background: rgb(var(--fg-rgb) / .03); border: 1px solid rgb(var(--fg-rgb) / .07); font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.lc-pop .ap-cmp b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.lc-pop .ap-cmp b.up { color: var(--t-bad); }
.lc-pop .ap-cmp b.down { color: var(--t-ok); }
.lc-pop .ap-cmp small { display: block; color: var(--muted); font-size: 11px; }
.of-plan .of-dem { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.of-plan .of-dem svg { width: 15px; height: 15px; color: var(--t-ok); }
.e-apps .ea-lock { margin-top: 14px; }
/* Énergie › Batterie : rendement, recharge au réseau (energie.js, batBilan). */
.bb-big { font-size: 44px; font-weight: 600; line-height: 1; margin-top: 6px; }
.bb-big small { font-size: 18px; color: var(--ink-2); font-weight: 400; }
.bb-jauge { height: 8px; border-radius: 4px; background: rgb(var(--fg-rgb) / .08); margin: 12px 0 10px; overflow: hidden; }
.bb-jauge i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2d8c65, #7fe0b0); }
.bb-chif { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.bb-chif div { background: var(--well); border-radius: 14px; padding: 8px 10px; }
.bb-chif b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; }
.bb-chif span { font-size: 12px; color: var(--muted); }
.bb-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.bb-vide { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
.bb-ligne { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bb-ligne span { color: var(--ink-2); } .bb-ligne b { font-weight: 600; white-space: nowrap; }
.bb-net { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.bb-net b { font-size: 30px; font-weight: 600; white-space: nowrap; }
.bb-pos { color: var(--t-ok); } .bb-neg { color: var(--t-bad); }
.bb-svg { display: block; width: 100%; height: 150px; margin-top: 8px; }
.bb-ax { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.bb-cours { margin: 2px 0 6px; font-size: 14px; color: var(--muted); }
.bb-cours b { color: var(--ink); font-weight: 600; }
.bb-cours b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7fe0b0; vertical-align: 1px; animation: bb-pulse 1.6s ease-in-out infinite; }
@keyframes bb-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .bb-cours b::before { animation: none; } }
.bb-sur { margin: 10px 0 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
/* Fenêtre de la maison : « Vue de la maison », la course du soleil orientée au choix. */
.ciel-vue { margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; }
.ciel-vue.on { border-color: rgb(242 181 51 / .55); background: rgb(242 181 51 / .07); }
.ciel-vue h4 { margin: 0 0 8px; }
.ciel-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 500; }
.ciel-aide { margin: 6px 0 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.ciel-warn { display: none; margin: 8px 0 0; padding: 7px 10px; border-radius: 10px; font-size: 13px; line-height: 18px; color: var(--sun-ink); background: rgb(242 181 51 / .14); }
.ciel-vue.on .ciel-warn { display: block; }
.ciel-vue .msg:empty { display: none; }

/* ── Daikin (daikin.js) : la rangée « Réglages » de l'accueil, le panneau de réglage
   (celui de la clim du dashboard), la fiche et la page du compte. Verre neutre ; la
   teinte du mode (--dkc) ne colore que la pastille, l'icône, le cadran et le bouton choisi. */
:root { --dk-heat: #f08a4b; --dk-cool: #5aa9f0; --dk-dhw: #e0606e; --dk-fan: #9a9fb0; --dk-dry: #4fc1b0; --dk-auto: #a79ef0; }
:root[data-mode="jour"] { --dk-heat: #c8601f; --dk-cool: #2f7fc8; --dk-dhw: #c94452; --dk-fan: #6c6f7c; --dk-dry: #1f8f80; --dk-auto: #6a5bd0; }
.dk-now { position: relative; display: grid; gap: 10px; margin-top: 16px; }
.dk-now[hidden] { display: none; }
.dk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 2px; font-size: 12px; color: var(--muted); }
.dk-h b { font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dk-now .dk { position: relative; display: block; width: 100%; padding: 14px 14px 12px; border-radius: 16px; text-align: left; color: inherit; font: inherit;
  background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); transition: border-color .15s, transform .15s; }
.dk-now button.dk { cursor: pointer; }
.dk-now button.dk:hover { border-color: rgb(var(--fg-rgb) / .18); transform: translateY(-1px); }
.dk-now .top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.dk-now .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--dkc); background: color-mix(in srgb, var(--dkc) 16%, transparent); }
.dk-now svg, .dk-dlg svg, .dk-page .dk-li svg, .dk-acts svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-now .ic svg { width: 20px; height: 20px; }
.dk-now .nm { min-width: 0; }
.dk-now .nm b { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.dk-now .chip { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; color: var(--dkc); background: color-mix(in srgb, var(--dkc) 14%, transparent); }
.dk-now .chip.off { color: var(--muted); background: rgb(var(--fg-rgb) / .06); }
.dk-now .nm small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-now .big { font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.dk-now .big small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
/* La jauge : de la température du moment vers la consigne (repère). */
.dk-now .gauge { display: block; position: relative; height: 6px; margin: 12px 0 4px; border-radius: 4px; background: var(--track); }
.dk-now .gauge i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--dkc) 45%, transparent), var(--dkc)); }
.dk-now .gauge u { position: absolute; top: -4px; width: 2px; height: 14px; border-radius: 1px; background: var(--ink); }
.dk-now .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dk-now .facts span { font-size: 11.5px; color: var(--ink-2); padding: 3px 9px; border-radius: 999px; background: rgb(var(--fg-rgb) / .05); white-space: nowrap; }
.dk-now .facts b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.dk-now .acts, .dk-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 8px; }
.dk-now .acts.un, .dk-acts.un { grid-template-columns: 1fr; }
.dk-now .acts button, .dk-acts button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 6px; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .04); }
.dk-now .acts button:hover, .dk-acts button:hover { background: rgb(var(--fg-rgb) / .08); }
.dk-now .acts button:disabled { opacity: .45; cursor: default; }
.dk-now .acts svg, .dk-acts svg { width: 16px; height: 16px; stroke-width: 2; }
.dk-now .acts button[aria-pressed=true] { color: var(--dkc); border-color: var(--dkc); }
.dk-now .dk-go { display: inline-flex; margin-top: 10px; text-decoration: none; }
.dk-foot { margin: 2px 2px 0; font-size: 11.5px; color: var(--muted); }
.dk-msg { margin: 0; font-size: 12.5px; color: var(--t-bad); }
.dk-msg:empty { display: none; }

/* Le panneau : une fenêtre centrée sur grand écran, une feuille du bas sur téléphone. Hauteurs
   par --app-height : dans la WebView Android, vh et dvh restent à zéro (apparence.js). */
.dk-dlg { width: min(440px, calc(100% - 24px)); max-height: calc(var(--app-height, 100dvh) - 32px); padding: 0; border: 0; background: none; color: var(--ink); overflow: visible; }
.dk-dlg::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(3px); }
.dk-dlg .sheet { position: relative; max-height: calc(var(--app-height, 100dvh) - 32px); overflow: auto; overscroll-behavior: contain; padding: 20px 20px 16px; border-radius: 28px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 60% at 15% 0%, color-mix(in srgb, var(--dkc) 14%, transparent), transparent 60%), var(--surface); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .8); }
@media (max-width: 560px) {
  .dk-dlg { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(var(--app-height, 100dvh) * .94); }
  .dk-dlg .sheet { max-height: calc(var(--app-height, 100dvh) * .94); border-radius: 28px 28px 0 0; border-bottom: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}
.dk-dlg .sh-h { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.dk-dlg .sh-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--dkc); border: 1.5px solid color-mix(in srgb, var(--dkc) 55%, transparent); background: color-mix(in srgb, var(--dkc) 12%, transparent); }
.dk-dlg .sh-ic svg { width: 24px; height: 24px; }
.dk-dlg .sh-t { min-width: 0; }
.dk-dlg .sh-t b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dk-dlg .sh-t small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.dk-dlg .rb { width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font: inherit; color: var(--ink-2); border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .06); }
.dk-dlg .rb svg { width: 22px; height: 22px; stroke-width: 2; }
.dk-dlg .rb:disabled { opacity: .35; cursor: default; }
.dk-dlg .rb.pw[aria-pressed=true] { color: var(--ink); border-color: color-mix(in srgb, var(--dkc) 60%, transparent); background: color-mix(in srgb, var(--dkc) 18%, transparent); }
.dk-dlg .rb.x { width: 40px; height: 40px; align-self: start; border: 0; }
.dk-dlg .rb.x svg { width: 16px; height: 16px; }
.dk-perm { margin-top: 14px; padding: 14px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--sun) 40%, transparent); background: color-mix(in srgb, var(--sun) 8%, transparent); }
.dk-perm b { font-size: 15px; }
.dk-perm p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.dk-dlg .sh-k { display: flex; justify-content: space-between; align-items: flex-end; margin: 16px 2px 0; }
.dk-dlg .sh-k span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.dk-dlg .sh-k span small { display: block; font-size: 12px; color: var(--muted); }
.dk-dlg .sh-k strong { font-size: 30px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dk-dlg .dial { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 6px; margin: 6px 0 2px; }
.dk-dlg .dial .rb { width: 52px; height: 52px; font-size: 24px; color: var(--ink); }
.dk-dlg .dw { position: relative; aspect-ratio: 1; width: 100%; max-width: 230px; margin: 0 auto; }
.dk-dlg .dw svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dk-dlg .dw .tr { stroke: rgb(var(--fg-rgb) / .08); stroke-width: 12; }
.dk-dlg .dw .pr { stroke: color-mix(in srgb, var(--dkc) 55%, transparent); stroke-width: 12; }
.dk-dlg .dw .kn { fill: var(--ink); stroke: color-mix(in srgb, var(--dkc) 60%, #000); stroke-width: 3; }
.dk-dlg .dw .rt { stroke: var(--ink-2); stroke-width: 3; }
.dk-dlg .dial.off .dw { opacity: .4; }
.dk-dlg .dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dk-dlg .dc b { font-size: clamp(40px, 12vw, 54px); font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.dk-dlg .dc b.mot { font-size: 30px; font-weight: 400; letter-spacing: -.02em; }
.dk-dlg .dc small { margin-top: 4px; font-size: 13px; color: var(--muted); }
.dk-dlg .dc .rtl { margin-top: 8px; color: var(--ink-2); }
.dk-dlg .dc .rtl::before { content: ""; display: inline-block; width: 3px; height: 12px; margin-right: 6px; border-radius: 2px; background: var(--ink-2); vertical-align: -1px; }
.dk-dlg .pan { margin-top: 12px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: rgb(var(--fg-rgb) / .025); }
.dk-dlg .pan h5 { margin: 0 0 10px 2px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dk-dlg .modes { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.dk-dlg .md { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--muted); }
.dk-dlg .md span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--m); border: 1px solid color-mix(in srgb, var(--m) 35%, transparent);
  background: color-mix(in srgb, var(--m) 12%, transparent); transition: background .2s, box-shadow .2s; }
.dk-dlg .md svg { width: 21px; height: 21px; stroke-width: 1.9; }
.dk-dlg .md[aria-pressed=true] { color: var(--ink); font-weight: 600; }
.dk-dlg .md[aria-pressed=true] span { color: #1b1305; background: var(--m); border-color: var(--m); box-shadow: 0 8px 18px -8px var(--m); }
.dk-dlg .md:disabled { cursor: default; opacity: .55; }
.dk-dlg .fan { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.dk-dlg .pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: rgb(var(--fg-rgb) / .04); }
.dk-dlg .pill svg { width: 16px; height: 16px; }
.dk-dlg .pill[aria-pressed=true] { color: var(--ink); border-color: color-mix(in srgb, var(--dkc) 70%, transparent); background: color-mix(in srgb, var(--dkc) 14%, transparent); }
.dk-dlg .pill:disabled { cursor: default; opacity: .5; }
.dk-dlg .lv { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-left: auto; }
.dk-dlg .lv button { width: 22px; padding: 0; border: 0; border-radius: 5px 5px 3px 3px; cursor: pointer; background: rgb(var(--fg-rgb) / .12); }
.dk-dlg .lv button.on { background: linear-gradient(180deg, color-mix(in srgb, var(--dkc) 55%, #fff), var(--dkc)); }
.dk-dlg .lv button:disabled { cursor: default; }
.dk-dlg .boost { display: flex; gap: 12px; align-items: center; }
.dk-dlg .boost p, .dk-dlg .dk-n { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.dk-dlg .dk-n { margin: 10px 2px 0; }
.dk-dlg .dk-msg { margin: 12px 2px 0; }
/* Les ambiances : quatre raccourcis au-dessus du cadran, celle qui tient encore est pleine. */
.dk-dlg .amb { margin-top: 16px; }
.dk-dlg .amb-r { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 20px; background: rgb(var(--fg-rgb) / .045); border: 1px solid var(--line); }
.dk-dlg .am { display: grid; justify-items: center; gap: 2px; min-height: 44px; padding: 9px 2px 8px; border: 0; border-radius: 16px; background: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; color: var(--ink-2);
  transition: background .25s cubic-bezier(.2, .8, .2, 1), color .2s; }
.dk-dlg .am svg { width: 20px; height: 20px; margin-bottom: 3px; color: var(--muted); transition: color .2s; }
.dk-dlg .am small { font-size: 11.5px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.dk-dlg .am:hover:not(:disabled) { background: rgb(var(--fg-rgb) / .05); }
.dk-dlg .am[aria-pressed=true] { color: var(--ink); background: color-mix(in srgb, var(--dkc) 20%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dkc) 55%, transparent), 0 6px 16px -10px var(--dkc); }
.dk-dlg .am[aria-pressed=true] svg { color: var(--dkc); }
.dk-dlg .am[aria-pressed=true] small { color: var(--ink-2); }
.dk-dlg .am:disabled { cursor: default; }
.dk-dlg .am:disabled:not([aria-pressed=true]) { opacity: .5; }
.dk-dlg .amb p { margin: 9px 4px 0; min-height: 36px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.dk-dlg .amb p b { color: var(--ink); font-weight: 600; }
.dk-dlg .amb p a { color: var(--ink); white-space: nowrap; text-underline-offset: 3px; }
.dk-dlg .dc small em { font-style: normal; color: var(--ink-2); }
.dk-now .chip.am { color: var(--ink-2); background: rgb(var(--fg-rgb) / .08); }
.dk-dlg .sh-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 14px 2px 0; font-size: 12px; color: var(--muted); }
.dk-dlg .sh-f .pend { color: var(--sun-ink); }
.dk-dlg .sh-f a { color: var(--ink-2); text-underline-offset: 3px; }
.dk-dlg :focus-visible, .dk-now :focus-visible, .dk-acts :focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* Réglages › Daikin : la liste des éléments, la consommation par tranches de 2 h. */
.dk-li { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--dkc); background: color-mix(in srgb, var(--dkc) 16%, transparent); }
.dk-li svg { width: 18px; height: 18px; }
.rg-dp .dk-acts { margin-top: 12px; }
.dk-ol { margin: 6px 0 10px; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.dk-ol code { overflow-wrap: anywhere; }
.dk-acc { margin-top: 12px; }
/* Fiche › Mes ambiances : une ligne par ambiance, une consigne par mode. */
.dk-ambf { padding: 4px 0; }
.dk-amb-li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 10px 16px; }
.dk-amb-li.un { grid-template-columns: minmax(0, 1fr) auto; }
.dk-amb-li + .dk-amb-li:not(.dk-amb-hd + .dk-amb-li) { border-top: 1px solid var(--line); }
.dk-amb-hd { padding-bottom: 0; font-size: 12px; color: var(--muted); }
.dk-amb-hd span:not(:first-child) { min-width: 136px; text-align: center; }
.dk-amb-li .t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dk-amb-li .t b { display: block; font-weight: 500; }
.dk-amb-li .t small { display: block; font-size: 12.5px; color: var(--muted); }
.dk-amb-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); background: rgb(var(--fg-rgb) / .06); }
.dk-amb-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dk-stp { display: inline-flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 136px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.dk-stp button { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; font: inherit; font-size: 17px; line-height: 1; color: var(--ink); background: rgb(var(--fg-rgb) / .06); }
.dk-stp button:disabled { opacity: .35; cursor: default; }
.dk-stp output { flex: 1; text-align: center; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-amb-c { display: block; min-width: 0; }
.dk-amb-off { display: block; min-width: 136px; text-align: center; font-size: 13px; color: var(--ink-2); }
.dk-ambo { margin-top: 10px; }
.dk-amb-act { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 12px 4px 0; }
.dk-amb-act .go:disabled { opacity: .45; cursor: default; }
@media (max-width: 420px) {
  .dk-amb-li:not(.un) { grid-template-columns: 1fr 1fr; }
  .dk-amb-li:not(.un) .t { grid-column: 1 / -1; }
  .dk-amb-hd { display: none; }
  .dk-amb-li:not(.un) [data-l]::before { content: attr(data-l); display: block; margin: 0 0 4px 4px; font-size: 11.5px; color: var(--muted); }
  .dk-amb-li:not(.un) .dk-stp { display: flex; min-width: 0; }
  .dk-amb-li:not(.un) .dk-amb-off { text-align: left; min-width: 0; padding: 9px 4px; }
}
.dk-plot { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgb(var(--fg-rgb) / .03); }
.dk-plot .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--muted); }
.dk-plot .ph b { font-size: 14px; font-weight: 600; color: var(--ink); }
/* Barres jointives (2 px), dans la teinte de l'élément, claires en haut ; hier en gris derrière. */
.dk-bars { position: relative; height: 120px; margin-top: 10px; }
.dk-bars > div { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.dk-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--dkc) 55%, #fff), var(--dkc)); }
.dk-bars i.y { background: rgb(var(--fg-rgb) / .1); }
.dk-bars > div + div i:not(.f) { box-shadow: none; }
.dk-bars i.f { height: 0; }
.dk-plot .leg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11.5px; color: var(--ink-2); }
.dk-plot .leg i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.dk-plot .leg i.y { background: rgb(var(--fg-rgb) / .2); }
.dk-plot .cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.dk-plot .cmp div { padding: 9px 10px; border-radius: 12px; font-size: 11.5px; color: var(--muted); background: rgb(var(--fg-rgb) / .04); }
.dk-plot .cmp b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .dk-now .dk, .dk-dlg .md span { transition: none; } }
.dk-ol a { color: var(--sun-ink); text-underline-offset: 3px; }

/* Hitachi (hitachi.js) : la rangée, le panneau et la page du compte reprennent les classes
   Daikin ; ici l'état en quatre pastilles du panneau et la fiche, comme la page PAC du
   dashboard (état, circuit d'eau, électricité et chaleur, saisons, détails, alarmes). */
.dk-now:not([hidden]) + .hi-now { margin-top: 10px; }
.dk-now:not([hidden]) + .hi-now .dk-h { display: none; }
.hi-now .hi-warn { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.hi-st4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.hi-st { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.hi-st svg { box-sizing: content-box; width: 20px; height: 20px; padding: 12px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); }
.hi-st span { line-height: 1.2; }
.hi-st small { margin-top: -4px; font-size: 11px; color: var(--muted); }
.hi-st.on { color: var(--ink); font-weight: 600; }
.hi-st.on small { font-weight: 400; }
.hi-st.on svg { color: var(--dkc); border-color: color-mix(in srgb, var(--dkc) 60%, transparent); background: color-mix(in srgb, var(--dkc) 14%, transparent); }
.hi-card { margin-top: 12px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: rgb(var(--fg-rgb) / .03); }
.hi-card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.hi-state { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 20px; font-weight: 600; }
.hi-state i { width: 10px; height: 10px; border-radius: 50%; background: var(--dkc); box-shadow: 0 0 10px var(--dkc); }
.hi-why { margin: 2px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.hi-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.hi-kv div { min-width: 0; padding: 10px 12px; border-radius: 12px; font-size: 11.5px; color: var(--muted); background: rgb(var(--fg-rgb) / .05); }
.hi-kv b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hi-kv div.on b { color: var(--dkc); }
.hi-loop { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.hi-loop .d { text-align: right; }
.hi-loop b { display: block; font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hi-pipe { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--dk-heat), color-mix(in srgb, var(--dk-heat) 40%, var(--dk-cool))); }
/* Netatmo (netatmo.js) : la courbe d'une pièce et les trois étapes de la liaison. */
.nt-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nt-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(var(--fg-rgb) / .06); }
.nt-seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.nt-seg button[aria-pressed="true"] { background: rgb(var(--fg-rgb) / .12); color: rgb(var(--fg-rgb)); font-weight: 600; }
.nt-svg { display: block; width: 100%; height: auto; margin-top: 10px; }
.nt-svg .ch { fill: color-mix(in srgb, var(--dk-heat) 20%, transparent); }
.nt-svg .gr { stroke: rgb(var(--fg-rgb) / .08); stroke-width: 1; }
.nt-svg .ax { fill: var(--muted); font-size: 20px; }
.nt-svg .tp { fill: none; stroke: var(--dk-heat); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.nt-svg .cs { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-dasharray: 4 4; }
.nt-leg { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 2px 0; font-size: 12px; color: var(--muted); }
.nt-leg span::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2px solid var(--dk-heat); }
.nt-leg .cs::before { border-top: 2px dashed var(--muted); }
.nt-leg .ch::before { height: 10px; border: 0; border-radius: 2px; background: color-mix(in srgb, var(--dk-heat) 30%, transparent); }
.nt-sum { margin: 10px 2px 0; font-size: 14px; }
.nt-vide { margin: 14px 2px 4px; font-size: 13.5px; color: var(--muted); }
.nt-pas { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }
.nt-pt .dk { cursor: pointer; }
.hi-fine { margin: 10px 2px 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.hi-ch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hi-ch p { max-width: 52ch; margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.hi-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(var(--fg-rgb) / .06); }
.hi-seg button { min-height: 32px; padding: 5px 12px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--ink-2); background: none; }
.hi-seg button[aria-pressed=true] { font-weight: 600; color: var(--bg); background: var(--ink); }
.hi-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; color: var(--ink-2); }
.hi-leg i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.hi-leg i.out { border: 1.5px solid var(--ink-2); }
.hi-plot .hs { background: linear-gradient(180deg, color-mix(in srgb, var(--dk-heat) 55%, #fff), var(--dk-heat)); }
.hi-plot .ds { background: linear-gradient(180deg, color-mix(in srgb, var(--dk-dhw) 55%, #fff), var(--dk-dhw)); }
/* Barres jointives (2 px) : pleines pour l'électricité (chauffage sous eau chaude), le cadre pour la chaleur. */
.hi-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 150px; margin-top: 8px; padding-top: 18px; touch-action: pan-y; }
.hi-g { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.hi-g .o { position: absolute; inset: auto 0 0 0; border: 1.5px solid color-mix(in srgb, var(--ink-2) 60%, transparent); border-bottom: 0; border-radius: 3px 3px 0 0; }
.hi-g .s { position: relative; width: 62%; display: flex; flex-direction: column-reverse; }
.hi-g .s i { display: block; width: 100%; }
.hi-g .s i:last-child { border-radius: 2px 2px 0 0; }
.hi-g .c { position: absolute; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hi-g.now .s { opacity: .75; }
.hi-g.sel .o { border-color: var(--ink); }
.hi-g.sel .s { outline: 1px solid var(--ink); outline-offset: 1px; }
.hi-bx { display: flex; gap: 2px; margin-top: 4px; font-size: 10.5px; color: var(--muted); }
.hi-bx span { flex: 1; overflow: hidden; text-align: center; white-space: nowrap; }
.hi-tip { min-height: 20px; margin: 8px 2px 0; font-size: 12.5px; color: var(--ink-2); }
.hi-tip b { color: var(--ink); }
.hi-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.hi-cmp div { padding: 10px 12px; border-radius: 12px; font-size: 11.5px; color: var(--muted); background: rgb(var(--fg-rgb) / .05); }
.hi-cmp b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hi-seas { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.hi-seas > div { padding: 12px; border-radius: 14px; font-size: 11.5px; line-height: 1.4; color: var(--muted); background: rgb(var(--fg-rgb) / .05); }
.hi-seas .tl { display: block; font-size: 12px; color: var(--ink-2); }
.hi-seas .tv { display: block; margin: 2px 0; font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hi-seas .tv small { margin-left: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.hi-det summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; }
.hi-det summary::-webkit-details-marker { display: none; }
.hi-det summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hi-det[open] summary::after { transform: rotate(-135deg); }
.hi-det summary small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.hi-rows { margin-top: 10px; border-top: 1px solid var(--line); }
.hi-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.hi-rows div:last-child { border-bottom: 0; }
.hi-rows b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.hi-al-now { margin: 10px 2px 4px; font-size: 13px; color: var(--t-ok); }
.hi-al-now.bad { color: var(--t-bad); }
.hi-al { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 2px; font-size: 13px; border-top: 1px solid var(--line); }
.hi-al code { padding: 2px 7px; border-radius: 6px; font: 600 12px/1.4 inherit; background: rgb(var(--fg-rgb) / .07); }
.hi-al small { display: block; font-size: 12px; color: var(--muted); }
.hi-al .ok { font-size: 12px; color: var(--t-ok); }
.hi-al .bad { font-size: 12px; color: var(--t-bad); }
.hi-ask { margin-top: 12px; }
.hi-ask .go { display: inline-flex; text-decoration: none; }
@media (max-width: 480px) {
  .hi-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hi-g .c { display: none; }
}
.hi-card :focus-visible, .hi-det summary:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

/* Onglet Appareils : la page Énergie réduite à sa vue des appareils, une seule liste :
   les appareils suivis, puis le reste de ce qui est relié (.ea-eq), dans la même forme. */
#tab-energie.ap #eTabs { display: none; }
.ea-plate.rg-plate { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.ea-row.ea-eq { cursor: default; }
.ea-open { display: block; width: 100%; min-width: 0; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ea-open:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.ea-eq .v b { font-weight: 600; }
.ea-act { justify-self: end; }
.ap-regler { border: 1px solid var(--sun); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ap-regler:hover { background: rgba(242, 181, 51, .16); }
.ap-regler:disabled { opacity: .45; cursor: default; }
@media (max-width: 650px) {
  .ea-row.ea-eq:has(.ea-act) { grid-template-columns: 34px minmax(0, 1fr) auto 10px; row-gap: 8px; }
  .ea-eq .ea-act { grid-column: 2 / 4; grid-row: 2; justify-self: start; }
}

/* ── Ma voiture (voiture.js) : l'onglet de l'accueil, la page #voiture et sa page de
   Réglages. Bleu : la batterie d'avant ; soleil : l'apport
   des panneaux (estimé) ; gris : celui du réseau. Lecture seule, aucune commande. ── */
.vt-in, .vt-now, .vt { --vt-b: #3987e5; --vt-grid: #8b8a85; --vc-bleu: #8db8ff; --vc-piste: rgb(var(--fg-rgb) / .14); }
:root[data-mode="jour"] :is(.vt-in, .vt-now, .vt) { --vt-grid: #a9a69e; --vc-bleu: #2c6fc4; --vc-piste: rgb(var(--fg-rgb) / .1); }
.vt-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* L'accueil : « Maison | Ma voiture » dans la carte de gauche, quand une voiture est reliée.
   L'onglet voiture montre les cartes de la page : l'état, puis les recharges. */
.fl-tabs { --c: var(--vt-b, #3987e5); display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(var(--fg-rgb) / .05); border: 1px solid var(--line-2); }
.fl-tabs[hidden] { display: none; }
.fl-tabs.vt-chg { --c: var(--sun); } .fl-tabs.vt-bad { --c: var(--bad); } .fl-tabs.vt-away { --c: var(--muted); }
.fl-tabs button { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
  padding: 5px 13px; border-radius: 999px; border: 0; background: none; white-space: nowrap; transition: color .2s, background .2s; }
.fl-tabs button:hover { color: var(--ink); }
.fl-tabs button[aria-selected="true"] { color: var(--ink); background: rgb(var(--fg-rgb) / .1); }
.fl-tabs button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.fl-tabs button:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.flow.vt-tab > :is(.stage, .home-batteries, .foot, .fresh), .flow.vt-tab .flowp > button { display: none !important; }
.vt-in { --c: var(--vt-b); display: flex; flex-direction: column; flex: 1; }
.vt-in[hidden] { display: none; }
/* Les cartes « Ma voiture » (onglet de l'accueil et page #voiture) : la voiture en
   hologramme (sa photo passée par le filtre #vhHolo de voiture.js), le niveau en colonne,
   trois jauges, les coches de l'état, puis la recharge et les 7 derniers jours. La scène de
   la voiture reste sombre, de jour comme de nuit : c'est un écran, le bleu y dit la batterie. */
.vc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 920px; }
.vc-card { border-radius: 16px; padding: 20px 22px; background: linear-gradient(180deg, var(--card-a), var(--card-b)); border: 1px solid var(--card-line); min-width: 0; }
.vt-in { gap: 14px; padding-top: 14px; }
.vt-in .vc-hero { background: none; border: 0; border-radius: 0; padding: 0; }
.vh { --vh-holo: #9be6ff; --vh-navy: #07111f; padding: 0; overflow: hidden; }
.vc-model { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #fff; }
.vh-sky { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; color: #fff;
  background: radial-gradient(120% 70% at 62% 58%, #123a6a 0%, #0a1d36 38%, var(--vh-navy) 70%, #05080d 100%); }
.vc .vh-sky { border-radius: 16px 16px 0 0; }
.vh-floor { position: absolute; left: 4%; right: -6%; bottom: 2%; height: 42%; z-index: -1; opacity: .55; pointer-events: none;
  background: linear-gradient(#5fb4ff22 1px, #0000 1px) 0 0 / 100% 18px, linear-gradient(90deg, #5fb4ff1a 1px, #0000 1px) 0 0 / 34px 100%;
  transform: perspective(260px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask: radial-gradient(60% 80% at 55% 100%, #000 20%, #0000 75%); mask: radial-gradient(60% 80% at 55% 100%, #000 20%, #0000 75%); }
.vh-head { padding: 18px 20px 0; position: relative; z-index: 3; }
.vt-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35em; margin: 8px 0 0; color: var(--ink-2); font-size: 12px; }
.vt-source i { align-self: center; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-inline: 3px; }
.vt-source-ok i { background: var(--ok, #36864a); }
.vt-source b { font-weight: 600; }
.vh-body { position: relative; height: clamp(220px, 26vw, 300px); }
.vh-lvl { position: absolute; left: 20px; top: 6px; bottom: 22px; z-index: 3; }
.vh-lvl b { display: block; font-size: clamp(44px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: #7fe3f0; text-shadow: 0 2px 18px #3987e599; font-variant-numeric: tabular-nums; }
.vh-lvl b small { font-size: .34em; font-weight: 500; color: #cfe9ff; margin-left: 3px; letter-spacing: 0; }
.vh-col { position: absolute; left: 8px; top: calc(clamp(44px, 4.6vw, 60px) + 14px); bottom: 0; width: 5px; border-radius: 3px; background: #ffffff1a; overflow: hidden; }
.vh-col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px; background: linear-gradient(#7fe3f0, #3987e5); box-shadow: 0 0 12px #7fe3f0; }
.vh-chg .vh-col i::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; bottom: -40%; background: linear-gradient(#0000, #fff9, #0000); animation: vh-up 2.4s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes vh-up { to { bottom: 110%; } }
.vh-car { position: absolute; right: 4px; bottom: 18px; height: 84%; max-width: 80%; aspect-ratio: 720 / 364; }
.vh-car svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vh-refl { transform: scaleY(-1); transform-origin: 50% 100%; opacity: .16; -webkit-mask: linear-gradient(#0000 55%, #000); mask: linear-gradient(#0000 55%, #000); }
.vh-sweep { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mix-blend-mode: screen; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, #0000 38%, #9be6ff 47%, #fff 50%, #9be6ff 53%, #0000 62%) 0 0 / 300% 100% no-repeat; }
.vh-chg .vh-sweep { opacity: .75; animation: vh-sweep 2.8s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes vh-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.vh-shape { right: -10px; aspect-ratio: 320 / 115; height: auto; width: 76%; filter: drop-shadow(0 0 6px #5fb4ff); }
.vh-shape .b { fill: #5fb4ff1f; stroke: var(--vh-holo); stroke-width: 2.4; stroke-linejoin: round; }
.vh-shape .w { fill: #5fb4ff33; } .vh-shape .t { fill: var(--vh-navy); stroke: var(--vh-holo); stroke-width: 2.4; } .vh-shape .j { fill: var(--vh-holo); }
.vh-pill { position: absolute; right: 16px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 12px; border-radius: 999px; font-size: 13px;
  background: #07111fcc; border: 1px solid #5fb4ff55; color: #dff3ff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: calc(100% - 32px); }
.vh-pill .vt-i { width: 15px; height: 15px; } .vh-pill b { font-weight: 600; white-space: nowrap; } .vh-pill span { color: #b9cbe0; white-space: nowrap; }
.vh-pill.vh-sun { border-color: #f2b53377; color: #ffe29a; } .vh-pill.vh-mute { border-color: #ffffff2a; color: #c3c2b7; } .vh-pill.vh-bad { border-color: #e5677a88; color: #ffb3bf; }
.vh-old :is(.vh-car, .vh-lvl) { filter: saturate(.15) brightness(.8); }
.vh-old .vh-gauges { opacity: .65; }
.vh-quoi { display: block; font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #cfe9ff; margin: 4px 0 8px; }
.vh-gauges.vh-deux { grid-template-columns: 1fr 1.3fr; max-width: 520px; margin-left: auto; margin-right: auto; }
.vh-note { padding: 14px 16px; } .vh-note p { margin: 0; color: var(--ink-2); } .vh-note b { color: var(--ink); }
.vh-gauges { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 6px; margin: 16px 10px 4px; }
.vh-gauge { position: relative; justify-self: center; width: clamp(96px, 9vw, 118px); aspect-ratio: 1; }
.vh-gauge > svg { width: 100%; height: 100%; }
.vh-gauge .tr { fill: none; stroke: rgb(var(--fg-rgb) / .12); stroke-width: 7; stroke-linecap: round; }
.vh-gauge .va { fill: none; stroke-width: 7; stroke-linecap: round; }
.vh-gin { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 4px; }
.vh-gin .vt-i { width: 16px; height: 16px; margin-bottom: 1px; }
.vh-gin b { font-size: 24px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vh-gin b small { font-size: 12px; font-weight: 500; margin-left: 1px; color: var(--ink-2); }
.vh-gin span { font-size: 11px; color: var(--muted); margin-top: 1px; }
.vh-bat .vt-i { color: #3987e5; } .vh-sun .vt-i { color: var(--sun); } .vh-sun b { color: var(--t-sun); } .vh-none b { color: var(--muted); }
.vh-km { text-align: center; min-width: 0; }
.vh-km > b { display: block; font-size: clamp(38px, 4.2vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.vh-km > b small { font-size: 18px; font-weight: 500; margin-left: 4px; color: var(--ink-2); letter-spacing: 0; }
.vh-km > span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.vc-odo { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vh-chips { margin: 14px 0 0; padding: 11px 14px; border-radius: 16px; border: 1px solid color-mix(in srgb, #3987e5 30%, transparent); background: color-mix(in srgb, #3987e5 5%, transparent); text-align: center; }
.vc .vh-chips { margin: 14px 20px 20px; }
.vh-chips p { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0; font-size: 13px; }
.vh-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.vh-chip .vt-i { width: 17px; height: 17px; } .vh-chip.vh-y .vt-i { color: var(--ok); } .vh-chip.vh-n { color: var(--ink-2); } .vh-chip.vh-n .vt-i { color: var(--muted); }
.vh-chips .vh-lock { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); gap: 6px; align-items: center; font-size: 12px; }
.vh-lock .vt-i { width: 14px; height: 14px; }
.vc-charges { display: grid; gap: 12px; }
.vt-in .vc-charges { gap: 12px; }
.vh-rc, .vh-week { padding: 14px 16px; margin: 0; }
.vh-blue { background: linear-gradient(180deg, color-mix(in srgb, #3987e5 16%, transparent), color-mix(in srgb, #3987e5 3%, transparent)); border-color: color-mix(in srgb, #3987e5 40%, transparent); }
.vh-rh { display: flex; align-items: center; gap: 12px; }
.vh-rh > div { flex: 1; min-width: 0; }
.vh-rh h4 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; }
.vh-blue .vh-rh h4 { color: var(--vc-bleu); }
.vh-rh p { margin: 1px 0 0; font-size: 13px; color: var(--ink-2); }
.vh-ri { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, #3987e5 18%, transparent); color: var(--vc-bleu); }
.vh-neutral .vh-ri { background: rgb(var(--fg-rgb) / .07); color: var(--ink-2); }
.vh-ri .vt-i { width: 20px; height: 20px; }
.vh-prog { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vh-prog b { color: var(--ink); font-weight: 600; }
.vh-tk { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--vc-piste); }
.vh-tk i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.vh-tk .b0 { left: 0; background: color-mix(in srgb, #3987e5 45%, transparent); }
.vh-tk .b1 { background: linear-gradient(90deg, #3987e5, #7fe3f0); }
.vh-tk u { position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 1px; background: var(--ink); }
.vh-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.vh-stats span { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.vh-stats .vt-i { width: 15px; height: 15px; color: var(--vc-bleu); }
.vh-stats .vh-s { color: var(--t-sun); } .vh-stats .vh-s .vt-i { color: var(--sun); } .vh-stats small { color: var(--ink-2); font-weight: 400; }
.vh-stats .vh-q { font-weight: 400; color: var(--muted); font-size: 13px; }
.vc-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 12px 0 6px; }
.vc-day { display: grid; grid-template-rows: 48px auto; gap: 5px; text-align: center; font-size: 11px; color: var(--muted); }
.vc-track { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.vc-track i { width: 62%; max-width: 22px; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--sun) var(--s), var(--vt-grid) var(--s)); }
.vc-legend { display: flex; gap: 8px 14px; flex-wrap: wrap; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.vc-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--sun); }
.vc-legend .g::before { background: var(--vt-grid); }
@media (min-width: 1100px) { .vc .vc-charges { grid-template-columns: 1.1fr 1fr; align-items: start; } }
@media (prefers-reduced-motion: reduce) {
  .vh-chg .vh-col i::after { animation: none; display: none; }
  .vh-chg .vh-sweep { animation: none; opacity: .25; background-position: 50% 0; }
}
.vc-details { padding: 0; }
.vc-details summary { cursor: pointer; padding: 14px 22px; font-size: 14px; font-weight: 500; border-radius: 16px; }
.vc-details summary:focus-visible { outline: 2px solid var(--sun); outline-offset: -2px; }
.vc-details dl { margin: 0 22px 16px; font-size: 13px; }
.vc-details dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.vc-details dt { color: var(--muted); } .vc-details dd { margin: 0; text-align: right; line-height: 1.45; }
.vc-details a { color: var(--sun-ink); }
@media (max-width: 640px) {
  .vc-card { padding: 16px; } .vc-details { padding: 0; } .vc-details summary { padding: 14px 16px; } .vc-details dl { margin: 0 16px 14px; }
  .vh { padding: 0; } .vh-rc, .vh-week { padding: 14px 16px; }
  .vh-gauges { margin: 14px 0 2px; } .vh-gauge { width: 92px; } .vh-gin b { font-size: 21px; } .vh-km > b { font-size: 36px; }
  .vc .vh-chips { margin: 12px 14px 16px; } .vh-car { max-width: 86%; } .vh-shape { right: -14px; }
  .vc-details dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .vc-details dd { text-align: left; }
}

.vt .c-head .eyebrow a { color: inherit; }
.vt-card { border-radius: 16px; padding: 20px 22px; background: linear-gradient(180deg, var(--card-a), var(--card-b)); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); min-width: 0; }
.vt-card h3 { margin: 0 0 10px; font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.vt-card p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.vt-card p.ink { color: var(--ink); }
.vt-est { font-size: 10px; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: rgb(var(--fg-rgb) / .07); color: var(--muted); }
.vt-tip { border-color: color-mix(in srgb, var(--sun) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--sun) 12%, transparent), color-mix(in srgb, var(--sun) 3%, transparent)); }
.vt-tip h3 { color: var(--t-sun); }
.vt-kw { font-size: 28px; font-weight: 500; letter-spacing: -.02em; } .vt-kw small { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.vt-alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.vt-alert .vt-i { color: var(--t-bad); margin-top: 2px; } .vt-alert p { margin: 4px 0 10px; font-size: 13px; color: var(--ink-2); }
.vt-alert.vt-warn { border-color: var(--line-2); background: rgb(var(--fg-rgb) / .04); } .vt-alert.vt-warn .vt-i { color: var(--muted); } .vt-alert.vt-warn p { margin-bottom: 0; }
.vt-go { display: inline-flex; text-decoration: none; margin-top: 12px; }
.vt-alert .vt-go { margin-top: 0; }
.vt-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vt-brands button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.vt-brands button small { display: block; overflow-wrap: anywhere; font-weight: 400; font-size: 11px; color: var(--muted); }
.vt-catalogue { grid-column: 1 / -1; padding: 16px; min-width: 0; }
.vt-catalogue > p { margin: 0 0 12px; color: var(--muted); }
.vt-marques { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.vt-marque { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 6px; min-width: 0; padding: 8px 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; font-size: 14px; font-weight: 600; }
.vt-catalogue .vt-marque .rg-picto-catalogue { width: 100%; height: 52px; object-fit: contain; }
button.vt-marque { cursor: pointer; }
button.vt-marque:hover { background: var(--field); }
button.vt-marque:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
:is(.vt-catalogue, .vt-form) .rg-picto-catalogue { width: 62px; height: 33px; object-fit: contain; flex: none; }
.vt-compat > summary, .vt-choix > summary { cursor: pointer; padding: 12px 0; color: var(--ink); }
.vt-choix summary .rg-picto-catalogue { width: 48px; vertical-align: middle; margin-right: 8px; }
.vt-catalogue .vt-reliee { padding: 0; width: 100%; }
.vt-catalogue footer { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--muted); }
.vt-catalogue footer em { color: var(--t-ia); font-style: normal; font-weight: 600; }
@media (max-width: 650px) {
  .vt-marques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-catalogue .vt-marque .rg-picto-catalogue { height: 44px; }
  :is(.vt-catalogue, .vt-form) .rg-picto-catalogue { width: min(36%, 46px); height: 29px; }
}
.vt-brands button[aria-checked="true"] { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun) inset; }
.vt-etapes { margin: 0; padding: 0; list-style: none; counter-reset: vte; display: grid; gap: 14px; }
.vt-etapes > li { counter-increment: vte; position: relative; padding-left: 42px; min-width: 0; }
.vt-etapes > li::before { content: counter(vte); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: rgb(var(--fg-rgb) / .08); }
.vt-etapes p { margin: 0 0 8px; } .vt-etapes label { display: grid; gap: 8px; }
.vt-sec { background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; color: inherit; font: inherit; }
.vt-aide { margin-top: 10px; } .vt-aide summary { cursor: pointer; font-weight: 600; padding: 6px 0; } .vt-aide p { margin: 8px 0 0; color: var(--ink-2); }
.vt-ordi { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); } .vt-ordi b { font-size: 16px; } .vt-ordi p { margin: 0; color: var(--ink-2); }
.vt-consent { padding: 12px 14px; border-radius: 12px; background: rgb(var(--fg-rgb) / .04); border: 1px solid var(--line); font-size: 13px; }
.vt-consent ul { margin: 6px 0; padding-left: 18px; color: var(--ink-2); } .vt-consent p { margin: 6px 0 0; color: var(--ink-2); }
.vt-open { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 4px 0 6px; border-radius: 12px; text-decoration: none; color: var(--ink);
  background: rgb(var(--fg-rgb) / .05); border: 1px solid var(--line-2); font-weight: 500; }
.vt-open:hover { background: rgb(var(--fg-rgb) / .08); color: var(--ink); }
/* « Ce n'est pas la bonne voiture ? » (voiture.js, signalement) */
.vt-sig { margin: 10px 0 4px; }
.vt-sig:empty { display: none; }
.vt-sig-o { min-height: 44px; border-radius: 999px; padding: 10px 16px; }
.vt-sig-c { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.vt-sig-c > button { justify-self: start; min-height: 44px; border-radius: 999px; padding: 10px 16px; }
.vt-sig-c p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.vt-sig-t { font-size: 16px; font-weight: 600; }
.vt-sig-f fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.vt-sig-f legend, .vt-sig-champ > span { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0; margin: 0 0 6px; }
.vt-sig-f fieldset label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; }
.vt-sig-f fieldset label:has(input:checked) { border-color: #e39b00aa; background: rgb(242 181 51 / .12); }
.vt-sig-f fieldset input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--sun); }
.vt-sig-champ { display: grid; }
.vt-sig-champ input, .vt-sig-champ textarea { width: 100%; min-height: 44px; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); box-sizing: border-box; }
.vt-sig-champ textarea { resize: vertical; }
.vt-sig-champ small { margin-top: 5px; font-size: 12px; color: var(--muted); }
.vt-sig-b { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.vt-sig-l { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.vt-sig-l:hover { background: none; }
.vt-sig-e { display: flex; gap: 12px; align-items: flex-start; }
.vt-sig-e > i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: rgb(242 181 51 / .2); color: var(--sun-ink); }
.vt-sig-e.ok > i { background: rgb(23 131 74 / .16); color: var(--t-ok); }
.vt-sig-e b { font-weight: 600; }
.vt-rg .rg-li .v small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.vt-cap { margin-top: 10px; } .vt-cap input { width: 64px; text-align: right; }
.vt-cap > button { justify-self: end; margin: 0 14px 12px; }
@media (max-width: 560px) { .vt-brands { grid-template-columns: minmax(0, 1fr); } .vt-card { padding: 16px; } }
/* Le prévu de l'IA (Pro) : la petite case de Production, le coin de la case Solaire du Bilan. */
.sh-s.sh-ia { border-color: color-mix(in srgb, #8f7cf0 26%, transparent); background: color-mix(in srgb, #8f7cf0 6%, transparent); }
.sh-s.sh-ia .k { gap: 6px; }
.sh-s .ia-k, .bt-ia .ia-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-s .ia-k svg, .bt-ia .ia-k svg { width: 12px; height: 12px; color: var(--t-ia); }
.sh-s.sh-ia > small b { display: inline; font-size: inherit; margin: 0; font-weight: 600; color: var(--ink-2); }
.bk .bt { position: relative; }
.bt-ia { display: inline-flex; margin-top: 10px; max-width: 100%; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: color-mix(in srgb, #8f7cf0 10%, transparent); border: 1px solid color-mix(in srgb, #8f7cf0 24%, transparent); white-space: nowrap; }
.bt-ia[hidden] { display: none; }
.bt-ia b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bt-ia small { color: var(--muted); font-size: 11px; }
/* Écran large : le prévu en haut à droite de la case ; plus étroit, sous la case, sans chevaucher « Solaire ». */
/* En haut à droite seulement quand la case est assez large : sinon la pastille couvrait « SOLAIRE ». */
.bk .bt:has(.bt-ia) { container-type: inline-size; }
@container (min-width: 235px) { .bt-ia { position: absolute; top: 12px; right: 14px; margin-top: 0; padding: 2px 8px; font-size: 11.5px; } }
/* Sans Pro : la case et la pastille du prévu restent, fermées par un cadenas, et ouvrent les offres. */
button.sh-s.sh-ia.lock { display: block; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.sh-s.sh-ia.lock b svg { width: 18px; height: 18px; color: var(--t-ia); }
.sh-s.sh-ia.lock:hover { background: color-mix(in srgb, #8f7cf0 11%, transparent); }
button.bt-ia.lock { font: inherit; font-size: 12px; cursor: pointer; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, #8f7cf0, #3fc6d9) border-box; }
button.bt-ia.lock svg { width: 12px; height: 12px; color: var(--t-ia); }
.sh-s.sh-ia.lock:focus-visible, button.bt-ia.lock:focus-visible { outline: 2px solid var(--t-ia); outline-offset: 2px; }
/* Liaison Zendure instable (alerte « cle_partagee » du serveur) : « ! » orange sur le rond
   Batterie, encadré orange dans la fenêtre, tuile et pastille orange. */
.flow .bat .bang { position: absolute; top: -4px; left: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #f59e2e; color: #1a1000; font-weight: 800; font-size: 14px; line-height: 1; box-shadow: 0 0 0 3px var(--card, #1a1a19); }
.flow .bat .bang[hidden] { display: none; }
.flow .bat.alerte .orb { box-shadow: 0 0 0 2px rgb(245 158 46 / .65), 0 0 26px rgb(245 158 46 / .22); }
.flow .bat .alerte-t { color: #f5a54a; }
.bat-alerte { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 10px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid rgb(245 158 46 / .55); background: rgb(245 158 46 / .1); color: var(--ink); }
.bat-alerte > i { grid-row: span 3; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f59e2e; color: #1a1000; font-style: normal; font-weight: 800; }
.bat-alerte b { font-size: 14px; }
.bat-alerte p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.bat-alerte a { color: #e58a17; font-weight: 600; text-decoration: none; white-space: nowrap; }
:is(.lc-pop, .home-batteries) .pop-b.alerte { border-color: rgb(245 158 46 / .55); opacity: 1; }
:is(.lc-pop, .home-batteries) .pop-b.alerte small { color: #e58a17; }
.fresh .src.alerte i { background: #f59e2e; box-shadow: 0 0 0 3px rgb(245 158 46 / .2); }

/* Les kWh qui restent dans la batterie, discrets à côté de sa charge (« 6,3/10,2 kWh ») :
   case Batterie de l'accueil, sa fenêtre, Énergie › Batterie. */
.kwh-coin { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; -webkit-text-fill-color: var(--muted); }
.kwh-coin b { font-weight: 500; color: var(--ink-2); -webkit-text-fill-color: var(--ink-2); }
.e-lc-head .kwh-coin { order: 1; margin-left: auto; }
.now2 .sg .kwh-coin { font-size: 11px; }
.e-lc-head .kwh-coin b { font-size: inherit; font-weight: 500; letter-spacing: 0; }
.e-bnow { position: relative; }
.e-bnow .kwh-coin { position: absolute; top: 18px; right: 20px; font-size: 13px; }
:is(.lc-pop, .home-batteries) .pop-b em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* « À voir » : le bouton ⚠ de l'en-tête et sa fenêtre (a_voir de /api/moi). */
.hd-avoir { color: var(--sun-ink); border-color: #f2b53380; background: #f2b5331f; }
.hd-avoir > span:first-child { font-size: 17px; }
.me { position: relative; }
.av-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; width: 340px; max-width: calc(100vw - 24px); padding: 14px; border: 1px solid var(--line-2, var(--line)); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 50px -20px #0007; text-align: left; }
.av-pop[hidden] { display: none; }
.av-pop h3 { margin: 0 0 8px; font-size: 15px; }
#avList { display: grid; gap: 8px; }
.av-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #f2b53366; border-radius: 12px; background: linear-gradient(#f2b5331f, #f2b5330a); }
.av-i { font-size: 17px; line-height: 1.3; color: var(--sun-ink); }
/* Une nouvelle (genre « ok ») : ✓ vert, pas une action demandée. */
.av-item.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: linear-gradient(color-mix(in srgb, var(--ok) 13%, transparent), color-mix(in srgb, var(--ok) 4%, transparent)); }
.av-item.ok .av-i, .av-item.ok a { color: var(--t-ok); font-weight: 800; }
.hd-avoir.ok { color: var(--t-ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.hd-avoir.ok .chat-badge { background: var(--ok); }
.av-item b { display: block; font-size: 14px; color: var(--ink); }
.av-item small { display: block; margin: 2px 0 8px; color: var(--ink-2); font-size: 12.5px; overflow-wrap: anywhere; }
.av-item a { color: var(--sun-ink); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.av-item a:hover, .av-item a:focus-visible { text-decoration: underline; }
.av-masq { margin-left: 16px; padding: 6px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.av-masq:hover, .av-masq:focus-visible { color: var(--ink); }
.av-masq:disabled { opacity: .5; cursor: default; }
.hd-avoir[aria-expanded="true"] .hd-tip { opacity: 0; }

/* Affichage de l'accueil (espace.js, affichage()) : Réglages › Affichage et la roue de la
   fenêtre Réseau. Un bloc par réglage : flèche du réseau, batteries, vue de la maison. */
.fleche-choix { border: 0; padding: 0; margin: 0; min-width: 0; }
.fleche-choix legend { padding: 0; margin-bottom: 2px; }
.fleche-choix legend b { display: block; font-weight: 600; }
.fleche-choix legend small, .aff-bloc .ciel-sw small { display: block; font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 400; }
.fleche-choix label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.fleche-choix input { accent-color: #f2b533; width: 20px; height: 20px; margin: 0; }
.aff-bloc { padding: 14px 16px; border-radius: 20px; background: var(--surface); }
.aff-bloc + .aff-bloc { margin-top: 10px; }
.aff-bloc .ciel-sw b { display: block; font-weight: 600; }
.aff-bloc.on .ciel-warn { display: block; }
.aff-bloc .msg:empty { display: none; }
.aff-bloc .msg { margin: 6px 0 0; font-size: 13px; color: var(--bad); }
.rg-fold { margin: 12px 0; }
.rg-fold > summary { list-style: none; cursor: pointer; background: var(--surface); border-radius: 18px; }
.rg-fold > summary::-webkit-details-marker { display: none; }
.rg-fold > summary .t b { font-weight: 600; }
.rg-fold[open] > summary .rg-chev { transform: rotate(135deg); }
.rg-add-row { text-align: right; padding: 12px 4px; }
#rgInlineAff { margin-inline: 10px; }
#rgInlineAff .aff-bloc { margin-block: 6px; }
.rg-aff .rg-h2 { margin-top: 24px; }
/* La roue de la fenêtre Réseau, à gauche de la croix, et son panneau en tête de fenêtre. */
.lc-pop .pop-acts { display: flex; gap: 8px; }
.lc-pop .pop-gear { display: inline-flex; align-items: center; }
.lc-pop .pop-gear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lc-pop .pop-gear[aria-expanded="true"] { color: var(--sun-ink); border-color: rgb(242 181 51 / .6); background: rgb(242 181 51 / .1); }
.aff-pop { margin: 4px 0 14px; padding: 14px; border-radius: 18px; border: 1px solid rgb(242 181 51 / .45); background: rgb(242 181 51 / .06); }
.aff-pop h3 { margin: 0; font-size: 17px; }
.aff-pop .aff-sub { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.aff-pop .aff-bloc { padding: 10px 12px; border-radius: 14px; }
.aff-tout { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.aff-tout span { flex: 1; }
.aff-tout b { display: block; font-weight: 600; }
.aff-tout small { display: block; font-size: 13px; color: var(--muted); }

/* Choix d'un équipement dans le plafond de l'offre, partagé avec les apps. */
.choix-appareils .rg-li { display:flex; gap:14px; cursor:pointer; }
.choix-appareils input { width:20px; height:20px; flex:none; accent-color:var(--sun); }
.quota-appareils { margin-bottom:24px; padding:18px; border:1px solid var(--line); border-radius:14px; }
.quota-appareils p { margin:10px 0; }

/* Lecture synchronisée des deux années, au-dessus des colonnes. */
.e-year .e-tip { max-width: calc(100% - 8px); white-space: normal; box-sizing: border-box; line-height: 1.4; top: 0; }
.e-year .e-tip .tr { overflow-wrap: anywhere; align-items: baseline; }
.e-year .e-tip .tr i { flex: 0 0 8px; height: 8px; border-radius: 50%; }
.e-year svg:focus-visible { outline: 2px solid var(--sun-ink); outline-offset: 3px; border-radius: 4px; }

/* Quota Shelly : conserver la reconnexion sans proposer un nouvel ajout. */
.sh-quota h3{margin:0 0 10px;font-size:20px}.sh-quota-reconnexion>summary{min-height:48px;padding:14px 0;cursor:pointer;font-weight:600}.sh-quota-reconnexion>summary:focus-visible{outline:2px solid var(--sun-ink);outline-offset:3px}

.conn-btns .sh-quota-lock{display:flex;align-items:center;justify-content:center;gap:8px}.sh-quota-lock svg{width:16px;height:16px;flex:none;color:var(--ink-2)}

/* Aide au rendement : divulgation locale, sans masquer le reste du bilan. */
.bb-rendement .e-head { flex-wrap: nowrap; }
.bb-rendement .e-head > div:first-child { min-width: 0; }
.bb-help-toggle { display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer; }
.bb-help-toggle:hover { background:var(--track); }
.bb-help-toggle:focus-visible { outline:2px solid var(--ink);outline-offset:-3px; }
.bb-help { max-width:70ch;padding:4px 0 20px;color:var(--ink-2);font-size:14px;line-height:1.6; }
.bb-help h4 { margin:0 0 12px;color:var(--ink);font-size:16px; }
.bb-help p { margin:0 0 14px; }
.bb-help strong { color:var(--ink);font-weight:600; }

.bb-rendement .bb-chif { grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); }

/* Même prévision pour toutes les batteries ; le complément instantané reste secondaire. */
.bfc-rate { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.bat-home-rest { font-size: 11px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
.bat-cap-link { margin-top: 12px; font-size: 12px; }
.bat-cap-dlg { width: min(480px, calc(100% - 24px)); padding: 24px; max-height: calc(var(--app-height, 100dvh) - 24px); overflow-y: auto; }
.bat-cap-dlg form { display: grid; gap: 10px; }
.bat-cap-dlg p { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.bat-cap-dlg input { width: 100%; }
.bat-cap-dlg label { font-size: 13px; margin-top: 8px; }
.bat-cap-dlg .bat-nom-aide { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.bat-nom-dlg form { display: grid; gap: 10px; } .bat-nom-dlg h3 { margin: 0; font-size: 18px; } .bat-nom-dlg label { font-size: 13px; } .bat-nom-dlg input { width: 100%; }
.bat-nom-dlg .hint { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 12px; color: var(--muted); }

/* Voiture posée sur le rendu original, sans modifier le terrain. */
.flow .scene-voiture { position:absolute; z-index:3; transform:translate(-50%,-50%); border:0; padding:0; background:transparent; cursor:pointer; min-height:44px; }
.scene-voiture img { display:block; width:100%; filter:drop-shadow(0 3px 2px #0003); }
.scene-voiture span { display:block; font-size:12px; color:var(--ink); white-space:nowrap; }
.scene-voiture:focus-visible { outline:2px solid var(--sun); outline-offset:4px; }
.scene-voiture[hidden], .mp-vt-img[hidden] { display:none; }
.mp-rp-box .mp-vt-img { position:absolute; width:16%; height:auto; }
.mp-rp-pin.v { background:#526dc7; }
#mpVtReglage label { display:flex; align-items:center; gap:12px; margin:12px 0; }
#mpVtReglage input { flex:1; min-width:60px; }

.flow .scene-voiture { display:block; }
.flow .scene-voiture[hidden] { display:none; }
.voiture-flux { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; overflow:visible; }
.voiture-flux[hidden] { display:none; }
.voiture-flux path { fill:none; stroke:#41977c; stroke-width:2; opacity:.6; }
.voiture-flux circle { fill:#41977c; animation:voiture-flux 2s linear infinite; }
@keyframes voiture-flux { from { offset-distance:0%; } to { offset-distance:100%; } }
@media(prefers-reduced-motion:reduce) { .voiture-flux circle { animation:none; offset-distance:50%; } }

/* Le teasing utilise exclusivement une image existante, aucun canvas 3D. */
.pj-locked { margin-block: 24px; }
.pj-locked-visual { position: relative; min-height: 430px; display: grid; place-items: center; background: var(--surface, #fff); border: 1px solid var(--line, #d6d3cb); border-radius: 16px; overflow: hidden; }
.pj-locked-visual > img { width: 100%; height: 480px; object-fit: contain; padding-bottom: 150px; }
.pj-locked-visual > p { align-self: start; padding: 36px 20px; text-align: center; }
.pj-locked-caption { position: absolute; bottom: 0; inset-inline: 0; padding: 24px; text-align: center; background: var(--surface, #fff); }
.pj-locked-badge { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--surface); color: var(--sun-ink); fill: none; stroke: currentColor; stroke-width: 1.7; }
.pj-locked-caption h2 { margin: 8px 0; font-size: 1.5rem; }
.pj-locked-caption p { max-width: 58ch; margin: 12px auto; }
.pj-locked-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 600px) { .pj-locked-visual { min-height: 530px; } .pj-locked-visual > img { height: 530px; padding-bottom: 270px; } .pj-locked-caption { padding: 20px 16px; } }

.pj-locked-caption a { color: var(--sun-ink); text-underline-offset: .2em; }

/* Choisir le suivi après une baisse d’offre ; les historiques restent conservés. */
.quota-choix fieldset { margin: 18px 0; padding: 0; border: 0; min-width: 0; }
.quota-choix legend { margin-bottom: 8px; font-weight: 600; }
.quota-choix label { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.quota-choix label span { overflow-wrap: anywhere; }
.quota-choix input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--sun, #f2b533); }
.mp-v-locked { position: relative; }
.mp-v-locked > span { color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mp-v-locked em { display: block; line-height: 1.4; }
.mp-v-locked svg { vertical-align: -3px; }

/* Une fiche physique garde chaque voie lisible, sans somme de circuits. */
.lc-pop .ap-voie { margin-top: 24px; }
.lc-pop .ap-voie h3 { font-size: 16px; margin: 0 0 10px; }
.lc-pop .ap-voie .ap-c + .ap-c { margin-top: 10px; }

/* Même préférence sur le web et les apps ; l'hologramme réutilise le filtre de Ma voiture. */
.scene-voiture .voiture-picto { display:none; }
.scene-voiture small { display:block; color:var(--ink); font-size:10px; max-width:140px; }
.scene-voiture .voiture-orbe { display:none; }
.flow .scene-voiture.voiture-bulle { min-height:44px; padding:0; text-align:center; color:var(--ink); }
.scene-voiture.voiture-bulle .voiture-orbe { display:grid; width:100%; height:auto; aspect-ratio:1; }
.scene-voiture.voiture-bulle .voiture-picto { display:block; }
.scene-voiture.voiture-bulle > span { position:absolute; top:calc(100% + 8px); left:50%; font-size:18px; font-weight:500; font-variant-numeric:tabular-nums; }
.scene-voiture.voiture-bulle > small { position:absolute; top:calc(100% + 32px); left:50%; width:max-content; max-width:116px; line-height:1.3; color:var(--muted); text-shadow:var(--txt-halo); }
/* Centrer sur l’orbe et décaler seulement si le libellé atteint un bord. */
.scene-voiture.voiture-bulle > :is(span, small) {
  transform:translateX(clamp(calc(-1 * var(--voiture-gauche)), -50%, calc(var(--voiture-droite) - 100%)));
}
.scene-voiture.voiture-bulle > span:empty + small { top:calc(100% + 8px); }
.scene-voiture.voiture-bulle.voiture-grisee .voiture-orbe { opacity:.5; }
.scene-voiture.voiture-bulle.voiture-charge .voiture-orbe { border-color:var(--exp); }
.scene-voiture.voiture-bulle.voiture-charge .voiture-picto { stroke:var(--exp); }
.scene-voiture.voiture-bulle img { display:none; }
.scene-voiture.voiture-hologramme img { filter:url(#vhHolo); }
.scene-voiture.voiture-grisee:not(.voiture-bulle) img { opacity:.55; }
.scene-voiture.voiture-grisee:not(.voiture-bulle):not(.voiture-hologramme) img { filter:grayscale(1) drop-shadow(0 3px 2px #0003); }
.scene-voiture.voiture-grisee:not(.voiture-bulle) small { white-space:nowrap; max-width:none; text-shadow:var(--txt-halo); }

/* Les fenêtres de mesures suivent la hauteur courante de la WebView native,
   qui peut avoir démarré à quelques pixels avant sa mise en page. */
.in-app .lc-pop .box { max-height: calc(var(--app-height, 100dvh) - 32px); }

/* Comparaison sans suppression : l'existant et le projet ont leur propre vue. */
.pj-adjustment-info { max-width: 72ch; margin: 18px 0 8px; color: var(--ink); font-size: 14px; }
.pj-installation-view { flex-wrap: wrap; }
.pj-installation-view button { min-height: 44px; white-space: normal; }
.pj-summary .pj-reset { min-height: 44px; color: var(--ink); font-size: 13px; }
.pj-summary .pj-reset:disabled { opacity: .5; cursor: default; }
.pj-summary > .pj-tot { display: grid; grid-template-columns: 1fr; grid-auto-flow: row; }
.pj-summary > .pj-tot > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pj-summary > .pj-tot small { line-height: 1.5; }
.pj-summary { background: var(--surface); }
.pj-summary-state, .pj-summary > .pj-tot div:first-child b { color: var(--sun-ink); }

.pj-plans { margin-bottom: 18px; }
.pj-plist-head { flex-wrap: wrap; gap: 10px; }
.pj-plans .pj-reset { min-height: 44px; color: var(--ink); }
.pj-q button { min-width: 44px; min-height: 44px; }

/* Valeurs hors de la scène, repères numérotés sur les panneaux : la caméra
   ne peut plus faire passer une puissance derrière la météo. */
#sim.s3-readable { height: auto; min-height: 0; grid-template-rows: auto auto auto auto; }
#sim.s3-readable > .s3-hud { position: static; padding: 14px 16px; border: 1px solid var(--s3-line); border-radius: 16px 16px 0 0; background: var(--s3-surface); flex-wrap: wrap; }
#sim.s3-readable > .s3-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; padding: 12px 16px; background: var(--s3-surface); border-inline: 1px solid var(--s3-line); }
#sim.s3-readable > .s3-fields[hidden] { display: none; }
.s3-field { min-width: 0; color: var(--s3-ink-2); font-size: 12px; overflow-wrap: anywhere; }
.s3-field-value { display: block; color: var(--s3-ink); font-size: 19px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.s3-field-shade { display: block; color: var(--s3-sun); font-size: 12px; }
#sim.s3-readable .s3-stage { height: min(55svh, 550px); min-height: 300px; max-height: none; border-radius: 0; }
#sim.s3-readable .s3-stage::before { display: none; }
#sim.s3-readable .s3-tag { padding: 2px; border-radius: 50%; background: var(--s3-surface); text-shadow: none; }
#sim.s3-readable .s3-tag :is(.v, .s), #sim.s3-readable .s3-tag::after { display: none; }
#sim.s3-readable .s3-tag .n { margin: 0; }
#sim.s3-readable .s3-tag .s3-k { color: var(--s3-ink); background: var(--s3-surface); border-color: var(--s3-ink-2); }

/* Détail véhicule : même fenêtre que Production, sans courbe de puissance inventée. */
.vt-detail-model,.vt-detail-date{font-size:12px;color:var(--muted)}.vt-detail-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.vt-detail-hero strong{font-size:44px;font-weight:500;color:var(--t-blue)}.vt-detail-hero strong small{font-size:24px}.vt-detail-hero p{font-size:13px;color:var(--muted);margin:5px 0}.vt-detail-hero img{width:48%;height:110px;object-fit:contain}.vt-detail-old .vt-detail-hero strong{color:var(--muted)}.vt-detail-notice{padding:12px;border-radius:12px;background:rgb(242 181 51 / .1);font-size:12px;line-height:1.6}.vt-detail-state{padding:14px;background:rgb(106 168 240 / .08);border:1px solid var(--line);border-radius:14px}.vt-detail-state b{display:flex;gap:8px;align-items:center;font-weight:500}.vt-detail-state p{font-size:12px;color:var(--muted);margin:8px 0 0}.vt-detail-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 18px}.vt-detail-pair section{padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.vt-detail-pair small{display:block;font-size:11px;color:var(--muted)}.vt-detail-pair b{display:block;margin-top:6px;font-size:15px;font-weight:500}.vt-detail .vc-charges{display:block}.vt-detail .vc-card{margin:12px 0;padding:14px}.vt-detail .vc-chart{height:100px}.vt-detail-foot{font-size:11px;line-height:1.6;color:var(--muted)}.vt-model-image{width:min(280px,80%)!important;height:145px!important;background:transparent!important;border:0!important;border-radius:0!important}.vt-model-image img{width:100%;height:100%;object-fit:contain}.mp-voiture{margin:24px 0;padding:18px 0;border-block:1px solid var(--line)}.mp-vmodes{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:6px 0 14px;margin:0}.mp-vmodes label{padding:10px 12px;border:1px solid var(--line);border-radius:12px;font-size:13px;cursor:pointer}.mp-voiture-pin{position:absolute;transform:translate(-50%,-50%);width:22%;padding:5px;min-width:44px;min-height:44px;touch-action:none;cursor:grab;border:1px dashed #3987e5;border-radius:12px;background:transparent;color:var(--ink);display:grid;justify-items:center;z-index:3}.mp-voiture-pin img{position:static!important;width:100%!important;max-height:100px;object-fit:contain;pointer-events:none}.mp-voiture-pin span{font-size:11px;background:var(--surface);border-radius:6px;padding:3px 5px}.mp-voiture-pin.bulle{width:60px;height:60px;background:var(--surface);border-radius:50%}.mp-voiture-pin.bulle:before{content:'';display:block;width:24px;height:20px;border:2px solid currentColor;border-radius:8px 8px 3px 3px;margin-top:2px}.mp-voiture-pin.bulle span{padding:0;font-size:10px}#mpVoitureBox{margin:12px 0}#mpVoitureReset{margin:8px 0 16px}#mpVoitureGo{display:block}.mp-voiture [hidden]{display:none!important}

.vt-detail{--vt-b:#3987e5;--vt-grid:#8b8a85;--vc-bleu:#8db8ff;--vc-piste:rgb(var(--fg-rgb) / .14)}:root[data-mode="jour"] .vt-detail{--vt-grid:#a9a69e;--vc-bleu:#2c6fc4;--vc-piste:rgb(var(--fg-rgb) / .1)}.vt-detail .vc-day{grid-template-rows:58px auto}.vt-detail .vc-track{height:58px}.rg-plate.vt-model-image{box-shadow:none!important}.rg-plate.vt-model-image img{width:100%;height:100%;max-width:none}.mp-voiture-pin.bulle:before{display:none}.mp-voiture-pin>svg{display:none}.mp-voiture-pin.bulle>svg{display:block;width:24px;height:24px;margin-top:3px;flex:none}.mp-vmodes legend{font-size:13px;margin:5px 0}

/* Les deux index d'une voie réseau partagent la même unité et la même ligne zéro. */
.lc-pop .ap-y-signee{position:relative;display:block;margin-top:0;padding:0}.lc-pop .ap-y-signee span{position:absolute;right:0;transform:translateY(-50%)}.lc-pop .ap-y-signee span:first-child{transform:none}.lc-pop .ap-y-signee span:last-child{transform:translateY(-100%)}.lc-pop .ap-signees i{position:relative;display:block;outline-offset:2px}.lc-pop .ap-signees i span{position:absolute;left:0;right:0}.lc-pop .ap-signees .ap-export{border-radius:0 0 2px 2px;background:linear-gradient(180deg,#f2b533,#e8913a)}.lc-pop .ap-zero{border-top-color:rgb(var(--fg-rgb) / .32)!important;z-index:1;pointer-events:none}.ap-legende{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:15px 0 0}.ap-legende span:first-child:before,.ap-legende span:last-child:before{content:'';display:inline-block;width:7px;height:7px;background:var(--ap2);border-radius:2px;margin-right:5px}.ap-legende span:last-child:before{background:#f2b533}.ap-note{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0}.lc-pop .ap-bars i.ap-deux-heures span{width:calc(200% + 2px);flex:none}.lc-pop .ap-bars i.ap-deux-heures{position:relative}
.lc-pop .ap-y-signee{min-width:3.6em}.lc-pop .ap-signees i:focus-visible{outline:2px solid var(--t-blue)}

.bat-cap-dlg fieldset { min-width: 0; border: 0; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.bat-cap-dlg legend { font-weight: 600; margin-bottom: 8px; }

/* Aide des origines : le bouton reste en haut à droite, même sur petit écran. */
.e-origine-head { flex-wrap:nowrap;align-items:center; }
.e-origine-head h3 { min-width:0;flex:1; }

/* Facture : postes distincts, mêmes repères dans l’anneau et la légende. */
#tab-energie { --bill-abo: #e7af64; --bill-conso: #85b9f1; --bill-taxes: #77b89b; --bill-tva: #b5a0d6; }
:root[data-mode="jour"] #tab-energie { --bill-abo: #a75b12; --bill-conso: #256aa8; --bill-taxes: #247a62; --bill-tva: #7655a6; }

/* IA : soleil à gauche, rendement à droite ; batterie sur la ligne suivante. */
.ia-bas > .ia-bat { grid-column: 1 / -1; }
.ia-bas > .ia-sol, .ia-bas > .ia-rdt { align-self: stretch; }
.ia-bas .ia-sol .e-head, .ia-bas .ia-rdt .e-head { flex-wrap: wrap; align-items: flex-start; }
.ia-bas .ia-sol .e-head > h3, .ia-bas .ia-rdt .e-head > h3 { flex: 1 1 240px; min-width: 0; }

/* Préparer une autre étude sans effacer la version payée. */
.pj-project-toolbar { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; margin:20px 0; }
.pj-project-toolbar p { margin:0; font-weight:600; }
.pj-project-toolbar button, .pj-preparation button { min-height:44px; }
.pj-preparation { max-width:760px; padding:24px 0; }
.pj-preparation h2 { margin:24px 0 12px; }
.pj-preparation fieldset { border:0; margin:24px 0; padding:0; }
.pj-preparation legend { margin-bottom:10px; font-weight:600; }
.pj-start-choice { display:flex; align-items:flex-start; gap:14px; border:1px solid var(--line); border-radius:14px; padding:18px; margin:10px 0; cursor:pointer; }
.pj-start-choice:has(input:checked) { border-color:var(--sun-2,#b77c13); background:#f2b5330c; }
.pj-start-choice:has(input:disabled) { opacity:.55; cursor:default; }
.pj-start-choice input { width:20px; height:20px; min-height:20px; margin:3px 0; flex-shrink:0; accent-color:#b77c13; }
.pj-start-choice strong, .pj-start-choice small { display:block; }
.pj-start-choice small { color:var(--muted); margin-top:5px; font-size:14px; }
.pj-draft-name { display:block; margin-bottom:8px; font-weight:600; }
#pjNewName { width:100%; min-height:48px; }
.pj-draft-badge { display:inline-block; color:var(--ink); border:1px solid var(--line); border-radius:30px; padding:5px 12px; font-size:13px; }
@media(max-width:520px) { .pj-project-toolbar .pj-acts { width:100%; } .pj-project-toolbar button { flex:1; } .pj-preparation { padding:12px 0; } .pj-start-choice { padding:14px; } }

.pj-preparation:has(#pjDraftEditor:not([hidden])) { max-width:1100px; }
.pj-draft-sim { margin:20px 0; height:auto; min-height:0; grid-template-rows:auto auto; }
.pj-draft-sim .s3-stage { min-height:340px; height:min(54vh,500px); }
.pj-draft-sim .s3-hud, .pj-draft-sim .s3-tags, .pj-draft-sim .s3-sum,
.pj-draft-sim .s3-vals, .pj-draft-sim .s3-frise, .pj-draft-sim .s3-note,
.pj-draft-sim .s3-setup, .pj-draft-sim .s3-play, .pj-draft-sim .s3-edit { display:none; }
.pj-draft-groups { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.pj-draft-groups button[aria-pressed="true"] { border-color:var(--gold); background:var(--surface); }
.pj-draft-place { padding:20px 0; border-block:1px solid var(--line); }
.pj-draft-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:16px 0; }
.pj-draft-fields label { display:flex; flex-direction:column; gap:8px; }
.pj-draft-fields input { width:100%; min-width:0; min-height:48px; }
.pj-draft-total { margin:24px 0 12px; font-weight:600; }
.pj-draft-stepper { display:flex; align-items:center; gap:12px; }
.pj-draft-stepper button { flex:0 0 48px; min-height:48px; padding:0; font-size:24px; }
.pj-draft-stepper input { text-align:center; }

@media(max-width:520px) { .pj-draft-fields { grid-template-columns:1fr; } .pj-draft-sim .s3-stage { min-height:300px; } }
#pjDraftNoRoof { margin:24px 0; }
#pjDraftContact { display:inline-flex; align-items:center; min-height:44px; text-decoration:none; }

#pjDraftRoofMore { min-height:44px; padding:12px 0; cursor:pointer; color:var(--ink); }

/* La zone de placement inclut l’espace autour de l’image ; ses coordonnées restent liées à la maison. */
#mpVoitureBox { aspect-ratio:900/805; overflow:hidden; touch-action:pan-y; }
#mpVoitureBox > #mpVoitureMaison { position:absolute; left:25%; top:25%; width:50%; height:50%; object-fit:contain; }
#mpVoitureBox .mp-voiture-pin:not(.bulle) { width:11%; }
#mpVoiturePin, #mpVoiturePin * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
#mpVoitureBox .mp-voiture-pin.bulle { width:44px; height:44px; }

.aff-maison-row { padding:16px 0; border-top:1px solid var(--line); }
#compassLink[hidden], #nowLead[hidden] { display:none!important; }

/* Prévision courte : statut, heure et seuil se replient sans tronquer les petits écrans. */
.e-bfc .bfc-quand{font-size:1.1rem;color:var(--t-ia);font-variant-numeric:tabular-nums;margin-top:.25rem}
.e-bfc .bfc-seuil{font-size:.85rem;line-height:1.5;color:var(--muted);margin:.6rem 0}
@media(max-width:480px){.e-bfc .bfc-v{font-size:1.65rem;line-height:1.2}.e-bfc .bfc-row{gap:12px}.e-bfc .bfc-ext{min-width:64px}}

.android-test-etapes{padding-left:1.3rem;line-height:1.55}.android-test-etapes li+li{margin-top:1rem}.android-test-etapes a{display:inline-block;text-decoration:none;max-width:100%;box-sizing:border-box;padding:.7rem 1rem;border-radius:999px}.android-test-etapes p{margin:.6rem 0}
/* Tuya · Smart Life : le guide en quatre étapes au-dessus du formulaire, la case d'accord. */
.tu-guide { margin: 0 0 12px; padding: 14px 16px; border-radius: 24px; background: var(--surface); }
.tu-steps { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: tu; }
.tu-steps li { counter-increment: tu; position: relative; padding: 8px 0 8px 34px; font-size: 14px; line-height: 19px; color: var(--ink-2); box-shadow: inset 0 -1px var(--rg-sep, var(--line)); }
.tu-steps li:last-child { box-shadow: none; }
.tu-steps li::before { content: counter(tu); position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgb(var(--fg-rgb) / .08); color: var(--ink); }
.tu-steps b { color: var(--ink); font-weight: 600; }
.conn-form .tu-accord { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.conn-form .tu-accord input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }

/* Les bulles de l’accueil accompagnent les points projetés de la maison 3D. */
#sim.mf-ready { grid-template-rows: auto; grid-auto-rows: auto; }
.mf-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 16px; background:var(--s3-surface); border-inline:1px solid var(--s3-line); }
.mf-state { margin:0; color:var(--s3-ink-2); font-size:12px; }
#sim .mf-toolbar button { min-height:44px; padding:10px 14px; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:22px; }
.mf-wrap { position:relative; min-width:0; }
.mf-map { position:relative; min-width:0; }
#sim .mf-wrap>.mf-timeline { margin:10px 0 0; padding:6px 12px; }
#sim .mf-timeline .s3-frise { height:64px; }
.mf-orbs { position:absolute; inset:24px 16px 110px; pointer-events:none; }
#sim .mf-orb { position:absolute; pointer-events:auto; display:flex; align-items:center; gap:10px; width:178px; min-height:84px; padding:12px; border:0; border-radius:14px; color:var(--ink); background:var(--surface); box-shadow:0 5px 18px #0002; text-align:left; line-height:1.3; }
.mf-solar { --mf-accent:var(--sun-ink); --mf-point:#f2b533; }
.mf-house { --mf-accent:var(--t-ia); --mf-point:#ab98ef; }
.mf-battery { --mf-accent:var(--exp); --mf-point:#61bf79; }
.mf-grid { --mf-accent:var(--imp); }
.mf-orb.mf-solar { top:0; left:0; }.mf-orb.mf-grid { top:0; right:0; }
.mf-orb.mf-house { bottom:0; left:0; }.mf-orb.mf-battery { bottom:0; right:0; }
#sim .mf-orb[aria-expanded=true] { outline:2px solid var(--mf-accent); outline-offset:2px; }
.mf-icon { display:grid; place-items:center; flex:0 0 42px; width:42px; height:42px; border:1px solid var(--mf-accent); border-radius:50%; color:var(--mf-accent); }
.mf-icon svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.mf-copy { min-width:0; display:grid; gap:3px; }
.mf-name { font-size:12px; color:var(--mf-accent); }.mf-copy strong { color:var(--ink); font-size:19px; font-weight:600; font-variant-numeric:tabular-nums; }
.mf-label { color:var(--ink-2); font-size:12px; overflow-wrap:anywhere; }
.mf-detail { padding:16px; border-inline:1px solid var(--s3-line); border-top:1px solid var(--s3-line); background:var(--s3-surface); }
.mf-detail-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }.mf-detail h3 { margin:0; font-size:16px; color:var(--ink); }
#sim .mf-detail button { min-width:44px; min-height:44px; padding:0; font-size:24px; color:var(--ink); background:transparent; border:0; }
.mf-detail p { margin:8px 0; max-width:65ch; font-size:14px; color:var(--ink-2); line-height:1.5; }.mf-detail a { display:inline-flex; align-items:center; min-height:44px; color:var(--sun-ink); font-size:14px; text-underline-offset:3px; }
.mf-detail-body { max-width:960px; margin:14px auto 0; }
#sim.mf-ready .mf-detail { border:2px solid var(--line-2); padding:20px; background:var(--surface); }
html[data-mode="jour"] #sim.mf-ready .mf-detail { border-color:#b8b1a4; }
html[data-mode="nuit"] #sim.mf-ready .mf-detail { border-color:#706b60; }
#sim .mf-detail h3 { font-size:20px; }
#sim.s3-readable > .s3-hud:has(.mj-nav) { display:block; padding:0; border-radius:18px; margin-bottom:12px; overflow:hidden; }
#sim .mj-nav { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:16px 20px 0; }
.mj-nav>label { font-size:12px; color:var(--ink-2); }
#sim .mj-date { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; width:280px; max-width:100%; min-width:0; flex:0 1 280px; border:1px solid var(--line-2); border-radius:12px; overflow:hidden; }
#sim .mj-date button { flex-shrink:0; min-width:44px; min-height:44px; padding:0; border:0; border-radius:0; background:none; color:var(--ink); font-size:24px; }
#sim .mj-date input { box-sizing:border-box; width:100%; min-width:0; min-height:44px; margin:0; padding:8px 4px; background:transparent; border:0; border-radius:0; box-shadow:none; color:var(--ink); font:inherit; font-size:13px; text-align:center; color-scheme:dark; }
#sim .mj-date input::-webkit-datetime-edit { text-align:center; }
html[data-mode="jour"] .mj-date input { color-scheme:light; }
#sim .s3-edit label:has(.s3-kwc), #sim .s3-edit label:has(.s3-pitch) { display:none; }
#sim .s3-row .s3-play { width:auto; min-height:44px; padding:6px 12px; white-space:nowrap; }
#sim .s3-playback { display:inline-flex; align-items:stretch; }
#sim .s3-playback .s3-play { border-radius:12px 0 0 12px; }
#sim .s3-playback button + button { min-width:44px; border-radius:0 12px 12px 0; margin-left:-1px; }
#sim .s3-playback [aria-pressed="true"] { background:var(--ink); color:var(--surface); }
#sim .s3-row .mj-live { min-height:44px; padding:6px 12px; font-weight:700; color:#fff; background:#aa232d; border:1px solid #aa232d; }
#sim .s3-row .mj-live:disabled { opacity:.78; }
#sim .mj-retry { margin:0 20px 16px; min-height:44px; padding:8px 14px; border:1px solid var(--line-2); border-radius:12px; color:var(--ink); background:var(--surface); }
#sim .mj-retry[hidden], #sim .mj-seasons button[hidden] { display:none; }
#sim .mj-nav button:disabled { opacity:.4; cursor:default; }
.mj-context { display:grid; grid-template-columns:1.2fr 1fr; gap:24px; align-items:center; padding:20px; }
.mj-time { grid-column:2; grid-row:1; text-align:right; min-width:0; }
.mj-clock-line { justify-content:flex-end; display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
#sim .mj-clock-line .s3-clock { font-size:46px; font-weight:500; line-height:1.1; letter-spacing:-.03em; }
.mj-mode { padding:5px 9px; border:1px solid var(--line-2); background:var(--track); border-radius:999px; color:var(--sun-ink); font-size:11px; }
#sim .mj-time .s3-date { margin-top:8px; font-size:13px; color:var(--ink-2); }
.mj-conditions { grid-column:1; grid-row:1; display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.mj-condition { display:flex; align-items:center; gap:10px; }.mj-condition+.mj-condition { border-left:1px solid var(--line-2); padding-left:16px; }
.mj-symbol { flex-shrink:0; color:var(--sun-ink); }.mj-symbol svg { width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.mj-condition strong { display:block; font-size:25px; font-weight:500; line-height:1.2; font-variant-numeric:tabular-nums; }
.mj-condition small { display:block; font-size:12px; color:var(--ink-2); }.mj-condition p { margin:4px 0 0; color:var(--muted); font-size:11px; }
.mj-seasons { margin:0 20px 16px; border:1px solid var(--line-2); border-radius:12px; }.mj-seasons summary { display:flex; align-items:center; justify-content:space-between; min-height:48px; padding:10px 13px; cursor:pointer; font-size:13px; list-style:none; }.mj-seasons summary::after { content:'+'; font-size:20px; }.mj-seasons[open] summary::after { content:'−'; }.mj-seasons summary small { display:block; font-size:11px; color:var(--muted); }.mj-seasons>p { margin:0; padding:0 13px 12px; color:var(--ink-2); font-size:12px; line-height:1.6; }
#sim .mj-seasons .s3-chips { padding:0 12px 12px; justify-content:flex-start; }.mj-message { margin:0; padding:12px 20px; border-top:1px solid var(--line); background:var(--track); font-size:12px; color:var(--ink-2); }
#sim .mj-nav :is(button,input):focus-visible, .mj-seasons summary:focus-visible { outline:3px solid var(--sun-ink); outline-offset:2px; }
@media(max-width:650px) { .mj-context { grid-template-columns:1fr; padding:18px; gap:18px; }.mj-time { grid-column:1; grid-row:1; }.mj-clock-line { justify-content:flex-end; }.mj-conditions { grid-column:1; grid-row:2; }.mj-conditions { padding-top:15px; border-top:1px solid var(--line); }.mj-nav>label { flex-basis:100%; }#sim .mj-nav .mj-date { flex:0 1 280px; }.mj-nav .mj-live { margin-left:auto; }.mj-condition strong { font-size:23px; }.mj-symbol svg { width:29px; height:29px; }.mj-condition+.mj-condition { padding-left:12px; } }
#sim.mf-ready .s3-dock { display:grid; gap:12px; padding:12px 0; border:0; border-radius:0; background:transparent; }
#sim.mf-ready .s3-row, #sim .mf-timeline { padding:14px 16px; border:1px solid var(--s3-line); border-radius:14px; background:var(--s3-surface); }
#sim.mf-ready .mf-detail { margin-top:0; border:2px solid var(--line-2); border-radius:14px; }
.mf-detail-head { max-width:960px; margin-inline:auto; }
.mf-detail .mf-value, .mf-detail .e-lc-head b { font-size:40px; font-weight:500; line-height:1.15; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.mf-detail .e-lc-head { margin-top:0; }
.mf-detail h4 { margin:24px 0 8px; font-size:15px; font-weight:500; }
.mf-row { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; }
.mf-row i { width:8px; height:8px; border-radius:50%; background:var(--mf-color); }
.mf-row small { display:block; color:var(--muted); font-size:12px; margin-top:3px; }.mf-row strong { font-size:18px; font-weight:500; text-align:right; }
.mf-detail .mf-fresh, .mf-detail .mf-note { font-size:12px; color:var(--muted); line-height:1.6; }.mf-detail .mf-fresh { margin:12px 0; }.mf-detail .mf-old { color:var(--sun-ink); }
.mf-detail .mf-warning { padding:12px; border-radius:12px; background:var(--track); }
.mf-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:18px 0; padding-top:14px; border-top:1px solid var(--line); }.mf-pair span { font-size:13px; color:var(--ink-2); }.mf-pair strong { display:block; font-size:22px; font-weight:500; color:var(--ink); font-variant-numeric:tabular-nums; }
.mf-charge { height:12px; margin-top:14px; border-radius:6px; overflow:hidden; background:var(--track); }.mf-charge span { display:block; height:100%; background:var(--t-ok); }
#sim .mf-detail .mf-more { display:flex; justify-content:center; max-width:960px; margin:20px auto 0; border-radius:12px; padding:12px; background:var(--track); color:var(--ink); text-decoration:none; }
#sim .mf-detail .mf-more[hidden] { display:none; }
#sim .mf-detail .mf-retry { padding:8px 14px; border:1px solid var(--line); border-radius:12px; font-size:14px; }
@media(max-width:600px) { .mf-detail .e-lc-r { grid-template-columns:9px minmax(0,1fr) auto; gap:10px; }.mf-detail .e-lc-r .rbar { display:none; }.mf-detail .e-lc-r .nm { white-space:normal; }.mf-detail .e-lc-r .nm small, .mf-detail .e-lc-r .v small { display:block; margin:3px 0 0; }.mf-detail .e-lc-r .v small { min-width:0; }.mf-detail .e-lc-head { display:block; }.mf-detail .e-lc-head>span { display:block; margin-top:6px; }.mf-row strong { font-size:16px; } }
.mf-pins { position:absolute; inset:0; pointer-events:none; overflow:hidden; }.mf-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.mf-lines line { stroke-width:1.3; stroke-dasharray:3 5; opacity:.75; }.mf-lines [data-pin=solar] { stroke:#f2b533; }.mf-lines [data-pin=house] { stroke:#ab98ef; }.mf-lines [data-pin=battery] { stroke:#61bf79; }
.mf-pin { position:absolute; width:0; height:0; }.mf-pin i { display:block; position:absolute; left:-7px; top:-7px; width:14px; height:14px; border:2px solid white; border-radius:50%; background:var(--mf-point); box-shadow:0 2px 5px #0005; }
.mf-pin > span { position:absolute; padding:3px 7px; border-radius:6px; background:var(--surface); color:var(--ink); font:500 12px/1.4 'Space Grotesk',sans-serif; white-space:nowrap; }
#sim .mf-orb[hidden], #sim .mf-pin[hidden], #sim .mf-detail[hidden], #sim.mf-hidden :is(.mf-orbs,.mf-pins) { display:none; }
#sim .mf-orb:focus-visible, #sim .mf-toolbar button:focus-visible, #sim .mf-detail :is(button,a):focus-visible { outline:3px solid var(--sun-ink); outline-offset:4px; }
@media(max-width:900px) {
  .mf-orbs { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; background:var(--s3-surface); border-inline:1px solid var(--s3-line); }
  #sim .mf-orb { position:static; width:auto; min-width:0; box-shadow:none; padding:10px 6px; }
  .mf-lines { display:none; }.mf-toolbar { padding:8px 12px; }.mf-icon { flex-basis:36px; width:36px; height:36px; }
  #sim.mf-ready .s3-stage { height:min(48svh,420px); min-height:300px; }
}
@media(prefers-reduced-motion:no-preference) { #sim .mf-orb:hover { box-shadow:0 6px 20px #0003; } }

/* Le point solaire du moteur reste numéroté pour les groupes de panneaux. */
#sim .s3-tags .s3-tag-k { display:none; }
#sim.mf-linked .mf-pin.mf-solar i { display:none; }

/* Rayon réel soleil → panneaux (ou maison sans panneaux), distinct des traits de mesure. */
.mf-sun-ray { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:hidden; }
.mf-sun-ray path { fill:none; stroke-linecap:round; }
.mf-ray-glow { stroke:#f2b533; stroke-width:9; opacity:.14; }
.mf-ray-core { stroke:#e5ad34; stroke-width:1.8; opacity:.85; }
/* Repères, rayon et point des panneaux : rendu Pro seulement (ni rendu ni offre Plus). */
#sim:not(.m3-pro) :is(.mf-pins, .mf-sun-ray, .s3-tags) { display:none; }
.mf-ray-spark { stroke:#fff1b5; stroke-width:2.5; stroke-dasharray:14 180; animation:mf-ray-flow 4s linear infinite; }
#sim:not(.s3-follow):not(:has(.s3-play.on)) .mf-ray-spark { animation-play-state:paused; }
@keyframes mf-ray-flow { to { stroke-dashoffset:-194; } }
#sim .mf-map-actions { position:absolute; z-index:2; left:16px; bottom:54px; display:flex; gap:6px; }
#sim .mf-switch[hidden] { display:none; }
#sim .mf-switch { display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 16px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:24px; font-size:13px; }
.mf-switch::before { content:""; width:12px; height:12px; border-radius:50%; border:1px solid var(--sun-ink); background:transparent; }
.mf-switch[aria-pressed=true]::before { background:var(--sun-ink); }
#sim .mf-switch:focus-visible { outline:3px solid var(--sun-ink); outline-offset:3px; }
@media(max-width:900px) { #sim .mf-map-actions { bottom:12px; left:12px; } #sim .mf-switch { min-height:48px; } }
@media(prefers-reduced-motion:reduce) { .mf-ray-spark { animation:none; stroke-dasharray:none; opacity:.3; } }

/* Repères personnalisés : projection monde par le moteur, édition dans la page. */
#sim .mrp-panel { margin:12px 0; padding:18px; border:1px solid var(--line-2); border-radius:14px; background:var(--surface); }
#sim .mrp-summary, #sim .mrp-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#sim .mrp-panel h3 { margin:0; font-size:18px; font-weight:500; }
#sim .mrp-panel p { margin:6px 0 12px; color:var(--ink-2); font-size:14px; line-height:1.5; }
#sim .mrp-panel small, #sim .mrp-count { color:var(--muted); font-size:12px; }
#sim .mrp-panel button { min-height:44px; padding:9px 14px; border:1px solid var(--line-2); border-radius:12px; background:var(--surface); color:var(--ink); font:inherit; font-size:13px; }
#sim .mrp-panel button:hover:not(:disabled) { background:var(--track); }
#sim .mrp-panel button:disabled { opacity:.45; cursor:default; }
#sim .mrp-panel .mrp-open, #sim .mrp-panel .mrp-save { background:#f2b533; border-color:#f2b533; color:#302207; }
#sim .mrp-panel .mrp-open:hover:not(:disabled), #sim .mrp-panel .mrp-save:hover:not(:disabled) { background:#e8a921; }
#sim .mrp-panel :is(button):focus-visible, #sim .mrp-target:focus-visible { outline:3px solid var(--sun-ink); outline-offset:3px; }
#sim .mrp-choices { display:flex; gap:8px; margin:14px 0; flex-wrap:wrap; }
#sim .mrp-choices .mrp-choice { flex:1; display:flex; align-items:center; gap:8px; text-align:left; min-width:105px; }
#sim .mrp-choice small { display:block; margin-top:3px; font-size:11px; }
#sim .mrp-choice i { flex-shrink:0; width:12px; height:12px; border-radius:50%; background:var(--mf-point); }
#sim .mrp-choices .mrp-choice[aria-pressed="true"] { border:2px solid var(--sun-ink); padding:8px 13px; }
#sim .mrp-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
#sim .mrp-panel .mrp-message { margin:10px 0 0; color:var(--ink); }
#sim .mrp-panel .mrp-error { color:var(--t-err, #bd4639); }
#sim .mrp-target { position:absolute; inset:0; width:100%; height:100%; z-index:2; border:0; border-radius:0; padding:0; background:transparent; cursor:crosshair; }
#sim .mrp-hint { position:absolute; top:12px; left:12px; max-width:calc(100% - 24px); z-index:4; background:var(--surface); color:var(--ink); border:1px solid var(--line-2); border-radius:8px; padding:8px 12px; font-size:12px; pointer-events:none; }
#sim .mrp-cursor { position:absolute; width:16px; height:16px; border:2px solid var(--sun-ink); border-radius:50%; z-index:4; transform:translate(-50%,-50%); pointer-events:none; }
#sim.mrp-editing .s3-stage { outline:2px solid var(--sun-ink); outline-offset:-2px; }
#sim.mrp-editing .s3-tags { visibility:hidden; }
#sim .mf-pins { z-index:3; }
#sim.mrp-editing.mf-hidden .mf-pins { display:block; }
#sim .mf-pin.mf-solar.mf-manual i { display:block; }
#sim .mrp-panel [hidden], #sim .mrp-target[hidden], #sim .mrp-hint[hidden], #sim .mrp-cursor[hidden] { display:none; }
@media(max-width:650px) { #sim .mrp-panel { padding:14px; } #sim .mrp-summary { display:block; } #sim .mrp-summary .mrp-open { width:100%; } #sim .mrp-actions button { flex:1; } #sim .mrp-choices .mrp-choice { min-width:0; font-size:12px; gap:6px; padding:9px 7px; } #sim .mrp-choices .mrp-choice[aria-pressed="true"] { padding:8px 6px; } }

#sim .m3-render { display:flex; align-items:center; gap:4px; margin-left:auto; flex-wrap:wrap; }
#sim .m3-render[hidden] { display:none; }
#sim .m3-render>span { color:var(--muted); font-size:12px; margin-right:5px; }
#sim .m3-render button { min-height:44px; padding:8px 12px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink-2); }
#sim .m3-render button[aria-pressed="true"] { background:var(--track); color:var(--sun-ink); border-color:var(--sun-ink); }
#sim .m3-render button:focus-visible { outline:3px solid var(--sun-ink); outline-offset:3px; }

@media(max-width:650px) { #sim .mj-date input { font-size:16px; } }

/* Le modèle privé est une vue illustrative, indépendante des volumes de calcul. */
.blender-badge[hidden],.blender-status[hidden] { display:none; }
.blender-status { font-size:12px; color:var(--ink-2); }

.blender-badge { position:absolute; top:10px; left:50%; transform:translateX(-50%); pointer-events:none; padding:5px 10px; border-radius:10px; background:var(--surface); color:var(--ink); font-size:12px; }

#sim.blender-show .s3-setup,#sim.blender-show .s3-fold,#sim.blender-show .s3-trial-note { display:none; }

#sim .m3-settings { border:1px solid var(--s3-line); border-radius:14px; background:var(--s3-surface); min-width:0; }
#sim.mf-ready .m3-settings .s3-row { border:0; border-radius:0; background:transparent; }
#sim .m3-settings .mrp-panel { margin:0; border:0; border-top:1px solid var(--line-2); border-radius:0; background:transparent; }

#sim .mf-tracks { position:relative; display:grid; gap:3px; margin-top:5px; touch-action:pan-y; cursor:ew-resize; }
#sim .mf-tracks[hidden] { display:none; }
#sim .mf-track { position:relative; height:35px; color:var(--mf-track-color); background:color-mix(in srgb, var(--track) 38%, transparent); border-radius:5px; overflow:hidden; }
#sim .mf-track-house { --mf-track-color:#8258c0; }
#sim .mf-track-grid { --mf-track-color:var(--imp); }
#sim .mf-track-battery { --mf-track-color:#399752; }
#sim .mf-track:not(.mf-track-house)::before { content:""; position:absolute; inset:50% 0 auto; border-top:1px solid currentColor; opacity:.4; }
#sim .mf-track span { position:absolute; z-index:1; top:1px; left:5px; background:var(--s3-surface); padding:0 3px; color:var(--ink); font-size:11px; }
#sim .mf-track i { position:absolute; background:linear-gradient(currentColor, color-mix(in srgb, currentColor 24%, transparent)); opacity:.8; clip-path:inset(0 10%); }
#sim .mf-track-cursor { position:absolute; inset:0 auto 0; border-left:1px dashed var(--ink); pointer-events:none; z-index:2; }

@media (min-width:1100px) {
  #sim .mf-wrap:has(> .m3-settings) { display:grid; grid-template-columns:minmax(0, 1fr) minmax(340px, 32%); gap:12px; align-items:start; }
  #sim .mf-wrap:has(> .m3-settings) > .mf-map { grid-column:1 / -1; }
  #sim .mf-wrap:has(> .m3-settings) > .mf-timeline { margin:0; min-width:0; }
}
#sim .mf-tracks { user-select:none; }

#sim .mj-date { width:216px; flex:0 1 216px; background:var(--surface); }
#sim .mj-day-picker { position:relative; display:grid; min-width:0; min-height:44px; place-items:center; }
#sim .mj-day-display { font-size:14px; font-variant-numeric:tabular-nums; pointer-events:none; }
#sim .mj-day-picker input { position:absolute; inset:0; opacity:0; cursor:pointer; }
#sim .mj-day-picker:focus-within { outline:2px solid var(--sun-ink); outline-offset:-2px; }
#sim .mj-day-picker:has(input:focus-visible) input { opacity:1; background:var(--surface); }
#sim .mj-day-picker:has(input:focus-visible) .mj-day-display { visibility:hidden; }
#sim .m3-settings .mj-seasons { margin:0 12px 12px; }
@media(max-width:650px) { #sim .mj-nav .mj-date { flex-basis:216px; } }
/* La scène garde ses repères et le rayon solaire. Les mesures se lisent sous la carte. */
#sim .mf-map { border-radius:16px 16px 0 0; overflow:hidden; }
#sim .mf-orbs { position:static; display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr)); gap:1px; padding:0; pointer-events:auto; background:var(--s3-line); border:1px solid var(--s3-line); border-top:0; border-radius:0 0 14px 14px; overflow:hidden; }
#sim .mf-orb { position:static; width:auto; min-width:0; min-height:62px; padding:8px 12px; border-radius:0; box-shadow:none; background:var(--s3-surface); }
#sim .mf-orb:hover { box-shadow:none; background:var(--track); }
#sim .mf-orb:is(:focus-visible,[aria-expanded=true]) { outline-offset:-3px; }
#sim .mf-orb .mf-icon { width:30px; height:30px; flex-basis:30px; }
#sim .mf-orb .mf-icon svg { width:17px; height:17px; }
#sim .mf-copy { gap:1px; }
#sim .mf-copy strong { line-height:1.1; }
#sim .mf-label { font-size:11px; }
#sim .mf-wrap:has(> .m3-settings) > .mf-orbs { grid-column:1 / -1; }
#sim .mf-wrap:has(> .m3-settings) > .mf-map { margin-bottom:-12px; }
#sim.mf-hidden .mf-wrap:has(> .m3-settings) > .mf-map { margin-bottom:0; }
@media(min-width:901px) {
  #sim.s3-readable > .s3-hud:has(.mj-nav) { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; }
  #sim .mj-nav { padding:10px 14px; }
  #sim .mj-context { display:flex; justify-content:flex-end; padding:10px 14px; gap:16px; }
  #sim .mj-condition p, #sim .mj-time .s3-date { margin-top:2px; }
  #sim .mj-clock-line .s3-clock { font-size:28px; }
  #sim .mj-condition strong { font-size:18px; }
  #sim .mj-symbol svg { width:24px; height:24px; }
  #sim :is(.mj-seasons,.mj-message,.mj-retry) { grid-column:1 / -1; }
}
@media(max-width:650px) {
  #sim .mf-orbs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #sim .mf-orb { min-height:54px; padding:6px 8px; }
  #sim .mf-copy strong { font-size:16px; }
  #sim .mf-orb .mf-icon { display:none; }
  #sim .mj-context { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 14px; }
  #sim .mj-conditions { display:flex; flex-wrap:wrap; gap:8px; padding:0; border:0; }
  #sim .mj-condition { gap:4px; padding-left:0; border:0; }
  #sim .mj-condition strong { font-size:16px; }
  #sim .mj-condition p { display:none; }
  #sim .mj-symbol svg { width:18px; height:18px; }
  #sim .mj-clock-line { gap:4px; }
  #sim .mj-clock-line .s3-clock { font-size:24px; }
}

#sim .mf-forecast-legend { display:flex; align-items:center; gap:6px; margin:3px 0 2px; color:var(--t-ia); font-size:12px; font-weight:600; }
#sim .mf-forecast-legend[hidden] { display:none; }
#sim .mf-forecast-legend::before { content:""; width:14px; height:4px; background:currentColor; border-radius:2px; }
/* Journée toute prévue sans la zone IA (ne sert plus que si la zone manque) : bandes violettes. */
#sim .mf-forecast:not(.mf-zone-prevue) .mf-track { --mf-track-color:#7455d0; background:color-mix(in srgb, var(--s3-surface) 92%, #7455d0); }

#sim .mf-forecast:not(.mf-zone-prevue) .mf-track i, #sim .mf-track .mf-predicted-bar { background:linear-gradient(rgba(143,124,240,.95),rgba(63,198,217,.2)); opacity:1; }
#sim .mf-live-split::after { content:""; position:absolute; top:0; bottom:0; left:var(--mf-live-edge); border-left:1px dashed var(--ink); pointer-events:none; }

#sim .mf-live-split .mf-track-cursor { border-left-style:solid; opacity:.55; }
/* Aujourd’hui, après le trait du direct : toute la zone en couleur IA, sur la frise Solaire,
   la pluie et les bandes ; les barres prévues gardent la couleur de leur série, atténuée.
   Thème sombre (défaut) plus appuyé : à 22 %, le violet se perdait dans le fond (0.866). */
#sim .mf-timeline { --mf-ia-a:rgba(143,124,240,.36); --mf-ia-b:rgba(63,198,217,.17); --mf-ia-trait:#a08cff; }
:root[data-mode="jour"] #sim .mf-timeline { --mf-ia-a:rgba(143,124,240,.24); --mf-ia-b:rgba(63,198,217,.13); --mf-ia-trait:#8f7cf0; }
#sim .mf-timeline .s3-frise { position:relative; }
#sim .mf-zone-label { display:none; }
#sim .mf-zone-prevue .s3-frise::after, #sim .mf-zone-prevue .mf-rain-bars::after, #sim .mf-zone-prevue .mf-tracks::before {
  content:""; position:absolute; top:0; bottom:0; left:var(--mf-live-edge); right:0; pointer-events:none;
  background:linear-gradient(90deg, var(--mf-ia-a), var(--mf-ia-b)); border-radius:0 6px 6px 0; }
/* Un liseré violet en tête de la frise : la zone se lit comme un onglet « Prévision IA ». */
#sim .mf-zone-prevue .s3-frise::after { border-top:2px solid var(--mf-ia-trait); border-radius:0 6px 0 0; }
/* Demain, la zone couvre toute la journée : coins arrondis des deux côtés (0.870). */
#sim .mf-zone-prevue.mf-forecast .mf-rain-bars::after, #sim .mf-zone-prevue.mf-forecast .mf-tracks::before { border-radius:6px; }
#sim .mf-zone-prevue.mf-forecast .s3-frise::after { border-radius:6px 6px 0 0; }
/* Les bandes s’arrêtent au direct : au-delà, un seul bloc IA continu, sans le gris des bandes. */
#sim .mf-zone-prevue .mf-track { background:linear-gradient(90deg, color-mix(in srgb, var(--track) 38%, transparent) var(--mf-live-edge), transparent var(--mf-live-edge)); }
/* L’étiquette se pose au-dessus de la frise, sur la ligne « Solaire » : elle ne cache plus
   l’heure du curseur, dessinée en haut de la frise (en direct, curseur et zone se touchent). */
#sim .mf-zone-prevue .mf-zone-label { display:block; position:absolute; z-index:2; bottom:calc(100% + 1px); left:clamp(58px, var(--mf-live-edge), calc(100% - 86px)); padding:0 8px;
  border-radius:999px; background:linear-gradient(110deg, #ebe3ff, #dff5fa); color:#44318d; font-size:11px; font-weight:600; line-height:16px; white-space:nowrap; pointer-events:none; }
#sim .mf-zone-prevue .mf-track .mf-predicted-bar { background:linear-gradient(currentColor, color-mix(in srgb, currentColor 22%, transparent)); opacity:.6; }

#sim .mf-rain { margin:4px 0 8px; }
#sim .mf-rain[hidden] { display:none; }
#sim .mf-rain-label { display:flex; justify-content:space-between; align-items:center; gap:8px; color:var(--ink); font-size:12px; }
#sim .mf-rain-label small { color:var(--muted); font-size:inherit; }
#sim .mf-rain-label output { font-weight:600; font-variant-numeric:tabular-nums; }
#sim .mf-rain-bars { position:relative; height:24px; margin-top:3px; background:var(--track); border-radius:4px; overflow:hidden; touch-action:pan-y; cursor:ew-resize; }
#sim .mf-rain-bars b { position:absolute; bottom:0; background:linear-gradient(#4783c9,rgba(71,131,201,.25)); clip-path:inset(0 10%); }
#sim .mf-timeline-solar { margin:0; color:var(--sun-ink); font-size:12px; }

#sim .mf-track-soc { --mf-track-color:#398653; height:44px; }
#sim .mf-track-soc[hidden], #sim .mf-track-soc::before { display:none; }
#sim .mf-track-soc output { position:absolute; top:1px; right:6px; color:var(--ink); font-size:11px; font-weight:600; }
#sim .mf-soc-plot { position:absolute; inset:16px 0 4px; }
#sim .mf-soc-plot i { height:2px; background:currentColor; clip-path:none; opacity:.95; }

#sim button.mf-forecast-legend { min-height:44px; padding:0 12px; border:1px solid var(--t-ia); border-radius:999px; color:var(--t-ia); background:var(--s3-surface); }
#sim button.mf-forecast-legend[aria-pressed="true"] { background:linear-gradient(110deg, #ebe3ff, #dff5fa); color:#44318d; }
#sim button.mf-forecast-legend::before { background:linear-gradient(90deg,#8f7cf0,#3fc6d9); }
#sim button.mf-forecast-legend[hidden] { display:none; }

#sim .mf-predicted-value strong { color:var(--t-ia); }
@supports (background-clip:text) {
  #sim .mf-predicted-value strong { width:fit-content; background:linear-gradient(105deg,#6040bb,#27768b); background-clip:text; color:transparent; }
  html[data-mode="nuit"] #sim .mf-predicted-value strong { background-image:linear-gradient(105deg,#bdabff,#79dbe5); }
}
@media(forced-colors:active) { #sim .mf-predicted-value strong { color:ButtonText; background:none; } }

.glb-demande { box-sizing:border-box; position:fixed; inset:calc(var(--glb-haut, 0px) + var(--glb-hauteur, 100dvh) / 2) 0 auto; transform:translateY(-50%); margin:0 auto; width:min(30rem,calc(100% - 24px)); max-height:calc(var(--glb-hauteur, 100dvh) - 16px); padding:0; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--surface); overflow:auto; }
.glb-demande::backdrop { background:#0009; }
.glb-demande form { display:flex; flex-direction:column; max-height:calc(var(--glb-hauteur, 100dvh) - 20px); }
.glb-saisie { overflow:auto; min-height:0; padding:16px; overscroll-behavior:contain; }
.glb-saisie h2 { margin:0 0 12px; }
.glb-demande label { display:grid; gap:6px; }
.glb-demande textarea { box-sizing:border-box; width:100%; font:inherit; font-size:16px; }
.glb-commandes { flex:none; display:grid; gap:10px; padding:12px 16px; border-top:1px solid var(--line); }
.glb-commandes input { max-width:100%; min-width:0; }
.glb-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.glb-actions button { min-height:44px; }
.glb-apercus { display:flex; gap:.4rem; flex-wrap:wrap; }
.glb-apercus img { width:4rem; height:4rem; object-fit:cover; }

/* Mon installateur (installateur.js) : fenêtre de Mon compte, plein écran dans les apps. */
.dlg.in-dlg { width: min(520px, calc(100% - 24px)); max-height: calc(100svh - 32px); overflow: auto; }
.in-dlg .ct-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.in-dlg .ct-top h3 { margin: 0; }
.in-hero { display: flex; gap: 14px; align-items: center; }
.in-logo { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: -.03em; color: #1b1305; background: linear-gradient(135deg, var(--sun-1), var(--sun) 55%, var(--sun-3)); }
.in-hero b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.in-hero small { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }
.in-lead { margin: 12px 0 0; font-size: 15px; line-height: 21px; color: var(--ink-2); }
.in-h { margin: 22px 0 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.in-droits { background: rgb(var(--fg-rgb) / .035); border-radius: 14px; padding: 2px 14px; }
.in-droit { padding: 10px 0; }
.in-droit + .in-droit { border-top: 1px solid var(--line); }
.in-droit b { display: block; font-weight: 500; font-size: 14px; }
.in-droit small { display: block; font-size: 12.5px; line-height: 17px; color: var(--muted); font-weight: 400; }
.in-jamais { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: rgb(var(--fg-rgb) / .035); font-size: 13px; line-height: 19px; color: var(--ink-2); }
.in-dlg .hint { margin-top: 8px; }
.in-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.in-btns .go { min-width: 140px; }
.in-retirer { background: none; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.in-autre { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 13px; line-height: 19px; }
.in-autre p { margin: 0 0 8px; }
.in-journal { list-style: none; margin: 0; padding: 0; }
.in-journal li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-2); }
.in-journal li:first-child { border-top: 0; }
.in-journal b { color: var(--ink); font-weight: 500; }
.in-journal small { flex: none; color: var(--muted); font-size: 12px; }
.in-dlg #instMsg { margin-top: 10px; }
#instPastille { margin-left: 4px; vertical-align: 1px; }
.installateur-only #app { display: none; }
.installateur-only .in-dlg[open] { width: 100%; max-width: 100%; height: var(--app-height, 100dvh); max-height: var(--app-height, 100dvh); margin: 0; padding: 20px; border: 0; border-radius: 0; }
.installateur-only .in-dlg .ct-top { display: none; }
@media (max-width: 560px) { .in-journal li { flex-direction: column; gap: 2px; } .in-btns > button { flex: 1; } }

/* ── Le cadran du Linky lu par l'Ecojoko (accueil.js, cadHtml) : la fiche du compteur.
   Anneau du haut = puissance du moment, arc du bas = écart avec l'habitude. La pastille porte
   l'état : bleue en soutirage, verte quand le surplus part au réseau, grise si l'Ecojoko se tait. */
:is(.lc-pop, .now2) .cad {
  --cad-bezel: #1f1f1d; --cad-bord: rgb(255 255 255 / .08); --cad-a: rgb(255 255 255 / .30); --cad-b: rgb(255 255 255 / .17); --cad-tick: #a7a59c;
  --cad-disc: #1d6fb8; --cad-aig: #58aef2; --cad-hab: #45c96b;
  position: relative; container-type: inline-size; width: min(100%, 372px); aspect-ratio: 1; margin: 4px auto 0;
}
:root[data-mode="jour"] :is(.lc-pop, .now2) .cad { --cad-bezel: #f4f3ef; --cad-bord: rgb(22 21 18 / .08); --cad-a: rgb(22 21 18 / .26); --cad-b: rgb(22 21 18 / .13); --cad-tick: #6c6962; --cad-aig: #1d6fb8; --cad-hab: #1e9a48; }
:is(.lc-pop, .now2) .cad.renvoi { --cad-disc: #177a4f; --cad-aig: #45c96b; }
:root[data-mode="jour"] :is(.lc-pop, .now2) .cad.renvoi { --cad-aig: #1e9a48; }
:is(.lc-pop, .now2) .cad.muet { --cad-disc: #3a3936; }
:root[data-mode="jour"] :is(.lc-pop, .now2) .cad.muet { --cad-disc: #8b8881; }
:is(.lc-pop, .now2) .cad.hab-plus { --cad-hab: #fab219; }
:root[data-mode="jour"] :is(.lc-pop, .now2) .cad.hab-plus { --cad-hab: #b97a00; }
:is(.lc-pop, .now2) .cad > svg { display: block; width: 100%; height: 100%; overflow: visible; }
:is(.lc-pop, .now2) .cad-bezel { fill: var(--cad-bezel); stroke: var(--cad-bord); filter: drop-shadow(0 14px 18px rgb(0 0 0 / .28)); }
:is(.lc-pop, .now2) .cad-seg { fill: none; stroke-width: 9; }
:is(.lc-pop, .now2) .cad-seg.a { stroke: var(--cad-a); }
:is(.lc-pop, .now2) .cad-seg.b { stroke: var(--cad-b); }
:is(.lc-pop, .now2) .cad-dash { fill: none; stroke: var(--cad-b); stroke-width: 9; stroke-dasharray: 2 7; }
:is(.lc-pop, .now2) .cad-val { fill: none; stroke-width: 9; stroke-linecap: round; stroke: var(--cad-aig); transition: stroke-dasharray .9s cubic-bezier(.16, 1, .3, 1), stroke .5s; }
:is(.lc-pop, .now2) .cad-val.cad-hab { stroke: var(--cad-hab); }
:is(.lc-pop, .now2) .cad-needle { transform-box: view-box; transform-origin: 50% 50%; transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .4s; }
:is(.lc-pop, .now2) .cad-needle line { stroke: var(--cad-aig); stroke-width: 10; stroke-linecap: round; transition: stroke .5s; }
:is(.lc-pop, .now2) .cad-needle.hab line { stroke: var(--cad-hab); stroke-width: 8; }
:is(.lc-pop, .now2) .cad-tick { fill: var(--cad-tick); font-size: 12.5px; text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
:is(.lc-pop, .now2) .cad-unit { fill: var(--cad-tick); font-size: 9.5px; letter-spacing: .14em; text-anchor: middle; dominant-baseline: central; }
:is(.lc-pop, .now2) .cad-disc { position: absolute; inset: 22.8%; border-radius: 50%; background: var(--cad-disc); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 10px 22px -8px rgb(0 0 0 / .5); transition: background .5s; padding: 0 16px; padding: 0 5cqw; border: 0; cursor: pointer; font: inherit; white-space: normal; gap: 0; min-height: 0; }
:is(.lc-pop, .now2) .cad-disc:hover { background: var(--cad-disc); color: #fff; }
:is(.lc-pop, .now2) .cad-disc:focus-visible { outline: 2px solid var(--focus, #f7cd73); outline-offset: 4px; }
:is(.lc-pop, .now2) .cad-lab { font-size: 12px; font-size: 3.5cqw; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; opacity: .92; max-width: 34cqw; }
:is(.lc-pop, .now2) .cad-num { font-size: 40px; font-size: 11.6cqw; font-weight: 500; letter-spacing: -.035em; line-height: 1.08; font-variant-numeric: tabular-nums; margin-top: 1cqw; white-space: nowrap; }
:is(.lc-pop, .now2) .cad-num small { font-size: .52em; font-weight: 400; letter-spacing: 0; margin-left: .18em; }
:is(.lc-pop, .now2) .cad-sub { font-size: 12.5px; font-size: 3.6cqw; line-height: 1.3; opacity: .9; min-height: 1.3em; font-variant-numeric: tabular-nums; }
:is(.lc-pop, .now2) .cad-spark { width: 32cqw; height: 8.4cqw; margin-top: 1cqw; overflow: visible; touch-action: none; cursor: crosshair; }
:is(.lc-pop, .now2) .cad-spark path { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
:is(.lc-pop, .now2) .cad-spark circle { fill: #fff; }
:is(.lc-pop, .now2) .cad-dots { position: absolute; left: 0; right: 0; bottom: 27.6%; display: flex; justify-content: center; pointer-events: none; }
:is(.lc-pop, .now2) .cad-dots button { pointer-events: auto; width: 22px; height: 22px; min-height: 0; border: 0; background: none; padding: 0; display: grid; place-items: center; border-radius: 50%; }
:is(.lc-pop, .now2) .cad-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fff; }
:is(.lc-pop, .now2) .cad-dots button[aria-pressed="true"] i { background: #fff; }
:is(.lc-pop, .now2) .cad-say { margin: 12px auto 4px; max-width: 40ch; text-align: center; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; text-wrap: balance; min-height: 2.9em; }
:is(.lc-pop, .now2) .cad-say b { color: var(--ink); font-weight: 600; }
:is(.lc-pop, .now2) .cad-say b.moins { color: var(--exp); }
:is(.lc-pop, .now2) .cad-say b.plus { color: var(--sun-ink, #fab219); }
@media (prefers-reduced-motion: reduce) { :is(.lc-pop, .now2) .cad-val, :is(.lc-pop, .now2) .cad-needle, :is(.lc-pop, .now2) .cad-needle line, :is(.lc-pop, .now2) .cad-disc { transition: none; } }
:is(.lc-pop, .now2) .cad-say { margin-bottom: 16px; }

/* ─── Composer son accueil : les cases d'« En ce moment » (accueil.js) ───
   Une grille de 12 colonnes : trois grandes cases, puis les compactes par trois (par quatre
   quand il y en a juste quatre) ; un grand format prend toute la largeur du panneau. */
.now2 .nh-r { display: inline-flex; align-items: center; gap: 6px; }
.now2 .cz-bt { border: 0; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.now2 .cz-bt.on { background: var(--ink); color: var(--bg); }
.now2 .cz-bt .cz-i { width: 15px; height: 15px; }
.cz-i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cz-p .cz-i circle { fill: currentColor; stroke: none; }
.now2 .cz-grid { position: relative; container: czgrid / inline-size; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cz-w { position: relative; grid-column: span 4; min-width: 0; }
.cz-grid.g4 .cz-w.cz-s { grid-column: span 3; }
.cz-w > a { display: block; height: 100%; }
.cz-w.cz-g { grid-column: 1 / -1; }
.now2 .cz-w .sg .l, .now2 .cz-w .fl .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now2 .sg .pb { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgb(var(--fg-rgb) / .08); }
.now2 .sg .pb i { display: block; height: 100%; border-radius: 2px; background: var(--k); }
@container czgrid (max-width: 330px) { .cz-grid.g4 .cz-w.cz-s { grid-column: span 6; } }
/* Le grand format */
.cz-g { border-radius: 16px; }
.cz-g.cz-linky { padding: 12px 14px 14px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); }
.cz-gh { display: flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; min-height: 28px; }
.cz-gh b { font-size: 15px; font-weight: 600; }
.cz-gh small { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-gh span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.cz-gh:hover span { color: var(--ink); }
.cz-lk { display: grid; grid-template-columns: minmax(170px, 236px) minmax(0, 1fr); column-gap: 20px; align-items: center; margin-top: 4px; }
.now2 .cz-lk .cad { grid-row: 1 / span 2; width: 100%; margin: 0; }
.now2 .cz-lk .cad-say { align-self: end; margin: 0 0 12px; max-width: none; text-align: left; min-height: 0; font-size: 14px; }
.cz-lk dl { align-self: start; margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.cz-lk dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cz-lk dd { margin: 0; font-size: 16px; font-weight: 600; }
.cz-lk dd small { font-size: .7em; font-weight: 400; color: var(--muted); }
@container czgrid (max-width: 430px) {
  .cz-lk { grid-template-columns: 1fr; justify-items: center; }
  .now2 .cz-lk .cad { grid-row: auto; max-width: 250px; }
  .now2 .cz-lk .cad-say { margin: 12px 0; text-align: center; }
  .cz-lk dl { width: 100%; text-align: center; }
}
.cz-g.dk-now { margin-top: 0; display: block; }
/* PAC et clim en grand : les fonctions de la fiche, sous la carte */
.cz-fx { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 8px; }
.cz-pas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1 1 100%; font-size: 12.5px; color: var(--muted); }
.cz-pas .pas { display: inline-flex; align-items: center; border-radius: 999px; background: rgb(var(--fg-rgb) / .05); border: 1px solid rgb(var(--fg-rgb) / .08); }
.cz-pas .pas button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: inherit; font-size: 20px; cursor: pointer; }
.cz-pas .pas button:hover { background: rgb(var(--fg-rgb) / .08); }
.cz-pas .pas button:disabled { opacity: .3; cursor: default; background: none; }
.cz-pas output { min-width: 78px; text-align: center; font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cz-seg { display: flex; flex: 1 1 220px; padding: 3px; border-radius: 12px; background: rgb(var(--fg-rgb) / .06); }
.cz-seg button { flex: 1; min-height: 40px; padding: 0 6px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.cz-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .18); }
.cz-amb { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.cz-amb button { flex: 1; min-height: 44px; padding: 4px 10px; border-radius: 12px; border: 1px solid rgb(var(--fg-rgb) / .12); background: none; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.cz-amb button small { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cz-amb button[aria-pressed="true"] { border-color: var(--dkc); color: var(--dkc); background: color-mix(in srgb, var(--dkc) 12%, transparent); font-weight: 600; }
.cz-fx button:disabled { opacity: .45; cursor: default; }
/* En modification */
.cz-edit .cz-w { cursor: grab; border-radius: 14px; outline: 1.5px dashed rgb(var(--fg-rgb) / .24); outline-offset: -1.5px; }
.cz-edit .cz-w > a { cursor: grab; -webkit-user-drag: none; }
.cz-edit .cz-grid { -webkit-user-select: none; user-select: none; }
.cz-edit .cz-w > a:hover { transform: none; }
.cz-edit .cz-w.drag { cursor: grabbing; z-index: 2; outline: 2px solid var(--sun-stroke); background: var(--surface); box-shadow: 0 14px 26px -12px rgb(0 0 0 / .5); transform: scale(1.03); }
.cz-edit .cz-w.cz-g.drag { transform: none; }
.cz-edit .cz-w .ring, .cz-edit .cz-w .wi { display: none; }
.cz-edit .cz-w .l { padding-left: 4px; padding-right: 26px; }
.cz-edit .cz-w.a-taille .l { padding-right: 58px; }
.cz-edit .cz-gc { pointer-events: none; opacity: .5; }
.cz-edit .cz-g .cz-gc { padding-top: 22px; }
.cz-x, .cz-t { position: absolute; z-index: 3; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.cz-x { top: -18px; left: -18px; }
.cz-x span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
.cz-x .cz-i { width: 14px; height: 14px; stroke-width: 2.6; }
.cz-x:hover span { background: #c43c52; color: #fff; }
.cz-t { top: -6px; right: 22px; color: var(--sun-ink); }
.cz-t .cz-i { width: 17px; height: 17px; }
.cz-t:hover { background: rgb(var(--fg-rgb) / .08); }
.cz-p { position: absolute; top: -6px; right: -8px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); touch-action: none; cursor: grab; }
.cz-p .cz-i { width: 18px; height: 18px; }
.cz-add { grid-column: span 4; min-height: 78px; border: 1.5px dashed rgb(var(--fg-rgb) / .3); border-radius: 14px; background: none; color: var(--sun-ink); font: inherit; font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.cz-add .cz-i { width: 22px; height: 22px; }
.cz-add:hover, .cz-add[aria-expanded="true"] { background: rgb(var(--fg-rgb) / .05); border-style: solid; }
.cz-outils { position: relative; }
.cz-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cz-note b { color: var(--ink-2); font-weight: 500; }
.cz-note.err { color: var(--t-bad); }
.cz-choix { margin-top: 12px; padding: 4px 14px 10px; border-radius: 16px; background: rgb(var(--fg-rgb) / .05); }
.cz-choix h4 { margin: 12px 0 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cz-vide { margin: 4px 0 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cz-vide .cz-b { margin-left: 6px; vertical-align: middle; }
.cz-l { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgb(var(--fg-rgb) / .08); }
.cz-choix h4 + .cz-l { border-top: 0; }
#nowCompose .cz-l > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.cz-l .n { flex: 1; min-width: 0; }
.cz-l .n b { display: block; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-l .n small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-l .deux { display: flex; gap: 6px; }
.cz-b { min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid rgb(var(--fg-rgb) / .2); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.cz-b .cz-i, .cz-b .of-mini { width: 15px; height: 15px; }
.cz-b:hover { border-color: var(--sun-stroke); color: var(--sun-ink); }
.cz-blocs { margin-top: 16px; padding-top: 2px; border-top: 1px solid rgb(var(--fg-rgb) / .08); }
.cz-blocs h4 { margin: 14px 0 2px; font-size: 15px; font-weight: 600; }
.cz-sw { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgb(var(--fg-rgb) / .08); }
.cz-blocs h4 + .cz-sw { border-top: 0; }
.cz-sw .n { flex: 1; min-width: 0; }
.cz-sw .n b { display: block; font-size: 14.5px; font-weight: 500; }
.cz-sw .n small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cz-raz { margin-top: 12px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid rgb(var(--fg-rgb) / .18); background: none; color: var(--ink-2); font: inherit; font-size: 13.5px; cursor: pointer; }
.cz-raz:hover { color: var(--ink); border-color: rgb(var(--fg-rgb) / .4); }
.cz-raz:disabled { opacity: .4; cursor: default; }
.cz-toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 8px 22px -8px rgb(0 0 0 / .5); z-index: 5; transform: translate(-50%, 8px); padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.cz-toast.on { opacity: 1; transform: translate(-50%, 0); }
.now2 :is(.cz-bt, .cz-x, .cz-t, .cz-add, .cz-b, .cz-raz, .cz-w, .cz-w > a, .cz-gh, .cz-fx button):focus-visible { outline: 2px solid var(--sun-stroke); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cz-toast { transition: none; } .cz-edit .cz-w.drag { transform: none; } }
/* La fiche d'une case ouverte seule par une app : plein écran, sans la page derrière. */
.solo-fiche .lc-pop { padding: 0; background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; align-items: stretch; }
.solo-fiche .lc-pop > * { max-width: none; width: 100%; max-height: none; border-radius: 0; }
.now2 .nh h2, .now2 .nh .wx { white-space: nowrap; }
@media (max-width: 420px) { .now2 .nh .wx { padding: 5px 9px; gap: 4px; } .now2 .nh-r { gap: 4px; } }

.fc-dialog{width:min(430px,calc(100% - 24px));max-height:85dvh;overflow:auto}
.fiche-connectee header,.fc-production,.fc-ligne{display:flex;align-items:center;gap:10px}
.fiche-connectee header{margin-bottom:16px;position:static}
.fiche-connectee h2{flex:1;margin:0;font-size:20px}
.fiche-connectee header button{display:grid;place-items:center;background:none;color:var(--ink);border:1px solid var(--line-2);border-radius:50%;min-width:40px;height:40px;cursor:pointer;font-size:22px}
.fiche-connectee header svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
.fc-production{justify-content:space-between;background:var(--surface-2,var(--bg));padding:16px;border-radius:14px;margin:12px 0}
.fc-production strong{display:block;font-size:38px;line-height:1.2}
.fc-production svg{width:32%;height:100px}
.fc-ligne{justify-content:space-between;padding:12px 0;border-top:1px solid var(--line-2)}
/* ── Les widgets de l'accueil (accueil.js, « Les widgets ») : sous les cases, chacun en grand
   format, avec le même mode Modifier que les cases (.cz-edit .cz-w). ── */
.now2 .wg-zone { margin-top: 16px; gap: 10px; }
.now2 .wg-zone[hidden] { display: none; }
.wg-zone .wg { grid-column: 1 / -1; }
.wg-zone .wg[hidden] { display: none; }
.wg-zone .wg.dk-now { margin-top: 0; }
.wg-zone .wg .days { margin-top: 0; }
.wg-zone .wg-courbe .cz-gc, .wg-zone .wg-app .cz-gc, .wg-zone .wg-vide .cz-gc { padding: 12px 14px 14px; border-radius: 16px; background: rgb(var(--fg-rgb) / .04); border: 1px solid rgb(var(--fg-rgb) / .08); }
.cz-edit .wg-zone .wg-courbe .cz-gc, .cz-edit .wg-zone .wg-app .cz-gc, .cz-edit .wg-zone .wg-vide .cz-gc { padding-top: 24px; }
.wg-courbe .dh { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.wg-courbe .dh small { text-transform: none; letter-spacing: 0; margin-left: 4px; }
.wg-lp, .wg-lc { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin: 0 4px 2px 8px; background: #fab219; }
.wg-lc { background: #a796f5; }
.wg-dayc { position: relative; height: 72px; }
.wg-dayc svg { display: block; width: 100%; height: 56px; }
.wg-ap { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.wg-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); }
.wg-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wg-n { flex: 1; min-width: 0; }
.wg-n b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-n small { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-v { text-align: right; }
.wg-v b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.wg-v b small { font-size: 14px; letter-spacing: 0; }
.wg-v > small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.wg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.wg-chips span { border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); background: rgb(var(--fg-rgb) / .06); }
.wg-chips b { color: var(--ink); font-weight: 600; }
.wg-chips .wg-fi { margin-left: auto; background: none; padding-right: 2px; }
.wg-att { margin: 0; font-size: 13px; color: var(--muted); }
.wg-zone .wg-add { grid-column: 1 / -1; min-height: 56px; }
.wg-rien { grid-column: 1 / -1; margin: 0; }
#wgHold { display: none; }
.wg-dayc .hx { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }
.wg-dayc .lc-off { margin: 0; font-size: 13px; color: var(--muted); }

/* Réglages, la liste : chaque entrée est la même carte (pastille, titre, détail, chevron).
   Une entrée repliable s'ouvre dans sa propre carte : ses lignes y sont séparées d'un filet,
   sans carte dans la carte ni retrait. Chevron bas = se déplie ici, chevron droit = ouvre une page. */
.rg-main > :is(.rg-li, .rg-list, .rg-fold), .rg-main > .rg-project-row > .rg-li { border-radius: 20px; background: var(--surface); }
.rg-main > :is(.rg-li, .rg-list, .rg-fold, .rg-project-row) { margin: 0 0 12px; }
.rg-main > .rg-project-row { gap: 12px; }
.rg-main > .rg-li, .rg-main > .rg-list > .rg-li, .rg-main > .rg-project-row > .rg-li, .rg-main .rg-fold > summary { min-height: 68px; padding: 12px 16px; }
.rg-main > .rg-li .t b, .rg-main > .rg-list > .rg-li .t b, .rg-main > .rg-project-row > .rg-li .t b, .rg-main .rg-fold > summary .t b { font-size: 16px; line-height: 22px; font-weight: 600; }
.rg-main > a.rg-li:hover, .rg-main > .rg-project-row > .rg-li:hover { background: var(--rg-hover); }
.rg-main .rg-dossier-lock { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(242, 181, 51, 0.16); }
.rg-main .rg-dossier-lock svg { width: 18px; height: 18px; }
.rg-main .rg-dossier[data-etat="valide"] .rg-dossier-lock { background: rgba(69, 201, 107, 0.16); }
/* Mes pièces verrouillé : une vraie carte, estompée, avec son cadenas. */
.rg-main > button.rg-li:disabled { opacity: 1; background: var(--surface); color: var(--muted); }
.rg-main > button.rg-li:disabled > svg { flex: none; margin-right: 1px; }

.rg-main > .rg-fold { overflow: hidden; }
.rg-main .rg-fold > summary { background: none; border-radius: 0; }
.rg-main .rg-fold > summary:hover { background: rgb(var(--fg-rgb) / .035); }
.rg-main .rg-fold > summary:focus-visible { outline-offset: -2px; border-radius: 20px; }
.rg-main .rg-fold > summary .rg-chev { transform: rotate(135deg); margin: -5px 6px 0 0; }
.rg-main .rg-fold[open] > summary .rg-chev { transform: rotate(-45deg); margin-top: 5px; }
.rg-main > .rg-fold[open] > summary { box-shadow: inset 0 -1px var(--rg-sep); }

/* Appareils connectés : les tuiles en creux dans la carte, la source du réseau en dernière ligne. */
.rg-main .rg-fold .rg-add-row { padding: 14px 16px 12px; }
.rg-main .rg-fold .rg-a { font-size: 15px; font-weight: 600; }
.rg-main .rg-fold .rg-devs { margin: 0 16px 16px; }
.rg-main .rg-fold .rg-dev { border-radius: 16px; background: rgb(var(--fg-rgb) / .045); }
.rg-main .rg-fold .rg-dev:hover { background: rgb(var(--fg-rgb) / .075); }
.rg-main .rg-fold .rg-msg { margin: 0 16px 12px; }
.rg-main .rg-fold .rg-reseau { margin: 0; border-radius: 0; background: none; box-shadow: inset 0 1px var(--rg-sep); }
.rg-main .rg-fold .rg-reseau .rg-li { padding: 14px 16px; }

/* Affichage : deux groupes dépliables puis le lien vers la page complète. */
#rgInlineAff { margin: 0; }
#rgInlineAff .rg-fold { margin: 0; }
#rgInlineAff .rg-fold + .rg-fold { box-shadow: inset 0 1px var(--rg-sep); }
#rgInlineAff .rg-fold > summary { min-height: 60px; }
#rgInlineAff .rg-fold[open] { background: rgb(var(--fg-rgb) / .028); }
#rgInlineAff .aff-bloc { margin: 0 16px; padding: 12px 0 14px; border-radius: 0; background: none; box-shadow: inset 0 1px var(--rg-sep); }
#rgInlineAff .aff-bloc > .rg-li { min-height: 44px; padding: 0; }
#rgInlineAff .aff-bloc > .rg-li:hover { background: none; }
#rgInlineAff .aff-bloc > .rg-li .t b { font-weight: 600; }
.rg-fold-lien { border-radius: 0; background: none; box-shadow: inset 0 1px var(--rg-sep); }
.rg-fold-lien .rg-li { min-height: 60px; padding: 12px 16px; }
.rg-fold-lien .rg-li .t b { font-size: 16px; font-weight: 600; color: var(--sun-ink); }
/* Mon compte : la carte du code ambassadeur. */
.of-amb { margin-top: 16px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(143,124,240,.45);
  background: linear-gradient(135deg, rgba(143,124,240,.16), rgba(242,181,51,.08)); }
.of-amb h4 { margin: 0; font-size: 15px; }
.of-amb-code { display: block; margin: 6px 0 4px; font-size: 24px; letter-spacing: .06em; color: var(--sun, #f2b533); }
.of-amb p { margin: 4px 0; font-size: 13px; color: var(--ink-2); }

/* La fiche d'une borne V2C : son état du moment, au-dessus de la courbe. */
.ap-borne { display:flex; flex-wrap:wrap; gap:6px 14px; align-items:baseline; margin:0 0 14px; padding:12px 14px; border-radius:14px; border:1px solid rgb(var(--fg-rgb) / .1); background:rgb(var(--fg-rgb) / .04); font-variant-numeric:tabular-nums; }
.ap-borne.charge { border-color:color-mix(in srgb, var(--t-blue) 45%, transparent); background:color-mix(in srgb, var(--t-blue) 10%, transparent); }
.ap-borne.charge b { color:var(--t-blue); }
.ap-borne small { flex-basis:100%; color:var(--muted); }

/* La borne V2C sur la scène, à la place de la voiture quand aucune n'est reliée. */
.scene-voiture .borne-picto, .mp-voiture-pin .borne-picto { display:none; }
.scene-voiture.scene-borne.voiture-bulle .borne-picto, .mp-voiture.borne .mp-voiture-pin .borne-picto { display:block; }
.scene-voiture.scene-borne.voiture-bulle .voiture-picto, .mp-voiture.borne .mp-voiture-pin .voiture-picto { display:none; }
.scene-voiture.scene-borne.voiture-charge .borne-picto { stroke:var(--exp); }
.mp-voiture.borne .mp-vmodes { display:none; }

/* Les commandes de la borne V2C, sous son état dans la fiche. */
.ap-cmd { margin:0 0 14px; padding:14px; border-radius:14px; border:1px solid rgb(var(--fg-rgb) / .14); display:grid; gap:12px; }
.ap-cmd h4 { margin:0; font-size:11.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); font-weight:600; }
.ap-cmd p { margin:0; color:var(--muted); font-size:13.5px; }
.ap-cmd p b { color:var(--ink); }
.ap-cmd > button.go, .ap-cmd > button.ghost { width:100%; min-height:46px; font-size:16px; }
.ap-cmd-accord { display:flex; gap:10px; align-items:flex-start; font-size:13.5px; cursor:pointer; }
.ap-cmd-accord input { margin-top:3px; width:18px; height:18px; flex:none; accent-color:var(--t-blue); }
.ap-cmd-rang { display:grid; gap:6px; }
.ap-cmd-rang > div:first-child { display:flex; justify-content:space-between; align-items:baseline; }
.ap-cmd-rang > div:first-child span { color:var(--muted); font-size:13.5px; }
.ap-cmd-rang b { font-size:18px; font-variant-numeric:tabular-nums; }
.ap-cmd-rang b small { font-weight:400; color:var(--muted); font-size:13px; }
.ap-cmd-rang input[type=range] { width:100%; height:32px; accent-color:var(--t-blue); }
.ap-cmd-ech { display:flex; justify-content:space-between; color:var(--muted); font-size:11.5px; }
.ap-cmd-conf { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding:10px 12px; border-radius:12px; background:rgb(var(--fg-rgb) / .05); }
.ap-cmd-conf span { flex:1 1 180px; font-size:14px; }
.ap-cmd-conf button { min-height:40px; }
.ap-cmd-modes { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; padding:4px; border-radius:12px; background:rgb(var(--fg-rgb) / .06); }
.ap-cmd-modes button { font:inherit; text-align:center; justify-content:center; font-size:13px; min-height:40px; padding:6px 4px; border:0; border-radius:9px; background:transparent; color:var(--muted); cursor:pointer; }
.ap-cmd-modes button[aria-pressed=true] { background:var(--card, rgb(var(--fg-rgb) / .1)); color:var(--ink); font-weight:600; box-shadow:0 0 0 1px var(--t-blue) inset; }
.ap-cmd-modes button:disabled, .ap-cmd-rang input:disabled { opacity:.5; }
.ap-cmd-modes button:focus-visible, .ap-cmd-retirer:focus-visible { outline:2px solid var(--sun); outline-offset:2px; }
.ap-cmd-retour { display:flex; gap:8px; align-items:baseline; min-height:20px; font-size:13px; }
.ap-cmd-retour i { width:8px; height:8px; border-radius:50%; flex:none; background:var(--muted); }
.ap-cmd-retour.envoi i { background:var(--sun); animation:ap-cmd-envoi 1s infinite; }
.ap-cmd-retour.ok i { background:var(--exp); }
.ap-cmd-retour.attente i { background:var(--sun); }
.ap-cmd-retour.ko { color:var(--imp); } .ap-cmd-retour.ko i { background:var(--imp); }
.ap-cmd-retirer { justify-self:start; font:inherit; font-size:12.5px; color:var(--muted); background:none; border:0; padding:6px 0; text-decoration:underline; cursor:pointer; }
@keyframes ap-cmd-envoi { 50% { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .ap-cmd-retour.envoi i { animation:none; } }

/* La fiche d'une batterie ou d'un kit depuis Appareils : puces des appareils, totaux, graphique. */
.bat-puces { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 12px; }
.bat-puces button { min-height:36px; padding:6px 14px; border-radius:99px; border:1px solid rgb(var(--fg-rgb) / .16); background:none; color:var(--ink-2); font:inherit; font-size:13.5px; cursor:pointer; }
.bat-puces button[aria-selected="true"] { background:var(--ink); color:var(--surface); border-color:var(--ink); font-weight:600; }
.bat-tot { display:flex; flex-wrap:wrap; gap:6px 18px; margin:12px 0 4px; font-size:13.5px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.bat-tot span { display:inline-flex; align-items:center; gap:6px; }
.bat-tot span::before { content:""; width:10px; height:10px; border-radius:3px; background:var(--c); }
.bat-tot span.soc::before { width:16px; height:2px; border-radius:0; background:var(--ink); }
.bat-tot b { color:var(--ink); }
.bat-g { display:block; width:100%; height:auto; }
.bat-g text { fill:var(--muted); font-size:10px; }
.bat-g .bat-axe { stroke:rgb(var(--fg-rgb) / .18); }
.bat-g .bat-soc { fill:none; stroke:var(--ink); stroke-width:1.6; stroke-linejoin:round; }

/* Édition des objets de la parcelle Pro, dans la même carte sur les trois plateformes. */
#sim .mp3 {grid-column:1/-1;padding:14px 16px;border:1px solid var(--line,#aaa6);border-radius:14px;margin:12px 0;background:var(--surface);color:inherit}
#sim .mp3[hidden],#sim .mp3-hint[hidden],#sim .mp3-cursor[hidden],:is(#sim,#pjDraftSim) .mp3-stepper[hidden]{display:none}
#sim .mp3 h3,#sim .mp3 p{margin:0}#sim .mp3 p{margin:5px 0 9px}
#sim .mp3-head,#sim .mp3-actions,#sim .mp3-tools,#sim .mp3-choices,#sim .mp3-save{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#sim .mp3-head,#sim .mp3-tools{justify-content:space-between}#sim .mp3-head span,#sim .mp3-note,#sim .mp3-status{font-size:.85rem}
#sim .mp3 fieldset{border:0;min-width:0;margin:0;padding:0}#sim .mp3 select,#sim .mp3 button{font:inherit;font-size:.9rem;border:1px solid var(--line,#aaa6);border-radius:9px;color:inherit;background:var(--surface);padding:7px 12px;min-height:40px}
#sim .mp3 button{cursor:pointer}#sim .mp3 button:disabled{opacity:.48;cursor:default}#sim .mp3 [data-mp=edit],#sim .mp3 [data-mp=save],#sim .mp3 [aria-pressed=true]{background:#f2b533;color:#261b09;border-color:#cc9025;font-weight:600}
#sim .mp3-choices,#sim .mp3-actions,#sim .mp3-tools,#sim .mp3-save{margin:8px 0}#sim .mp3-tools{border-top:1px solid var(--line,#aaa6);padding-top:8px}#sim .mp3-save{justify-content:flex-end}
#sim .mp3 label{display:inline-flex;align-items:center;gap:5px}#sim .mp3-hint,#sim .mp3-cursor{position:absolute;pointer-events:none;z-index:5}#sim .mp3-hint{left:50%;top:9px;transform:translateX(-50%);padding:5px 11px;border-radius:12px;background:#fff9e8;color:#4b3715;width:max-content;max-width:85%;text-align:center;font-size:.83rem}#sim .mp3-cursor{width:14px;height:14px;border:2px solid #ffbf42;outline:1px solid #251d10;border-radius:50%;transform:translate(-50%,-50%)}
#sim.mrp-editing .mp3,#sim.mp3-editing .mf-pins,#sim.mp3-editing .mf-sun-ray,#sim.mp3-editing .blender-badge,#sim.mp3-editing .mrp-panel{display:none}#sim.mp3-editing canvas{cursor:crosshair}

#sim .mp3-bar {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#sim .mp3-bar [data-mp=save] {margin-inline-start:auto}
#sim .mp3 .mp3-actions {border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
:is(#sim,#pjDraftSim) .mp3-stepper {position:absolute;z-index:7;transform:translateX(-50%);display:flex;align-items:center;padding:2px;gap:2px;border:1px solid #66502d;border-radius:15px;background:#28241e;box-shadow:0 2px 8px #0005}
:is(#sim,#pjDraftSim) .mp3-stepper button {display:grid;place-items:center;width:46px;height:44px;padding:0;border:0;border-radius:11px;background:transparent;color:white;font-family:inherit;font-weight:600;font-size:24px;line-height:1;cursor:pointer;touch-action:manipulation}
:is(#sim,#pjDraftSim) .mp3-stepper [data-mp=plus] {background:#f2b533;color:#261b09}
:is(#sim,#pjDraftSim) .mp3-stepper button:focus-visible {outline:2px solid white;outline-offset:-3px}
:is(#sim,#pjDraftSim) .mp3-stepper {right:10px;bottom:10px;transform:none}
:is(#sim.mp3-editing,#pjDraftSim.pj-direct) .s3-zoom {top:12px;bottom:auto}
:is(#sim,#pjDraftSim) .mp3-directions {position:absolute;inset:0;z-index:6;pointer-events:none}
:is(#sim,#pjDraftSim) .mp3-directions [hidden],:is(#sim,#pjDraftSim) .mp3-directions[hidden] {display:none}
:is(#sim,#pjDraftSim) .mp3-directions button {position:absolute;transform:translate(-50%,-50%);width:48px;height:48px;min-width:0;padding:0;border:0;background:transparent;display:grid;place-items:center;pointer-events:auto;touch-action:manipulation}
.mp3-directions button svg {box-sizing:border-box;width:30px;height:30px;padding:4px;border-radius:50%;border:1.5px solid #fff1cf;background:#25251f;color:white;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.mp3-directions button[aria-pressed=true] svg {border:2px solid #332a16;background:#f2bf58;color:#2a200f}
.mp3-directions button:focus-visible svg {outline:2px solid white;outline-offset:2px}
.mp3-rotation {position:absolute;inset:0;z-index:8;pointer-events:none}
.mp3-rotation[hidden] {display:none}
.mp3-rapporteur {position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#fff1c2;stroke-width:2;filter:drop-shadow(0 1px 1px #382711)}
.mp3-graduations {display:none}
.mp3-tourne .mp3-graduations {display:block}
:is(#sim,#pjDraftSim) .mp3-coin {position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);width:46px;height:46px;padding:0;border:0;min-width:0;background:transparent;pointer-events:auto;touch-action:none;cursor:grab;user-select:none}
.mp3-coin svg {width:32px;height:32px;box-sizing:border-box;padding:6px;background:#f2bf58;color:#251f14;border:2px solid #32291b;border-radius:50%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mp3-coin span {position:absolute;left:calc(100% - 4px);font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;font-size:13px;background:#28241e;color:#ffdf8f;border-radius:6px;padding:1px 5px;pointer-events:none}
.mp3-coin span.mp3-badge-gauche {left:auto;right:calc(100% - 4px)}
.mp3-tourne .mp3-coin {cursor:grabbing}
.mp3-angle {display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:8px 0;color:var(--ink)}
.mp3-angle[hidden] {display:none}
.mp3-angle label {display:grid;grid-template-columns:1fr auto;gap:0 12px;align-items:center;width:min(260px,100%);font:inherit}
.mp3-angle input {grid-column:1/-1;width:100%;margin:0;min-height:32px;padding:0;accent-color:var(--gold,#e5af40);touch-action:pan-y;cursor:pointer}
.mp3-angle output {font-variant-numeric:tabular-nums;font-weight:600}
.mp3-angle button {min-height:40px}
#pjDraftSim .mp3-angle {margin:8px 16px 14px}
.mp3-empreinte {position:absolute;inset:0;width:100%;height:100%}
.mp3-empreinte polygon {fill:#ffe6a1;fill-opacity:.3;stroke:#332512;stroke-width:3;stroke-linejoin:round}
.mp3-empreinte polygon+polygon {fill:none;stroke:#ffe4a1;stroke-width:2;stroke-dasharray:5 4}
:is(#sim,#pjDraftSim) .mp3-stepper :disabled {opacity:.45;cursor:default}
#sim.mp3-editing canvas {touch-action:none}
#sim.mp3-dragging canvas {cursor:grabbing}
#sim.mp3-editing .s3-hint {display:none}

#pjDraftNumber {-moz-appearance:textfield;appearance:textfield}
#pjDraftNumber::-webkit-inner-spin-button,#pjDraftNumber::-webkit-outer-spin-button {-webkit-appearance:none;margin:0}
#pjDraftSim.pj-direct {isolation:isolate}
#pjDraftSim.pj-direct canvas {touch-action:none}
#pjDraftSim .mp3-stepper :disabled {opacity:.45;cursor:default}
/* La carte « IA · Prévision » de la fenêtre Batterie de l’accueil (HE.batterieBas). */
.pop-bfc { display: block; text-decoration: none; color: inherit; margin-top: 16px; padding: 14px 16px 12px; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(143, 124, 240, 0.10), rgba(63, 198, 217, 0.05) 60%, transparent) padding-box, linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(120deg, #8f7cf066, #3fc6d955, #8f7cf066) border-box; }
.pop-bfc .pb-k { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pop-bfc .ia-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; letter-spacing: 0; text-transform: none; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pop-bfc .ia-k svg { width: 13px; height: 13px; color: var(--t-ia); }
.pop-bfc .lk { display: inline-flex; margin-left: auto; color: var(--muted); }
.pop-bfc .lk svg { width: 15px; height: 15px; }
.pb-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: 8px; }
.pb-main small { display: block; font-size: 13px; color: var(--ink-2); }
.pb-main .pb-d { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--t-ia); font-variant-numeric: tabular-nums; }
.pb-ext { display: grid; text-align: right; }
.pb-ext span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pb-ext b { font-size: 20px; font-weight: 500; color: var(--t-ia); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pb-ext i { font-style: normal; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pb-g { position: relative; height: 62px; margin-top: 10px; }
.pb-g svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pb-g .dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--t-ia); box-shadow: 0 0 0 3px rgb(143 124 240 / .25); }
.pb-g .cut { position: absolute; left: 0; font-size: 10px; color: var(--imp); transform: translateY(-115%); }
.pb-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pb-s { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.pop-bfc.lock .pb-q { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin-top: 8px; background: var(--grad-ia-txt); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pop-bfc.lock p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.pop-bfc.lock button { margin-top: 12px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; }
.pop-bfc > .pb-s:nth-child(2) { color: var(--muted); }
a.pop-bfc:focus-visible { outline: 2px solid var(--t-ia); outline-offset: 2px; }

/* Un seul repère sous la salutation, avec une cible tactile sur toute la ligne. */
/* La bulle du tarif : à gauche des bulles de la carte, un point selon la période. */
.tarif-pill{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;color:var(--ink-2);white-space:nowrap;cursor:pointer;padding:4px 11px 4px 9px;border-radius:999px;border:1px solid var(--line-2);background:rgb(var(--fg-rgb) / .039);position:relative;z-index:2}
.tarif-pill:hover{color:var(--ink)}
.tarif-pill:focus-visible{outline:2px solid var(--sun);outline-offset:2px}
.tarif-pill i{width:7px;height:7px;border-radius:50%;background:var(--sun);flex:none}
.tarif-pill[data-teinte=hc] i{background:#3f9c6b}
.tarif-pill[data-teinte=bleu] i{background:#3d6fd8}
.tarif-pill[data-teinte=blanc] i{background:#fff;box-shadow:inset 0 0 0 1.5px #9a968e}
.tarif-pill[data-teinte=attente] i{background:var(--muted)}
.tarif-pill[data-teinte=veille],.tarif-pill[data-teinte=rouge]{color:#d9534a;border-color:#e96769aa}
.tarif-pill[data-teinte=rouge]{background:#e967691f}
.tarif-pill[data-teinte=veille] i,.tarif-pill[data-teinte=rouge] i{background:#e96769}
.tarif-pill[hidden],#tarifDlg [hidden]{display:none}
.flowp.avec-tarif{flex-wrap:wrap;justify-content:flex-end}
@media (max-width:480px){.flowp.avec-tarif .mp-pill span{display:none}.flowp.avec-tarif .tarif-pill{margin-right:auto}}
.tarif-statut,.tarif-pref{display:flex;align-items:center;gap:10px;min-height:48px}
#tarifDlg .tarif-pref{font-size:.9rem;color:var(--ink);line-height:1.4}
.tarif-statut img{object-fit:contain}
#tarifEmail{appearance:none;box-sizing:border-box;padding:0;margin:0;flex:none;width:40px;height:24px;border:1px solid var(--muted);border-radius:12px;background:#686762;cursor:pointer}
#tarifEmail::before{display:block;content:"";width:16px;height:16px;border-radius:50%;margin:3px;background:white}
#tarifEmail:checked{background:#735717}
#tarifEmail:checked::before{transform:translateX(16px)}
#tarifEmail:disabled{opacity:.6}
#tarifCorps p{margin:.55em 0 1em}#tarifCorps h4{margin:1em 0 .5em}#tarifConseils summary{cursor:pointer}
#tarifMois{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
#tarifMois span,.tarif-legende span{padding:4px;border-radius:4px}.tarif-legende{font-size:.8rem}
.tarif-bleu{background:#214e6d;color:white}.tarif-blanc{background:#e4e0d4;color:#201f18}.tarif-rouge{background:#9b3742;color:white}.tarif-attente{background:#494843;color:#fff}#tarifMois [aria-current]{outline:2px solid #d3982c;outline-offset:-2px;font-weight:700}

.solo-tarif #tarifDlg{width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;margin:0;box-sizing:border-box;background:var(--bg)}
.solo-tarif #tarifDlg::backdrop{background:var(--bg)}
.solo-tarif #tarifFermer{display:none}
#tarifSurAccueil .ciel-sw b{display:block;font-weight:600}
#tarifSurAccueil .ciel-sw small{display:block;font-size:13px;line-height:18px;color:var(--muted);font-weight:400}

/* ── Pilotage des prises (pilotage.js) : l'interrupteur et la pastille dans la liste
   Appareils, les cartes de la fiche d'un appareil. ── */
.ea-list.pl .ea-row { grid-template-columns: 10px minmax(0, 1fr) minmax(60px, 120px) auto 51px 10px; }
.ea-list.pl .ea-row:has(.ea-av) { grid-template-columns: 34px minmax(0, 1fr) minmax(60px, 120px) auto 51px 10px; }
@media (max-width: 650px) {
  .ea-list.pl .ea-row { grid-template-columns: 10px minmax(0, 1fr) auto 51px 10px; gap: 10px; }
  .ea-list.pl .ea-row:has(.ea-av) { grid-template-columns: 34px minmax(0, 1fr) auto 51px 10px; }
}
/* Le rail de l'interrupteur éteint : celui des Réglages, que ces écrans n'héritent pas. */
.ea-list.pl, .pl-fiche { --rg-track: #3a3a38; }
:root[data-mode="jour"] .ea-list.pl, :root[data-mode="jour"] .pl-fiche { --rg-track: #d9d5cb; }
/* L'interrupteur, à côté de la ligne (un bouton ne peut pas en contenir un autre), posé
   sur la colonne que la ligne lui réserve : 10 px de chevron et la gouttière à sa droite. */
.pl-rang { position: relative; }
.pl-rang > .pl-sw { position: absolute; right: 22px; top: calc(50% - 15.5px); }
@media (max-width: 650px) { .pl-rang > .pl-sw { right: 20px; } }
.pl-sw[aria-busy="true"] { opacity: .7; cursor: progress; }
.ea-st.pl-auto { background: rgb(var(--fg-rgb) / .06); color: var(--ink-2); }
.ea-st.pl-auto.surplus { background: color-mix(in srgb, var(--sun-ink) 16%, transparent); color: var(--t-sun); }
.ea-st.pl-auto.horaires, .ea-st.pl-auto.minuterie { background: color-mix(in srgb, var(--t-blue) 16%, transparent); color: var(--t-blue); }
.ea-st.pl-auto svg, .pl-soleil svg { width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* Une pastille de plus sous le nom : elle passe à la ligne plutôt que de couper le nom. */
.ea-list.pl .ea-nm { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.ea-list.pl .ea-nm b { flex: 0 0 100%; }
.ea-list.pl .ea-nm .ea-st { margin-left: 0; }

.pl-fiche:empty { display: none; }
.pl-fiche { display: grid; gap: 12px; margin: 0 0 18px; }
.pl-fiche .of-lock { margin: 0; }
.ap-c + .pl-fiche, .ap-borne + .pl-fiche { margin: 18px 0 0; }
.pl-card { padding: 14px 16px 6px; border-radius: 16px; border: 1px solid rgb(var(--fg-rgb) / .1); background: rgb(var(--fg-rgb) / .035); }
.pl-card h4 { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.pl-top > div { min-width: 0; }
.pl-w { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pl-top small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.pl-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 3px; margin: 0 0 10px; border-radius: 12px; background: var(--track); }
.pl-seg button { min-height: 40px; padding: 8px 4px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; color: var(--muted); justify-content: center; text-align: center; }
.pl-seg button:hover { background: none; color: var(--ink-2); }
.pl-seg button[aria-selected="true"] { background: color-mix(in srgb, var(--sun-ink) 18%, var(--surface)); color: var(--ink); font-weight: 500; }
.pl-seg button:focus-visible, .pl-btn:focus-visible, .pl-lien:focus-visible, .pl-jours button:focus-visible, .pl-x:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.pl-txt { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pl-note { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pl-soleil { margin: 0 0 6px; font-size: 13.5px; color: var(--t-sun); }
.pl-msg { margin: 0 0 10px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--t-bad); }
.pl-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); }
.pl-card h4 + .pl-li { border-top: 0; }
.pl-li .t { min-width: 0; }
.pl-li .t b { display: block; font-weight: 500; font-size: 14.5px; }
.pl-li .t small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.pl-sel { flex: none; width: auto; max-width: 52%; min-height: 40px; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.pl-plage { padding: 10px 0; border-top: 1px solid var(--line); }
.pl-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-h label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.pl-h input[type="time"] { width: auto; min-height: 40px; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.pl-x { margin-left: auto; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 20px; line-height: 1; justify-content: center; }
.pl-jours { display: flex; gap: 6px; margin-top: 8px; }
.pl-jours button { flex: 1 1 0; max-width: 44px; min-height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: none; font: inherit; font-size: 13px; color: var(--muted); justify-content: center; }
.pl-jours button[aria-pressed="true"] { border-color: transparent; background: color-mix(in srgb, var(--t-blue) 22%, transparent); color: var(--ink); font-weight: 500; }
.pl-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pl-btn { min-height: 42px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: none; font: inherit; font-size: 14px; color: var(--ink); justify-content: center; }
.pl-btn.go { border-color: transparent; background: var(--sun-ink); color: #1a1405; font-weight: 600; }
:root[data-mode="jour"] .pl-btn.go { color: #fff; }
.pl-btn.go:hover { background: var(--sun-ink); filter: brightness(1.06); }
.pl-btn:disabled, .pl-lien:disabled { opacity: .5; cursor: default; }
.pl-card > .pl-btn { margin: 0 0 10px; }
.pl-coche { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; cursor: pointer; }
.pl-coche input { flex: none; width: 20px; height: 20px; padding: 0; accent-color: var(--sun-ink); }
.pb-24 { position: relative; height: 10px; margin: 4px 0; border-radius: 99px; background: var(--track); overflow: hidden; }
.pb-24 i { position: absolute; top: 0; bottom: 0; }
.pb-24 i.charge { background: var(--t-blue); }
.pb-24 i.decharge { background: var(--t-ok); }
.pb-h24 { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11.5px; color: var(--muted); }
[data-pb-fiche] .pl-h { flex-wrap: nowrap; gap: 8px; }
[data-pb-fiche] .pl-h label { min-width: 0; }
[data-pb-fiche] .pl-h input[type="time"] { min-width: 0; padding: 6px; }
[data-pb-fiche] .pl-x { margin-left: auto; flex: none; }
.pb-quoi .pl-sel { min-width: 0; flex: 1 1 auto; }
.pb-quoi { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pl-journal { list-style: none; margin: 0; padding: 0 0 6px; }
.pl-journal li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.pl-journal li:first-child { border-top: 0; }
.pl-journal time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-journal li.rate span { color: var(--t-bad); }
.pl-pied { margin: 0; font-size: 13px; color: var(--muted); }
.pl-lien { display: inline; min-height: 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.pl-lien:hover { background: none; color: var(--ink); }
@media (max-width: 480px) { .pl-seg button { padding: 8px 2px; font-size: 13px; white-space: nowrap; } }

.pb-lu{font-weight:600;white-space:nowrap}

.bh-serie{margin:0 0 10px;font-size:13px;opacity:.7;user-select:all}

.pb-main{color:inherit;opacity:1}.pb-main b{color:#3fbf6b;font-weight:400;margin-right:4px}
