:root { --f7-theme-color:#b9543b; --cream:#faf7f1; --ink:#27231f; --terracotta:#b9543b; --soft:#f4e2d7; --sage:#76836f; }
html,body{background:var(--cream);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif}.app-shell,.page,.page-content{background:var(--cream)}
h1,h2,.title-large-text{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.025em}.content-section{max-width:980px;margin:0 auto;padding:16px 18px 120px}.navbar-bg,.toolbar{background:rgba(250,247,241,.92);backdrop-filter:blur(18px)}
.profile-dot{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--soft);color:var(--terracotta);font-weight:700}.main-tabs{height:calc(62px + var(--f7-safe-area-bottom));box-shadow:0 -8px 24px rgba(61,42,31,.07)}.tab-icon{font-size:25px;line-height:22px}.import-button{display:grid;place-items:center;width:46px;height:46px;margin-top:-18px;border-radius:50%;background:var(--terracotta);color:white;font-size:30px;box-shadow:0 8px 18px rgba(185,84,59,.28)}
.searchbar{margin:4px 0 14px}.filter-pills{display:flex;gap:8px;overflow:auto;padding:2px 0 14px;scrollbar-width:none}.pill{border:0;border-radius:999px;background:#fff;padding:9px 15px;color:var(--ink);white-space:nowrap}.pill.active{background:var(--terracotta);color:white}.empty-state{max-width:430px;margin:11vh auto 0;text-align:center}.empty-illustration{display:grid;place-items:center;width:82px;height:82px;margin:0 auto 20px;border-radius:26px;background:var(--soft);font-size:38px}.empty-state h2{font-size:28px;margin:0 0 9px}.empty-state p{color:#716961;line-height:1.55;margin:0 0 24px}.button-fill{--f7-button-bg-color:var(--terracotta);--f7-button-border-radius:14px;text-transform:none;font-weight:650}
.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));background:radial-gradient(circle at 90% 10%,#f4e2d7 0,transparent 34%),var(--cream)}.login-card{width:min(100%,420px);background:rgba(255,255,255,.84);padding:34px 24px;border-radius:28px;box-shadow:0 24px 70px rgba(68,45,30,.12)}.login-card h1{font-size:43px;margin:3px 0}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:var(--terracotta);font-size:11px;font-weight:750}.login-intro,.privacy-note{color:#766d65}.login-fields{margin:26px 0 14px}.remember-row{display:flex;gap:10px;align-items:center;margin:14px 4px 22px}.login-button{width:100%}.privacy-note{text-align:center;font-size:12px;margin:22px 0 0}.notice{padding:12px 14px;border-radius:12px;margin:12px 0}.notice-error{background:#fbe5e2;color:#8d3025}.notice-success{background:#e5f0e4;color:#365c34}.notice-info{background:#eee9df;color:#5f554b}.settings-card{margin-top:20px;background:#fff;border-radius:20px;padding:24px}.settings-card .button{margin-top:26px}
@media(min-width:768px){.content-section{padding-left:36px;padding-right:36px}.login-card{padding:44px}.main-tabs .toolbar-inner{max-width:620px;margin:auto}}
.recipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.recipe-card{position:relative;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(67,43,27,.08)}.recipe-card-link{color:inherit}.recipe-photo-placeholder{display:grid;place-items:center;min-height:132px;background:linear-gradient(145deg,#f4e2d7,#e8d2bd);font-size:40px}.recipe-card-body{padding:12px}.recipe-card h2{font-family:inherit;font-size:15px;margin:0 30px 4px 0}.recipe-card p{font-size:12px;color:#756b63;margin:0}.favorite-form{position:absolute;right:9px;bottom:12px}.favorite-form button{border:0;background:transparent;color:var(--terracotta);font-size:23px}.pagination{display:flex;justify-content:center;gap:20px;margin:28px 0}.recipe-form-card,.recipe-detail{max-width:720px}.form-field{margin-bottom:18px}.form-field label{display:block;font-weight:650;margin:0 0 7px}.form-field input,.form-field textarea,.form-field select{box-sizing:border-box;width:100%;border:1px solid #e6ddd4;border-radius:13px;background:#fff;padding:12px;font:inherit;color:var(--ink)}.field-help{font-size:12px;color:#746b63;margin:-3px 0 8px}.field-error{color:#a4372b;font-size:13px}.recipe-actions{display:flex;gap:10px;margin:18px 0}.recipe-actions form{flex:1}.recipe-actions .button{width:100%}.recipe-hero .large{min-height:240px;border-radius:22px;font-size:62px}.recipe-description{font-size:17px;line-height:1.55}.recipe-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0;padding:16px;background:#fff;border-radius:16px;text-align:center;color:#776c64;font-size:12px}.recipe-facts strong{color:var(--ink);font-size:15px}.ingredient-list{list-style:none;padding:0}.ingredient-list li{display:grid;grid-template-columns:90px 1fr;gap:8px;padding:12px 0;border-bottom:1px solid #e8dfd6}.ingredient-list small{grid-column:2;color:#756b63}.step-list{list-style:none;padding:0}.step-list>li{display:flex;gap:14px;margin:18px 0;line-height:1.55}.step-list>li>span{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:var(--terracotta);color:white;font-weight:700}.step-list p{margin:5px 0}
.step-list h3.step-title{display:flex;align-items:center;min-height:34px;margin:0;font-size:17px;font-weight:700;line-height:1.3}.personal-note{padding:18px;background:var(--soft);border-radius:16px}.archive-form{margin-top:36px}@media(min-width:700px){.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.collection-list{display:grid;gap:10px}.collection-row{display:grid;grid-template-columns:64px 1fr auto;align-items:center;gap:14px;padding:10px;background:#fff;border-radius:17px;color:var(--ink)}.collection-thumb{display:grid;place-items:center;width:64px;height:58px;border-radius:12px;background:var(--soft);color:var(--terracotta);font-size:25px}.collection-row h2{font-family:inherit;font-size:16px;margin:0}.collection-row p{color:#756b63;margin:5px 0 0}.add-to-collection{display:flex;gap:10px;margin:18px 0 24px}.add-to-collection select{flex:1;border:1px solid #e6ddd4;border-radius:12px;background:#fff;padding:10px}.remove-collection-form{position:absolute;right:8px;top:8px}.remove-collection-form button{border:0;border-radius:50%;background:rgba(255,255,255,.9);font-size:20px;width:30px;height:30px}
.recipe-card-image{display:block;width:100%;height:132px;object-fit:cover}.recipe-hero img{display:block;width:100%;max-height:480px;object-fit:cover;border-radius:22px}.photo-section{margin-top:32px}.photo-strip{display:flex;gap:10px;overflow:auto;margin-bottom:16px}.photo-strip img{width:92px;height:92px;object-fit:cover;border-radius:12px}.photo-upload{display:grid;gap:12px;padding:16px;background:#fff;border-radius:16px}.photo-upload input[type=file]{max-width:100%}
.api-status{margin:24px 0;padding:18px;background:var(--soft);border-radius:16px}.api-status h2{margin:4px 0}.api-status small{color:#6f655d}.status-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#b84a3a}.status-dot.ready{background:#4e8153}
.native-fab-icon{display:grid;place-items:center;width:100%;height:100%;color:#fff;font-size:30px;font-weight:400;line-height:1}.button{min-height:42px;display:flex;align-items:center;justify-content:center}.button input{color:inherit}
.app-frame{min-height:100dvh;background:var(--cream)}.app-navbar{position:sticky;top:0;z-index:50;padding:calc(12px + env(safe-area-inset-top)) 18px 10px;background:rgba(250,247,241,.94);backdrop-filter:blur(18px)}.app-navbar-row{display:flex;align-items:center;justify-content:space-between;max-width:980px;margin:auto}.app-kicker{font-size:13px;font-weight:650}.app-page-title{max-width:980px;margin:8px auto 0;font-size:34px}.app-content{display:block;min-height:calc(100dvh - 150px);padding-bottom:calc(82px + env(safe-area-inset-bottom));background:var(--cream)}.main-tabs{position:fixed;z-index:60;left:0;right:0;bottom:0;height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:rgba(250,247,241,.96);box-shadow:0 -8px 24px rgba(61,42,31,.08);backdrop-filter:blur(18px)}.main-tabs-inner{display:grid;grid-template-columns:repeat(4,1fr);align-items:center;height:64px;max-width:620px;margin:auto}.main-tabs .tab-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#756b63;font-size:11px}.main-tabs .tab-link-active{color:var(--terracotta)}
.photo-item{flex:0 0 112px}.photo-item img{display:block;width:112px;height:92px;object-fit:cover;border-radius:12px}.photo-item .button{margin-top:6px}.crop-stage{height:min(62vh,620px);background:#171513;border-radius:18px;overflow:hidden}.crop-stage img{display:block;max-width:100%}.crop-actions{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-top:18px}.crop-actions .button{width:100%}
.cook-mode{position:fixed;inset:0;display:flex;flex-direction:column;background:var(--cream);color:var(--ink)}.cook-bar{display:grid;grid-template-columns:var(--nav-button-size) 1fr var(--nav-button-size);align-items:center;gap:12px;width:100%;max-width:760px;box-sizing:border-box;margin:0 auto;padding:calc(10px + env(safe-area-inset-top)) 16px 10px}.cook-bar-title{margin:0;overflow:hidden;color:#6f655d;font-size:14px;font-weight:650;text-align:center;white-space:nowrap;text-overflow:ellipsis}.cook-bar button.back-button{width:var(--nav-button-size);padding:0;cursor:pointer}.cook-progress{display:flex;gap:4px;width:100%;max-width:760px;box-sizing:border-box;margin:0 auto;padding:0 16px 6px}.cook-progress span{flex:1;height:3px;border-radius:3px;background:#e5dbd1;transition:background .2s ease}.cook-progress span.is-done{background:var(--terracotta)}.cook-track{flex:1;display:flex;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}.cook-track::-webkit-scrollbar{display:none}.cook-slide{flex:0 0 100%;box-sizing:border-box;height:100%;overflow-y:auto;scroll-snap-align:start;scroll-snap-stop:always;padding:22px max(20px,calc((100% - 720px) / 2)) 28px}.cook-step-label{margin:0 0 14px;color:var(--terracotta);font-size:13px;font-weight:750;letter-spacing:.02em}.cook-step-label span{color:#a39a91;font-weight:600}.cook-step-title{margin:0 0 12px;font-size:26px;line-height:1.2}.cook-text{margin:0;font-size:21px;line-height:1.55;font-weight:450}.cook-step-ingredients{margin:0 0 22px;padding:4px 16px;border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(67,43,27,.05)}.cook-step-ingredients ul{margin:0;padding:0;list-style:none}.cook-step-ingredients li{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #f0e8e0;font-size:16px}.cook-step-ingredients li:last-child{border-bottom:0}.cook-step-ingredients b{flex:none;color:var(--terracotta);font-weight:700;font-variant-numeric:tabular-nums}.cook-timer-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;width:auto;min-width:var(--nav-button-size);height:var(--nav-button-size);padding:0 12px;border:1px solid #e6dcd2;border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}.cook-timer-button:active{opacity:.6}.cook-timer-button:disabled{opacity:.35;cursor:default}.cook-timer-button span:empty{display:none}.cook-timer-button.is-running{border-color:var(--ink);background:var(--ink);color:#fff}.cook-timer-button svg,.cook-timer-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.cook-slide .personal-note{margin-top:22px}@keyframes timer-pulse{50%{transform:scale(1.03)}}.cook-nav{display:grid;grid-template-columns:var(--nav-button-size) auto 1fr;align-items:center;gap:12px;width:100%;max-width:760px;box-sizing:border-box;margin:0 auto;padding:10px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #ece3da}.cook-nav .cook-prev{width:var(--nav-button-size);padding:0;cursor:pointer}.cook-nav .cook-prev:disabled{opacity:.35}.cook-nav .cook-next{width:100%}.servings-sheet.cook-ingredients-sheet{max-height:min(80dvh,640px);overflow-y:auto;text-align:left}.cook-ingredients-sheet h2{text-align:center}.cook-ingredients-sheet ul{margin:14px 0 18px;padding:0;list-style:none}.cook-ingredients-sheet li{border-bottom:1px solid #ece3da}.cook-ingredients-sheet li:last-child{border-bottom:0}.cook-ingredients-sheet label{display:flex;align-items:flex-start;gap:12px;padding:11px 0;cursor:pointer}.cook-ingredients-sheet input{flex:none;width:20px;height:20px;margin:2px 0 0;accent-color:var(--terracotta)}.cook-ingredients-sheet span{flex:1;min-width:0}.cook-ingredients-sheet small{display:block;margin-top:2px;color:#766d65;font-size:12px}.cook-ingredients-sheet b{flex:none;color:var(--terracotta);text-align:right}.cook-ingredients-sheet input:checked~span,.cook-ingredients-sheet input:checked~b{opacity:.45;text-decoration:line-through}.cook-ingredients-sheet .button{width:100%}
.offline-banner{position:fixed;z-index:1000;left:12px;right:12px;top:calc(10px + env(safe-area-inset-top));padding:12px 16px;border-radius:13px;background:#27231f;color:#fff;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.2)}.offline-banner[hidden]{display:none}

/* Refonte visuelle : structure fidèle à la maquette mobile, sans routeur SPA. */
body{margin:0}.app-navbar{padding:calc(13px + env(safe-area-inset-top)) 18px 8px;border-bottom:1px solid rgba(62,47,38,.05)}.app-kicker{color:#8b7e74;font-size:12px}.app-page-title{font-size:38px;line-height:1;margin-top:9px}.content-section{box-sizing:border-box;padding-top:12px}.main-tabs{height:calc(70px + env(safe-area-inset-bottom));background:rgba(250,247,241,.98)}.main-tabs-inner{height:70px}.main-tabs .tab-link{gap:4px;text-decoration:none}.main-tabs .tab-link svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.main-tabs .import-button{width:48px;height:48px;margin-top:-24px;font-size:31px}.app-fab{position:fixed;z-index:65;right:20px;bottom:calc(86px + env(safe-area-inset-bottom));display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:var(--terracotta);color:#fff;font-size:34px;line-height:1;text-decoration:none;box-shadow:0 10px 24px rgba(185,84,59,.32)}
.recipe-search{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;padding:0 12px;background:#fff;border:1px solid #eee5dc;border-radius:14px;box-shadow:0 5px 20px rgba(56,38,25,.05)}.recipe-search svg{width:20px;fill:none;stroke:#7e746c;stroke-width:1.8}.recipe-search input{min-width:0;height:46px;border:0;outline:0;background:transparent;font:inherit}.recipe-search button{position:absolute;width:1px;height:1px;overflow:hidden;border:0}.filter-heading{display:flex;justify-content:space-between;align-items:center;margin:18px 1px 9px;font-size:12px;font-weight:700;color:#746a62}.filter-heading a{color:var(--terracotta);text-decoration:none;font-weight:600}.filter-pills{padding-bottom:16px}.pill{border:1px solid #eee5dc;background:#fff;color:#4a423d;text-decoration:none;font-size:13px;padding:8px 14px}.pill.active{border-color:var(--terracotta);background:var(--terracotta)}.recipe-grid{gap:16px 12px}.recipe-card{border-radius:16px;background:transparent;box-shadow:none}.recipe-card-link{text-decoration:none}.recipe-card-visual{position:relative;overflow:hidden;border-radius:15px;background:#eee4da;box-shadow:0 6px 18px rgba(61,42,31,.1)}.recipe-card-image,.recipe-photo-placeholder{width:100%;height:auto;aspect-ratio:1.22/1;min-height:0;object-fit:cover}.recipe-photo-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#e9d7c5,#f5e9dd);color:#9e6a59;text-align:center;font-family:Georgia,serif;font-size:17px}.recipe-card-body{padding:9px 2px 2px}.recipe-card h2{font-size:14px;line-height:1.3;margin-right:28px}.recipe-card p{margin-top:5px}.favorite-form{right:3px;bottom:24px}.favorite-form button{cursor:pointer;font-size:25px;padding:5px;color:var(--terracotta)}
.segmented-control{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#eee7df;border-radius:12px}.segmented-control span{padding:10px;text-align:center;border-radius:9px;font-size:13px}.segmented-control .active{background:#fff;color:var(--terracotta);font-weight:700;box-shadow:0 2px 8px rgba(50,35,25,.08)}.segmented-control .disabled{color:#aaa19a}.import-form{margin-top:16px}.photo-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;min-height:230px;padding:28px;border:1.5px dashed #d6c9bd;border-radius:18px;background:#fff;cursor:pointer;text-align:center}.native-file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.camera-icon{display:grid;place-items:center;width:58px;height:58px;margin-bottom:14px;border-radius:50%;background:var(--soft);color:var(--terracotta)}.camera-icon svg{width:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.photo-picker strong{font-size:17px}.photo-picker small{max-width:240px;margin-top:7px;color:#81766e;line-height:1.4}.selected-photos{display:flex;gap:10px;overflow:auto;padding:14px 2px 5px}.selected-photo{position:relative;flex:0 0 100px}.selected-photo img{display:block;width:100px;height:100px;border-radius:13px;object-fit:cover}.selected-photo span{position:absolute;right:6px;bottom:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:rgba(39,35,31,.8);color:#fff;font-size:12px}.import-hint{text-align:center;color:#81766e;font-size:12px}.import-submit{width:100%;margin-top:12px}.import-submit:disabled{opacity:.42}.recent-imports{margin-top:34px}.section-heading{display:flex;align-items:center;gap:8px}.section-heading h2{font-size:25px;margin:0}.section-heading span{display:grid;place-items:center;min-width:23px;height:23px;border-radius:50%;background:var(--soft);color:var(--terracotta);font-size:12px}.import-card-list{display:grid;gap:10px;margin-top:13px}.import-card{display:grid;grid-template-columns:76px 1fr auto;align-items:center;gap:13px;padding:9px;background:#fff;border-radius:16px;color:var(--ink);text-decoration:none;box-shadow:0 4px 16px rgba(57,39,28,.06)}.import-card-photo{width:76px;height:66px;overflow:hidden;border-radius:11px;background:var(--soft)}.import-card-photo img{width:100%;height:100%;object-fit:cover}.import-card h3{margin:0;font-family:inherit;font-size:15px}.import-card p{margin:5px 0 0;color:#7b7169;font-size:12px}.import-card .status-review{color:#b36a24}.import-card .status-error{color:#a4372b}.import-card .status-ready{color:#4e8153}.row-chevron{font-size:27px;color:#b0a69e}.import-pages{display:flex;gap:10px;overflow:auto}.import-pages a{position:relative;flex:0 0 145px;color:#fff}.import-pages img{display:block;width:145px;height:190px;border-radius:15px;object-fit:cover}.import-pages span{position:absolute;left:8px;bottom:8px;padding:4px 8px;border-radius:99px;background:rgba(30,25,22,.72);font-size:11px}.import-next-step{max-width:520px;margin:28px auto;padding:26px 22px;border-radius:22px;background:#fff;text-align:center;box-shadow:0 10px 35px rgba(62,42,29,.08)}.import-next-step h2{margin:10px 0 6px;font-size:27px}.import-next-step p{color:#786e66;line-height:1.5}.import-next-step form,.import-next-step .button{width:100%}.step-badge{display:grid;place-items:center;width:44px;height:44px;margin:auto;border-radius:50%;background:var(--terracotta);color:#fff;font-weight:800}.step-badge.success{background:#4e8153}.step-badge.error{background:#a4372b}.step-badge.loading{animation:timer-pulse 1s infinite}
@media(min-width:700px){.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.import-screen{max-width:680px}}
.screen-intro{margin:0 0 18px;color:#7a7068}.collection-gallery{display:grid;gap:11px}.collection-tile{display:grid;grid-template-columns:84px 1fr auto;align-items:center;gap:14px;padding:10px;background:#fff;border-radius:18px;color:var(--ink);text-decoration:none;box-shadow:0 5px 18px rgba(57,39,28,.06)}.collection-cover{display:grid;place-items:center;width:84px;height:70px;overflow:hidden;border-radius:13px;background:linear-gradient(145deg,#e7c9b5,#f4e4d7);color:var(--terracotta);font-family:Georgia,serif;font-size:30px}.collection-cover img{width:100%;height:100%;object-fit:cover}.collection-tile h2{margin:0;font-family:inherit;font-size:16px}.collection-tile p{margin:6px 0 0;color:#7c726a;font-size:12px}@media(min-width:700px){.collection-gallery{grid-template-columns:repeat(2,1fr)}}

/* Correctifs contrôlés sur viewport mobile */
html,body{width:100%;max-width:100%;overflow-x:hidden;overflow-y:auto!important;overscroll-behavior-y:auto!important;touch-action:pan-y;background:var(--cream)}*,*:before,*:after{box-sizing:border-box}.app-frame{width:100%;overflow:visible}.app-content{overflow:visible}.content-section{width:100%;max-width:980px}.app-kicker:empty{display:none}.app-page-title{margin-top:5px}.recipes-screen{padding-top:8px}.search-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 45px;gap:9px;align-items:center;margin-bottom:12px}.recipe-search{width:100%;min-width:0}.filter-menu{position:relative}.filter-menu summary{display:grid;place-items:center;width:45px;height:45px;border:1px solid #eee5dc;border-radius:13px;background:#fff;cursor:pointer;list-style:none}.filter-menu summary::-webkit-details-marker,.card-menu summary::-webkit-details-marker,.overflow-menu summary::-webkit-details-marker{display:none}.filter-menu svg{width:22px;fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round}.filter-popover{position:absolute;z-index:90;top:52px;right:0;display:grid;width:190px;padding:9px;background:#fff;border:1px solid #eee5dc;border-radius:14px;box-shadow:0 16px 35px rgba(50,35,25,.16)}.filter-popover strong{padding:8px}.filter-popover a{padding:10px 8px;border-radius:8px;color:var(--ink);text-decoration:none}.filter-popover a:hover{background:var(--soft)}.recipe-card{position:static;min-width:0;overflow:visible;background:transparent;box-shadow:none}.recipe-card-visual{display:block;overflow:hidden;width:100%;border-radius:14px;box-shadow:none!important}.recipe-card-image,.recipe-card-visual .recipe-photo-placeholder{display:block;width:100%;aspect-ratio:1.24/1;height:auto;object-fit:cover}.recipe-card-caption{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:4px;align-items:start;padding:8px 1px 0}.recipe-card-caption>a{min-width:0;color:var(--ink);text-decoration:none}.recipe-card-caption h2{margin:0;font-family:inherit;font-size:13px;line-height:1.32}.recipe-card-caption p{margin:4px 0 0;color:#7d736b;font-size:11px}.favorite-form{position:static!important;align-self:start}.favorite-form button.heart{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;background:transparent;color:#756d67;font-size:24px;line-height:1;cursor:pointer}.favorite-form button.heart.selected{color:#d84332}.recipe-grid{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;overflow:visible}.app-fab{display:none!important}.main-tabs{border-top:1px solid #ebe3da;box-shadow:none!important}.main-tabs-inner{grid-template-columns:repeat(4,minmax(0,1fr));padding:0 10px}.main-tabs .tab-link{min-width:0}.main-tabs .tab-link span:last-child{font-size:10px}.main-tabs .import-button{box-shadow:0 5px 14px rgba(185,84,59,.26)}
.collection-heading{display:flex;align-items:center;gap:12px;min-height:38px;margin:0 0 16px}.collection-heading>p{flex:1;min-width:0;margin:0;color:#7a7068;font-size:15px;line-height:1.4}.collection-empty-action{margin-top:18px}.collection-heading .overflow-menu{position:relative;top:auto;right:auto;flex:0 0 auto;margin-left:auto}.overflow-menu{position:absolute;right:0;top:0}.overflow-menu summary,.card-menu summary{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;font-size:24px;cursor:pointer;list-style:none}.overflow-menu>div,.card-menu>div{position:absolute;z-index:90;right:0;top:42px;min-width:190px;padding:8px;background:#fff;border:1px solid #eee5dc;border-radius:13px;box-shadow:0 14px 35px rgba(50,35,25,.16)}.overflow-menu a,.card-menu a,.card-menu button{display:block;width:100%;padding:10px;border:0;background:none;color:var(--ink);text-align:left;text-decoration:none;font:inherit}.card-menu{position:relative}.card-menu>div{top:34px}.card-menu summary{width:28px;height:28px;background:transparent;font-size:22px}.card-menu button{color:#a4372b}.add-recipes-button{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:12px;margin:18px 0 24px;padding:13px;background:#fff;border-radius:16px;color:var(--ink);text-decoration:none}.add-recipes-button>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--soft);color:var(--terracotta);font-size:25px}.add-recipes-button strong,.add-recipes-button small{display:block}.add-recipes-button small{margin-top:3px;color:#81766e}.add-recipes-button b{font-size:25px;color:#aea39a}.add-recipe-results{display:grid;gap:9px;margin-top:14px}.add-recipe-results article{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px;background:#fff;border-radius:14px}.mini-cover{width:58px;height:54px;overflow:hidden;border-radius:10px;background:var(--soft)}.mini-cover img{width:100%;height:100%;object-fit:cover}.add-recipe-results h2{margin:0;font-family:inherit;font-size:14px}.add-recipe-results p{margin:4px 0 0;color:#81766e;font-size:11px}.add-recipe-results .button{min-height:36px;padding:0 14px}
.settings-screen{max-width:720px}.settings-section-title{margin:22px 4px 7px;font-family:inherit;font-size:12px;text-transform:none}.settings-section-title:first-child{margin-top:4px}.settings-group{overflow:hidden;border:1px solid #eee5dc;border-radius:16px;background:#fff}.settings-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:9px 13px;border-bottom:1px solid #f0e9e2;color:var(--ink);text-decoration:none}.settings-row:last-child{border-bottom:0}.settings-row strong,.settings-row small{display:block}.settings-row strong{font-size:14px}.settings-row small{margin-top:3px;color:#81766e;font-size:11px}.settings-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#f5eee7;color:#5f554e;font-size:18px}.settings-icon.avatar{border-radius:50%;background:var(--soft);color:var(--terracotta);font-weight:700}.setting-value{color:#776d65;font-size:12px}.settings-row.muted{opacity:.62}.logout-form{margin:28px 0}.logout-form button{width:100%;padding:14px;border:0;background:transparent;color:#b54836;font:inherit;font-weight:600;cursor:pointer}
@media(min-width:700px){.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.app-navbar-row>.header-action{margin-left:auto!important;margin-inline-start:auto!important}.header-add{display:grid;place-items:center;width:34px;height:34px;margin-left:auto!important;border-radius:50%;background:var(--soft);color:var(--terracotta);font-size:25px;text-decoration:none}


/* Barre basse : quatre onglets et une action centrale indépendante. */
.main-tabs{height:calc(72px + env(safe-area-inset-bottom))}.main-tabs-inner{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:72px;max-width:620px;padding:0 6px}.main-tabs .tab-link:nth-child(1){grid-column:1}.main-tabs .tab-link:nth-child(2){grid-column:2}.main-tabs .tab-link:nth-child(4){grid-column:4}.main-tabs .tab-link:nth-child(5){grid-column:5}.central-add{grid-column:3;align-self:start;justify-self:center;display:grid;place-items:center;width:54px;height:54px;margin-top:-19px;border:4px solid var(--cream);border-radius:50%;background:var(--terracotta);color:#fff;text-decoration:none;box-shadow:0 6px 16px rgba(185,84,59,.3)}.central-add span{font-size:32px;line-height:1;transform:translateY(-1px)}.central-add.active:after{content:"";position:absolute;bottom:5px;width:28px;height:3px;border-radius:3px;background:var(--ink)}
.favorite-form button.heart svg,.detail-heart svg{display:block;width:22px;height:22px;fill:transparent;stroke:#817a74;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.favorite-form button.heart.selected svg,.detail-heart.selected svg{fill:#e34838;stroke:#e34838}.detail-heart{display:inline-flex;align-items:center;justify-content:center;gap:8px}.detail-heart svg{width:21px;height:21px}

/* Finitions UX */
.cookbook-placeholder{display:flex!important;flex-direction:column;gap:7px;padding:14px}.cookbook-placeholder svg{width:58px;height:58px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.cookbook-placeholder span{max-width:100%;overflow:hidden;font-family:inherit;font-size:12px;font-weight:700;line-height:1.2;text-overflow:ellipsis}.mini-cover{display:grid;place-items:center}.mini-cover>svg{width:30px;fill:none;stroke:var(--terracotta);stroke-width:1.6}.notice-stack{width:min(100% - 28px,952px);margin:0 auto}.notice{margin:12px 0 2px;padding:13px 15px;border:1px solid transparent;border-radius:14px;font-size:13px;font-weight:600;box-shadow:0 8px 22px rgba(49,39,31,.08)}.notice-success{border-color:#cfe2d1;background:#f2faf3;color:#35633d}.notice-error{border-color:#efcbc5;background:#fff5f3;color:#8f392e}.notice-info{border-color:#d9dbe8;background:#f7f7fc;color:#505778}.import-links{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:28px}.import-links a{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:78px;padding:14px;border:1px solid #eadfd5;border-radius:16px;background:#fff;color:var(--ink);text-decoration:none}.import-links span{font-weight:750}.import-links small{margin-top:5px;color:#80756d}.import-links b{position:absolute;top:10px;right:10px;display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:99px;background:var(--terracotta);color:#fff;font-size:12px}.append-photos{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.append-photos label{position:relative}.append-photos input[type=file],.avatar-form input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.cancel-link{display:inline-block;margin-top:14px;padding:9px;color:#766b63;text-decoration:none}.analysis-dialog{width:min(430px,calc(100vw - 32px));padding:22px;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(35,25,20,.3)}.analysis-dialog::backdrop{background:rgba(35,27,22,.55);backdrop-filter:blur(5px)}.analysis-dialog-head{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:14px}.analysis-dialog-head img{width:70px;height:70px;border-radius:13px;object-fit:cover;background:var(--soft)}.analysis-dialog-head small,.analysis-dialog-head strong{display:block}.analysis-dialog-head small{margin-bottom:5px;color:var(--terracotta);font-weight:700}.analysis-steps{margin:22px 0;padding:0;list-style:none}.analysis-steps li{position:relative;margin:0;padding:9px 0 9px 31px;color:#958b83}.analysis-steps li:before{content:"";position:absolute;left:2px;top:12px;width:13px;height:13px;border:2px solid #d7ccc2;border-radius:50%}.analysis-steps li.active{color:var(--ink);font-weight:700}.analysis-steps li.active:before{border-color:var(--terracotta);box-shadow:0 0 0 4px var(--soft)}.analysis-steps li.done:before{border-color:var(--terracotta);background:var(--terracotta)}.analysis-dialog>p{margin-bottom:0;color:#80756d;font-size:12px}.settings-profile{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:13px;padding:14px}.settings-profile strong,.settings-profile small{display:block}.settings-profile small{margin-top:4px;color:#81766e}.profile-avatar,.profile-dot{display:grid;place-items:center;overflow:hidden;border-radius:50%;background:var(--soft);color:var(--terracotta);font-weight:750}.profile-avatar.large{width:54px;height:54px}.profile-avatar img,.profile-dot img{width:100%;height:100%;object-fit:cover}.profile-dot{width:34px;height:34px}.profile-dot b{font-size:13px}.avatar-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 14px 14px}.avatar-form label{position:relative}.theme-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.theme-choice{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;min-height:58px;padding:10px;border:1px solid #eadfd5;border-radius:15px;background:#fff;color:var(--ink);font:inherit;text-align:left}.theme-choice.selected{border-color:var(--terracotta);box-shadow:0 0 0 2px color-mix(in srgb,var(--terracotta) 18%,transparent)}.theme-choice i{width:34px;height:34px;border-radius:50%;background:var(--swatch)}.theme-choice b{color:var(--terracotta)}.favorites-collection .collection-cover{color:var(--terracotta)}
@media(max-width:420px){.append-photos,.avatar-form{grid-template-columns:1fr}}
.navbar-leading{display:flex;align-items:center;gap:9px;min-width:0}.back-button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #eadfd5;border-radius:50%;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 3px 10px rgba(55,40,30,.06)}.back-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.category-list{display:grid;gap:10px}.category-list .collection-row{display:grid;grid-template-columns:58px minmax(0,1fr) 34px;align-items:center;gap:11px;padding:9px;background:#fff;border-radius:16px}.category-main{min-width:0;color:var(--ink);text-decoration:none}.category-main h2,.category-main p{margin:0}.category-main h2{font-family:inherit;font-size:15px}.category-main p{display:-webkit-box;overflow:hidden;margin-top:4px;color:#81766e;font-size:12px;-webkit-line-clamp:2;-webkit-box-orient:vertical}.category-list .card-menu{justify-self:end}.danger-zone{margin-top:22px}.danger-zone .button{width:100%;border-color:#d8978d;color:#a4372b}.filter-popover.filter-form{width:min(330px,calc(100vw - 36px));max-height:min(650px,calc(100vh - 145px));overflow:auto;padding:14px}.filter-form label{display:grid;gap:5px;padding:7px 0;color:#645a53;font-size:12px;font-weight:650}.filter-form input[type=search],.filter-form select{width:100%;height:40px;padding:0 10px;border:1px solid #ded4ca;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.filter-form .filter-check{display:flex;align-items:center;grid-template-columns:auto 1fr;gap:8px}.filter-form .button{width:100%;margin-top:7px}.filter-reset{margin-top:5px!important;color:var(--terracotta)!important;text-align:center}.source-line a{color:var(--terracotta);font-weight:700;text-decoration:underline;text-underline-offset:3px}.favorites-collection .collection-cover{position:relative}.favorite-cover-heart{position:absolute!important;inset:0;display:grid!important;place-items:center;width:auto!important;background:rgba(35,25,20,.18);color:#e34838!important}.favorite-cover-heart svg{width:31px;height:31px;fill:#e34838;stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 2px 4px rgba(0,0,0,.25))}
.selected-photo-remove{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:24px;height:24px;padding:0;border:2px solid #fff;border-radius:50%;background:#2d2824;color:#fff;font-size:18px;line-height:1;box-shadow:0 2px 7px rgba(0,0,0,.25);cursor:pointer}.selected-photo span{right:6px;bottom:6px}
.compact-pages{gap:8px}.compact-pages a,.compact-pages>div{position:relative;flex:0 0 104px;color:#fff}.compact-pages img{width:104px;height:128px;border-radius:13px}.compact-pages span{position:absolute;left:6px;bottom:6px;padding:3px 7px;border-radius:99px;background:rgba(30,25,22,.72);color:#fff;font-size:10px}.photo-count-badge{display:grid;place-items:center;width:44px;height:44px;margin:0 auto;border-radius:50%;background:var(--terracotta);color:#fff;font-weight:800}.import-detail{padding-bottom:0}.import-detail .import-next-step{margin-top:18px;margin-bottom:0;padding:22px}.edit-photos-continue{width:100%;margin-top:12px}.existing-pages{margin-bottom:16px}.existing-pages>div{height:128px;overflow:hidden;border-radius:13px}
.recipes-page .app-navbar{display:none}.recipes-page .app-content{padding-top:0}.recipes-page .recipes-screen{max-width:980px;padding:0 18px 120px}.recipes-sticky-header{position:sticky;z-index:55;top:0;margin:0 -18px;background:linear-gradient(90deg,rgba(var(--header-veil),.98) 0%,rgba(var(--header-veil),.91) 48%,rgba(var(--header-veil),.35) 100%),var(--header-image) right center/cover no-repeat;box-shadow:0 1px 0 rgba(74,51,36,.08)}.recipes-hero{padding:calc(24px + env(safe-area-inset-top)) 18px 0}.recipes-hero h1{margin:0;color:#28221e;font-size:43px;line-height:1}.recipes-hero>p{margin:8px 0 18px;color:#70655d;font-size:17px;line-height:1.38}.recipes-hero .search-row{margin-bottom:0}.recipes-sticky-header .filter-pills{display:flex;gap:8px;overflow-x:auto;margin:0;padding:13px 18px 15px;scrollbar-width:none}.recipes-sticky-header .filter-pills::-webkit-scrollbar{display:none}.recipes-sticky-header .pill{flex:0 0 auto}.recipes-scroll-content{padding-top:15px}.recipes-page .filter-popover{max-height:calc(100dvh - 260px)}
@media(min-width:700px){.recipes-page .recipes-screen{padding-left:36px;padding-right:36px}.recipes-sticky-header{margin-left:-36px;margin-right:-36px}.recipes-hero{padding-left:36px;padding-right:36px}.recipes-sticky-header .filter-pills{padding-left:36px;padding-right:36px}}
.recipes-hero{position:relative}.recipes-avatar{position:absolute;top:calc(18px + env(safe-area-inset-top));right:18px;text-decoration:none}.recipes-avatar .profile-dot{border:2px solid rgba(255,255,255,.85);box-shadow:0 4px 14px rgba(49,35,25,.16)}.recipe-card{position:relative!important}.recipe-card>.favorite-form,.recipe-card .recipe-card-caption>.favorite-form{position:absolute!important;z-index:6;top:7px;right:7px;bottom:auto}.favorite-form button.heart{width:34px;height:34px;border-radius:50%;background:rgba(45,36,30,.14);backdrop-filter:blur(5px)}.favorite-form button.heart svg{width:23px;height:23px;fill:rgba(255,255,255,.12);stroke:#fff;stroke-width:1.8;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))}.favorite-form button.heart.selected svg{fill:#e34838;stroke:#fff}.import-timeline{display:grid;grid-template-columns:repeat(3,1fr);width:min(100% - 36px,944px);margin:12px auto 2px;padding:0;list-style:none}.import-timeline li{position:relative;display:grid;justify-items:center;gap:6px;color:#9b9189;text-align:center}.import-timeline li:not(:last-child):after{content:"";position:absolute;z-index:0;top:14px;left:calc(50% + 18px);width:calc(100% - 36px);height:2px;background:#ded5cc}.import-timeline li.done:not(:last-child):after{background:var(--terracotta)}.import-timeline span{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border:2px solid #ded5cc;border-radius:50%;background:var(--cream);font-size:12px;font-weight:800}.import-timeline small{max-width:105px;font-size:10px;line-height:1.25}.import-timeline li.active{color:var(--ink);font-weight:700}.import-timeline li.active span,.import-timeline li.done span{border-color:var(--terracotta);background:var(--terracotta);color:#fff}.collection-cover-field img{display:block;width:130px;height:94px;margin:0 0 10px;border-radius:14px;object-fit:cover}.collection-cover-field input[type=file]{width:100%;padding:10px;border:1px solid #e6ddd4;border-radius:12px;background:#fff}
.favorite-form button.heart{width:30px;height:30px;border-radius:0;background:transparent;backdrop-filter:none}.favorite-form button.heart svg{width:25px;height:25px}.collection-cover-picker{min-height:190px}.collection-cover-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.collection-cover-preview{margin-top:12px}.collection-cover-preview[hidden]{display:none}.collection-cover-preview img{display:block;width:112px;height:92px;border-radius:13px;object-fit:cover}.collection-cover-field>label:first-child{display:block;margin-bottom:7px;font-weight:650}
.form-field .collection-cover-picker{display:flex;flex-direction:column;align-items:center;justify-content:center}.collection-cover-picker strong{display:block}.collection-cover-picker small{display:block;margin-top:7px}
.settings-profile{grid-template-columns:54px minmax(0,1fr) auto}.settings-profile .avatar-form{display:block;padding:0}.avatar-change-button{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 13px;border:1px solid color-mix(in srgb,var(--terracotta) 35%,#ded4ca);border-radius:99px;background:var(--soft);color:var(--terracotta);font-size:12px;font-weight:750;cursor:pointer}.avatar-change-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.avatar-dialog{width:min(420px,calc(100vw - 30px));padding:22px;border:0;border-radius:22px;background:#fff;color:var(--ink);box-shadow:0 24px 80px rgba(35,25,20,.3)}.avatar-dialog::backdrop{background:rgba(35,27,22,.55);backdrop-filter:blur(5px)}.avatar-dialog h2{margin:0 0 20px;font-size:24px;text-align:center}.avatar-comparison{display:grid;grid-template-columns:1fr 28px 1fr;align-items:center;gap:8px}.avatar-comparison>div:not(.avatar-arrow){display:grid;justify-items:center;gap:8px;color:#81766e;font-size:12px}.avatar-preview{display:grid;place-items:center;overflow:hidden;width:105px;height:105px;border-radius:50%;background:var(--soft);color:var(--terracotta);font-size:34px}.avatar-preview img{width:100%;height:100%;object-fit:cover}.avatar-arrow{text-align:center;color:var(--terracotta);font-size:24px}.avatar-dialog-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:10px;margin-top:22px}.avatar-dialog-actions .button{width:100%}@media(max-width:390px){.settings-profile{grid-template-columns:48px 1fr auto}.profile-avatar.large{width:46px;height:46px}.avatar-change-button{padding:0 10px}.avatar-preview{width:88px;height:88px}}
.avatar-change-button{gap:6px;font-size:0}.avatar-change-button::before{content:"";width:15px;height:15px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4.5 10.3 3h3.4L15 4.5h3A2.5 2.5 0 0 1 20.5 7v10A2.5 2.5 0 0 1 18 19.5H6A2.5 2.5 0 0 1 3.5 17V7A2.5 2.5 0 0 1 6 4.5h3ZM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 1.8a2.2 2.2 0 1 1 0 4.4 2.2 2.2 0 0 1 0-4.4Z'/%3E%3C/svg%3E") center/contain no-repeat}.avatar-change-button::after{content:"Modifier la photo";font-size:11px;white-space:nowrap}
.photo-picker-prompt{display:flex;flex-direction:column;align-items:center}.photo-picker.has-photos{align-items:stretch;justify-content:flex-start;height:230px;min-height:230px;padding:14px 16px}.photo-picker.has-photos .photo-picker-prompt{flex:0 0 auto;margin:0 0 12px}.photo-picker.has-photos .camera-icon{width:36px;height:36px;margin-bottom:5px}.photo-picker.has-photos .camera-icon svg{width:20px}.photo-picker.has-photos .photo-picker-prompt strong{font-size:13px}.photo-picker.has-photos .photo-picker-prompt small{margin-top:2px;font-size:10px}.photo-picker.has-photos .selected-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow-y:auto;width:100%;padding:0}.photo-picker.has-photos .selected-photo{min-width:0;width:100%}.photo-picker.has-photos .selected-photo img{width:100%;height:auto;aspect-ratio:1/1;border-radius:11px}.photo-picker.has-photos .native-file-input{z-index:-1}.photo-picker.has-photos .selected-photo-remove{z-index:3}
.header-action .profile-dot,.recipes-avatar .profile-dot{box-sizing:border-box;width:34px;height:34px;border:2px solid rgba(255,255,255,.88);background:var(--soft);box-shadow:0 4px 14px rgba(49,35,25,.16)}
.photo-picker.has-photos{justify-content:center;padding:14px 16px}.photo-picker.has-photos .photo-picker-prompt{margin:0 0 10px}.photo-picker.has-photos .camera-icon{width:46px;height:46px;margin-bottom:8px}.photo-picker.has-photos .camera-icon svg{width:24px}.photo-picker.has-photos .photo-picker-prompt strong{font-size:15px}.photo-picker.has-photos .photo-picker-prompt small{margin-top:3px;font-size:10px}.photo-picker.has-photos .selected-photos{grid-template-columns:repeat(4,66px);justify-content:center;overflow:visible}.photo-picker.has-photos .selected-photo{width:66px}.photo-picker.has-photos .selected-photo img{width:66px;height:66px}.photo-picker.has-photos .selected-photo-remove{top:-5px;right:-5px}
.photo-picker.has-photos .photo-picker-prompt{margin-bottom:18px}.photo-picker.has-photos .selected-photo img{box-sizing:border-box;border:2px solid var(--terracotta);box-shadow:0 3px 10px color-mix(in srgb,var(--terracotta) 18%,transparent)}
.recipe-detail-page .app-navbar{display:none}.recipe-detail-page .app-content{padding-top:0}.recipe-detail-page .notice-stack{position:absolute;z-index:80;top:10px;left:50%;transform:translateX(-50%)}.recipe-detail-modern{max-width:720px;margin:0 auto;padding-bottom:110px}.recipe-detail-hero{position:relative;z-index:4;height:min(56vh,470px);min-height:310px;background:var(--soft)}.recipe-detail-hero>img,.recipe-detail-placeholder{width:100%;height:100%;object-fit:cover;border-radius:inherit}.recipe-detail-placeholder{justify-content:center}.detail-overlay-button{display:grid;place-items:center;box-sizing:border-box;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:rgba(255,252,248,.94);color:#3b332e;box-shadow:0 4px 15px rgba(30,22,18,.2);text-decoration:none;cursor:pointer}.detail-overlay-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.detail-back{position:absolute;z-index:5;top:calc(16px + env(safe-area-inset-top));left:16px}.detail-overlay-actions{position:absolute;z-index:7;top:calc(16px + env(safe-area-inset-top));right:16px;display:flex;gap:9px}.detail-overlay-actions form{margin:0}.detail-favorite svg{fill:transparent;stroke:var(--terracotta)}.detail-favorite.selected svg{fill:var(--terracotta);stroke:var(--terracotta)}.detail-menu{position:relative}.detail-menu summary{list-style:none;font-size:27px;line-height:1}.detail-menu summary::-webkit-details-marker{display:none}.detail-menu>div{position:absolute;top:49px;right:0;z-index:10;overflow:hidden;min-width:145px;border:1px solid #e8ded5;border-radius:14px;background:#fff;box-shadow:0 12px 30px rgba(39,29,23,.2)}.detail-menu a,.detail-menu button{display:flex;align-items:center;gap:10px;box-sizing:border-box;width:100%;padding:12px 15px;border:0;background:#fff;color:var(--ink);font:inherit;font-size:13px;text-align:left;text-decoration:none}.detail-menu a+*,.detail-menu form{border-top:1px solid #eee6df}.detail-menu button{color:#b44737}
.detail-menu svg{flex:0 0 17px;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.difficulty-choices{justify-content:center}.recipe-detail-summary{position:relative;z-index:3;margin:-1px 0 0;padding:18px 20px 17px;border-radius:0 0 22px 22px;background:#fff;box-shadow:0 8px 24px rgba(62,43,31,.08)}.recipe-detail-summary h1{margin:0;font-size:31px;line-height:1.02}.recipe-detail-summary>p{margin:9px 0 0;color:#746960;line-height:1.4}.recipe-detail-meta{display:flex;flex-wrap:wrap;gap:18px;margin-top:14px;color:#746960;font-size:12px}.recipe-detail-meta span{display:flex;align-items:center;gap:5px}.recipe-detail-meta svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}.recipe-detail-meta b{color:var(--ink)}.recipe-detail-body{padding:18px 20px}.recipe-cook-button{width:100%;margin:0 0 22px}.recipe-detail-body section>h2{margin:24px 0 10px;font-size:24px}@media(min-width:720px){.recipe-detail-modern{padding-top:18px}.recipe-detail-hero{border-radius:24px 24px 0 0}.recipe-detail-summary{border-radius:0 0 24px 24px}}
.recipe-detail-hero{height:min(43vh,360px);min-height:285px}.recipe-detail-summary h1{font-size:28px}
.detail-favorite svg,.detail-favorite.selected svg{stroke:#e34838}.detail-favorite.selected svg{fill:#e34838}.recipe-detail-meta{justify-content:center;text-align:center}.personal-note+.source-line,.source-line{margin-top:26px;margin-bottom:12px}.photo-manager{max-width:720px}.photo-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 24px}.photo-manager-grid article{padding:9px;border-radius:16px;background:#fff}.photo-manager-grid img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px}.photo-manager-grid .button{width:100%;margin-top:9px}.photo-manager-upload{gap:14px}.photo-manager-upload .photo-picker{min-height:190px}.cover-check{display:flex;align-items:center;gap:8px}
.recipe-detail-meta{display:grid;grid-template-columns:auto auto minmax(0,auto);justify-content:center;gap:clamp(5px,2.4vw,14px);font-size:clamp(9px,2.7vw,12px)}.recipe-detail-meta span{min-width:0;gap:3px;white-space:nowrap}.recipe-detail-meta svg{flex:0 0 15px;width:15px;height:15px}.recipe-detail-meta b{white-space:nowrap}.archive-list{display:grid;gap:10px}.archive-list>article{position:relative;display:grid;grid-template-columns:68px 1fr 34px;align-items:center;gap:12px;padding:10px;border-radius:16px;background:#fff}.archive-list .mini-cover,.archive-list .mini-cover img{width:68px;height:62px;border-radius:11px;object-fit:cover}.archive-list h2{margin:0 0 5px;font-family:inherit;font-size:15px}.archive-list a{color:var(--terracotta);font-size:12px}.archive-list .card-menu{position:relative}.photo-manager h2{margin:22px 0 10px;font-size:23px}.featured-photo{position:relative;width:150px}.featured-photo img{display:block;width:150px;height:110px;border:2px solid var(--terracotta);border-radius:14px;object-fit:cover}.featured-photo span{position:absolute;right:7px;bottom:7px;padding:3px 7px;border-radius:99px;background:var(--terracotta);color:#fff;font-size:10px}.photo-manager-heading small{color:#81766e}.photo-manager-grid article{position:relative;padding:0;cursor:grab}.photo-manager-grid article.dragging{opacity:.45}.photo-manager-grid .card-menu{position:absolute;top:7px;right:7px}.photo-manager-grid .card-menu summary{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.2)}.drag-handle{position:absolute;left:7px;top:7px;padding:4px 8px;border-radius:99px;background:rgba(35,30,27,.72);color:#fff}.recipe-carousel{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(18,15,13,.96)}.recipe-carousel::backdrop{background:rgba(18,15,13,.96)}.carousel-track,.carousel-track img{width:100%;height:100%}.carousel-track img{display:none;object-fit:contain}.carousel-track img.active{display:block}.carousel-close,.carousel-prev,.carousel-next{position:absolute;z-index:2;display:grid;place-items:center;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#2e2925}.carousel-close{top:calc(14px + env(safe-area-inset-top));right:14px;width:40px;height:40px;font-size:28px}.carousel-prev,.carousel-next{top:50%;width:42px;height:42px;font-size:30px}.carousel-prev{left:12px}.carousel-next{right:12px}.carousel-count{position:absolute;bottom:calc(18px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);padding:6px 11px;border-radius:99px;background:rgba(0,0,0,.55);color:#fff}.recipe-detail-hero>img{display:block;cursor:zoom-in}
.auth-screen{position:relative;min-height:100dvh;background-image:linear-gradient(rgba(5,13,17,.18),rgba(5,13,17,.38)),url('/static/images/login-background.jpg');background-position:center center;background-size:cover;background-repeat:no-repeat}.login-card{border:1px solid rgba(255,255,255,.48);background:rgba(255,252,247,.88);box-shadow:0 28px 80px rgba(0,0,0,.42);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}@media(max-width:600px){.auth-screen{align-items:end;padding:20px 16px calc(20px + env(safe-area-inset-bottom));background-position:52% center}.login-card{padding:25px 20px;border-radius:24px}.login-card h1{font-size:38px}.login-fields{margin-top:18px}}
.recipe-detail-meta .meta-stopwatch,.recipe-detail-meta .meta-portions,.recipe-detail-meta .meta-difficulty{display:block;flex:0 0 16px;width:16px;height:16px;object-fit:contain;object-position:center}.recipe-detail-meta span{gap:4px;align-items:center}
.recipe-detail-page .app-content{min-height:0;padding-bottom:calc(72px + env(safe-area-inset-bottom))}.recipe-detail-modern{padding-bottom:18px}.personal-note{position:relative;margin-top:34px;padding:22px 20px 20px;border:1px solid color-mix(in srgb,var(--terracotta) 14%,transparent);border-radius:20px;background:linear-gradient(145deg,color-mix(in srgb,var(--soft) 82%,#fff),color-mix(in srgb,var(--soft) 54%,#fff));box-shadow:0 8px 22px rgba(55,43,34,.06)}.recipe-detail-body .personal-note h2{margin:4px 0 10px;font-size:24px}.personal-note p{margin:0;color:#4f4741;font-size:14px;line-height:1.55;white-space:pre-line}.personal-note-label{color:var(--terracotta);font-size:10px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.recipe-personal-photos{margin-top:30px}.recipe-section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:12px}.recipe-section-heading>div>span{color:var(--terracotta);font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.recipe-detail-body .recipe-section-heading h2{margin:3px 0 0;font-size:24px}.recipe-section-heading>b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:99px;background:var(--soft);color:var(--terracotta);font-size:12px}.recipe-personal-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.recipe-personal-photo{overflow:hidden;padding:0;border:0;border-radius:14px;background:var(--soft);cursor:zoom-in}.recipe-personal-photo img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;transition:transform .2s ease}.recipe-personal-photo:active img{transform:scale(.97)}.recipe-personal-photos+.source-line,.personal-note+.source-line{margin-top:24px}.source-line:last-child{margin-bottom:4px}
.auth-screen{display:grid;align-items:center;justify-items:center;padding:calc(22px + env(safe-area-inset-top)) 18px calc(22px + env(safe-area-inset-bottom))}.login-card{box-sizing:border-box;width:min(100%,410px);padding:30px 24px;border:1px solid rgba(255,255,255,.65);border-radius:26px;background:rgba(255,255,255,.72);box-shadow:0 24px 70px rgba(0,0,0,.34);backdrop-filter:blur(14px) saturate(115%);-webkit-backdrop-filter:blur(14px) saturate(115%)}.login-fields.list.inset{margin:24px 0 14px}.login-fields ul{display:grid;gap:12px;background:transparent}.login-fields ul:before,.login-fields ul:after,.login-fields li:after{display:none}.login-fields .item-content{min-height:0;padding:0;background:transparent}.login-fields .item-inner{display:block;padding:0}.login-fields .item-title.item-label{margin:0 0 7px;color:#433b35;font-size:12px;font-weight:750}.login-fields .item-input-wrap{margin:0}.login-fields input{box-sizing:border-box;width:100%;height:48px;padding:0 14px;border:1px solid rgba(91,75,63,.22);border-radius:13px;background:rgba(255,255,255,.83);color:var(--ink);font-size:16px;outline:0;box-shadow:0 5px 16px rgba(49,38,30,.05)}.login-fields input:focus{border-color:var(--terracotta);box-shadow:0 0 0 3px color-mix(in srgb,var(--terracotta) 16%,transparent),0 5px 16px rgba(49,38,30,.06)}.login-fields .item-input-error-message{position:static;margin:6px 2px 0}.remember-row{margin:16px 3px 20px}.login-button{height:48px;border-radius:13px}.privacy-note{margin-top:18px}@media(max-width:600px){.auth-screen{align-items:center;padding:calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));background-position:52% center}.login-card{padding:27px 20px}.login-card h1{font-size:38px}.login-fields{margin-top:22px}}
.category-page-menu{position:relative}.category-page-menu summary{display:grid;place-items:center;width:36px;height:36px;border:1px solid #eadfd5;border-radius:50%;background:#fff;font-size:24px;line-height:1;list-style:none;cursor:pointer}.category-page-menu summary::-webkit-details-marker{display:none}.category-page-menu>div{position:absolute;z-index:100;top:43px;right:0;overflow:hidden;width:210px;padding:6px;border:1px solid #eadfd5;border-radius:14px;background:#fff;box-shadow:0 14px 35px rgba(50,35,25,.18)}.category-page-menu a,.category-page-menu button{display:block;width:100%;padding:11px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;text-align:left;text-decoration:none}.category-page-menu a:hover,.category-page-menu button:hover{background:var(--soft)}.category-reorder-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:13px 14px;border-radius:16px;background:var(--soft)}.category-reorder-bar[hidden]{display:none}.category-reorder-bar strong,.category-reorder-bar small{display:block}.category-reorder-bar small{margin-top:3px;color:#6f655d;font-size:11px}.category-reorder-bar .button{min-width:92px}.category-drag-icon{display:none;font-size:26px;line-height:1}.category-list.reorder-active .collection-row{cursor:grab;touch-action:none;user-select:none;box-shadow:0 5px 18px rgba(57,39,28,.08)}.category-list.reorder-active .collection-row:active{cursor:grabbing}.category-list.reorder-active .collection-row.dragging{z-index:2;opacity:.72;transform:scale(.985);box-shadow:0 12px 30px rgba(57,39,28,.18)}.category-list.reorder-active .category-position,.category-list.reorder-active .card-menu{display:none}.category-list.reorder-active .category-drag-icon{display:block}.category-list.reorder-active .collection-thumb{background:var(--terracotta);color:#fff}.category-list.reorder-active .category-main{pointer-events:none}
.recipe-description-field textarea{min-height:118px;resize:vertical}.category-multiselect{padding:0;border:0}.category-multiselect legend{margin-bottom:8px;font-weight:650}.category-multiselect>div{display:flex;flex-wrap:wrap;gap:8px}.category-multiselect label{position:relative;margin:0}.category-multiselect input{position:absolute;width:1px!important;height:1px;opacity:0}.category-multiselect label span{display:block;padding:9px 13px;border:1px solid #e4dad1;border-radius:99px;background:#fff;color:#5f554e;font-size:13px;cursor:pointer}.category-multiselect input:checked+span{border-color:var(--terracotta);background:var(--terracotta);color:#fff}.category-multiselect>small{display:block;margin-top:9px;color:#81766e;font-size:11px}.unit-field>div{position:relative}.unit-field input{padding-right:82px}.unit-field span{position:absolute;top:50%;right:14px;color:#9a9189;font-size:12px;pointer-events:none;transform:translateY(-50%)}.personal-notes-form{max-width:720px}.personal-notes-form form{padding:20px;border-radius:22px;background:#fff}.rating-field{margin:0 0 24px;padding:0;border:0}.rating-field legend{margin-bottom:10px;font-weight:750}.rating-field small{display:block;margin-top:9px;color:#81766e;font-size:11px}.star-rating{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:5px}.star-rating input{position:absolute;width:1px;height:1px;opacity:0}.star-rating label{color:#d8cec5;font-size:42px;line-height:1;cursor:pointer;transition:color .15s ease,transform .15s ease}.star-rating label:hover,.star-rating label:hover~label,.star-rating input:checked~label{color:#e6a22d}.star-rating label:active{transform:scale(.9)}.personal-notes-form textarea{min-height:180px}.personal-rating{display:flex;gap:3px;margin:-3px 0 13px;color:#d8cec5;font-size:20px}.personal-rating .selected{color:#e6a22d}
.card-rating{display:flex;gap:1px;color:#d8cec5;font-size:12px;line-height:1}
.card-rating .selected{color:#e6a22d}
.detail-rating{display:inline-flex;align-items:center;gap:2px;margin-top:7px;color:#d8cec5;font-size:19px;line-height:1;text-decoration:none;-webkit-tap-highlight-color:transparent}
.detail-rating .selected{color:#e6a22d}
.detail-rating small{margin-left:7px;color:#7d736b;font-size:12px;font-weight:650}
.detail-rating.unrated small{color:var(--terracotta)}
a.detail-rating:active{opacity:.6}
.card-meta-row{display:flex;align-items:center;gap:7px;min-height:14px;margin-top:4px}
.card-note-badge{position:absolute;z-index:5;top:9px;left:9px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(45,36,30,.34);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 2px 6px rgba(0,0,0,.14);pointer-events:none}
.card-note-badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
:root{--nav-button-size:40px;--nav-icon-size:22px}
.back-button,.detail-overlay-button,.category-page-menu summary,.header-add,.header-action .profile-dot,.recipes-avatar .profile-dot{flex:0 0 var(--nav-button-size);width:var(--nav-button-size);height:var(--nav-button-size)}
.back-button svg,.detail-overlay-button svg{width:var(--nav-icon-size);height:var(--nav-icon-size)}
.back-button{-webkit-tap-highlight-color:transparent}.back-button:active,.detail-overlay-button:active{transform:scale(.94)}
/* Courses */
.shopping-toolbar{position:relative;display:flex;align-items:flex-start;gap:8px;padding-right:46px;margin-bottom:10px}
.shopping-add{position:relative;flex:1;display:flex;align-items:center;min-width:0;background:#fff;border:1px solid #e6ddd4;border-radius:14px;box-shadow:0 4px 14px rgba(67,43,27,.05)}
.shopping-add input{flex:1;min-width:0;height:44px;padding:0 4px 0 14px;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);outline:none}
.shopping-add>button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;margin-right:4px;border:0;border-radius:11px;background:var(--terracotta);color:#fff;font-size:22px;line-height:1}
.shopping-suggestions{position:absolute;z-index:80;left:0;right:0;top:48px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #eee5dc;border-radius:14px;box-shadow:0 14px 35px rgba(50,35,25,.16)}
.shopping-suggestions button{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;padding:11px 10px;border:0;border-radius:9px;background:none;color:var(--ink);font:inherit;text-align:left}
.shopping-suggestions button:active{background:var(--soft)}
.shopping-suggestions small{color:#8a8077;font-size:12px;white-space:nowrap}
.shopping-suggestions-title{padding:6px 10px 2px;color:#8a8077;font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}
.shopping-menu{top:3px}
.shopping-menu>div{min-width:230px}
.overflow-menu button{display:block;width:100%;padding:10px;border:0;border-radius:8px;background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
.overflow-menu button.danger{color:#a4372b}
.shopping-status{margin:0 0 10px;padding:9px 12px;border-radius:11px;background:#eee9df;color:#5f554b;font-size:13px}
.shopping-status.is-warning{background:#fbf0d9;color:#6d5320}
.shopping-status a{color:inherit;font-weight:650}
.shopping-progress{display:flex;align-items:center;gap:10px;margin:2px 0 12px}
.shopping-progress[hidden]{display:none}
.shopping-progress>div{flex:1;height:6px;overflow:hidden;border-radius:9px;background:#ece4da}
.shopping-progress span{display:block;height:100%;border-radius:inherit;background:var(--terracotta);transition:width .3s ease}
.shopping-progress small{color:#7a7068;font-size:12px;white-space:nowrap}
.shopping-aisle{margin-bottom:16px}
.shopping-aisle-title{display:flex;align-items:center;gap:8px;margin:0 0 7px 4px;font-family:inherit;font-size:13px;font-weight:700;letter-spacing:.02em;color:#6f655d;text-transform:uppercase}
.shopping-aisle-title small{margin-left:auto;margin-right:6px;font-weight:600;color:#a39a91}
.shopping-items{margin:0;padding:0;list-style:none;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(67,43,27,.06)}
.shopping-item{display:flex;align-items:stretch;border-bottom:1px solid #f2ebe4}
.shopping-item:last-child{border-bottom:0}
.shopping-toggle{flex:1;display:flex;align-items:center;gap:12px;min-width:0;min-height:52px;padding:9px 4px 9px 14px;border:0;background:none;color:var(--ink);font:inherit;text-align:left;-webkit-tap-highlight-color:transparent}
.shopping-toggle:active{background:#faf6f1}



.shopping-text{display:flex;flex-direction:column;min-width:0;gap:2px}
.shopping-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
.shopping-line strong{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.shopping-quantity{color:var(--terracotta);font-size:14px;font-weight:600}
.shopping-origin{color:#9a9087;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shopping-origin-part{display:flex;align-items:baseline;gap:6px}.shopping-origin-part>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.shopping-origin-quantity{flex:none}.shopping-origin-quantity::before{content:"·";margin-right:6px}
.shopping-item.is-checked strong{color:#a39a91;text-decoration:line-through;text-decoration-thickness:1.5px}
.shopping-item.is-checked .shopping-quantity{color:#b7aea6}
.shopping-more{flex:0 0 44px;border:0;background:none;color:#a39a91;font-size:20px}
.shopping-basket{margin-top:22px}
.shopping-basket summary{display:flex;align-items:center;gap:8px;margin:0 0 7px 4px;list-style:none;font-size:13px;font-weight:700;letter-spacing:.02em;color:#6f655d;text-transform:uppercase;cursor:pointer}
.shopping-basket summary::-webkit-details-marker{display:none}
.shopping-basket summary::before{content:"›";display:inline-block;font-size:18px;line-height:1;transition:transform .15s ease}
.shopping-basket[open] summary::before{transform:rotate(90deg)}
.shopping-basket summary small{font-weight:600;color:#a39a91}
.shopping-basket-clear{margin-left:auto;padding:6px 12px;border:0;border-radius:999px;background:var(--soft);color:var(--terracotta);font:inherit;font-size:13px;font-weight:650;text-transform:none;letter-spacing:0}
.shopping-basket .shopping-items{opacity:.85}
.shopping-done{display:grid;gap:3px;margin:6px 0 4px;padding:16px;border-radius:16px;background:var(--soft);text-align:center}
.shopping-done small{color:#7a7068}
.shopping-empty{margin-top:8vh}
.shopping-sheet{width:min(460px,calc(100vw - 24px));padding:22px 20px calc(18px + env(safe-area-inset-bottom));border:0;border-radius:22px;background:var(--cream);color:var(--ink);box-shadow:0 24px 80px rgba(35,25,20,.3)}
.shopping-sheet::backdrop{background:rgba(35,27,22,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.shopping-sheet h2{margin:0 0 6px;font-size:22px}
.shopping-sheet-origin{margin:0 0 14px;color:#7a7068;font-size:13px}
.shopping-sheet input,.shopping-sheet select{font-size:16px}
.shopping-sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shopping-sheet-actions .button-fill{grid-column:1/-1;order:-1}
.shopping-sheet-delete{color:#a4372b!important;border-color:#e3b1a8!important}
.shopping-recipe-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.shopping-recipe-head img{width:58px;height:58px;border-radius:13px;object-fit:cover}
.shopping-recipe-head strong,.shopping-recipe-head small{display:block}
.shopping-recipe-head strong{font-size:17px}
.shopping-recipe-head small{color:#7a7068}
.servings-stepper{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 12px;background:#fff;border-radius:14px}
.servings-stepper span{flex:1;font-weight:650}
.servings-stepper button{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:var(--soft);color:var(--terracotta);font-size:22px;line-height:1}
.servings-stepper input{width:48px;height:36px;border:1px solid #e6ddd4;border-radius:10px;background:#fff;text-align:center;font:inherit;font-size:16px;font-weight:650;color:var(--ink)}
.shopping-pick-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 4px 8px;color:#7a7068;font-size:13px;white-space:nowrap}
.shopping-pick-head button{border:0;background:none;color:var(--terracotta);font:inherit;font-weight:650}
.shopping-pick-list{margin:0 0 18px;padding:0;list-style:none;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 6px 18px rgba(67,43,27,.06)}
.shopping-pick-list li{border-bottom:1px solid #f2ebe4}
.shopping-pick-list li:last-child{border-bottom:0}
.shopping-pick-list label{display:flex;align-items:center;gap:12px;min-height:52px;padding:9px 14px;cursor:pointer}
.shopping-pick-list input[type=checkbox]{position:absolute;opacity:0;pointer-events:none}
.pick-check{position:relative;flex:0 0 24px;width:24px;height:24px;border:2px solid #d5cbc1;border-radius:7px}
.shopping-pick-list input:checked+.pick-check{border-color:var(--terracotta);background:var(--terracotta)}
.shopping-pick-list input:checked+.pick-check::after{content:"";position:absolute;left:7px;top:3px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.shopping-pick-list input:focus-visible+.pick-check{outline:2px solid var(--terracotta);outline-offset:2px}
.pick-text{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;min-width:0}
.pick-text strong{font-weight:600}
.pick-quantity{color:var(--terracotta);font-weight:600}
.pick-text em{flex-basis:100%;color:#9a9087;font-size:12px;font-style:normal}
.shopping-pick-submit{width:100%}
.shopping-pick-submit:disabled{opacity:.5}
/* Portions de la fiche recette */
.meta-servings-button{display:flex;align-items:center;gap:4px;min-width:0;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}
.meta-servings-button b{color:var(--ink);text-decoration:underline dotted;text-decoration-color:var(--terracotta);text-underline-offset:3px}
.meta-servings-button:active{opacity:.6}
.servings-sheet{width:min(440px,calc(100vw - 24px));padding:24px 22px calc(20px + env(safe-area-inset-bottom));border:0;border-radius:22px;background:var(--cream);color:var(--ink);box-shadow:0 24px 80px rgba(35,25,20,.3);text-align:center}
.servings-sheet::backdrop{background:rgba(35,27,22,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.servings-sheet h2{margin:0;font-size:22px}
.servings-sheet-value{margin:10px 0 14px;color:#7a7068}
.servings-sheet-value b{display:block;font-family:Georgia,"Times New Roman",serif;font-size:56px;line-height:1.05;color:var(--terracotta)}
.servings-sheet input[type=range]{width:100%;height:32px;margin:0;-webkit-appearance:none;appearance:none;background:transparent;accent-color:var(--terracotta)}
.servings-sheet input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:9px;background:#e6ddd4}
.servings-sheet input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-11px;border:3px solid #fff;border-radius:50%;background:var(--terracotta);box-shadow:0 2px 8px rgba(67,43,27,.25)}
.servings-sheet input[type=range]::-moz-range-track{height:6px;border-radius:9px;background:#e6ddd4}
.servings-sheet input[type=range]::-moz-range-thumb{width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:var(--terracotta);box-shadow:0 2px 8px rgba(67,43,27,.25)}
.servings-sheet-scale{display:flex;justify-content:space-between;margin:2px 4px 0;color:#a39a91;font-size:12px}
.servings-sheet-hint{margin:14px 0 18px;color:#7a7068;font-size:13px}
.servings-sheet-actions{display:flex;gap:10px}
.servings-sheet-actions .button{flex:1}
.servings-sheet-actions [hidden]{display:none}
/* Notifications (style iOS) */
.app-notif-stack{position:fixed;z-index:1000;top:calc(env(safe-area-inset-top) + 8px);left:8px;right:8px;display:flex;flex-direction:column;gap:8px;max-width:460px;margin:0 auto;pointer-events:none}
.app-notif{position:relative;box-sizing:border-box;width:100%;max-width:none;display:flex;align-items:center;gap:12px;padding:11px 10px 11px 12px;border-radius:20px;background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);box-shadow:0 10px 34px rgba(40,28,20,.18),0 0 0 .5px rgba(40,28,20,.08);color:var(--ink);pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;transform:translate3d(0,-140%,0);opacity:0;transition:transform .42s cubic-bezier(.2,.9,.3,1.15),opacity .25s ease}
.app-notif.is-visible{transform:translate3d(0,0,0);opacity:1}
.app-notif-image{flex:0 0 42px;width:42px;height:42px;border-radius:10px;object-fit:cover;background:var(--soft)}
.app-notif-image.is-icon{padding:7px;box-sizing:border-box;object-fit:contain}
.app-notif-body{flex:1;min-width:0}
.app-notif-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.app-notif-head strong{font-size:13px;font-weight:650}
.app-notif-head small{flex:0 0 auto;color:#8a8077;font-size:12px}
.app-notif-body p{margin:1px 0 0;font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.app-notif-error .app-notif-head strong{color:#a4372b}
.app-notif-close{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:rgba(40,28,20,.07);color:#6f655d;font-size:18px;line-height:1;cursor:pointer}
@media (prefers-reduced-motion:reduce){.app-notif{transition:opacity .2s ease}}
/* Fenêtre de confirmation */
.confirm-sheet{width:min(360px,calc(100vw - 40px));padding:24px 20px 18px;border:0;border-radius:22px;background:var(--cream);color:var(--ink);box-shadow:0 24px 80px rgba(35,25,20,.3);text-align:center}
.confirm-sheet::backdrop{background:rgba(35,27,22,.45);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.confirm-sheet h2{margin:0 0 8px;font-size:21px;line-height:1.2}
.confirm-sheet p{margin:0 0 20px;color:#6f655d;font-size:14px;line-height:1.45}
.confirm-sheet-actions{display:grid;gap:8px}
.confirm-sheet-actions .button{width:100%}
.confirm-sheet-actions .button-fill.is-danger{background:#b23a2b}
.app-notif{overflow:hidden}
.app-notif-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.app-notif-undo{height:30px;padding:0 12px;border:0;border-radius:999px;background:var(--soft);color:var(--terracotta);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.app-notif-undo:disabled{opacity:.6}
.app-notif-timer{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--terracotta);opacity:.75;transform-origin:left center;animation-name:app-notif-timer;animation-timing-function:linear;animation-fill-mode:forwards}
.app-notif-error .app-notif-timer{background:#a4372b}
@keyframes app-notif-timer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
/* Filtres des recettes : panneau du bas */
.filter-button{position:relative;display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border:1px solid #e6ddd4;border-radius:15px;background:#fff;color:var(--ink);cursor:pointer}
.filter-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.filter-button.is-active{border-color:var(--terracotta);color:var(--terracotta)}
.filter-badge{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border:2px solid var(--cream);border-radius:999px;background:var(--terracotta);color:#fff;font-size:11px;font-weight:700}
.active-filters{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.active-filters::-webkit-scrollbar{display:none}
.active-filter{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:7px 10px 7px 13px;border-radius:999px;background:var(--soft);color:var(--terracotta);font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}
.active-filter span{font-size:16px;line-height:1;opacity:.8}
.active-filter-clear{flex:0 0 auto;align-self:center;padding:7px 4px;color:#7a7068;font-size:13px;white-space:nowrap}
.filter-sheet{width:100%;max-width:100%;max-height:88dvh;margin:auto 0 0;padding:0;border:0;border-radius:24px 24px 0 0;background:var(--cream);color:var(--ink);box-shadow:0 -10px 40px rgba(35,25,20,.18);overflow:hidden}
.filter-sheet[open]{animation:filter-sheet-up .28s cubic-bezier(.2,.9,.3,1)}
.filter-sheet.is-closing{animation:filter-sheet-down .18s ease-in forwards}
.filter-sheet::backdrop{background:rgba(35,27,22,.4)}
@keyframes filter-sheet-up{from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes filter-sheet-down{to{transform:translateY(100%)}}
.filter-sheet form,.filter-sheet-frame{display:flex;flex-direction:column;max-height:88dvh}
.filter-sheet-grabber{width:38px;height:5px;margin:8px auto 0;border-radius:9px;background:#d9cfc5}
.filter-sheet-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:8px 14px 10px;border-bottom:1px solid #eee5dc}
.filter-sheet-head h2{margin:0;font-family:inherit;font-size:17px;font-weight:700;letter-spacing:0}
.filter-sheet-reset{justify-self:start;padding:8px 2px;border:0;background:none;color:var(--terracotta);font:inherit;font-size:15px}
.filter-sheet-close{justify-self:end;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#ece4da;color:#6f655d;font-size:20px;line-height:1}
.filter-sheet-body{flex:1;overflow-y:auto;padding:6px 18px 18px;-webkit-overflow-scrolling:touch}
.filter-sheet fieldset{margin:0;padding:16px 0 4px;border:0}
.filter-sheet legend{padding:0 0 9px;color:#7a7068;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.chip-group{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;pointer-events:none}
.chip span{display:inline-flex;align-items:center;min-height:38px;padding:0 15px;box-sizing:border-box;border:1px solid #e3d9cf;border-radius:999px;background:#fff;color:var(--ink);font-size:14px;font-weight:550;transition:background .15s ease,color .15s ease,border-color .15s ease}
.chip input:checked+span{border-color:var(--terracotta);background:var(--terracotta);color:#fff}
.chip input:focus-visible+span{outline:2px solid var(--terracotta);outline-offset:2px}
.filter-switches{overflow:hidden;border-radius:14px;background:#fff}
.filter-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:0 14px;border-bottom:1px solid #f2ebe4;cursor:pointer}
.filter-switch:last-child{border-bottom:0}
.filter-switch span{display:flex;align-items:center;gap:10px;font-size:15px}
.filter-switch svg{width:18px;height:18px;fill:none;stroke:var(--terracotta);stroke-width:1.9;stroke-linejoin:round;stroke-linecap:round}
.filter-switch input{position:relative;flex:0 0 51px;width:51px;height:31px;margin:0;-webkit-appearance:none;appearance:none;border-radius:999px;background:#e5ddd4;cursor:pointer;transition:background .2s ease}
.filter-switch input::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:transform .2s ease}
.filter-switch input:checked{background:var(--terracotta)}
.filter-switch input:checked::after{transform:translateX(20px)}
.filter-text{box-sizing:border-box;width:100%;height:46px;padding:0 14px;border:1px solid #e3d9cf;border-radius:13px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.filter-help{margin:7px 2px 0;color:#8a8077;font-size:12px}
.filter-select{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:0 6px 0 14px;border-radius:14px;background:#fff}
.filter-select span{font-size:15px}
.filter-select select{max-width:58%;height:40px;border:0;background:transparent;color:var(--terracotta);font:inherit;font-size:15px;text-align:right;text-align-last:right}
.filter-sheet-foot{padding:12px 18px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #eee5dc;background:var(--cream)}
.filter-sheet-foot .button{width:100%}
.filter-sheet-foot .button:disabled{opacity:.5}
@media(min-width:768px){.filter-sheet{max-width:520px;margin:auto;border-radius:24px}.filter-sheet[open]{animation:none}}
.recipes-sticky-header .active-filters{margin:0;padding:12px 0 0}
.filter-sheet fieldset{padding:20px 0 2px}
.filter-sheet legend{float:left;width:100%;padding:0;margin:0 0 10px}
.filter-sheet legend+*{clear:both}
.recipes-sticky-header .active-filters{padding:12px 18px 0}
@media(min-width:768px){.recipes-sticky-header .active-filters{padding-left:36px;padding-right:36px}}
.auth-screen{background-image:linear-gradient(rgba(12,10,8,.30),rgba(12,10,8,.55)),url('/static/images/login-background.jpg');background-position:center center}
.login-card .login-fields.list input[type="text"],.login-card .login-fields.list input[type="email"],.login-card .login-fields.list input[type="password"]{box-sizing:border-box;width:100%;height:52px;padding:0 16px;border:1px solid rgba(91,75,63,.20);border-radius:14px;background:#fff;color:var(--ink);font-size:17px;line-height:52px;box-shadow:inset 0 1px 2px rgba(49,38,30,.05)}
.login-card .login-fields.list input[type="text"]:focus,.login-card .login-fields.list input[type="email"]:focus,.login-card .login-fields.list input[type="password"]:focus{border-color:var(--terracotta);box-shadow:0 0 0 3px color-mix(in srgb,var(--terracotta) 18%,transparent)}
.login-card .login-fields.list ul{gap:16px}
.login-card .login-fields .item-title.item-label{margin:0 0 8px 2px;font-size:13px;letter-spacing:.01em}
.login-card .remember-row{position:relative;display:flex;align-items:center;gap:12px;margin:18px 2px 22px;color:#433b35;font-size:15px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none}
.login-card .remember-row input[type="checkbox"]{flex:none;-webkit-appearance:none;appearance:none;position:relative;width:46px;height:28px;margin:0;border-radius:999px;background:rgba(91,75,63,.22);cursor:pointer;transition:background .2s ease}
.login-card .remember-row input[type="checkbox"]::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.22);transition:transform .2s ease}
.login-card .remember-row input[type="checkbox"]:checked{background:var(--terracotta)}
.login-card .remember-row input[type="checkbox"]:checked::after{transform:translateX(18px)}
.login-card .remember-row input[type="checkbox"]:focus-visible{outline:2px solid var(--terracotta);outline-offset:2px}
.login-card .login-button{height:52px;border-radius:14px;font-size:17px}
.login-card .password-wrap{position:relative}
.login-card .login-fields.list .password-wrap input{padding-right:52px}
.login-card .password-toggle{position:absolute;top:0;right:0;display:grid;place-items:center;width:52px;height:52px;padding:0;border:0;background:none;color:#8a7f76;cursor:pointer;-webkit-tap-highlight-color:transparent}
.login-card .password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-card .password-toggle .eye-closed,.login-card .password-toggle[aria-pressed="true"] .eye-open{display:none}
.login-card .password-toggle[aria-pressed="true"] .eye-closed{display:block}
.login-card .password-toggle[aria-pressed="true"],.login-card .password-toggle:focus-visible{color:var(--terracotta)}
.content-section.settings-screen{padding-bottom:8px}
.settings-screen .logout-form{margin:22px 0 0}
/* Ambiances : image d'en-tête de la page Recettes + couleurs associées */
body{--header-veil:255,252,246;--header-image:url('/static/images/themes/mediterraneen.jpg');--header-title:#28221e;--header-text:#70655d}
body.theme-mediterraneen{--terracotta:#c4553d;--f7-theme-color:#c4553d;--soft:#f3dfd3;--cream:#faf7f1}
body.theme-brunch{--terracotta:#5d8a3c;--f7-theme-color:#5d8a3c;--soft:#e2edd5;--cream:#f8f9f2;--header-veil:250,251,244;--header-image:url('/static/images/themes/brunch.jpg')}
body.theme-poisson{--terracotta:#3b7690;--f7-theme-color:#3b7690;--soft:#d9e9f0;--cream:#f4f8f9;--header-veil:244,248,250;--header-image:url('/static/images/themes/poisson.jpg')}
body.theme-viande{--terracotta:#a33a2c;--f7-theme-color:#a33a2c;--soft:#f1dcd7;--cream:#f8f4f1;--header-veil:20,17,15;--header-image:url('/static/images/themes/viande.jpg');--header-title:#fff;--header-text:#d9cfc7}
.recipes-hero h1{color:var(--header-title)}
.recipes-hero>p{color:var(--header-text)}
.theme-picker{gap:10px}
.theme-choice.theme-card{position:relative;display:block;overflow:hidden;min-height:0;aspect-ratio:16/10;padding:0;border:2px solid transparent;border-radius:16px;background:#ddd;box-shadow:0 6px 18px rgba(49,38,30,.10);cursor:pointer}
.theme-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center}
.theme-card::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,0) 55%)}
.theme-card span{position:absolute;z-index:1;left:12px;bottom:10px;color:#fff;font-size:14px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.35)}
.theme-card b{position:absolute;z-index:1;top:8px;right:8px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--terracotta);color:#fff;font-size:13px}
.theme-choice.theme-card.selected{border-color:var(--terracotta);box-shadow:0 0 0 3px color-mix(in srgb,var(--terracotta) 22%,transparent),0 6px 18px rgba(49,38,30,.10)}
.photo-picker{cursor:default}
.photo-sources{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:340px;margin:18px auto 0}
.photo-source.button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;height:46px;overflow:hidden;border-radius:13px;font-size:15px;text-transform:none}
.photo-source svg{flex:none;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.photo-source input[type=file],.photo-picker.has-photos .photo-source .native-file-input{position:absolute;inset:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer}
.photo-picker.has-photos{height:auto}
.photo-picker.has-photos .photo-sources{margin:0 auto 14px}
.import-card{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:9px 6px 9px 9px}
.import-card-link{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:13px;min-width:0;color:inherit;text-decoration:none}
.import-card-copy{min-width:0}.import-card .import-card-origin+p{margin-top:2px}
.import-card h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.import-card .card-menu summary{width:36px;height:36px;color:#6f655e;font-size:22px}
.import-card .card-menu>div{top:40px}
.card-menu .menu-action{color:var(--ink)}
.photo-sources{grid-template-columns:1fr;gap:8px;max-width:260px}
.photo-source.button{box-sizing:border-box;width:100%;height:46px;padding:0 18px;white-space:nowrap;text-overflow:clip;font-weight:650}
.photo-source.button-outline{border:1.5px solid var(--terracotta);background:#fff;color:var(--terracotta)}
.video-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:260px;margin:8px auto 0}
.photo-source.video-source{flex-direction:column;gap:3px;height:58px;padding:0 4px;font-size:12px}
.photo-picker.has-photos .video-sources{margin:0 auto 14px}
.import-months{display:grid;gap:12px;margin-top:13px}
.import-month summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border:1px solid #eee5dc;border-radius:14px;background:#fff;color:var(--ink);cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.import-month summary::-webkit-details-marker{display:none}
.import-month summary span{font-size:16px;font-weight:700}
.import-month summary small{margin-left:auto;color:#81766e;font-size:12px}
.import-month summary svg{flex:none;width:18px;height:18px;fill:none;stroke:#81766e;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.import-month[open] summary{border-color:color-mix(in srgb,var(--terracotta) 35%,#eee5dc)}
.import-month[open] summary svg{transform:rotate(180deg)}
.import-month .import-card-list{margin-top:10px}
.import-links a{padding-right:46px}
.import-links b{top:50%;right:14px;transform:translateY(-50%)}
.settings-toggle{margin:0}
.settings-toggle label{cursor:pointer}
.switch{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:46px;height:28px;margin:0;border-radius:999px;background:rgba(91,75,63,.22);cursor:pointer;transition:background .2s ease}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.22);transition:transform .2s ease}
.switch:checked{background:var(--terracotta)}
.switch:checked::after{transform:translateX(18px)}
.switch:focus-visible{outline:2px solid var(--terracotta);outline-offset:2px}
.content-section.review-screen{padding-bottom:8px}.review-intro{margin-bottom:18px}
.crop-stage .cropper-point.point-se,.crop-stage .cropper-point.point-sw{width:22px;height:22px;opacity:1;border-radius:6px}.crop-stage .cropper-point.point-sw:before{content:" ";position:absolute;display:block;bottom:-50%;left:-50%;width:200%;height:200%;background-color:#39f;opacity:0}
.crop-source-picker{display:flex;gap:10px;overflow-x:auto;margin:4px 0 14px;padding:2px}.crop-source-picker a{flex:0 0 auto;display:block;border:3px solid transparent;border-radius:14px;opacity:.6}.crop-source-picker a.active{border-color:var(--terracotta);opacity:1}.crop-source-picker img{display:block;width:72px;height:72px;object-fit:cover;border-radius:11px}
.aisle-swatches{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 8px}.aisle-swatch{position:relative;display:grid;justify-items:center;gap:4px;width:56px;cursor:pointer;-webkit-tap-highlight-color:transparent}.aisle-swatch input{position:absolute;opacity:0;pointer-events:none}.aisle-swatch span{display:block;width:38px;height:38px;border:3px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px rgba(49,38,30,.14),0 3px 8px rgba(49,38,30,.10)}.aisle-swatch-none span{background:repeating-linear-gradient(135deg,#fff 0 5px,#eee6de 5px 10px)}.aisle-swatch small{font-size:11px;color:#766d65}.aisle-swatch input:checked+span{box-shadow:0 0 0 2px var(--swatch,#8a7f76),0 3px 8px rgba(49,38,30,.14)}.aisle-swatch input:checked~small{color:var(--ink);font-weight:700}.aisle-swatch input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}
.collection-row[style*="--aisle-color"] .aisle-thumb{background:color-mix(in srgb,var(--aisle-color) 16%,#fff);color:var(--aisle-color)}
.shopping-aisle.has-color .shopping-aisle-title{color:var(--aisle-color)}.shopping-aisle.has-color .shopping-aisle-title::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:var(--aisle-color)}.shopping-aisle.has-color .shopping-items{border-left:4px solid var(--aisle-color)}
.ingredient-amounts .ingredient-amount{display:block}.ingredient-amounts .ingredient-amount+.ingredient-amount{margin-top:3px}.ingredient-breakdown .ingredient-amount{white-space:nowrap}
.step-list>li>div{flex:1;min-width:0}.step-tags{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 8px;padding:0;list-style:none}.step-tags li,.step-list .step-tags li{display:inline-flex;align-items:baseline;gap:5px;margin:0;padding:4px 10px;border:0;border-radius:6px;background:#efe7df;color:var(--terracotta);font-size:12.5px;font-weight:650;line-height:1.4}
.step-tags li b{color:var(--ink);font-weight:650}
.step-list>.step-advance>span{background:transparent;box-shadow:inset 0 0 0 2px var(--terracotta);color:var(--terracotta)}
.step-advance>span svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.step-list .step-advance{padding-bottom:18px;border-bottom:1px solid #e8dfd6}
.step-list p.step-advance-label{margin:6px 0 2px;color:var(--terracotta);font-size:13px;font-weight:700}.ingredient-list li{row-gap:3px;align-content:start}.ingredient-list .ingredient-amounts{grid-row:span 2}.ingredient-list li>strong{grid-column:2}
.meta-time{position:relative;min-width:0}.meta-time summary{display:flex;align-items:center;gap:4px;list-style:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent}.meta-time summary::-webkit-details-marker{display:none}.meta-time summary b{color:var(--ink);text-decoration:underline dotted;text-decoration-color:var(--terracotta);text-underline-offset:3px}.meta-time summary:active{opacity:.6}
.meta-time-breakdown{display:none;position:absolute;z-index:60;top:calc(100% + 10px);left:-8px;min-width:176px;padding:9px 14px;border-radius:12px;background:#2b2521;color:#fff;font-size:13px;text-align:left;white-space:nowrap;box-shadow:0 10px 28px rgba(0,0,0,.22)}.meta-time-breakdown::before{content:"";position:absolute;top:-5px;left:24px;width:10px;height:10px;margin-left:-5px;background:inherit;transform:rotate(45deg)}.meta-time[open] .meta-time-breakdown{display:block}@media(hover:hover){.meta-time:hover .meta-time-breakdown{display:block}}
.meta-time-breakdown dl{margin:0}.meta-time-breakdown dl>div{display:flex;justify-content:space-between;gap:20px;padding:3px 0}.meta-time-breakdown dt{color:rgba(255,255,255,.7)}.meta-time-breakdown dd{margin:0;font-weight:700}.meta-time-breakdown .meta-time-total{margin-top:4px;padding-top:7px;border-top:1px solid rgba(255,255,255,.18)}
.cook-timers{display:grid;gap:6px;width:calc(100% - 32px);max-width:728px;margin:0 auto}.cook-timers:not(:empty){margin-bottom:8px}.cook-timer{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:6px;padding:5px 5px 5px 6px;border-radius:15px;background:var(--ink);color:#fff}.cook-timer strong{padding:0 4px;font-size:22px;font-variant-numeric:tabular-nums;text-align:center}.cook-timer button{flex:none;display:grid;place-items:center;width:auto;min-width:40px;height:38px;padding:0 12px;border:0;border-radius:11px;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.cook-timer .cook-timer-step{display:block;min-width:0;width:100%;overflow:hidden;background:transparent;color:rgba(255,255,255,.72);font-weight:650;text-align:left}.cook-timer-step span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cook-keep-awake{position:fixed;bottom:0;left:0;width:1px;height:1px;opacity:.01;pointer-events:none}.cook-timer .cook-timer-close{padding:0;background:transparent}.cook-timer.is-paused strong{opacity:.55}.cook-timer.is-finished{background:var(--terracotta);animation:timer-pulse .8s ease-in-out 6}.timer-picker-step{margin:4px 0 14px;color:#7a7068;font-size:14px}.timer-wheels{position:relative;display:flex;align-items:center;justify-content:center;gap:4px;height:220px;margin:0 0 20px}.timer-wheels::before{content:"";position:absolute;left:0;right:0;top:50%;height:44px;margin-top:-22px;border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(67,43,27,.06);pointer-events:none}.timer-wheel{position:relative;width:64px;height:220px;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;padding:88px 0;box-sizing:border-box;-webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}.timer-wheel::-webkit-scrollbar{display:none}.timer-wheel-option{height:44px;line-height:44px;scroll-snap-align:center;color:#a39a91;font-size:24px;font-variant-numeric:tabular-nums;text-align:center}.timer-wheel-option.is-selected{color:var(--ink);font-weight:700}.timer-wheels>span{position:relative;margin-right:10px;color:#7a7068;font-size:15px;font-weight:650}.timer-picker-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.timer-picker-actions .button{width:100%}
.shopping-flag{flex:none;display:grid;place-items:center;align-self:center;margin-left:6px}.flag{display:block;border-radius:3px;box-shadow:0 0 0 1px rgba(39,35,31,.08)}.flag-ch{width:16px;height:16px}.flag-fr{width:22px;height:15px}
.shopping-country{min-width:0;margin:0 0 16px;padding:0;border:0}.shopping-country legend{display:block;margin:0 0 7px;padding:0;font-weight:650}
.shopping-country-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.shopping-country-options label{display:block;margin:0;font-weight:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.shopping-country-options input{position:absolute;opacity:0;pointer-events:none}
.shopping-country-options span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:0 8px;border:1px solid #e3d9cf;border-radius:13px;background:#fff;font-size:14px;font-weight:600}.shopping-country-options input:checked+span{border-color:var(--terracotta);box-shadow:inset 0 0 0 1px var(--terracotta);color:var(--terracotta)}.shopping-country-options input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.store-badge{display:inline-grid;place-items:center;flex:none;min-width:22px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:5px;background:var(--store-color,#5f6b78);color:#fff;font-size:10px;font-weight:800;line-height:1;letter-spacing:.01em;white-space:nowrap}.store-logo{display:block;flex:none;width:auto;max-width:52px;height:20px;object-fit:contain}
.shopping-store-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shopping-store-options label{display:block;margin:0;cursor:pointer;-webkit-tap-highlight-color:transparent}.shopping-store-options input{position:absolute;opacity:0;pointer-events:none}
.shopping-store-options label>span{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #e3d9cf;border-radius:13px;background:#fff;font-size:14px;font-weight:600}.shopping-store-options label:first-child>span{justify-content:center}.shopping-store-options input:checked+span{border-color:var(--terracotta);box-shadow:inset 0 0 0 1px var(--terracotta);color:var(--terracotta)}.shopping-store-options input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.store-country-title{margin-top:22px}.store-row .store-row-mark{display:grid;place-items:center;flex:0 0 64px;width:64px;height:48px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px #eee5dc}.store-row-mark .store-badge{height:24px;min-width:30px;font-size:12px}.store-row-mark .store-logo{max-width:52px;height:30px}
.store-badge-editor{display:flex;align-items:center;gap:10px}.store-badge-preview{height:30px;min-width:44px;padding:0 9px;font-size:14px}.store-badge-text{flex:1;min-width:0;margin:0}.store-badge-text input{box-sizing:border-box;width:100%;min-width:0}.store-color-input{flex:none;margin:0}.store-color-input input{width:52px;height:44px;padding:3px;border:1px solid #e3d9cf;border-radius:12px;background:#fff;cursor:pointer}
.store-badge-field legend{display:block;margin:0 0 4px;padding:0;font-weight:650}.store-badge-field{min-width:0;margin:0 0 16px;padding:0;border:0}.store-logo-current{display:flex;align-items:center;gap:14px;margin:0 0 10px;padding:10px 12px;border-radius:12px;background:#fff}.store-logo-current .store-logo{max-width:90px;height:36px}.store-logo-remove{display:flex;align-items:center;gap:7px;margin:0;font-weight:500}
.store-country-options{grid-template-columns:1fr 1fr}.shopping-country .field-help{margin-top:8px}
.store-logo-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.store-logo-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.store-logo-picker .button{width:auto;margin:0;padding:0 18px;cursor:pointer}.store-logo-picker small{min-width:0;overflow:hidden;color:#766d65;text-overflow:ellipsis;white-space:nowrap}
.store-logo-title{margin:0 0 7px;font-weight:650}
.shopping-country-options input,.shopping-store-options input,.aisle-swatch input{width:1px;height:1px;margin:0}
.store-form input.store-logo-input{width:1px;max-width:1px;height:1px;padding:0;border:0}
.store-logo-picker label.button{display:inline-flex;align-items:center;min-height:42px;margin:0;padding:0 16px;border:1px solid var(--terracotta);border-radius:12px;background:#fff;color:var(--terracotta);font-weight:650}.store-logo-picker small{flex:1}
.store-logo-picker{margin-bottom:8px}
.logo-editor{text-align:left}.logo-editor h2{text-align:center}.logo-editor .field-help{text-align:center}
.logo-crop-stage{height:min(46vh,380px);margin:12px 0 18px;overflow:hidden;border-radius:16px;background:#171513}.logo-crop-stage img{display:block;max-width:100%}
.logo-shape-options{grid-template-columns:1fr 1fr;margin:12px 0 4px}
.logo-frame-wrap{display:grid;place-items:center;height:200px;margin:8px 0 14px;border-radius:16px;background:repeating-conic-gradient(#efe7df 0 25%,#f8f3ee 0 50%) 0 0/16px 16px}
.logo-frame{position:relative;width:min(300px,100%);aspect-ratio:2/1;overflow:hidden;border-radius:22px;box-shadow:0 6px 20px rgba(49,38,30,.18);touch-action:none;cursor:grab}.logo-frame.is-square{width:170px;aspect-ratio:1/1}
.logo-frame img{position:absolute;max-width:none;user-select:none;-webkit-user-drag:none;pointer-events:none}
.logo-adjust{display:flex;align-items:center;gap:14px;margin:0 0 18px}.logo-adjust label{display:flex;align-items:center;gap:10px;margin:0;font-size:14px;font-weight:650}.logo-adjust label:first-child{flex:1}.logo-adjust input[type=range]{flex:1;accent-color:var(--terracotta)}.logo-bg-input input{width:46px;height:38px;padding:3px;border:1px solid #e3d9cf;border-radius:10px;background:#fff}
.store-logo{border-radius:5px}#store-logo-ready span{color:#6f655d;font-size:13px}
.shopping-item{position:relative;overflow:hidden;touch-action:pan-y;-webkit-user-select:none;user-select:none}.shopping-row{position:relative;z-index:1;flex:1;display:flex;align-items:stretch;min-width:0;background:#fff;transition:transform .2s ease}.shopping-item.is-swiping .shopping-row{transition:none}
.shopping-swipe-bg{position:absolute;inset:0;display:flex;align-items:center;padding-left:18px;background:#4f8a3c;color:#fff;font-size:14px;font-weight:700;transition:background .15s ease}.shopping-swipe-bg::before{content:"";width:9px;height:16px;margin:-4px 12px 0 2px;border:solid currentColor;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.shopping-item:not(.is-armed) .shopping-swipe-bg{background:#9fb894}.shopping-item.is-checked .shopping-swipe-bg{background:#8a7f76}.shopping-item.is-checked.is-armed .shopping-swipe-bg{background:#5f6b78}.shopping-item.is-checked .shopping-swipe-bg::before{display:none}
.shopping-toggle{cursor:grab}.shopping-hint{margin:0 4px 12px;color:#8a7f76;font-size:13px}
.shopping-toggle{padding-left:16px}.shopping-aisle.has-color .shopping-row{background:color-mix(in srgb,var(--aisle-color) 4%,#fff)}
.shopping-pick{display:flex;align-items:center;gap:8px;padding-right:12px;transition:opacity .15s ease}.shopping-pick label{flex:1;min-width:0}
.pick-stepper{flex:none;display:flex;align-items:center;gap:6px}.pick-stepper button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:var(--soft);color:var(--terracotta);font-size:19px;line-height:1;cursor:pointer}
.pick-stepper input{width:56px;height:32px;box-sizing:border-box;padding:0 4px;border:1px solid #e6ddd4;border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:15px;font-weight:650;text-align:center}
.pick-unit{min-width:34px;color:var(--terracotta);font-size:13px;font-weight:650;white-space:nowrap}.pick-unit-only{min-width:0}
.shopping-pick.is-off .pick-text,.shopping-pick.is-off .pick-stepper,.shopping-pick.is-off .pick-unit{opacity:.38}.shopping-pick.is-off .pick-text strong{text-decoration:line-through}.pick-stepper button:disabled,.pick-stepper input:disabled{cursor:default;pointer-events:none}
.pick-stepper .pick-unit{width:46px;min-width:46px;overflow:hidden;text-overflow:ellipsis}
.pick-field{display:flex;align-items:baseline;justify-content:center;gap:3px;width:auto;min-width:58px;height:32px;box-sizing:border-box;margin:0;padding:0 8px;border:1px solid #e6ddd4;border-radius:9px;background:#fff;cursor:text}.pick-field:focus-within{border-color:var(--terracotta)}
.pick-field input{width:3ch;min-width:0;height:30px;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-size:15px;font-weight:650;text-align:right;outline:0}.pick-field input:only-child{text-align:center;width:4ch}
.pick-field .pick-unit,.pick-stepper .pick-field .pick-unit{width:auto;min-width:0;overflow:visible;color:#8a7f76;font-size:12px;font-weight:600}
.shopping-pick.is-off .pick-field{opacity:.38}
.shopping-pick-list .pick-field{flex:none;min-height:0;padding:0 8px;gap:3px;cursor:text}
.shopping-pick-list .pick-field{min-width:100px}
.pick-steppers{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px;padding:6px 0}
/* Modification rapide par appui long sur la fiche recette */
[data-edit-ingredient],[data-edit-step],[data-edit-difficulty]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:background-color .45s ease,box-shadow .45s ease,transform .45s ease}
[data-edit-ingredient].is-pressing,[data-edit-step].is-pressing,[data-edit-difficulty].is-pressing{border-radius:12px;background:color-mix(in srgb,var(--terracotta) 8%,transparent);box-shadow:0 0 0 8px color-mix(in srgb,var(--terracotta) 8%,transparent);transform:scale(.985)}
.item-edit-sheet{max-height:min(86dvh,680px);overflow-y:auto;text-align:left}
.item-edit-sheet h2{text-align:center;margin-bottom:16px}
.item-edit-sheet .servings-sheet-hint{margin:-6px 0 14px;text-align:center}
.item-edit-field{display:block;margin:0 0 12px}
.item-edit-field>span{display:block;margin:0 0 5px;color:#6f655d;font-size:13px;font-weight:650}
.item-edit-field input,.item-edit-field textarea{box-sizing:border-box;width:100%;border:1px solid #e6ddd4;border-radius:13px;background:#fff;padding:11px 12px;font:inherit;font-size:16px;color:var(--ink)}
.item-edit-field textarea{resize:vertical;line-height:1.5}
.item-edit-field input:focus,.item-edit-field textarea:focus{outline:none;border-color:var(--terracotta);box-shadow:0 0 0 3px color-mix(in srgb,var(--terracotta) 15%,transparent)}
.item-edit-row{display:grid;grid-template-columns:96px 1fr;gap:10px}
.item-edit-line+.item-edit-line{padding-top:12px;border-top:1px solid #ece3da}
.item-edit-line-label{margin:0 0 8px;color:var(--terracotta);font-size:13px;font-weight:700}
.item-edit-sheet .field-error{margin:0 0 12px;text-align:center}
.item-edit-sheet .servings-sheet-actions{margin-top:6px}
dialog:focus{outline:none}
/* Filtre de la liste de courses (même feuille que celui des recettes) */
.shopping-toolbar .shopping-filter-button{flex:0 0 46px;width:46px;height:46px;border-radius:14px;box-shadow:0 4px 14px rgba(67,43,27,.05)}
.shopping-active-filters{margin:-2px 0 6px}
.shopping-active-filters[hidden]{display:none}
button.active-filter{width:auto;margin:0;border:0;font-family:inherit;line-height:1.2;cursor:pointer}
button.active-filter-clear{width:auto;margin:0;border:0;background:none;font-family:inherit;cursor:pointer}
.chip .chip-count{margin-left:7px;color:#9a9087;font-size:12px;font-weight:600}
.chip input:checked+span .chip-count{color:rgba(255,255,255,.8)}
.shopping-filter-empty{margin:24px 0;color:#7a7068;text-align:center}
.shopping-empty .button{margin-top:6px}
.filter-badge[hidden]{display:none}
.shopping-add input::placeholder{font-style:italic}
.chip input:disabled+span{opacity:.38;cursor:default}
.chip:has(input:disabled){cursor:default}
.filter-switch:has(input:disabled){opacity:.4;cursor:default}
.filter-switch input:disabled{cursor:default}
/* Collections sur la page de vérification : suggestion de l'analyse et création immédiate */
.collection-picker .is-suggested input:not(:checked)+span{border-style:dashed;border-color:var(--terracotta);color:var(--terracotta);background:transparent}
.collection-picker .is-suggested span::before{content:"✦ ";font-size:11px}
.collection-add{width:auto;margin:0;padding:9px 13px;border:1px dashed #cfc3b8;border-radius:99px;background:transparent;color:#6f655d;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.collection-add:active{opacity:.6}

/* Ajuster une étape (mode cuisine : appui long ; fiche : après une modification) */
.cook-slide[data-step-position]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:background-color .45s ease}
.cook-slide.is-pressing{background:color-mix(in srgb,var(--terracotta) 6%,transparent);box-shadow:none;transform:none}
.adjust-question{margin:0 0 14px;color:var(--ink);font-size:16px;line-height:1.45;text-align:center}
.adjust-waiting{margin:6px 0 18px;color:#7a7068;font-size:15px;text-align:center;animation:adjust-wait 1.4s ease-in-out infinite}
@keyframes adjust-wait{50%{opacity:.45}}
.adjust-sheet .button.adjust-option{display:block;width:100%;height:auto;min-height:46px;margin:0 0 8px;padding:11px 14px;border-radius:13px;background:#fff;line-height:1.35;text-align:left;white-space:normal;text-transform:none}
.adjust-sheet .adjust-option+.item-edit-field{margin-top:6px}
.adjust-changes{margin:0 0 16px;padding:4px 14px;border-radius:16px;background:#fff;list-style:none;box-shadow:0 6px 18px rgba(67,43,27,.05)}
.adjust-change{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #f0e8e0;font-size:15px;line-height:1.4}
.adjust-change:last-child{border-bottom:0}
.adjust-change-sign{flex:none;width:16px;color:var(--terracotta);font-weight:800;text-align:center}
.adjust-change.is-remove>span:last-child{color:#8a8078;text-decoration:line-through}
.adjust-change.is-step{display:block}
.adjust-change.is-step strong{display:block;margin-bottom:4px;color:var(--terracotta);font-size:13px}
.adjust-change.is-step p{margin:0 0 4px}
.adjust-change.is-step small{display:block;color:#766d65;font-size:13px}

/* Mode cuisine : ingrédients d'étape cochés une fois utilisés */
.cook-step-ingredients li[data-name]{justify-content:flex-start;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cook-step-ingredients li[data-name] span{flex:1;min-width:0}
.cook-used-mark{position:relative;flex:none;align-self:center;width:20px;height:20px;box-sizing:border-box;border:1.5px solid #d6cabe;border-radius:50%;transition:background-color .15s ease,border-color .15s ease}
.cook-step-ingredients li.is-used .cook-used-mark{border-color:var(--terracotta);background:var(--terracotta)}
.cook-step-ingredients li.is-used .cook-used-mark::after{content:"";position:absolute;left:6px;top:2.5px;width:4.5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.cook-step-ingredients li.is-used span,.cook-step-ingredients li.is-used b{opacity:.45;text-decoration:line-through}
.cook-step-ingredients li[data-name]:focus-visible{outline:2px solid var(--terracotta);outline-offset:2px;border-radius:8px}
.hero-nutrition-bar{position:absolute;z-index:6;left:50%;bottom:14px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));box-sizing:border-box;width:calc(100% - 28px);max-width:440px;transform:translateX(-50%);padding:9px 4px;border:0;border-radius:16px;background:rgba(255,252,248,.88);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 20px rgba(30,22,18,.18);color:var(--ink);font:inherit;text-align:center;cursor:pointer}
.hero-nutrition-bar>span{display:grid;gap:1px;min-width:0;padding:0 4px}.hero-nutrition-bar>span+span{border-left:1px solid rgba(116,105,96,.2)}
.hero-nutrition-bar b{font-size:15px;line-height:1.15;white-space:nowrap;font-variant-numeric:tabular-nums}.hero-nutrition-bar small{overflow:hidden;color:#7a7068;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.hero-nutrition-bar>span:first-child b{color:var(--terracotta)}
.hero-nutrition-bar.is-loading{grid-template-columns:1fr;padding:11px 12px;color:#7a7068;font-size:12px;cursor:default}.hero-nutrition-bar.is-loading,.hero-nutrition-bar.is-updating{animation:nutrition-pulse 1.4s ease-in-out infinite}
@keyframes nutrition-pulse{50%{opacity:.6}}
@media(prefers-reduced-motion:reduce){.hero-nutrition-bar.is-loading,.hero-nutrition-bar.is-updating{animation:none}}
.nutrition-table{margin:16px 0 8px;padding:4px 14px;border-radius:14px;background:#fff;text-align:left}.nutrition-table>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eee6df;font-size:14px}.nutrition-table>div:last-child{border-bottom:0}
.nutrition-table dt{font-weight:650}.nutrition-table dd{margin:0;font-variant-numeric:tabular-nums}.nutrition-table .is-sub{padding-left:14px;color:#7a7068;font-size:13px}.nutrition-table .is-sub dt{font-weight:400}
.nutrition-sources{margin:10px 0;text-align:left;font-size:13px}.nutrition-sources summary{color:var(--terracotta);font-weight:650;cursor:pointer}.nutrition-sources ul{margin:8px 0 0;padding:0;list-style:none}.nutrition-sources li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #eee6df}.nutrition-sources small{color:#7a7068;text-align:right}.nutrition-sources li.is-missing{color:#a39a91}
.nutrition-credit{margin:10px 0 14px;color:#8a8077;font-size:11px;line-height:1.4}.nutrition-credit a{color:inherit;text-decoration:underline}
.timer-sound-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:8px}.form-field .timer-sound-row select{min-height:46px;padding-right:36px;-webkit-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23746b63%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E") right 12px center/18px no-repeat}.timer-sound-preview.button{display:inline-flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;min-width:118px;height:46px;margin:0;padding:0 14px;border:1.5px solid var(--terracotta);border-radius:13px;background:#fff;color:var(--terracotta);font-weight:650;white-space:nowrap}.timer-sound-preview[aria-pressed=true]{background:var(--terracotta);color:#fff}.timer-sound-preview span{font-size:11px}
/* Import depuis un lien */
.web-import-sheet input[type=url]{box-sizing:border-box;width:100%;height:48px;margin:0 0 16px;padding:0 14px;border:1px solid #e0d6cc;border-radius:13px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.web-import-sheet input[type=url]:focus{outline:2px solid color-mix(in srgb,var(--terracotta) 40%,transparent);border-color:var(--terracotta)}
.web-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.web-image-choice{position:relative;display:block;margin:0;cursor:pointer}
.web-image-choice input{position:absolute;opacity:0;pointer-events:none}
.web-image-choice img{display:block;width:100%;aspect-ratio:1/1;border:3px solid transparent;border-radius:15px;object-fit:cover;background:var(--soft)}
.web-image-choice input:checked+img{border-color:var(--terracotta);box-shadow:0 4px 14px color-mix(in srgb,var(--terracotta) 25%,transparent)}
.web-image-choice input:focus-visible+img{outline:2px solid var(--terracotta);outline-offset:2px}
.web-image-choice.is-broken{display:none}
.web-image-actions{display:grid;gap:8px}
.web-image-actions .button{width:100%}
.web-source-link{display:block;margin:0 0 4px;overflow:hidden;color:#7a7068;font-size:13px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.import-next-step .analysis-form+.analysis-form{margin-top:8px}
/* Choix à faire avant la vérification */
.recipe-choices{max-width:620px}
.recipe-choices-intro{margin:4px 0 16px;color:#6f655d;font-size:14px;line-height:1.45}
.choice-card{margin:0 0 12px;padding:16px;border:0;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(67,43,27,.06)}
.choice-card legend{float:left;width:100%;margin:0 0 6px;padding:0;font-size:17px;font-weight:750}
.choice-source{clear:both;margin:0 0 12px;color:#7a7068;font-size:13px;font-style:italic;line-height:1.4}
.choice-options{clear:both;display:grid;gap:8px}
.choice-option{position:relative;display:flex;align-items:center;min-height:48px;padding:0 16px;border:1.5px solid #e6dcd2;border-radius:14px;background:var(--cream);cursor:pointer;-webkit-tap-highlight-color:transparent}
.choice-option input{position:absolute;opacity:0;pointer-events:none}
.choice-option span{font-size:15px;font-weight:600}
.choice-option:has(input:checked){border-color:var(--terracotta);background:var(--soft);color:var(--terracotta)}
.choice-option:has(input:focus-visible){outline:2px solid var(--terracotta);outline-offset:2px}
.recipe-choices-submit{width:100%;margin-top:6px}
/* Variantes : répartition des quantités quand plusieurs ingrédients sont gardés */
.variant-split{display:none;margin:2px 0 4px;padding:12px;border-radius:14px;background:var(--cream);border:1px dashed #dccfc3}
.choice-option:has(input[value=combine]:checked)+.variant-split,.choice-option:has(input[value=split]:checked)+.variant-split,.variant-split.is-open{display:grid;gap:8px}
.variant-split-hint{margin:0;color:#7a7068;font-size:13px;line-height:1.4}
.variant-split-row{display:grid;grid-template-columns:minmax(0,1fr) 78px 78px;align-items:center;gap:8px}
.variant-split-row span{overflow:hidden;font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.variant-split-row input{box-sizing:border-box;width:100%;height:42px;padding:0 10px;border:1px solid #e0d6cc;border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.variant-split-total{margin:2px 0 0;color:var(--terracotta);font-size:13px;font-weight:700}
/* Variantes sur la fiche recette */
.variant-banner{display:grid;gap:8px;margin:0 0 14px}
.variant-banner-title{margin:0;color:#7a7068;font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.recipe-ingredients>.variant-pill{margin-top:22px}.recipe-ingredients>.variant-pill+h2{margin-top:18px}
.variant-pill{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;padding:9px 10px 9px 12px;border:1px solid #e8dfd6;border-radius:14px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.variant-pill:disabled{cursor:default}
.variant-pill:active:not(:disabled){background:#f6f2ed}
.variant-pill-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f3eee8;color:#6f655d}
.variant-pill svg,.variant-badge svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.variant-pill-text{min-width:0}
.variant-pill-text small{display:block;overflow:hidden;color:#7a7068;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.variant-pill-text strong{display:block;font-size:15px;font-weight:600;line-height:1.3}
.variant-pill-action{display:grid;place-items:center;color:#a39a92}
.variant-pill-action svg{width:18px;height:18px}
.variant-badge{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:4px;padding:0;border:0;border-radius:50%;background:#f3eee8;color:#6f655d;vertical-align:-5px;cursor:pointer}
.ingredient-section-title{margin:32px 0 0;color:var(--terracotta);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ingredient-section-title+.ingredient-list{margin-top:4px}
.equipment-text{display:grid;grid-template-columns:90px 1fr;gap:8px;padding:8px 0 12px;border-bottom:1px solid #e8dfd6}
.equipment-text p{grid-column:2;margin:0;line-height:1.55}

.cook-ingredients-sheet .ingredient-section-title{margin:16px 0 0}
.cook-ingredients-sheet .ingredient-section-title+ul{margin-top:4px}
.cook-ingredients-sheet .cook-equipment-list li{padding:9px 0;border-bottom:1px solid #ece3da}
.cook-ingredients-sheet .cook-equipment-list li:last-child{border-bottom:0}
.variant-badge svg{width:14px;height:14px}
.variant-sheet{max-height:min(86dvh,720px);overflow-y:auto;text-align:left}
.variant-sheet h2{text-align:center}
.variant-current{margin:8px 0 14px;color:#7a7068;font-size:14px;text-align:center}
.variant-sheet .choice-option{gap:8px}
.variant-current-tag{margin-left:auto;padding:2px 8px;border-radius:99px;background:#fff;color:#7a7068;font-size:11px;font-style:normal;font-weight:700}
.variant-impact{margin:14px 0 4px;padding:12px 14px;border-radius:14px;background:#fff;font-size:13px}
.variant-impact strong{display:block;margin-bottom:6px;font-size:14px}
.variant-impact ul{display:grid;gap:5px;margin:0;padding:0;list-style:none}
.variant-impact b{display:inline-block;min-width:88px;color:#7a7068;font-weight:650}
.variant-sheet .servings-sheet-actions{margin-top:16px}
.item-edit-variants{margin:0 0 12px}
.item-edit-variant-chips{display:flex;flex-wrap:wrap;gap:8px}
.item-edit-variant-chip{min-height:38px;padding:0 14px;border:1.5px solid #e0d6cc;border-radius:99px;background:#fff;color:var(--ink);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.item-edit-variant-chip.is-current{border-color:var(--terracotta);background:var(--soft);color:var(--terracotta)}
/* Choix : rappel de la recette d'origine */
.choice-original{margin:0 0 14px;padding:14px 16px;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(67,43,27,.06)}
.choice-original>strong{display:block;margin-bottom:10px;font-size:15px}
.choice-original-pages{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.choice-original-pages a{position:relative;flex:0 0 84px;color:#fff}
.choice-original-pages img{display:block;width:84px;height:104px;border-radius:11px;object-fit:cover;background:var(--soft)}
.choice-original-pages span{position:absolute;left:5px;bottom:5px;padding:2px 7px;border-radius:99px;background:rgba(30,25,22,.72);font-size:10px}
.choice-original-link{display:inline-block;margin-top:10px;color:var(--terracotta);font-size:14px;font-weight:700;text-decoration:none}
.choice-context{clear:both;margin:0 0 12px;padding:12px;border-radius:14px;background:var(--cream)}
.choice-context-label{margin:0 0 6px;color:#7a7068;font-size:11px;font-weight:750;letter-spacing:.03em;text-transform:uppercase}
.choice-context .choice-source{margin-bottom:8px}
.choice-step{margin:0 0 8px;font-size:13px;line-height:1.45}
.choice-step b{display:block;margin-bottom:2px;color:var(--ink);font-size:13px}
.choice-summary{margin:4px 0 0;color:var(--terracotta);font-size:13px;font-weight:700;line-height:1.4}
.choice-option span small{display:block;margin-top:3px;color:#7a7068;font-size:12px;font-weight:500;line-height:1.35}
.choice-option{padding-top:10px;padding-bottom:10px}
.variant-split-row input[readonly]{background:transparent;border-color:transparent;color:#7a7068}
.variant-split-row span{white-space:normal;line-height:1.25}
/* Variantes : bandeau neutre et fenêtre à plusieurs sections */
.variant-pill{margin:0 0 14px}
.variant-pill-text strong{margin-top:0}
.variant-pill-text small{margin-top:2px}
.variant-section{margin:0;padding:14px 0;border:0;border-top:1px solid #ece3da;scroll-margin-top:8px}
.variant-section:first-child{border-top:0;padding-top:4px}
.variant-section legend{float:left;width:100%;margin:0 0 4px;padding:0;font-size:16px;font-weight:750}
.variant-section-current{clear:both;margin:0 0 10px;color:#7a7068;font-size:13px}
.variant-section.is-focused legend{color:var(--terracotta)}
/* Collections : recherche, nombre de résultats et bascule liste / galerie (contrôle segmenté). */
.collection-search{margin-bottom:12px}
.collections-screen .active-filters{margin:0 0 4px}
.collection-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 10px}
.collection-toolbar p{margin:0;color:#7a7068;font-size:13px;font-weight:600}
.view-switch{display:inline-flex;gap:2px;padding:3px;border-radius:11px;background:#efe7df}
.view-switch a{display:grid;place-items:center;width:38px;height:30px;border-radius:8px;color:#8a7f76;-webkit-tap-highlight-color:transparent}
.view-switch a[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(50,35,25,.14)}
.view-switch svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Mosaïque des collections (liste et galerie) : une grande photo à gauche, deux petites empilées à droite. */
.collection-mosaic{display:grid;gap:2px;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;place-items:stretch;background:#fff}
.collection-mosaic>img{width:100%;height:100%;min-height:0;object-fit:cover}
.collection-mosaic>img:first-child{grid-row:1/3}
.collection-mosaic.n1{grid-template:1fr/1fr}
.collection-mosaic.n2{grid-template:1fr/1fr 1fr}
.collection-mosaic.n1>img,.collection-mosaic.n2>img{grid-row:auto}
.collection-mosaic>.collection-initial{display:grid;place-items:center;grid-area:1/1/-1/-1;background:linear-gradient(145deg,#e7c9b5,#f4e4d7)}
/* Galerie : deux colonnes de cartes encadrées, mosaïque carrée, nom et nombre de recettes dessous. */
.collection-gallery.is-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.collection-gallery.is-grid .collection-tile{display:block;padding:7px 7px 12px;border-radius:18px}
.collection-gallery.is-grid .collection-cover{width:100%;height:auto;aspect-ratio:1/1;border-radius:13px;font-size:46px}
.collection-gallery.is-grid .collection-tile>div:not(.collection-cover){min-width:0;padding:9px 5px 0}
.collection-gallery.is-grid .collection-tile h2{overflow:hidden;font-size:15px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.collection-gallery.is-grid .collection-tile p{margin-top:3px}
.collection-gallery.is-grid .row-chevron{display:none}
@media(min-width:700px){.collection-gallery.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Options d'affichage : photos masquées, 3 colonnes en galerie, nombre de recettes masqué. */
.collection-mosaic>img[hidden],.collection-tile[hidden]{display:none}
.collection-gallery.is-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.collection-gallery.is-grid.cols-3 .collection-tile{padding:5px 5px 9px;border-radius:15px}
.collection-gallery.is-grid.cols-3 .collection-cover{border-radius:11px}
.collection-gallery.is-grid.cols-3 .collection-tile>div:not(.collection-cover){padding:7px 3px 0}
.collection-gallery.is-grid.cols-3 .collection-tile h2{font-size:13px}
.collection-gallery.is-grid.cols-3 .collection-tile p{font-size:11px}
@media(min-width:700px){.collection-gallery.is-grid.cols-3{grid-template-columns:repeat(4,minmax(0,1fr))}}
.collection-gallery.hide-count .collection-tile p{display:none}
/* Pictos à gauche des liens de tous les menus ⋮ (components/menu_icons.html), couleur du texte (rouge pour supprimer). */
.overflow-menu>div>a,.overflow-menu>div>button,.overflow-menu form>button,.card-menu>div>a,.card-menu form>button,.category-page-menu>div>a,.category-page-menu>div>button{display:flex;align-items:center;gap:10px}
.menu-icon{flex:0 0 17px;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* Tous les menus ⋮ au style de celui de la fiche recette : entrées collées aux bords, séparées par un trait fin. */
.overflow-menu>div,.card-menu>div,.category-page-menu>div{overflow:hidden;padding:0;border:1px solid #e8ded5;border-radius:14px;box-shadow:0 12px 30px rgba(39,29,23,.2)}
.overflow-menu>div>a,.overflow-menu>div>button,.overflow-menu form>button,.card-menu>div>a,.card-menu form>button,.category-page-menu>div>a,.category-page-menu>div>button{box-sizing:border-box;width:100%;padding:12px 15px;border-radius:0;font-size:13px}
.overflow-menu>div>*+*,.card-menu>div>*+*,.category-page-menu>div>*+*{border-top:1px solid #eee6df}
/* Courses : panneau « Recettes de la liste » (une ligne par recette, bouton Retirer). */
.shopping-recipes-hint{margin:0 0 12px;color:#7a7068;font-size:13px;line-height:1.4}
.shopping-recipe-list{margin:0;padding:0;overflow:hidden;border-radius:14px;background:#fff;list-style:none}
.shopping-recipe-list li{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid #f2ebe4}
.shopping-recipe-list li:first-child{border-top:0}
.shopping-recipe-list li>div{flex:1;min-width:0}
.shopping-recipe-list strong{display:block;font-size:15px;line-height:1.3}
.shopping-recipe-list small{display:block;margin-top:2px;color:#7c726a;font-size:12px}
.shopping-recipe-list .shopping-recipe-remove{display:inline-flex;width:auto;flex:0 0 auto;align-items:center;gap:6px;padding:8px 0 8px 6px;border:0;background:none;color:#a4372b;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
/* Feuille d'actions (menus ⋮, app.js) : panneau du bas façon iOS ; en-tête de l'objet, actions, suppressions à part, Annuler. */
.action-sheet{width:100%;max-width:100%;margin:auto 0 0;padding:0 10px calc(10px + env(safe-area-inset-bottom));border:0;background:transparent;overflow:visible}
.action-sheet[open]{animation:filter-sheet-up .28s cubic-bezier(.2,.9,.3,1)}
.action-sheet::backdrop{background:rgba(30,22,18,.38)}
@media(min-width:768px){.action-sheet{max-width:440px;margin:auto auto 24px}}
.action-sheet-head{display:flex;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid #eee6df;border-radius:16px 16px 0 0;background:var(--cream)}
.action-sheet-head[hidden]{display:none}
.action-sheet-head img{flex:0 0 44px;width:44px;height:44px;border-radius:10px;object-fit:cover}
.action-sheet-head img[hidden]{display:none}
.action-sheet-head div{min-width:0}
.action-sheet-head strong{display:block;overflow:hidden;font-size:15px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.action-sheet-head small{display:block;margin-top:2px;color:#7c726a;font-size:12px}
.action-sheet-head small:empty{display:none}
.action-sheet-slot>div{display:flex;flex-direction:column}
.action-sheet .action-sheet-slot>div>*{overflow:hidden;margin:0;border-top:1px solid #eee6df;background:#fff}
.action-sheet:not(.has-head) .action-sheet-slot>div>*:first-child{border-top:0;border-radius:16px 16px 0 0}
.action-sheet-slot>div>*:last-child,.action-sheet-slot>div>.is-before-danger{border-radius:0 0 16px 16px}
.action-sheet .action-sheet-slot>div>.is-danger-start{margin-top:8px;border-top:0;border-radius:16px 16px 0 0}
.action-sheet-slot>div>.is-danger-start:last-child{border-radius:16px}
.action-sheet:not(.has-head) .action-sheet-slot>div>*:only-child{border-radius:16px}
.action-sheet-slot a,.action-sheet-slot button{display:flex;align-items:center;gap:13px;box-sizing:border-box;width:100%;padding:15px 18px;border:0;border-radius:0;color:var(--ink);font:inherit;font-size:16px;text-align:left;text-decoration:none;cursor:pointer}
.action-sheet .action-sheet-slot form>button{background:transparent}
.action-sheet-slot .danger,.action-sheet-slot .danger button{color:#a4372b}
.action-sheet-slot .menu-icon{flex-basis:20px;width:20px;height:20px}
.action-sheet-cancel{display:block;width:100%;margin-top:8px;padding:16px;border:0;border-radius:16px;background:#fff;color:var(--terracotta);font:inherit;font-size:16px;font-weight:700;cursor:pointer}
/* Contenu des panneaux du bas de la fiche (collections, courses, notes) et du choix de musique. */
.sheet-recipe{display:flex;align-items:center;gap:12px;margin:6px 0 14px}
.sheet-recipe img{flex:0 0 52px;width:52px;height:52px;border-radius:12px;object-fit:cover}
.sheet-recipe div{min-width:0}
.sheet-recipe strong{display:block;font-size:15px;line-height:1.3}
.sheet-recipe small{display:block;margin-top:2px;color:#7c726a;font-size:12px}
.sheet-list{margin:0 0 4px;padding:0;overflow:hidden;border-radius:14px;background:#fff;list-style:none}
.sheet-list li{border-top:1px solid #f2ebe4}
.sheet-list li:first-child{border-top:0}
.sheet-list label,.sheet-list .sheet-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 14px;cursor:pointer}
.sheet-list img,.sheet-letter{flex:0 0 44px;width:44px;height:44px;border-radius:10px;object-fit:cover}
.sheet-letter{display:grid;place-items:center;background:linear-gradient(145deg,#e7c9b5,#f4e4d7);color:var(--terracotta);font-family:Georgia,serif;font-size:20px}
.sheet-text{flex:1;min-width:0}
.sheet-text strong{display:block;font-size:15px;line-height:1.3}
.sheet-text small{display:block;margin-top:2px;color:#7c726a;font-size:12px}
.sheet-list input[type=checkbox],.sheet-list input[type=radio]{flex:0 0 22px;width:22px;height:22px;margin:0;accent-color:var(--terracotta)}
.sheet-add{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:10px;padding:13px 14px;border:1px dashed #cfc3b8;border-radius:14px;background:transparent;color:var(--terracotta);font:inherit;font-size:15px;font-weight:600;cursor:pointer}
.sheet-add .menu-icon{width:18px;height:18px}
.sheet-add[hidden]{display:none}
.sheet-new{display:flex;gap:8px;margin-top:10px}
.sheet-new[hidden]{display:none}
.sheet-new input{flex:1;min-width:0;height:46px;padding:0 13px;border:1px solid #e0d6cc;border-radius:12px;background:#fff;font:inherit}
.sheet-new .button{flex:0 0 auto;width:auto;height:46px;padding:0 16px}
.sheet-group{margin:18px 0 8px;color:#7a7068;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.sheet-group:first-child{margin-top:6px}
.sheet-play{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #e6ddd4;border-radius:50%;background:#fff;color:var(--terracotta);font-size:12px;cursor:pointer}
.sheet-play.is-playing{border-color:var(--terracotta);background:var(--terracotta);color:#fff}
.sound-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;width:100%;min-height:48px;padding:0 14px;border:1px solid #e0d6cc;border-radius:12px;background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.sound-picker span:last-child{color:#9a9189;font-size:22px;line-height:1}
#notes-sheet textarea{box-sizing:border-box;width:100%;min-height:140px;resize:vertical}
#notes-sheet .rating-field{margin-bottom:18px}
/* Fenêtres de choix ouvertes depuis le bas (portions, difficulté, variantes, nutrition, mode cuisine) : même contenu, poignée en haut. */
dialog.servings-sheet.bottom-sheet{box-sizing:border-box;width:100%;max-width:100%;max-height:88dvh;margin:auto 0 0;padding-top:10px;overflow-y:auto;border-radius:24px 24px 0 0;-webkit-overflow-scrolling:touch}
dialog.servings-sheet.bottom-sheet[open]{animation:filter-sheet-up .28s cubic-bezier(.2,.9,.3,1)}
.bottom-sheet>.filter-sheet-grabber{margin:0 auto 14px}
@media(min-width:768px){dialog.servings-sheet.bottom-sheet{max-width:520px;margin:auto;border-radius:24px}}
/* Tous les panneaux du bas au style des menus ⋮ (choix utilisateur) : blocs flottants à 10 px des bords, sans poignée ;
   titre en en-tête, contenu, puis bouton principal en bloc séparé comme « Annuler ». */
.filter-sheet{box-sizing:border-box;padding:0 10px calc(10px + env(safe-area-inset-bottom));border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.filter-sheet form,.filter-sheet-frame{max-height:calc(88dvh - 10px - env(safe-area-inset-bottom))}
.filter-sheet .filter-sheet-grabber{display:none}
.filter-sheet-head{padding:12px 14px;border-radius:16px 16px 0 0;background:var(--cream)}
.filter-sheet-body{border-radius:0 0 16px 16px;background:var(--cream)}
.filter-sheet-foot{margin-top:8px;padding:0;border-top:0;background:transparent}
.filter-sheet-foot .button{height:54px;border-radius:16px;font-size:16px}
@media(min-width:768px){.filter-sheet{max-width:540px;margin:auto auto 24px}}
dialog.servings-sheet.bottom-sheet{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(88dvh - 10px - env(safe-area-inset-bottom));margin:auto 10px calc(10px + env(safe-area-inset-bottom));padding:16px 18px 18px;border-radius:16px}
.bottom-sheet>.filter-sheet-grabber{display:none}
dialog.servings-sheet.bottom-sheet h2{font-family:inherit;font-size:17px;font-weight:700;letter-spacing:0}
@media(min-width:768px){dialog.servings-sheet.bottom-sheet{max-width:520px;margin:auto auto 24px}}
form.is-sending .photo-source,form.is-sending.add-photo-tile label{opacity:.45;pointer-events:none}
button.cancel-link{border:0;background:none;font:inherit;cursor:pointer}
.import-detail .compact-pages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;overflow:visible;padding-top:6px}
.import-detail .compact-pages>.import-page{position:relative;min-width:0}
.import-detail .compact-pages a{display:block}
.import-detail .compact-pages img{width:100%;height:auto;aspect-ratio:104/128;border-radius:13px}
.import-detail .import-page form{position:absolute;top:-6px;right:-6px}
.import-detail .import-page .selected-photo-remove{position:static}
.analysis-dialog>p.analysis-empty-message{margin:18px 0 16px;color:#6f655d;font-size:15px;line-height:1.45}
.analysis-empty-action{width:100%}
.add-photo-tile label{position:relative;display:grid;place-items:center;align-content:center;gap:6px;box-sizing:border-box;width:100%;aspect-ratio:104/128;border:1.5px dashed color-mix(in srgb,var(--terracotta) 40%,transparent);border-radius:13px;background:color-mix(in srgb,var(--soft) 40%,transparent);color:var(--terracotta);font-size:12px;font-weight:650;cursor:pointer}
.add-photo-tile input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.add-photo-tile svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.import-detail .add-photo-tile label span{position:static;padding:0;border-radius:0;background:none;color:inherit;font-size:12px}
.import-next-step .compact-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 6px;padding-top:6px}
.import-next-step .compact-pages>*{flex:0 0 78px}
.import-detail .import-next-step .import-page form{width:auto}
/* Inscription : lien entre connexion et création de compte, consigne du mot de passe. */
.login-card .auth-switch{margin:20px 0 0;text-align:center;color:#766d65;font-size:15px}
.login-card .auth-switch a{color:var(--terracotta);font-weight:700}
.login-card .auth-hint{margin:-2px 4px 20px;color:#766d65;font-size:13px;line-height:1.4}
/* Informations personnelles : lien sous la carte du compte, deux formulaires sur la même page. */
.settings-profile+.settings-row{border-top:1px solid #f0e9e2}
.profile-form .button-large{width:100%}
.profile-form .profile-password{margin-top:30px}
/* Bannière d'annonce réglée dans l'administration. */
.app-banner{position:relative;z-index:30;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:var(--terracotta);color:#fff;font-size:13px;font-weight:650;line-height:1.35;text-align:center}
