:root{color-scheme:light}*{box-sizing:border-box}
body{margin:0;background:#eff3ed;color:#203b2c;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.app{--ink:#1e392b;--forest:#285440;--forest-dark:#193a2a;--soft:#ebf5e9;--muted:#455d4c;--line:#d9e5d9;--cream:#f8e3c4;--accent:#9a5124;--scale:1;display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;max-width:1150px;margin:0 auto;padding:20px;min-height:100vh;color:var(--ink);font-size:calc(17px * var(--scale))}
.app[data-season="winter"]{--cream:#dcecf4;--accent:#285f87}
.app[data-season="spring"]{--cream:#e7f0d0;--accent:#5d7830}
.app[data-season="summer"]{--cream:#f8e5af;--accent:#9d681d}
button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #b66832;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.38}
.sidebar{display:flex;flex-direction:column;gap:16px;padding:14px 7px;min-width:0}.brand-large{font-size:1.45em;font-weight:750;letter-spacing:-1px}.brand-large strong{color:var(--accent)}.sidebar-lead{font-size:1.2em;line-height:1.34;margin:4px 0 18px}.sidebar-lead b{color:#5d7d64}.sidebar-nav{display:grid;gap:8px}.sidebar-nav button{min-height:55px;padding:12px;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left;color:#365942;font-weight:750;display:flex;align-items:center;gap:12px}.sidebar-nav button span{font-size:24px;width:29px;text-align:center}.sidebar-nav button.active{background:#fff;border-color:#cce0ce}.sidebar-extras{margin-top:auto;padding-top:15px;border-top:1px solid #d4e1d5;font-size:.88em;line-height:1.45;color:#43604a}.sidebar-extras p{line-height:1.6;margin-bottom:0}.side-options{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.side-options button{min-height:48px;padding:9px 13px;border:1px solid #bed3c1;border-radius:11px;background:#fff;color:#2a533a;font-weight:750}
.workspace{min-width:0;background:#fff;border:1px solid #d7e2d5;border-radius:22px;box-shadow:0 18px 36px #24442c10;position:relative;display:flex;flex-direction:column;overflow:hidden;min-height:740px}.demo-ribbon{background:#f3f8f1;border-bottom:1px solid #dde8da;padding:10px 20px;color:#3e6648;font-size:.79em;font-weight:750;line-height:1.4}.topbar{display:flex;gap:11px;align-items:center;min-height:73px;padding:12px 22px;border-bottom:1px solid #edf1ea;background:#fff}.topname{flex:1;font-weight:850;font-size:1.1em}.topname b{color:var(--accent)}.arrow{min-width:47px;min-height:47px;background:#edf5ec;border:0;border-radius:11px;color:#275039;font-size:1.5em;font-weight:700}.arrow.help{font-size:1.1em}
.screen{width:100%;max-width:740px;margin:0 auto;padding:26px clamp(16px,4vw,35px) 100px;min-height:0;flex:1;scroll-margin-top:95px}.eyebrow{display:inline-flex;font-size:.83em;color:#653b1f;background:var(--cream);padding:9px 12px;border-radius:50px;font-weight:800;line-height:1.3}.heading{font-size:clamp(1.75em,5vw,2.3em);letter-spacing:-1px;line-height:1.13;font-weight:850;margin:15px 0 11px}.desc{font-size:1em;color:var(--muted);line-height:1.6;margin:0 0 19px}.small{font-size:.86em;line-height:1.52;color:var(--muted)}.label{font-size:.83em;color:#355a40;text-transform:uppercase;letter-spacing:.6px;font-weight:800;margin:22px 0 9px}
.hero{position:relative;min-height:220px;background:linear-gradient(115deg,var(--cream),#f8f8ea 73%,#d9ebd4);border:1px solid #e7e6d9;border-radius:18px;overflow:hidden;padding:20px 19px;margin:13px 0 18px}.hero h2{margin:0;max-width:62%;font-size:1.18em;line-height:1.25;position:relative;z-index:1}.hero p{max-width:52%;font-size:.86em;line-height:1.5;color:#4f634c;position:relative;z-index:1}.hero .basket{position:absolute;bottom:-4px;right:33px;font-size:92px;animation:rock 8s ease-in-out infinite}.hero .fruit{position:absolute;font-size:48px;animation:float 7s ease-in-out infinite}.hero .fruit.a{bottom:107px;right:112px}.hero .fruit.b{bottom:126px;right:47px;animation-delay:-2.3s}.hero .fruit.c{bottom:145px;right:88px;animation-delay:-4.8s}.hero .leaf{position:absolute;font-size:25px;right:17px;top:11px;animation:fall 10s ease-in-out infinite}.hero .leaf.second{right:164px;animation-delay:-5s}
@keyframes rock{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}@keyframes float{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-11px) rotate(7deg)}}@keyframes fall{0%{opacity:0;transform:translateY(-10px) rotate(0)}25%,70%{opacity:1}100%{opacity:0;transform:translate(15px,60px) rotate(100deg)}}@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.app:not(.pause-motion) .reveal{animation:none}.app.pause-motion *,.app.pause-motion *::before,.app.pause-motion *::after{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){.app *,.app *::before,.app *::after{animation:none!important;transition:none!important}}
.btn{min-height:53px;display:flex;justify-content:center;align-items:center;gap:8px;width:100%;padding:12px 15px;border-radius:13px;border:1px solid transparent;font-weight:800;font-size:1em;background:var(--forest);color:#fff;text-align:center;margin:11px 0}.btn:hover{background:var(--forest-dark)}.btn.alt{background:#eef6ed;color:#2b553d;border-color:#d1e3d3}.btn.white{background:#fff;color:#28513b;border-color:#bed5c1}.choices{display:flex;flex-wrap:wrap;gap:9px}.pill{min-height:49px;padding:11px 14px;border:1px solid #bbd2bf;color:#28543b;background:#fff;border-radius:11px;font-weight:760}.pill.active{background:#e2f2e1;border:2px solid #4e805a;padding:10px 13px}.steps{display:flex;gap:6px;margin:10px 0 20px}.steps span{height:6px;flex:1;background:#e4ede4;border-radius:10px}.steps span.active{background:var(--accent)}
.tile{display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:13px;border:1px solid #d7e4d7;background:#fff;border-radius:15px;min-height:82px;margin:10px 0;color:var(--ink)}.tile:hover{border-color:#8ab595}.tile .emoji{display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:#f0f6ea;font-size:27px;flex-shrink:0}.tile .body{flex:1;min-width:0}.tile strong{display:block;font-size:1em}.tile small{display:block;font-size:.85em;color:var(--muted);line-height:1.4;margin-top:4px}.tile .chevron{font-size:23px;color:#557a5b}.tile.no-button{cursor:default}.tile.no-button:hover{border-color:#d7e4d7}
.card{background:#fff;border:1px solid #d8e5d8;border-radius:15px;padding:15px;margin:12px 0}.card.soft,.note{background:#eef6ed;border:1px solid #e4ece2;border-radius:13px;padding:13px;margin:13px 0;color:#2f5a3a;line-height:1.58}.warn{background:#fff4e1;border-radius:12px;padding:13px;margin:12px 0;color:#684a2b;line-height:1.55}.row{display:flex;justify-content:space-between;gap:15px;align-items:center}.counter{display:flex;align-items:center;gap:13px}.counter button{background:#eef6ed;color:#28523b;border:1px solid #c8dfce;width:49px;height:49px;border-radius:11px;font-size:1.35em}.counter strong{min-width:22px;text-align:center;font-size:1.19em}.split{display:flex;gap:9px;margin:17px 0}.split .btn{margin:0;flex:1;min-width:0}.split .btn:first-child{flex:.64}
.daybar{display:flex;gap:6px;overflow:auto;max-width:100%;padding:8px 0 10px}.daybar button{min-width:57px;height:49px;background:#f1f7f0;border:1px solid #d0e1d2;color:#2b5139;border-radius:9px;font-weight:760}.daybar button.active{background:#28553c;color:#fff}.mealhead{font-size:.86em;font-weight:820;color:#55705b}.ingredients{margin:8px 0 15px;padding:0;list-style:none}.ingredients li{display:flex;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #e7eee6}.ingredients li span:first-child{flex:1}.ingredients li strong{font-size:.88em;color:#486251}.step-body{background:#edf6ec;border-left:5px solid #6a9a71;border-radius:13px;font-size:1.13em;line-height:1.75;padding:20px;margin:15px 0}
.stockline{display:flex;align-items:center;gap:12px;padding:11px 0;min-height:67px;border-bottom:1px solid #e9eee8}.stockline:last-child{border-bottom:0}.stockline .itemicon{font-size:25px}.stockline .itemcopy{flex:1;min-width:0}.stockline .itemcopy strong{display:block}.stockline .itemcopy small{font-size:.79em;color:var(--muted)}.stockline button{background:#eef5ec;color:#275039;border:1px solid #c9ddcc;padding:9px 11px;border-radius:10px;min-height:45px;font-weight:730;font-size:.83em;white-space:nowrap}.status-pending{font-size:.8em;color:#8a551d;font-weight:750}.upload{padding:17px;border:2px dashed #b9d3ba;border-radius:15px;text-align:center;background:#f6fbf5}.upload input{display:block;margin:12px auto;max-width:100%;font-size:.88em}.upload img{display:block;margin:10px auto;max-height:120px;max-width:100%;border-radius:9px}.formfield{margin:12px 0}.formfield label{font-size:.89em;font-weight:760;display:block;margin-bottom:8px}.formfield input,.formfield select{min-height:49px;border:1px solid #b8d0bd;border-radius:10px;padding:11px 12px;width:100%;background:#fff;color:#1f3d2c}
.listrow{display:flex;align-items:center;gap:12px;min-height:57px;border-bottom:1px solid #e7eee8}.listrow input{width:21px;height:21px;flex:none;accent-color:#326144}.listrow .itemname{flex:1;min-width:0}.listrow .qty{font-size:.83em;color:#425d4a;white-space:nowrap}.listrow.done .itemname{text-decoration:line-through;color:#829386}.grouphead{font-weight:850;margin-top:20px;padding:11px 0 8px;border-bottom:1px solid #dfe8df}
.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #e4ece3;background:#fff;min-height:71px;position:sticky;bottom:0;z-index:2;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#486953;font-size:.77em;font-weight:770;min-height:61px}.bottom-nav button span{font-size:23px}.bottom-nav button.active{background:#f1f5ed;color:var(--accent)}.footer-note{color:#657768;font-size:.82em;line-height:1.5;margin-top:18px}
#overlay:empty{display:none}#overlay{position:fixed;inset:0;background:#192a1f91;z-index:8;display:grid;align-items:end;justify-items:center;padding:12px}#overlay .panel{background:#fff;border-radius:20px;width:min(100%,650px);max-height:87vh;overflow:auto;padding:22px;box-shadow:0 30px 70px #0d2c152c}#overlay .panel h2{line-height:1.25}#toast:empty{display:none}#toast{position:fixed;bottom:85px;right:24px;background:#214c35;color:#fff;padding:14px 17px;border-radius:12px;box-shadow:0 10px 25px #214c3536;z-index:9;max-width:340px;font-weight:720}
#overlay .panel:focus-visible,#overlay summary:focus-visible{outline:3px solid #b66832;outline-offset:3px}
@media(max-width:760px){.app{grid-template-columns:1fr;padding:0;min-height:100vh;gap:0}.sidebar{display:none}.workspace{border:0;border-radius:0;min-height:100vh;box-shadow:none}.demo-ribbon{padding:8px 14px;font-size:.74em}.topbar{min-height:64px;padding:7px 11px;gap:8px}.topname{font-size:1.05em}.arrow{min-width:46px;min-height:46px}.screen{padding:21px 17px 112px}.hero{min-height:225px}.hero h2{max-width:62%}.hero p{max-width:56%}.hero .basket{right:12px}.daybar button{min-width:52px}.heading{font-size:1.8em}}
@media(max-width:359px){.heading{font-size:1.66em}.screen{padding:15px 13px 95px}.hero{padding:15px;min-height:210px}.hero .basket{font-size:75px;right:7px}.hero .fruit{font-size:37px}.hero .fruit.a{right:76px}.hero .fruit.b{right:25px}.hero .fruit.c{right:65px}.hero h2{max-width:68%}.hero p{max-width:54%}.tile{gap:8px;padding:10px}.tile .emoji{width:47px;height:47px}.split{gap:7px}.split .btn{padding:8px;font-size:.94em}.bottom-nav button{font-size:.7em}}
@media print{.sidebar,.demo-ribbon,.topbar,.bottom-nav,.no-print{display:none!important}.app,.workspace{display:block;box-shadow:none;border:0;padding:0}.screen{padding:10px;max-width:100%}.btn,.tile,.hero{break-inside:avoid}}
/* v0.3 : carnet durable et saisies lisibles, compatible petits iPhone */
.demo-ribbon{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:7px;font-size:.81em}
#save-status{font-weight:850;color:#23533b;white-space:nowrap}
.stats-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:15px 0}
.stats-row>div{border-radius:13px;background:#f2f7ef;padding:13px 8px;text-align:center;min-width:0}
.stats-row strong{display:block;font-size:1.38em;line-height:1.25;color:#234a34}
.stats-row small{display:block;font-size:.75em;line-height:1.3;color:#4d6655;margin-top:3px}
.meal-card{background:#fff;border:1px solid #d5e2d4;border-radius:15px;padding:13px;margin:11px 0}
.meal-head{display:flex;gap:12px;align-items:center}
.meal-head>div{flex:1;min-width:0}
.meal-emoji{display:grid;place-items:center;background:#eef5e9;border-radius:14px;width:57px;height:57px;font-size:30px;flex-shrink:0}
.meal-head strong{display:block;font-size:1em;margin:3px 0;line-height:1.35}
.meal-head small,.meal-type{display:block;font-size:.81em;color:#4e6555}
.meal-type{font-weight:800;color:#6d4b28}
.meal-actions{display:grid;grid-template-columns:1.3fr 1fr .85fr;gap:6px;margin-top:14px}
.mini-btn{background:#29553c;color:white;border:1px solid #29553c;min-height:49px;padding:8px 5px;border-radius:10px;font-weight:750;font-size:.83em;text-align:center;white-space:normal}
.mini-btn.light{background:#f0f6ee;color:#2c5138;border-color:#cadcca}
.money-value{font-size:2.12em;margin:8px 0;letter-spacing:-.8px;line-height:1.2}
.formfield textarea{width:100%;min-height:130px;border:1px solid #b8d0bd;border-radius:10px;padding:12px;font:inherit;color:var(--ink);resize:vertical;line-height:1.5}
.formfield textarea:focus-visible{outline:3px solid #b66832;outline-offset:3px}
.form-row>.formfield{flex:1;min-width:0}
.form-row>.formfield:first-child{flex:1.4}
.ing-row{display:grid;grid-template-columns:minmax(0,1fr) 78px 67px 43px;gap:5px;margin:7px 0}
.ing-row select,.ing-row input{width:100%;min-width:0;height:51px;border:1px solid #b8d0bd;border-radius:9px;padding:6px;background:white;color:#263d2e}
.ing-row .delete-row{width:43px;height:51px;border:1px solid #dfb2a4;border-radius:9px;background:#fff4f0;color:#74391c;font-size:23px}
.avoid-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 13px;max-height:45vh;overflow-y:auto}
.checkline{display:flex;align-items:center;gap:9px;padding:11px 4px;min-height:48px;border-bottom:1px solid #e8efe7;font-weight:550}
.checkline input[type=checkbox]{width:23px;height:23px;accent-color:#315d42;flex:none}
.checkline span{min-width:0}
#editor-name,#editor-steps,#editor-allergens,#offer-store,#offer-price{font-size:16px}
.listrow .itemname small{display:block;margin-top:5px}
.tile[hidden]{display:none!important}
.hero .fruit,.hero .basket,.hero .leaf{animation-iteration-count:1;animation-fill-mode:forwards}
.app.motion-rest .hero .fruit,.app.motion-rest .hero .basket,.app.motion-rest .hero .leaf{animation:none!important}
.app.motion-rest .hero .leaf{display:none}
.app:not(.motion-rest):not(.pause-motion) .hero .basket{animation:rock 4.2s ease-in-out both}
.app:not(.motion-rest):not(.pause-motion) .hero .fruit{animation:float 4s ease-in-out both}
.app:not(.motion-rest):not(.pause-motion) .hero .leaf{animation:fall 4.5s ease-in-out both}
.app:not(.motion-rest):not(.pause-motion) .hero .fruit.b,.app:not(.motion-rest):not(.pause-motion) .hero .leaf.second{animation-delay:.3s}
#overlay .panel{scrollbar-width:thin}
@media(max-width:760px){
 .demo-ribbon{align-items:center;padding:10px 14px;font-size:.76em}
 .stats-row{gap:6px}.stats-row>div{padding:12px 4px}
 .screen{padding-top:21px;padding-bottom:112px}
 .ing-row{grid-template-columns:minmax(0,1fr) 66px 61px 38px}
 .ing-row select,.ing-row input{font-size:15px;padding:4px}
 .ing-row .delete-row{width:38px}
 .mini-btn{font-size:.76em;min-height:50px}
 .meal-actions{gap:5px}
}
@media(max-width:360px){
 .avoid-grid{grid-template-columns:1fr}
 .stats-row small{font-size:.68em}
 .mini-btn{font-size:.72em;letter-spacing:-.2px}
 .ing-row{grid-template-columns:minmax(0,1fr) 57px 54px 32px;gap:3px}
 .ing-row .delete-row{width:32px}
 .ing-row select,.ing-row input{font-size:14px}
 .meal-card{padding:10px}
}
/* Day buttons keep their weekday and date inside the tap surface. */
.daybar{align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:6px 0 9px;scrollbar-width:thin}
.daybar button{flex:0 0 auto;min-height:60px;height:auto;padding:8px 7px;line-height:1.25;white-space:nowrap;font-size:.84em}
@media(max-width:359px){.daybar button{min-height:57px;padding:8px 6px;font-size:.79em}}
/* Five accessible destinations on mobile, including data backup and font controls. */
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.bottom-nav button{min-width:0;font-size:.76em;padding:5px 2px}
.app[data-season="summer"] .bottom-nav button.active{color:var(--forest-dark)}
.footer-note{font-size:.9em;line-height:1.55;color:#475f4e}
.small{font-size:.91em;color:#435c4b}
.tile small{font-size:.89em;color:#435c4b}
.stats-row small{font-size:.81em;color:#435b49}
@media(max-width:359px){.bottom-nav button{font-size:.7em;padding:5px 1px}.stats-row small{font-size:.77em}}
@media(prefers-contrast:more){.app{--muted:#243b2b;--line:#8fa591} .tile,.card,.pill{border-color:#859c88} .small,.desc,.footer-note{color:#293e2e}}
/* F01/F02/F27: equal entry points and a clearly labelled local demonstration. */
.path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.path-grid .tile{margin:0;align-items:flex-start;min-height:150px;border:2px solid #91b39a;background:#f4f9f1;padding:17px;flex-wrap:wrap}
.path-grid .tile .body{flex-basis:110px}.path-grid .tile .emoji{background:#e2efd9}
.path-grid .tile .chevron{margin-left:auto;align-self:center}
.demo-notice{background:#fff1d8;border:1px solid #d7b778;color:#64451f;padding:15px;border-radius:13px;line-height:1.6;margin:15px 0}
.basket-line{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #dce7d9;overflow-wrap:anywhere}
.basket-line>span{min-width:0;flex:1}.basket-line>strong{font-size:.9em;max-width:42%;text-align:right}
.basket-line small{display:block;margin-top:5px;font-size:.85em;color:#4a6251}
.removed-meal{background:#f3f4f1;color:#617065}.removed-meal>strong{text-decoration:line-through}
.meal-card>strong{display:block;margin:7px 0;line-height:1.4}
.counter input[type=number]{width:90px;min-width:0;min-height:49px;border:1px solid #b8d0bd;border-radius:10px;padding:8px;color:#1f3d2c}
details.card summary{cursor:pointer;line-height:1.5;min-height:35px}details.card ul{padding-left:22px;line-height:1.6}
.calendar-preview{overflow-wrap:anywhere;min-width:0}.calendar-preview ul{padding-left:22px}.calendar-preview li{margin:14px 0;line-height:1.5}.calendar-preview summary{cursor:pointer;min-height:48px;padding:12px 0}
#meal-calendar-form input[type=time]{min-width:0;max-width:100%;font:inherit}#meal-calendar-result,#meal-calendar-download-status{overflow-wrap:anywhere}
.preparation-calendar-event{border-left:4px solid #8A2BE2;padding:12px;background:#f7f0ff;border-radius:8px;overflow-wrap:anywhere}.preparation-calendar-event strong{display:block;margin-top:6px}.preparation-calendar-label{font-size:.8em;font-weight:800;color:#6421a2;letter-spacing:.03em}
.private-controls{margin:12px 24px;padding:14px 16px;border:1px solid #b8d0bd;border-radius:14px;background:#f5faf6;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.private-controls[hidden]{display:none}.private-controls strong,.private-controls span{display:block;overflow-wrap:anywhere}.private-controls span{margin-top:5px;font-size:.9em}.private-controls .row{margin:0;flex-wrap:wrap}.private-account-grid{display:grid;gap:12px;margin:20px 0}.private-account-grid .btn{margin:0}.private-account-grid .tile{width:100%;text-align:left}button:disabled{cursor:not-allowed}.private-controls .mini-btn{white-space:normal}
.screen .menu-week-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.menu-week-day .meal-head strong{overflow-wrap:anywhere}.menu-week-day h2{overflow-wrap:anywhere}.saved-menu-meal{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #dce7d9;padding:13px 0}.saved-menu-meal>span{flex:1;min-width:150px;overflow-wrap:anywhere}.saved-menu-meal strong,.saved-menu-meal small{display:block}.saved-menu-meal small{font-size:.85em;color:#4e6555}.saved-recipe-steps{padding-left:24px}.saved-recipe-steps li{margin:16px 0;overflow-wrap:anywhere}
@media(max-width:700px){.screen .menu-week-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.private-controls{margin:10px 12px;padding:12px}.private-controls>.row{width:100%}.private-controls .mini-btn{flex:1}}
.demo-notice ul,.warn ul{padding-left:23px;overflow-wrap:anywhere}
.row .mini-btn{min-width:0;flex:1}.money-value{overflow-wrap:anywhere}
@media(max-width:600px){.path-grid{grid-template-columns:1fr;gap:11px}.path-grid .tile{min-height:110px;align-items:center;flex-wrap:nowrap}.path-grid .tile .body{flex-basis:auto}.basket-line{gap:10px}.basket-line>strong{max-width:45%;font-size:.83em}.demo-notice{font-size:.94em}}
.receipt-fields-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1rem; }
.receipt-fields-grid > *, .receipt-line, .shopping-purchase { min-width:0; }
.receipt-line { margin:1rem 0; border:1px solid var(--line,#dce5dc); border-radius:18px; padding:1rem; }
.receipt-line legend { padding:0 .45rem; font-weight:700; }
.receipt-line input, .receipt-line select, .receipt-fields-grid input, .receipt-fields-grid select, .shopping-purchase input { max-width:100%; }
.shopping-trip h2 { overflow-wrap:anywhere; }
.shopping-purchase { padding:.8rem 0 1rem; border-bottom:1px solid var(--line,#dce5dc); }
.shopping-purchase:last-child { border-bottom:0; }
.shopping-purchase .listrow { padding-left:0; padding-right:0; }
.shopping-purchase .itemname small { display:block; margin-top:.35rem; line-height:1.4; }
.shopping-purchase.done .itemname { text-decoration:line-through; }
.shopping-purchase.done .itemname small { text-decoration:none; }
.shopping-purchase .formfield { margin:.5rem 0; }
.shopping-store-group { margin-top:1.25rem; border-top:2px solid #d7e5d7; padding-top:.65rem; }
.shopping-store-group h3 { margin:.4rem 0 .65rem; overflow-wrap:anywhere; }
.shopping-aisle h4 { margin:.8rem 0 .25rem; font-size:1rem; overflow-wrap:anywhere; }
.shopping-aisle h4 .small { font-weight:400; }
.shopping-filter, .shopping-store-status { min-width:0; overflow-wrap:anywhere; }
.shopping-filter select { width:100%; max-width:100%; }
.shopping-store-status:empty { display:none; }
.reception-bridge a { display:block; text-align:center; white-space:normal; overflow-wrap:anywhere; }
.price-explanation { margin:.7rem 0; padding:.65rem; border:1px solid #cfdecd; border-radius:10px; }
.price-explanation summary { min-height:44px; cursor:pointer; font-weight:700; overflow-wrap:anywhere; }
.price-explanation dt { margin-top:.6rem; font-weight:700; }
.price-explanation dd { margin:.15rem 0 .6rem; overflow-wrap:anywhere; }
.price-explanation p, .budget-line h4 { overflow-wrap:anywhere; }
.budget-line { padding:.45rem 0; border-bottom:1px solid #dce5dc; min-width:0; }
.budget-line:last-child { border-bottom:0; }
@media(max-width:600px) { .receipt-fields-grid { grid-template-columns:minmax(0,1fr); } .receipt-line { padding:.8rem; } }
/* The feedback dialog has its own DOM; opening it never replaces a business form. */
.top-feedback{min-height:48px;border:1px solid #91b39a;border-radius:11px;padding:8px 12px;background:#f4f9f1;color:#275039;font:inherit;font-size:.83em;font-weight:750;cursor:pointer}
.top-tools{position:relative;min-width:0;font-size:.83em;color:#275039}
.top-tools>summary{display:list-item;cursor:pointer;min-height:48px;padding:11px 12px;border:1px solid #91b39a;border-radius:11px;background:#f4f9f1;font-weight:750;white-space:normal}
.top-tools>summary:focus-visible{outline:3px solid #b66832;outline-offset:3px}
.top-tools-panel{position:absolute;z-index:8;right:0;top:calc(100% + 6px);width:min(22rem,calc(100vw - 32px));padding:12px;background:#fff;border:1px solid #91b39a;border-radius:13px;box-shadow:0 10px 25px #214c3526}
.top-tools-panel p{font-size:.95em;line-height:1.45;margin:0 0 10px}
.top-tools-panel .top-feedback{display:flex;align-items:center;margin:7px 0;width:100%;text-align:left;font-size:1em;line-height:1.35;overflow-wrap:anywhere}
.top-tools-panel .top-feedback[hidden]{display:none}
@media(max-width:760px){.topbar>.top-feedback,.topbar>.top-tools{flex:1 1 calc(50% - 8px);min-width:0}.top-tools>summary{height:100%}}
.feedback-sheet-trigger{margin-left:0;max-width:100%}
.feedback-panel{width:min(620px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:22px;border:1px solid #91b39a;border-radius:20px;background:#fff;color:#203b2c;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 70px #0d2c154d}
.feedback-panel::backdrop{background:#192a1faa}
.feedback-panel h2{line-height:1.3}.feedback-panel p{line-height:1.5;overflow-wrap:anywhere}.feedback-panel .btn{max-width:100%;white-space:normal}.feedback-panel textarea{width:100%;max-width:100%;font-size:16px;resize:vertical}.feedback-panel textarea[readonly]{background:#f4f7f2}.feedback-context{white-space:pre-line;border-left:4px solid #8a2be2;padding:10px;background:#f7f0ff;font-size:.9em}.feedback-panel :focus-visible,.top-feedback:focus-visible{outline:3px solid #b66832;outline-offset:3px}
@media(max-width:760px){.topbar{flex-wrap:wrap}.top-feedback{flex-basis:100%;text-align:center}.feedback-panel{padding:16px}.feedback-sheet-trigger{margin-left:0}}
@media print{#feedback-dialog,.top-feedback{display:none!important}}
.repetition-choice{overflow-wrap:anywhere;border:1px solid #a8bea6}
.repetition-choice h2{font-size:1.12em;line-height:1.4;margin-top:0}
.repetition-choice.repetition-needed{background:#fff8e8;border-color:#c8a75d}
.repetition-actions{display:grid;gap:8px;margin:14px 0}
.repetition-actions .btn{margin:0;width:100%;white-space:normal;min-width:0}
.plan-change-meal p{overflow-wrap:anywhere}
.plan-change-rows{list-style:none;padding:0;margin:16px 0}
.plan-change-rows>li{border:1px solid #c4d4c4;border-radius:12px;padding:12px;margin:12px 0;overflow-wrap:anywhere}
.plan-change-rows h4{margin:0 0 10px}.plan-change-rows h4 small{font-weight:500}
.plan-change-rows dl{margin:0;display:grid;gap:10px}.plan-change-rows dl>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1.25fr);gap:10px}
.plan-change-rows dt{font-weight:650}.plan-change-rows dd{margin:0;overflow-wrap:anywhere}.plan-change-rows dd small{display:block;margin-top:4px}
.plan-change-actions{display:grid;gap:8px;margin:16px 0}.plan-change-actions .btn{margin:0;width:100%;white-space:normal}
[data-plan-change-status]{overflow-wrap:anywhere}.panel [data-plan-change-source][hidden],.panel [data-plan-change-comparison][hidden]{display:none}
@media(max-width:420px){.plan-change-rows dl>div{grid-template-columns:minmax(0,1fr);gap:4px}}
.inventory-plan,.inventory-lots,.inventory-needs,.inventory-allocations,[data-inventory-status],[data-inventory-result]{min-width:0;overflow-wrap:anywhere}
.inventory-plan h2{font-size:1.12em;line-height:1.4}
.inventory-plan details{border-top:1px solid #c4d4c4;margin:14px 0;padding-top:6px}
.inventory-plan summary,[data-inventory-result] summary{cursor:pointer;min-height:48px;padding:10px 0;font-weight:650}
.inventory-lots,.inventory-needs,.inventory-allocations{list-style:none;padding:0;margin:16px 0}
.inventory-lots>li,.inventory-needs>li,.inventory-allocations>li{border:1px solid #c4d4c4;border-radius:12px;padding:12px;margin:12px 0;background:#fcfdfb}
.inventory-lots>li>span{display:block;margin-top:6px}
.inventory-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}
.inventory-metrics>div{min-width:0}.inventory-metrics dt{font-size:.88em;line-height:1.4;color:#435c4b}.inventory-metrics dd{margin:4px 0 0;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.inventory-actions{display:grid;gap:8px;margin:14px 0}.inventory-actions .btn{margin:0;white-space:normal;min-width:0;max-width:100%}
.panel [data-inventory-source][hidden],.panel [data-inventory-result][hidden]{display:none}
[data-inventory-result] .btn{white-space:normal;max-width:100%}
@media(max-width:420px){.inventory-metrics{grid-template-columns:minmax(0,1fr);gap:10px}.inventory-plan.card{padding:12px}}
.atelier-entry{display:inline-flex;align-items:center;justify-content:center;max-width:100%;text-decoration:none;overflow-wrap:anywhere}.atelier-entry[hidden]{display:none}
@media(max-width:420px){.price-country-date{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:12px}.price-country-date>.formfield,.price-country-date>.formfield:first-child{width:100%;min-width:0}}

/* Evaluation utilities are not product controls. */
.evaluation-session .private-controls,.evaluation-session .top-feedback{background:#14263f!important;color:#fff!important;border:2px dashed #6885ad!important;border-radius:4px!important}
.evaluation-session .private-controls button{background:#eef3fa!important;color:#14263f!important;border-radius:4px!important}

.evaluation-session .evaluation-access{background:#14263f;color:#fff;border:2px dashed #6885ad;padding:24px;border-radius:4px}
