:root{color-scheme:dark;--bg:#101612;--panel:#202b23;--panel-alt:#28352b;--text:#f8f3ea;--muted:#a9b9aa;--soft:#7f9583;--ember:#f18a45;--ember-soft:#f8b17a;--line:#364538;--green:#abd2ae;--danger:#eda69e;--radius:19px;--shadow:0 24px 65px #070f0955;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 900px 400px at 50% -130px,#28342a 0,transparent 90%),var(--bg);color:var(--text);min-height:100dvh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--ember-soft);outline-offset:3px}.app-root{min-height:100dvh}.starting{padding:50px 20px;text-align:center;color:var(--muted)}.shell{max-width:920px;margin:0 auto;padding:0 24px 110px;min-height:100dvh;position:relative}.topbar{height:86px;display:flex;align-items:center;gap:14px;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:43px;height:43px;background:#2b3a2e;border:1px solid #425241;border-radius:13px;color:var(--ember);display:flex;align-items:center;justify-content:center}.brand-name{font-size:15px;font-weight:800;letter-spacing:.105em}.brand-sub{color:var(--soft);font-size:10px;letter-spacing:.14em;margin-top:4px}.icon{display:inline-flex;width:20px;height:20px;flex:0 0 auto;align-items:center;justify-content:center}.icon svg{display:block;width:100%;height:100%;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;fill:none}.i-24{width:24px;height:24px}.i-28{width:28px;height:28px}.i-34{width:34px;height:34px}.iconbutton{width:48px;height:48px;min-width:48px;display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid #324435;border-radius:50%;color:#dce5d9}.eyebrow{font-size:11px;color:var(--ember-soft);font-weight:750;letter-spacing:.15em;text-transform:uppercase}.pagehead{margin:14px 0 25px}.pagehead h1{font-size:clamp(27px,6vw,38px);line-height:1.12;letter-spacing:-.04em;margin:10px 0 9px;font-weight:800}.subtext{font-size:14px;line-height:1.55;color:var(--muted);margin:0}.stack{display:flex;flex-direction:column;gap:17px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px;gap:10px}.section-heading h2{font-size:16px;margin:0;font-weight:750;letter-spacing:-.01em}.section-note{font-size:12px;color:var(--soft)}.card{background:var(--panel);border:1px solid #334234;border-radius:var(--radius);padding:18px}.hero{background:linear-gradient(125deg,#2d3a2d 0%,#202e25 56%,#27382a 100%);border:1px solid #455342;border-radius:24px;padding:23px 20px;position:relative;overflow:hidden;isolation:isolate}.hero:before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,#c56f3655 2%,#834e2a33 38%,transparent 70%);right:-67px;top:-49px;pointer-events:none;z-index:-1}.hero:after{content:"";position:absolute;width:180px;height:180px;border:1px solid #d29b6540;border-radius:50%;right:-33px;top:-21px;box-shadow:0 0 0 19px #af7b4112,0 0 0 38px #a4773b0b;z-index:-1;pointer-events:none}.hero-tag{display:flex;align-items:center;gap:8px;color:var(--ember-soft);font-size:11px;letter-spacing:.1em;font-weight:800;text-transform:uppercase}.hero h2{font-size:22px;letter-spacing:-.035em;margin:13px 0 7px}.hero p{font-size:13px;line-height:1.55;color:#c1cec1;max-width:315px;margin:0 0 22px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid transparent;border-radius:12px;padding:13px 16px;min-height:48px;font-size:14px;font-weight:750;text-align:center}.button-primary{background:var(--ember);color:#171b16}.button-primary:not(:disabled):hover{background:#ffaa6f}.button-outline{background:#344538;color:#f2f0e9;border-color:#4a5b4b}.button-ghost{background:transparent;color:var(--ember-soft);padding:8px 4px;min-height:40px}.button-danger{background:#503432;color:#ffd4cf;border-color:#80504a}.button-wide{width:100%}.quickgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick{display:flex;flex-direction:column;gap:10px;min-height:122px;padding:16px;border-radius:17px;background:var(--panel);border:1px solid #304132;transition:background .15s}.quick:hover{background:#2d3b2e}.quick-icon{color:var(--ember-soft)}.quick-title{font-size:14px;font-weight:750;line-height:1.25}.quick-sub{font-size:11px;color:var(--muted);line-height:1.3}.feature{display:flex;align-items:center;gap:13px;padding:13px}.feature-img{width:78px;height:79px;background:radial-gradient(circle at 70% 20%,#4c5c41,#293529 70%);border-radius:13px;display:flex;align-items:center;justify-content:center;color:var(--ember);flex-shrink:0}.feature-main{flex:1;min-width:0}.feature h3{font-size:14px;margin:0 0 5px}.feature p{font-size:12px;margin:0;color:var(--muted);line-height:1.5}.feature .micro{color:var(--ember-soft);font-size:11px;margin-top:7px}.last{display:flex;align-items:center;gap:13px}.last .icon{color:var(--ember-soft)}.last p{font-size:13px;color:var(--muted);margin:5px 0 0}.empty{padding:33px 21px;text-align:center}.empty-icon{width:68px;height:68px;display:flex;align-items:center;justify-content:center;background:#304133;border-radius:21px;margin:0 auto 15px;color:var(--ember-soft)}.empty h2{font-size:19px;letter-spacing:-.03em;margin:0 0 7px}.empty p{font-size:13px;line-height:1.65;color:var(--muted);max-width:400px;margin:0 auto 18px}.info-pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;background:#2d3d30;color:#c7dcc8;padding:8px 11px;font-size:11px;letter-spacing:.01em}.mini-card{background:var(--panel);border:1px solid #364539;border-radius:15px;padding:14px;display:flex;gap:13px;align-items:center}.mini-card .icon{color:var(--ember-soft)}.mini-card-title{font-size:14px;font-weight:730}.mini-card-desc{font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px}.mini-card .chevron{margin-left:auto;color:#98aa9c}.setting-group{margin:20px 0 8px;font-size:13px;font-weight:800}.backlink{display:inline-flex;align-items:center;gap:4px;color:var(--ember-soft);font-size:13px;font-weight:650;margin:2px 0 14px;min-height:38px}.statgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.stat{background:#304033;border-radius:12px;padding:14px 5px;text-align:center}.stat .value{display:block;font-size:25px;font-weight:800;letter-spacing:-.04em}.stat .label{display:block;font-size:11px;color:#b5c5b7;margin-top:4px}.notice{display:flex;align-items:flex-start;gap:11px;background:#283b2e;border:1px solid #466448;border-radius:14px;padding:13px;color:#daeddb;font-size:13px;line-height:1.55}.notice-warn{background:#393127;border-color:#6b5038;color:#f4dcc1}.notice-error{background:#432c2b;border-color:#825047;color:#ffd2ca}.notice .icon{margin-top:1px;flex-shrink:0}.field{display:flex;flex-direction:column;gap:8px;margin:14px 0}.field label{font-size:13px;color:#d5e0d6;font-weight:650}.fileinput{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.preview{background:#26362c;border-radius:15px;padding:16px}.preview dl{display:grid;grid-template-columns:1fr auto;gap:11px;margin:12px 0 0;font-size:13px}.preview dt{color:var(--muted)}.preview dd{margin:0;font-weight:650}.checkrow{display:flex;align-items:flex-start;gap:12px;padding:12px 0;color:#e7eee3;font-size:13px;line-height:1.6;cursor:pointer}.checkrow input{accent-color:var(--ember);width:19px;height:19px;flex-shrink:0;margin:2px 0}.actions{display:flex;flex-wrap:wrap;gap:10px}.divider{border:0;border-top:1px solid var(--line);margin:14px 0}.footnote{font-size:12px;color:var(--soft);line-height:1.6;margin:8px 0 0}.toast{position:fixed;bottom:calc(91px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(88%,440px);padding:14px 18px;border:1px solid #527456;border-radius:13px;background:#2b4630;color:#e9f4e9;box-shadow:0 14px 35px #0008;z-index:30;font-size:13px;line-height:1.5}.toast.error{background:#512e2d;color:#ffe5de;border-color:#985e57}.bottom-wrap{position:fixed;bottom:0;left:0;right:0;z-index:20;background:linear-gradient(to top,#101612 85%,#101612ee);border-top:1px solid #2c382d;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav{max-width:920px;margin:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:7px 18px}.nav-link{min-height:65px;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#9bad9e;font-size:10px;font-weight:650}.nav-link.active{color:var(--ember-soft);background:#293a2e}.nav-link .icon{width:23px;height:23px}.stage-note{font-size:11px;color:var(--soft);line-height:1.4}.about-list{display:flex;flex-direction:column;gap:14px}.about-item{display:flex;align-items:flex-start;gap:11px;font-size:13px;color:#d7e0d5;line-height:1.5}.about-item .icon{color:var(--ember-soft)}.update-banner{margin:0 0 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.update-banner p{color:#c8d5c8;font-size:12px;margin:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.loading-dot{width:6px;height:6px;background:var(--ember);border-radius:50%;display:inline-block;animation:pulse 1s infinite alternate}@keyframes pulse{to{opacity:.35}}@media(min-width:700px){.shell{padding-left:56px;padding-right:56px}.topbar{height:118px}.content{max-width:600px;margin:0 auto}.bottom-nav{max-width:580px}.quickgrid{gap:15px}}@media(max-width:375px){.shell{padding:0 16px 102px}.hero{padding:20px 16px}.card{padding:15px}.quick{min-height:116px;padding:14px}.brand-name{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(forced-colors:active){.button,.card,.quick,.hero{border:1px solid CanvasText}}

/* iPhone Home Screen: keep the header below the status bar / Dynamic Island.
   viewport-fit=cover and black-translucent are already set in index.html.
   CSS safe area values vary by model, orientation, and browser mode. */
.shell{
  padding-top:12px; /* Fallback for browsers without env() */
  padding-top:max(12px,env(safe-area-inset-top,0px));
  padding-bottom:calc(110px + env(safe-area-inset-bottom,0px));
}

/* Phase 2: recipes, variants and multiple BBQ profiles. Keeps approved dark styling. */
.form-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--text)}
.form-label{font-size:12px;font-weight:720;color:#d5e2d4}
.form-input{display:block;min-width:0;width:100%;padding:13px 12px;min-height:47px;color:#f7f0e8;background:#15221b;border:1px solid #516354;border-radius:12px;font-size:14px;line-height:1.35}
.form-input:focus-visible{outline:2px solid var(--ember-soft);outline-offset:1px}
.form-input::placeholder{color:#8ea18f}
textarea.form-input{min-height:82px;resize:vertical}
.form-field:has(textarea){width:100%}
.filter-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.filter-line>select{min-width:120px;flex:1}
.inline-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13px;line-height:1.35;color:#e8f0e5}
.inline-checkbox input{accent-color:var(--ember);width:19px;height:19px;flex:0 0 auto}
.recipe-list{display:flex;flex-direction:column;gap:11px}
.recipe-row{display:flex;align-items:center;gap:13px;min-height:105px;padding:12px;border:1px solid #38483c;border-radius:18px;background:var(--panel)}
.recipe-row>.icon:last-child{color:#9fb09e}
.recipe-thumb{width:75px;height:78px;flex-shrink:0;border-radius:14px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 20%,#4b5b43,#2a352c 70%);color:var(--ember-soft)}
.recipe-text{flex:1;min-width:0}
.recipe-name{font-size:14px;color:#f7f1e6;font-weight:790;margin-bottom:6px;line-height:1.32}
.recipe-details,.recipe-hint{font-size:11px;color:#adbdaa;line-height:1.4}
.recipe-hint{margin-top:6px;color:var(--ember-soft)}
.recipe-metas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.recipe-meta{background:#304033;border-radius:12px;padding:10px 7px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.recipe-meta .icon{color:var(--ember-soft)}
.recipe-meta small{display:block;color:#9fb4a1;font-size:10px;margin-bottom:3px}
.recipe-meta strong{font-size:12px;overflow-wrap:anywhere}
.ingredient-list{display:flex;flex-direction:column;gap:13px}
.ingredient-item{display:flex;align-items:start;gap:10px;font-size:13px;line-height:1.55}
.ingredient-item .icon{color:var(--ember-soft);flex-shrink:0}
.steps-list{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:14px;color:#e9eee6;font-size:13px;line-height:1.65}
.steps-list li{padding-left:4px}
.steps-list li::marker{color:var(--ember-soft);font-weight:750}
.source-link{display:inline-flex;align-items:center;gap:9px;padding:12px;color:var(--ember-soft);font-size:13px;min-height:44px;font-weight:740}
.editor-rows{display:flex;flex-direction:column;gap:12px}
.editor-ingredient{background:#1c2b23;border:1px solid #3b4d3e;border-radius:15px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.editor-ingredient>.form-field:nth-child(3){grid-column:1 / -1}
.editor-ingredient>.button{grid-column:1 / -1;justify-self:end}
.editor-step{display:flex;flex-direction:column;gap:4px;padding:12px;background:#1c2b23;border:1px solid #3b4d3e;border-radius:15px}
.editor-step .button{align-self:flex-end}
@media(max-width:375px){.recipe-row{padding:10px;gap:10px}.recipe-thumb{width:65px;height:69px}.recipe-meta{padding:9px 3px}}

/* Keep settings reachable with long custom BBQ names. */
.topbar .brand{min-width:0;flex:1}
.topbar .brand>div:last-child{min-width:0}
.topbar .brand-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(55vw,360px)}

/* Recipe photos (Phase 2.1): compact thumbnails plus a restrained dark-mode hero. */
.recipe-thumb,.feature-img,.recipe-hero-photo,.recipe-photo-preview{overflow:hidden;position:relative;background:radial-gradient(circle at 35% 15%,#445542,#29372c 75%);color:var(--ember-soft)}
.recipe-thumb,.feature-img{display:flex;align-items:center;justify-content:center}
.recipe-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.recipe-hero-photo{width:100%;aspect-ratio:16/9;border-radius:19px;display:flex;align-items:center;justify-content:center;border:1px solid #39463a;margin-top:-3px}
.recipe-hero-photo>.icon{width:48px;height:48px}
.recipe-photo-editor{width:100%}
.recipe-photo-preview{width:100%;max-width:360px;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;border-radius:15px;border:1px solid #455346}
.recipe-photo-preview>.icon{width:39px;height:39px}
.recipe-photo-editor + .actions .button{flex:1;min-width:145px}
@media(max-width:375px){.recipe-photo-editor + .actions .button{min-width:125px}}

/* Phase 3: multiple active BBQ sessions, manual readings and cook-step checklist. */
.session-list{display:flex;flex-direction:column;gap:12px}
.session-card{display:flex;flex-direction:column;gap:14px;background:var(--panel);border:1px solid #3d4b3e;padding:16px;border-radius:var(--radius);min-height:150px}
.session-card:focus-visible{outline:2px solid var(--ember-soft)}
.session-card-head,.session-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.session-card h3{font-size:17px;line-height:1.32;margin:0 0 4px}
.session-card-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.session-card-stats>div{display:flex;flex-direction:column;gap:6px;background:#304032;padding:11px;border-radius:12px}
.session-card-stats small{font-size:11px;color:#afbeaf}
.session-card-stats strong{font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:#f5eee3}
.session-card-stats>div:last-child strong{color:var(--ember-soft)}
.session-card-foot{display:flex;justify-content:space-between;align-items:center;color:#a9b9aa;font-size:12px}
.status-pill{border-radius:100px;padding:6px 10px;background:#394039;color:#d0dbd0;font-size:11px;white-space:nowrap;font-weight:750}
.status-active{background:#473628;color:#ffc293}
.session-detail-head{align-items:center}
.session-main-time{display:flex;align-items:center;gap:14px;background:#303c30;border-radius:14px;padding:14px}
.session-main-time .icon{color:var(--ember-soft)}
.session-main-time>div{display:flex;flex-direction:column;gap:3px}
.session-main-time span:not(.icon){font-size:12px;color:#b3c2b3}
.session-main-time strong{font-size:30px;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.session-temp-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.temp-summary{display:flex;flex-direction:column;gap:7px;padding:12px;background:#304032;border-radius:13px;min-width:0}
.temp-summary .temp-label{font-size:12px;font-weight:750;color:#b9ccb9}
.temp-summary strong{font-size:20px;color:var(--ember-soft);overflow-wrap:anywhere}
.temp-summary small{font-size:10px;line-height:1.4;color:#b5c5b5}
.session-steps{display:flex;flex-direction:column;gap:0}
.session-step{display:flex;gap:11px;align-items:flex-start;padding:13px 0;cursor:pointer;line-height:1.55;font-size:14px;border-bottom:1px solid #364739}
.session-step:last-child{border-bottom:0;padding-bottom:0}
.session-step input{width:22px;height:22px;accent-color:var(--ember);flex-shrink:0;margin-top:1px;cursor:pointer}
.step-index{font-size:11px;line-height:22px;color:#a5b7a7;min-width:14px}
.step-description{flex:1;color:#f0f0e9}
.session-step.is-done .step-description{text-decoration:line-through;color:#90a393}
.progress-track{height:7px;border-radius:999px;background:#455447;overflow:hidden}
.progress-fill{height:100%;background:var(--ember);border-radius:999px;transition:width .2s ease}
.reading-list{display:flex;flex-direction:column;gap:0}
.reading-item{display:flex;flex-direction:column;gap:5px;padding:12px 0;border-bottom:1px solid #364739}
.reading-item:last-child{border-bottom:0;padding-bottom:0}
.reading-time{font-size:11px;color:#abbba9}
.reading-values{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;color:#f5ede3;font-weight:650}
.reading-note{font-size:12px;color:#b8c8b8;line-height:1.45}
@media(max-width:375px){.session-card-stats strong{font-size:18px}.session-temp-grid{gap:7px}.temp-summary{padding:9px}.temp-summary strong{font-size:18px}}

.session-ingredients summary{cursor:pointer;font-size:15px;font-weight:760;min-height:28px}
.session-ingredients .ingredient-list{margin-top:16px}

/* Phase 4: dark premium logbook, review and safe editing. */
.logbook-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.logbook-stat{background:#26382a;border:1px solid #3c503e;border-radius:16px;padding:17px;display:flex;flex-direction:column;gap:7px}
.logbook-stat strong{font-size:27px;letter-spacing:-.04em;color:var(--ember-soft)}
.logbook-stat span{font-size:12px;color:var(--muted)}
.logbook-rating{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-top:1px solid var(--line);font-size:13px}
.logbook-rating strong{font-size:14px;color:var(--ember-soft);text-align:right}
.logbook-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:13px 10px;margin:0;font-size:13px}
.logbook-facts dt{color:var(--muted)}.logbook-facts dd{margin:0;overflow-wrap:anywhere;text-align:right}
.logbook-notes{display:flex;flex-direction:column;gap:6px}.logbook-notes+ .logbook-notes{padding-top:14px;border-top:1px solid var(--line)}
.logbook-notes strong{font-size:13px}.logbook-notes p{font-size:13px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:0}
.rating-stars{display:flex;justify-content:space-between;gap:3px}
.rating-star{min-width:48px;min-height:54px;flex:1;border:0;border-radius:12px;color:#90a18e;background:#2c382e;font-size:32px;line-height:1}
.rating-star.is-selected{color:#f5ab65;background:#394031}
.rating-star:focus-visible{outline:2px solid #ffd1a9;outline-offset:2px}
.logbook-edit-reading{border:1px solid #465345;border-radius:14px;padding:13px;display:flex;flex-direction:column;gap:12px}
.logbook-edit-reading+.logbook-edit-reading{margin-top:12px}
.logbook-edit-reading>.button{align-self:flex-start}
@media(max-width:375px){.rating-star{min-width:40px;font-size:29px}.logbook-stats{gap:9px}.logbook-stat{padding:13px}}

/* Phase 5: groceries and an offline, text-first knowledge base. */
.shop-overview{display:flex;flex-direction:column;gap:8px}.shop-overview strong{font-size:18px}
.shop-list{display:flex;flex-direction:column;gap:10px}
.shop-item{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid #3b4c40;border-radius:16px;padding:12px 10px;min-height:67px}
.shop-item>input[type=checkbox]{flex:none;width:24px;height:24px;accent-color:var(--ember);cursor:pointer}
.shop-item-main{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.shop-item-main strong{font-size:14px;overflow-wrap:anywhere}
.shop-item.shop-done .shop-item-main strong{text-decoration:line-through;color:#96aa99}
.shop-edit-button{min-height:44px;display:inline-flex;align-items:center;gap:5px;color:var(--ember-soft);font-size:12px;padding:9px;border-radius:9px}
.shop-edit-button .icon{width:17px;height:17px}
.knowledge-categories{display:flex;gap:8px;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}
.knowledge-chip{white-space:nowrap;width:auto;flex-shrink:0;padding:9px 12px;min-height:44px;font-size:12px}
.knowledge-list{display:flex;flex-direction:column;gap:10px}
.knowledge-card{background:var(--panel);border:1px solid #3c4c3e;padding:14px;border-radius:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:75px}
.knowledge-card>div{display:flex;flex-direction:column;gap:5px}.knowledge-card strong{font-size:14px}.knowledge-card .subtext{font-size:12px}.knowledge-card .icon{flex-shrink:0;color:var(--ember-soft)}
.knowledge-p{font-size:14px;line-height:1.65;color:#e0eadf;white-space:pre-wrap}
.temp-guide-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.temp-guide-head>div{display:flex;flex-direction:column;gap:6px}.temp-guide-head>div strong{font-size:14px}
.temp-guide-value{font-size:18px;color:var(--ember-soft);text-align:right;max-width:48%;overflow-wrap:anywhere}

/* Phase 6: inspect recipe bundles before adding them. */
.recipe-transfer-preview{display:flex;flex-direction:column;gap:0;max-height:340px;overflow:auto;background:#223127;border-radius:12px;border:1px solid #394e3d;padding:0 12px}
.recipe-transfer-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #38483d;overflow-wrap:anywhere;font-size:13px;color:var(--text)}
.recipe-transfer-row:last-child{border-bottom:0}.recipe-transfer-row .icon{color:var(--ember-soft);flex-shrink:0}.recipe-transfer-row span:not(.icon){min-width:0;flex:1}.recipe-transfer-row small{color:var(--muted);white-space:nowrap}.recipe-transfer-preview:focus-visible{outline:2px solid var(--ember-soft)}

/* Approved adjustments round 1 + 2. No change to IndexedDB schema. */
/* iOS Safari avoids focus zoom for fields whose displayed text is at least 16px. */
input.form-input,select.form-input,textarea.form-input{font-size:16px}
.search-wrap{position:relative;min-width:0}
.search-wrap .form-input{padding-right:53px}
.search-clear{position:absolute;right:2px;top:50%;transform:translateY(-50%);min-width:44px;width:44px;min-height:44px;padding:0;color:var(--ember-soft);border-radius:10px;background:transparent}
.search-clear[hidden],.unit-custom[hidden]{display:none!important}
.search-clear:hover{background:#314134}
.unit-custom{margin-top:8px}
.recipe-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-width:0}
.recipe-heading-row .pagehead{flex:1;min-width:0;margin-bottom:15px}
.recipe-heading-row .pagehead h1{font-size:clamp(24px,5.3vw,36px)}
.recipe-heading-actions{display:flex;gap:6px;align-items:center;flex:0 0 auto;margin-top:23px}
.recipe-heading-icon{padding:0;min-width:44px;width:44px;height:44px;min-height:44px;background:#293a2e;color:var(--ember-soft);border-color:#526352}
.recipe-heading-icon .icon{width:22px;height:22px}
.text-action{background:transparent;color:var(--ember-soft);font-size:13px;padding:7px 2px;min-height:44px;gap:5px;border:0;font-weight:700;white-space:normal;line-height:1.3;text-align:left}
.text-action:hover{color:#ffd2a4}
.recipe-detail-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.recipe-detail-top .backlink{margin:0;flex:0 0 auto}
.recipe-detail-top .text-action{font-size:13px;justify-content:flex-end;text-align:right}
.recipe-photo-actions{display:flex;align-items:center;justify-content:space-between;gap:3px;min-height:44px}
.recipe-photo-action-links{display:flex;align-items:center;gap:9px;min-width:0}
.recipe-photo-action-links .text-action{font-size:12px}
.favorite-heart{width:44px;min-width:44px;min-height:44px;height:44px;padding:0;border:0;background:transparent;color:var(--ember-soft)}
.favorite-heart .icon svg{fill:none;stroke:currentColor}
.favorite-heart.is-favorite .icon svg{fill:var(--ember);stroke:var(--ember)}
.favorite-heart:hover{color:#ffd2a4}
.recipe-main-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.recipe-main-actions .button{width:100%;min-width:0;padding:10px 7px;min-height:60px;font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;gap:6px}
.recipe-main-actions .icon{flex:0 0 auto}
.recipe-delete{background:#322924;border-color:#85524a;color:#ffb9a7}
.history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border-radius:11px;background:#2b3a2e;min-height:58px}
.history-row .icon{color:var(--ember-soft)}
.history-row strong{font-size:13px;color:var(--text)}
.history-row .micro{margin-top:5px}
.knowledge-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.knowledge-category-tile{min-height:110px;padding:13px 11px;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-width:0;text-align:left;white-space:normal}
.knowledge-category-tile .icon{color:var(--ember-soft)}
.knowledge-category-tile strong{font-size:14px}
.knowledge-category-tile .micro{color:#b9c9b7;font-size:11px;line-height:1.4;font-weight:500}
.knowledge-category-tile.button-primary{color:#162018}
.knowledge-category-tile.button-primary .icon,.knowledge-category-tile.button-primary .micro{color:#162018}
.knowledge-temperature-feature{border-color:#6b674b;background:#304335}
.shopping-list-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px}
.shopping-list-title h2{margin:0;font-size:16px}
.shopping-list-title .text-action{white-space:nowrap}
@media(max-width:375px){
  .recipe-photo-action-links{gap:4px}
  .recipe-photo-action-links .text-action{font-size:11px;gap:3px}
  .recipe-photo-action-links .icon{width:16px;height:16px}
  .recipe-main-actions .button{font-size:11px;padding:9px 5px;gap:4px}
  .recipe-heading-row .pagehead h1{font-size:25px}
}

/* Post-phase-6 knowledge editor + consistent clear-search controls (v0.6.2). */
.knowledge-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}
.knowledge-header-row>.pagehead{min-width:0;flex:1}
.knowledge-header-row>.text-action{flex:0 0 auto;max-width:145px;margin-top:22px;text-align:right;justify-content:flex-end}
.knowledge-header-row>.text-action .icon{flex-shrink:0}
.knowledge-detail-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.knowledge-detail-actions>.text-action{margin-left:auto}
.knowledge-user-label{display:inline-block;width:max-content;max-width:100%;font-size:11px;font-weight:650;line-height:1.4;color:#f2b781;background:#3e392c;border-radius:8px;padding:4px 7px;margin-top:4px}
.knowledge-original{background:#203027;border:1px solid #5d735e;padding:13px;border-radius:12px;display:flex;flex-direction:column;gap:8px;color:#d7e5d8;font-size:13px;line-height:1.55}
.knowledge-original>strong{color:#f0c79a}
.knowledge-original .subtext{margin:0;white-space:pre-wrap}
.knowledge-original .source-link{align-self:flex-start}
.knowledge-card{min-width:0}.knowledge-card>div{min-width:0}.knowledge-card strong{overflow-wrap:anywhere}
@media(max-width:375px){.knowledge-header-row>.text-action{max-width:126px;font-size:12px;margin-top:18px}}

/* Phase 7: compact backup reminder and session temperature guide. */
.backup-reminder{display:flex;align-items:center;gap:10px;padding:12px 14px;color:var(--text,#f7f2e9);text-decoration:none;border:1px solid #77613b;background:#352f20;border-radius:12px;font-size:14px;line-height:1.4}
.backup-reminder .icon:first-child{color:var(--ember,#f18a45);flex-shrink:0}
.backup-reminder .icon:last-child{margin-left:auto;flex-shrink:0}
.session-guide-link{display:flex;align-items:center;gap:10px;color:var(--ember,#f18a45);font-size:14px;font-weight:600;text-decoration:none;padding:11px 12px;border-radius:10px;background:#253329;border:1px solid #435343;min-height:44px}
.session-guide-link .icon:last-child{margin-left:auto}
.session-guide-link:focus-visible,.backup-reminder:focus-visible{outline:2px solid var(--ember,#f18a45);outline-offset:3px}

/* v1.0.0 RC2 · Offline changelog, deliberately separate from personal data. */
.changelog-release{padding:0;overflow:hidden;border:1px solid #3c4e3d}
.changelog-current{border-color:#936c43;background:#29362a}
.changelog-summary{cursor:pointer;display:flex;align-items:center;gap:10px;list-style:none;padding:16px 14px;min-height:62px}
.changelog-summary::-webkit-details-marker{display:none}
.changelog-summary-info{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.changelog-summary-info strong{font-size:16px;color:var(--text)}
.changelog-summary-info small{font-size:12px;color:var(--muted);line-height:1.35}
.changelog-chevron{transform:rotate(0deg);transition:transform .15s ease;color:var(--ember-soft)}
.changelog-release[open] .changelog-chevron{transform:rotate(90deg)}
.changelog-new{font-size:11px;font-weight:750;color:#172017;background:var(--ember);padding:5px 8px;border-radius:99px}
.changelog-list{list-style:disc;padding:0 17px 16px 34px;margin:0;display:flex;flex-direction:column;gap:9px;border-top:1px solid #405241;padding-top:13px}
.changelog-list li{color:#d9e5d8;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.changelog-list li::marker{color:var(--ember-soft)}
.changelog-summary:focus-visible{outline:2px solid var(--ember);outline-offset:-3px}

/* Directe, veilig externe receptverwijzingen; offline stappen blijven lokaal zichtbaar. */
.recipe-online-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;width:fit-content;color:var(--ember);font-weight:650;text-decoration:none;}
.recipe-online-link:focus-visible{outline:2px solid var(--ember);outline-offset:3px;border-radius:5px;}
.recipe-online-link:hover{text-decoration:underline;}

/* BBQ Buddy v1.1: additions only; current Dark Premium visual language remains. */
.reorder-actions{display:flex;gap:6px;justify-content:flex-end;align-items:center;flex-wrap:wrap;margin-top:6px}
.reorder-actions .button{min-width:42px;min-height:42px}
.accessory-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.accessory-choices .inline-checkbox{min-width:0;text-align:left;display:flex;align-items:center;gap:8px}
.accessory-custom-row{display:flex;align-items:center;justify-content:space-between;gap:8px;grid-column:1/-1;padding:5px 0}
.accessory-add{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.accessory-add input{flex:1 1 170px;min-width:0}
.knowledge-bookmark{min-width:44px;min-height:44px;color:var(--accent,#f18a45)}
.knowledge-bookmark.is-favorite svg{fill:currentColor}
@media(max-width:375px){.accessory-choices{grid-template-columns:1fr}.reorder-actions{justify-content:flex-start}}

.editor-ingredient>.reorder-actions{grid-column:1/-1}
.shopping-list-title{flex-wrap:wrap}

/* v1.2 RC1. Added atop the approved Dark Premium design, mobile first. */
.session-focus{border:1px solid #8b714c;background:linear-gradient(140deg,#304030,#242e27)}
.focus-step-label{font-size:11px;letter-spacing:.13em;color:#f7b77b;font-weight:800}
.focus-step-text{color:var(--text);font-size:17px;line-height:1.5;font-weight:650;margin:0;overflow-wrap:anywhere}
.focus-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.focus-shortcuts>.button{min-width:0;font-size:12px;min-height:48px;white-space:normal;overflow-wrap:anywhere}
.logbook-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.logbook-photo-tile{min-width:0;background:#25352a;border:1px solid #435846;border-radius:11px;padding:7px;display:flex;flex-direction:column;gap:7px}
.logbook-photo{width:100%;height:140px;object-fit:cover;border-radius:7px;background:#141d17}
.logbook-photo-delete{min-height:42px;width:100%;font-size:12px}
.comparison-table{display:grid;gap:0;border:1px solid #455746;border-radius:10px;overflow:hidden}
.comparison-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:11px 9px;border-bottom:1px solid #3b4b3d;font-size:12px;line-height:1.4;min-width:0}
.comparison-row>*{overflow-wrap:anywhere;min-width:0}.comparison-row:last-child{border-bottom:0}
.comparison-row:nth-child(even){background:#25352a}.comparison-head{background:#354635!important;color:#f7be89}
.comparison-notes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.comparison-notes>div{border:1px solid #435846;border-radius:10px;padding:10px;background:#25352a;min-width:0}
.comparison-notes small{color:#f7b77b}.comparison-notes p{font-size:13px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:375px){.comparison-row{font-size:11px;padding:10px 6px;gap:5px}.logbook-photo{height:120px}}

/* v1.3 DEV1: compact extended filters and catalog; preserves Dark Premium. */
.recipe-advanced{padding:0;overflow:hidden}
.recipe-advanced>summary{cursor:pointer;list-style:none;padding:13px 14px;color:#f4bd86;font-weight:700;min-height:46px}
.recipe-advanced>summary::-webkit-details-marker{display:none}
.recipe-advanced>summary:focus-visible{outline:2px solid var(--ember);outline-offset:-2px}
.recipe-advanced>.stack{border-top:1px solid #405241;padding:13px;gap:12px}
.recipe-advanced .form-field,.recipe-advanced .form-input{min-width:0}

/* v1.3 DEV4: category + product are paired in one compact two-column row. */
.editor-ingredient>.catalog-product-pickers,.shopping-catalog-pickers{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.catalog-product-pickers>.form-field{min-width:0}
.catalog-product-pickers .form-input{min-width:0;width:100%;font-size:16px;text-overflow:ellipsis}
.catalog-product-pickers .form-input:disabled{opacity:.65}

/* v1.4: clear, local-first connectivity and storage indicators */
.status-summary{display:flex;gap:12px;align-items:center;padding:13px;margin-top:12px}
.status-summary>.icon{color:var(--ember-soft)}.status-summary>div{flex:1;min-width:0}
.status-summary strong{font-size:13px}.status-summary .subtext{font-size:12px}
.status-summary>.network-state{font-size:12px;color:var(--ember-soft)}
.status-list{display:flex;flex-direction:column;gap:10px;padding:12px 0}
.status-line{display:flex;justify-content:space-between;gap:10px;align-items:start;font-size:13px}
.status-line>span{color:var(--muted)}.status-line>strong{font-size:12px;text-align:right;color:#dce9d8}

/* Ultimate Sandbox extension. Inherits the approved charcoal/forest/ember palette. */
.lab-meta{font-size:11px;color:var(--ember-soft);margin-top:6px;line-height:1.5}
.lab-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.lab-pager{display:flex;align-items:center;justify-content:space-between;gap:9px}
.lab-pager>.button{flex:1;min-width:0}
.lab-tags{display:flex;gap:8px;flex-wrap:wrap}
.lab-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.lab-action-grid .button{min-width:0;font-size:12px;padding:10px 9px;overflow-wrap:anywhere;white-space:normal}
.lab-action-grid .button:last-child:nth-child(odd){grid-column:span 2}
.lab-notes{min-height:115px;font-size:16px;line-height:1.55}
.lab-stage{display:flex;align-items:center;gap:12px;background:#26352b;border:1px solid #415342;border-radius:12px;padding:13px;min-height:74px}
.lab-stage>.icon{color:var(--ember-soft)}
.lab-stage strong{font-size:13px}
.lab-stage .micro{margin-top:5px;line-height:1.5;color:var(--muted)}
.lab-stage-current{border-color:#9c754f;background:#354332}
.lab-plan-row{background:var(--panel);border:1px solid #405040;border-radius:14px;display:flex;align-items:center;justify-content:space-between;padding:12px;gap:8px}
.lab-plan-row>.button{flex-shrink:0;min-height:44px;min-width:44px}
.lab-plan-link{flex:1;min-width:0}
.lab-plan-link strong{font-size:13px}
.lab-plan-link .micro{margin-top:6px;color:var(--muted);font-size:11px;line-height:1.5}
.lab-action-grid .icon{flex-shrink:0}
@media(max-width:360px){.lab-action-grid{grid-template-columns:1fr}.lab-action-grid .button:last-child:nth-child(odd){grid-column:span 1}}
@media(prefers-reduced-motion:reduce){.lab-stage,.lab-pager{scroll-behavior:auto}}
