:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#183431;background:#f5f7f3}*{box-sizing:border-box}body{margin:0}.shell{max-width:1050px;margin:auto;padding:28px 20px}header{display:flex;align-items:center;justify-content:space-between;gap:15px}h1{font-size:clamp(36px,6vw,56px);letter-spacing:-2px;margin:4px 0}h1 span{color:#e0a949}h2{font-size:24px}header p,.hint,footer{color:#687c75}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#538176}.store{background:#e5f0e9;padding:13px 18px;border-radius:15px;font-size:12px;color:#527367}.store strong{display:block;color:#173b39;font-size:16px}nav{display:flex;gap:8px;margin:30px 0 26px;overflow:auto}.tab{white-space:nowrap;border:0;border-radius:12px;padding:13px 18px;background:#e9ede7;color:#48635a;font-weight:700}.tab.active,.primary{background:#173b39;color:white}.pane.hidden{display:none}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar input{max-width:300px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:15px}.product{background:white;border:1px solid #e0e8df;border-radius:19px;padding:20px;box-shadow:0 4px 20px #18343108}.product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.product h3{font-size:18px;margin:7px 0}.product small,.cartrow small{color:#73847d;display:block}.pill{white-space:nowrap;background:#e3f2e8;color:#2d7750;border-radius:40px;padding:6px 9px;font-size:11px;font-weight:700}.pill.low{background:#fff0d7;color:#986516}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:20px}.qty{display:flex;align-items:center;gap:14px}.qty button{width:36px;height:36px;border:1px solid #d9e2da;background:#f5f7f3;border-radius:10px;font-size:20px}.qty strong{min-width:15px;text-align:center}.stock-note{font-size:12px;color:#76867f}.product-actions{display:flex;justify-content:space-between;align-items:center;min-height:45px;margin-top:12px}.primary,.secondary,.button{display:inline-block;border:0;border-radius:11px;padding:13px 17px;font-weight:700;text-decoration:none;cursor:pointer}.primary.small{font-size:12px;padding:10px 12px}.secondary{background:#e8eee9;color:#173b39}.link{background:none;border:0;color:#9a7770;cursor:pointer}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}input,select{width:100%;padding:12px;border:1px solid #d5dfd6;border-radius:10px;background:white;font:inherit}form{background:white;border:1px solid #e0e8df;border-radius:18px;padding:24px;max-width:650px;display:grid;gap:17px}label{display:grid;gap:7px;font-size:13px;font-weight:700}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cartrow{display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;padding:16px;border-radius:13px;margin:9px 0}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.empty{padding:30px;background:white;border-radius:15px}footer{font-size:12px;text-align:center;margin:60px 0 15px}@media(max-width:600px){.shell{padding:18px 13px}header{align-items:flex-start}.store{padding:10px;font-size:10px}.store strong{font-size:13px}.toolbar{display:block}.toolbar input{max-width:none;margin-bottom:15px}.three{gap:7px}.three input{padding:8px}.actions>*{width:100%;text-align:center}}

#scan-panel{margin:12px 0;padding:12px;border:1px solid #b5c6c2;border-radius:12px}#scan-reader{max-width:480px;margin:auto}#scan-status{font-size:0.9rem}
/* V1.2 : identification EAN et réapprovisionnement à stock zéro */
.toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.toolbar-actions input{min-width:200px}
.pill.out{background:#fce7e5;color:#a13833}
.auto-label{display:inline-block;font-size:12px;font-weight:700;color:#267353}
.notice{padding:13px 17px;margin:0 0 18px;border:1px solid #9fcbba;border-radius:12px;background:#e9f6f0;color:#173b39;font-weight:650}
.notice[hidden]{display:none}
#scan-panel{max-width:700px;background:#fff;margin:0 0 20px;padding:16px;border:1px solid #b5c6c2;border-radius:16px}
#scan-panel.hidden{display:none}
.scan-header,.manual-scan,.recognize-actions{display:flex;gap:10px;align-items:center}
.scan-header{justify-content:space-between;margin-bottom:12px}
.manual-scan{margin-top:12px}
.manual-scan button,.recognize-actions button{white-space:nowrap}
#scan-reader{width:100%;max-width:520px;margin:auto}
#scan-reader video{border-radius:12px}
@media(max-width:650px){.toolbar-actions{display:grid;grid-template-columns:1fr;width:100%}.toolbar-actions input{max-width:none}.recognize-actions{flex-wrap:wrap}.manual-scan{display:grid;grid-template-columns:1fr auto}.toolbar{display:block}}

/* V1.3 — scan immédiatement visible en haut de l'écran, y compris sur mobile */
body.scan-open{overflow:hidden}
body.scan-open::before{content:"";position:fixed;inset:0;background:rgba(12,35,32,.62);z-index:1000}
#scan-panel{position:fixed;z-index:1001;top:calc(env(safe-area-inset-top,0px) + 8px);left:50%;transform:translateX(-50%);width:calc(100% - 18px);max-width:570px;margin:0;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 18px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 15px 50px #10272438}
#scan-panel .scan-header strong{font-size:1.08rem}
#scan-reader video{max-height:43dvh;border-radius:12px}
#scan-status{margin:8px 0}
#scan-panel .manual-scan{margin-top:8px}
/* L'ensemble de la fiche peut être ouvert, avec un contrôle explicite pour l'accessibilité */
.product{cursor:pointer}
.product:focus-within{outline:2px solid #a0bdad;outline-offset:2px}
.product-title{padding:0;text-align:left;background:transparent;color:inherit;border:0;font-size:inherit;font-weight:inherit;line-height:inherit;cursor:pointer}
.product-title:hover,.edit-link:hover{text-decoration:underline}
.product-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.product-links .link{font-size:12px;padding:8px 2px}
.product-links .edit-link{color:#21614f;font-weight:700}
/* Fiche paramètres de stock » ouverte au clic */
#edit-dialog{border:1px solid #d5e4da;border-radius:20px;width:min(94vw,480px);max-height:calc(100dvh - 30px);overflow-y:auto;padding:22px;background:#fff;color:#183431;box-shadow:0 18px 55px #14292442}
#edit-dialog::backdrop{background:rgba(13,37,33,.6)}
#edit-dialog .dialog-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
#edit-dialog h2{margin:3px 0 6px;font-size:25px;line-height:1.2}
#edit-dialog .dialog-eyebrow{font-size:10px;letter-spacing:1.7px;color:#538176;font-weight:800;margin:0}
#edit-dialog .hint{margin:0 0 10px;font-weight:500}
#edit-dialog .dialog-close{padding:8px 12px}
#edit-settings{border:0;padding:5px 0 0;display:grid;gap:18px}
#edit-settings label{font-size:15px}
#edit-settings input{font-size:18px}
.field-hint{color:#667d74;font-size:12px;line-height:1.4;font-weight:400}
#edit-settings .dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:2px}
@media(max-width:600px){#scan-panel{padding:12px;top:calc(env(safe-area-inset-top,0px) + 5px)}#scan-reader video{max-height:39dvh}#scan-panel .scan-header{margin-bottom:6px}#edit-dialog{padding:18px}#edit-dialog h2{font-size:23px}.product-bottom{gap:8px}.stock-note{text-align:right;line-height:1.35}}

/* Catégories V1.4 */
.category-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0 22px}
.category-controls select{width:auto;max-width:100%;min-width:200px;border:1px solid var(--border);border-radius:10px;padding:10px;background:var(--panel);color:var(--ink)}
.group-toggle{display:flex;align-items:center;gap:7px;cursor:pointer}
.category-section{width:100%;margin:6px 0 20px}.category-section>h3{margin:0 0 12px;font-size:1.1rem}.category-section>h3 span{font-size:.85rem;opacity:.65}.category-section .cards{width:100%}

.auth-shell{max-width:600px}.auth-box{background:var(--panel);padding:24px;border-radius:18px}.auth-box form{display:grid;gap:14px}.auth-box input{width:100%}#auth-error{color:#b42318}#home-dialog{max-width:500px;width:calc(100% - 32px)}#home-link{width:100%;margin:10px 0}#home-logout{margin-top:18px}.store button{display:block;margin-top:8px}

/* V1.6 — interface d'inventaire illustrée, accessible sans dépendance externe */
[hidden]{display:none!important}
.zone-switcher{display:flex;align-items:center;gap:9px;overflow-x:auto;padding:5px 1px 12px;margin:2px 0 8px;scrollbar-width:thin}
.zone-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border-radius:999px;border:1px solid #d7e4dc;background:#fff;color:#36584a;font:700 12px/1.2 inherit;box-shadow:0 2px 6px #163a2310}
.zone-chip.zone-active{background:#1b653f;color:#fff;border-color:#1b653f}
.zone-emoji{font-size:19px;line-height:1;display:inline-flex;align-items:center}
.zone-count{font-size:11px;font-weight:800;opacity:.72}
.view-switch{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:2px 0 18px}
.view-switch>div:first-child{max-width:610px}
.view-switch strong{font-size:15px}
.view-switch .hint{font-size:12px;margin:3px 0 0}
.view-actions{display:flex;gap:6px;background:#e8eee9;padding:5px;border-radius:15px}
.view-actions button{white-space:nowrap;padding:10px 13px;font-size:12px;background:transparent}
.view-actions button.view-active{background:#fff;box-shadow:0 2px 8px #23412c17}
.storage-scene{background:#fff;border:1px solid #e0e9e3;border-radius:25px;padding:22px;margin:0 0 18px;overflow:hidden;box-shadow:0 7px 26px #18343108}
.scene-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}
.scene-heading strong{font-size:21px;letter-spacing:-.3px;color:#173b39}
.scene-heading p{color:#788e81;font-size:13px;margin:4px 0 0}
.scene-count{border:1px solid #d8e7df;background:#f4faf5;border-radius:20px;padding:8px 10px;font-size:12px;font-weight:700;color:#427358;white-space:nowrap}
.fridge-stage{width:min(100%,760px);margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,22%);gap:8px;padding:11px;background:#d3e4e8;border:7px solid #c2d6dc;box-shadow:inset 0 0 25px #a0c0d055,0 7px 0 #b1ccd2;border-radius:28px 22px 22px 28px;min-height:400px}
.fridge-cabinet{display:flex;flex-direction:column;gap:7px;min-width:0}
.fridge-door{background:#e8f2f3;border:4px solid #c4d9db;border-radius:13px;min-width:0;overflow:hidden}
.fridge-stage .shelf-row{background:linear-gradient(105deg,#f1f7f9,#d9e9f0);border-radius:10px;min-height:144px;position:relative;padding:9px 7px 13px;min-width:0}
.fridge-stage .shelf-row:last-child{background:linear-gradient(115deg,#ebf8ea,#d7edd9);min-height:135px}
.fridge-stage .shelf-row::after,.storage-cabinet .shelf-row::after{content:"";position:absolute;bottom:1px;left:3px;right:3px;height:7px;border:1px solid #abc1c4;border-radius:5px;background:linear-gradient(#eff8f5,#c5d8da);pointer-events:none}
.fridge-stage .shelf-row-label{position:absolute;top:5px;left:7px;z-index:1;background:#fffffff2;border-radius:8px;padding:4px 8px;color:#486e62;font-size:11px;font-weight:800}
.fridge-stage .shelf-row-products{display:flex;align-items:flex-end;gap:5px;overflow-x:auto;overflow-y:hidden;min-width:0;min-height:112px;padding:17px 2px 2px;scrollbar-width:thin}
.fridge-door .shelf-row{height:100%;display:flex;flex-direction:column}
.fridge-door .shelf-row-products{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;overflow-y:auto;overflow-x:hidden;min-height:0;max-height:560px;padding-top:32px}
.fridge-door .illustrated-product{width:100%;max-width:118px;flex:0 0 auto}
.item-art-container{display:block;position:relative;width:72px;height:81px;margin:auto}
.item-art{width:72px;height:78px;display:block;filter:drop-shadow(0 5px 4px #285d4d1d)}
.illustrated-product{display:flex;flex-direction:column;align-items:center;justify-content:end;gap:1px;flex:0 0 104px;max-width:110px;background:#ffffffb8;border:1px solid #ffffff99;border-radius:12px;color:#244b3f;padding:8px 5px 6px;position:relative;transition:transform .12s ease,box-shadow .12s ease;cursor:pointer;min-height:105px}
.illustrated-product:hover,.illustrated-product:focus-visible{transform:translateY(-4px);box-shadow:0 4px 12px #234c3d27;outline:2px solid #49966c;outline-offset:1px}
.illustrated-product.item-out .item-art{filter:grayscale(.95);opacity:.5}
.illustrated-product.item-out{background:#fff3f0;border-color:#e9b1a8}
.illustrated-product.item-low{background:#fff6e8;border-color:#ffdea3}
.illustrated-product-qty{position:absolute;right:-1px;bottom:0;background:#1d784e;color:#fff;font-size:11px;font-weight:800;line-height:1;padding:6px 7px;border:2px solid #fff;border-radius:20px}
.item-out .illustrated-product-qty{background:#af4740}
.item-low:not(.item-out) .illustrated-product-qty{background:#bd8434}
.illustrated-product-name{font-size:11px;line-height:1.2;font-weight:650;text-align:center;width:100%;height:27px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.empty-shelf{font-size:12px;color:#829c9c;font-style:italic;padding:13px 10px;align-self:center;margin:auto}
.scene-disclaimer{font-size:12px;color:#6d8277;margin:17px 0 0;text-align:center}
.storage-cabinet{max-width:760px;margin:auto;padding:15px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(145deg,#f5e8d3,#e1caa9);border:9px solid #b79a6e;border-radius:16px;box-shadow:inset 0 0 10px #b4a38544}
.storage-cabinet .shelf-row{position:relative;min-height:150px;border-radius:6px;background:#fffbf2d4;padding:8px 10px 17px}
.storage-cabinet .shelf-row:after{background:linear-gradient(#d9bb92,#af8860);border-color:#c9a57a}
.storage-cabinet .shelf-row-label{font-size:12px;color:#795b3d;font-weight:750;padding:0 6px}
.storage-cabinet .shelf-row-products{display:flex;gap:10px;overflow-x:auto;padding:7px 4px 2px;align-items:flex-end;min-height:114px;scrollbar-width:thin}
.storage-1 .storage-cabinet{background:linear-gradient(135deg,#ddecf7,#c1dcef);border-color:#aac8df}
.storage-1 .storage-cabinet .shelf-row{background:#f3faffdc}
.storage-3 .storage-cabinet{background:linear-gradient(135deg,#fbeaf0,#ecd8e6);border-color:#cdaebf}
.storage-4 .storage-cabinet{background:linear-gradient(135deg,#e0f2e9,#c5e4de);border-color:#93bcae}
.storage-5 .storage-cabinet{background:#f0e5ce;border-color:#b1a28b}
.other-zones{margin:24px 0 22px}
.other-zones-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.other-zones-header h3{font-size:18px;margin:0}
.other-zones-header span{font-size:12px;color:#6c8078}
.zone-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:11px}
.zone-mini{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:5px 9px;align-items:center;text-align:left;background:#e6f1f8;border:1px solid #d7e9f6;border-radius:15px;padding:15px 12px;color:#263f42;min-height:91px;font:700 13px/1.2 inherit}
.zone-mini .zone-emoji{font-size:25px;grid-row:1/span 2}
.zone-mini small{font-size:11px;font-weight:500;color:#55737e}
.zone-mini.zone-2{background:#fff3db;border-color:#f1e2c8}
.zone-mini.zone-3{background:#fceaf1;border-color:#f0dbe5}
.zone-mini.zone-4{background:#dff3e9;border-color:#d3e8de}
.zone-mini.zone-5{background:#efece6;border-color:#ded9ce}
.zone-mini.zone-active{outline:3px solid #23724b;outline-offset:1px}
.zone-mini:hover,.zone-mini:focus-visible{box-shadow:0 4px 12px #1d654324;outline:2px solid #23724b}
.visual-welcome{background:#e9f5ec;border-radius:16px;padding:14px 18px;margin:0 0 17px;display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;color:#27543e}
.visual-welcome strong{font-size:16px}.visual-welcome span{font-size:12px}
.scan-feedback{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.scan-feedback>span{color:#70817a;font-size:12px}
.scan-sound-toggle{background:#e5f4e2;color:#286141;border:1px solid #cde9d4;font-weight:750;padding:10px 12px;border-radius:22px;font-size:13px}
#scan-sound[aria-pressed="false"]{background:#f1f2ef;color:#6b7972;border-color:#d9dfda}
.edit-quantity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:#f0f7f1;border-radius:12px}
.edit-quantity strong{display:block}.edit-quantity small{display:block;color:#667d74;font-weight:400;margin-top:4px;font-size:12px}
.edit-quantity .qty{gap:9px}.edit-quantity .qty button{flex:0 0 auto}
.edit-quantity .qty strong{min-width:23px;text-align:center}
@media(max-width:750px){
 .view-switch{flex-wrap:wrap}.view-actions{width:100%;justify-content:space-between}.view-actions button{flex:1}
 .storage-scene{padding:12px;border-radius:18px}
 .fridge-stage{grid-template-columns:minmax(0,1fr) 92px;padding:6px;gap:5px;border-width:5px}
 .fridge-stage .shelf-row{min-height:123px;padding:5px 3px 12px}.fridge-stage .shelf-row:last-child{min-height:122px}
 .fridge-stage .shelf-row-products{min-height:100px;gap:3px;padding-top:20px}
 .fridge-stage .illustrated-product{flex-basis:79px;min-width:79px;padding:5px 3px}
 .fridge-door .illustrated-product{max-width:76px;min-width:0;flex-basis:auto}
 .fridge-stage .shelf-row-label{font-size:10px;padding:3px 5px}
 .fridge-stage .item-art-container{width:56px;height:60px}.fridge-stage .item-art{width:56px;height:60px}
 .illustrated-product-name{font-size:10px}
 .fridge-door .shelf-row-products{max-height:490px}
 .zone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .scene-heading strong{font-size:18px}
}
@media(max-width:420px){
 .zone-grid{gap:7px}.zone-mini{padding:11px 8px;font-size:12px}
 .fridge-stage{grid-template-columns:minmax(0,1fr) 77px}
 .fridge-stage .illustrated-product{flex-basis:71px;min-width:71px}
 .fridge-door .illustrated-product{max-width:63px;min-width:0}
 .fridge-stage .item-art-container{width:48px;height:56px}.fridge-stage .item-art{width:48px;height:56px}
 .fridge-stage .shelf-row-label{font-size:9px}
 .fridge-door .shelf-row-products{max-height:470px}
 .scene-count{font-size:10px;padding:6px 7px}
 .edit-quantity{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.illustrated-product{transition:none}}

/* Préparation guidée E.Leclerc Drive — V1.7 */
.drive-dialog{width:min(580px,calc(100vw - 24px));max-height:92dvh;overflow-y:auto;padding:24px;border:1px solid var(--border);border-radius:22px;background:var(--panel);color:var(--ink)}
.drive-dialog::backdrop{background:rgba(13,38,34,.65)}
.drive-progress{margin:16px 0}.drive-progress strong{font-size:14px}.drive-progress-track{height:9px;border-radius:9px;background:var(--border);overflow:hidden;margin-top:8px}.drive-progress-track>div{width:0;height:100%;background:#3f9960;transition:width .2s}
.drive-current{border:1px solid var(--border);border-radius:17px;padding:18px;background:var(--bg)}.drive-current h3{font-size:1.2rem;margin:8px 0}.drive-current p{margin:8px 0}.drive-counter{font-size:13px;color:var(--muted)}
.drive-primary-actions{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.drive-primary-actions .button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.drive-check{display:flex;align-items:center;gap:12px;font-weight:700;cursor:pointer;padding:13px;border-radius:12px;background:var(--tint)}.drive-check input{width:20px;height:20px;flex-shrink:0}
.drive-step-actions{display:flex;justify-content:space-between;gap:12px;margin:13px 0 24px}.drive-overview h3{font-size:1rem;margin-bottom:10px}.drive-overview-row{border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--ink);display:flex;justify-content:space-between;gap:8px;text-align:left;padding:11px;margin-bottom:7px;width:100%}.drive-overview-row.current{border-color:#3f9960}.drive-overview-row span:last-child{white-space:nowrap}
@media(max-width:550px){.drive-dialog{padding:16px}.drive-primary-actions>*{flex:1 1 100%}}


/* Correctif V1.7 : fenêtre Leclerc opaque, centrée, responsive. */
#drive-dialog.drive-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;display:none;width:min(600px,calc(100vw - 28px));max-width:600px;max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;padding:24px;border:1px solid #d6e5da;border-radius:22px;background:#fff;color:#183431;box-shadow:0 22px 80px rgba(10,38,31,.32);opacity:1;z-index:1100}
#drive-dialog.drive-dialog[open]{display:block}
#drive-dialog::backdrop{background:rgba(13,38,34,.68)}
#drive-dialog .dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:12px}
#drive-dialog .dialog-header>div{min-width:0}
#drive-dialog .dialog-header h2{margin:5px 0 6px;line-height:1.25;font-size:clamp(21px,4.5vw,26px)}
#drive-dialog .dialog-eyebrow{margin:0;color:#457c69;font-size:11px;letter-spacing:1px;font-weight:800}
#drive-dialog #drive-close{flex:0 0 auto;min-width:45px;min-height:45px;padding:10px 14px}
#drive-dialog .hint{color:#536c63;line-height:1.5;margin:10px 0 16px}
#drive-dialog .drive-progress{margin:14px 0 18px}
#drive-dialog .drive-progress-track{background:#dfebe3}
#drive-dialog .drive-current{background:#f5f8f5;border-color:#dbe6dc;color:#183431}
#drive-dialog .drive-counter{color:#536c63}
#drive-dialog .drive-primary-actions .primary{background:#173b39;color:#fff}
#drive-dialog .drive-primary-actions .secondary{background:#e8eee9;color:#173b39}
#drive-dialog .drive-check{display:flex;gap:11px;align-items:center;background:#e8f2e9;color:#173b39;line-height:1.4}
#drive-dialog .drive-check input{width:20px;height:20px;margin:0;flex:0 0 20px}
#drive-dialog .drive-overview-row{background:#fff;color:#183431;border-color:#d8e4da}
#drive-dialog .drive-overview-row.current{background:#ebf6ee;border-color:#469b67}
#drive-dialog .drive-step-actions{margin-bottom:22px}
#drive-dialog .field-hint{color:#566f63}
@media(max-width:550px){#drive-dialog.drive-dialog{width:calc(100vw - 16px);padding:16px;max-height:calc(100dvh - 20px);border-radius:16px}#drive-dialog .drive-current{padding:14px}#drive-dialog .drive-primary-actions>*{flex:1 1 100%;text-align:center}#drive-dialog .drive-step-actions{gap:8px}#drive-dialog .drive-step-actions button{padding:12px 10px}}

/* V1.9 - gestion des domiciles */
#home-dialog #home-select,#home-dialog #home-name{display:block;width:100%;max-width:100%;padding:12px;border:1px solid #b8c9c3;border-radius:12px;margin:8px 0 14px;color:#183a33;background:#fff}
#home-dialog .home-add{border-top:1px solid #e1e9e4;margin:18px 0;padding:18px 0;display:grid;gap:6px}
#home-dialog .home-add label,#home-dialog label{font-weight:700}
#home-dialog #home-join:not([hidden]){background:#edf8ed;border-radius:12px;padding:15px;margin:12px 0}
