:root{color-scheme:light;--bg: #f7f6ef;--surface: #fffdf7;--surface-2: #edf4e7;--text: #243126;--muted: #677061;--line: #d9ddcf;--accent: #3f7d58;--accent-2: #c36b3f;--danger: #9d3f35;--shadow: 0 16px 45px rgba(46, 62, 38, .12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{color-scheme:dark;--bg: #151a16;--surface: #1f281f;--surface-2: #263423;--text: #edf2e7;--muted: #b5bea9;--line: #3b4738;--accent: #8cbe73;--accent-2: #e09a68;--danger: #e07b70;--shadow: none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,textarea,select{font:inherit}button{border:1px solid var(--line);background:var(--surface);color:var(--text);min-height:42px;border-radius:8px;padding:.6rem .85rem;display:inline-flex;align-items:center;gap:.45rem;cursor:pointer}button:hover{border-color:var(--accent)}button:disabled{cursor:not-allowed;opacity:.55}input,textarea,select{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:8px;padding:.7rem .8rem}select{padding-left:.6em}textarea{resize:vertical;min-height:96px}label{display:grid;gap:.4rem;color:var(--muted);font-weight:650}a{color:var(--accent);margin-right:.7rem}h1,h2,p{margin-top:0}h1{font-size:clamp(1.5rem,3vw,2.7rem);line-height:1}h2{font-size:1.1rem}svg{width:20px;height:20px;flex:0 0 auto}.boot,.login{min-height:100vh;display:grid;place-items:center;padding:1rem}.boot{font-size:2rem;font-weight:800;color:var(--accent)}.loginPanel{width:min(520px,100%);display:grid;gap:1rem;background:var(--surface);padding:2rem;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:.6rem;font-weight:850;color:var(--accent)}.brand.big{font-size:2.2rem;margin-bottom:.5rem}.brand.big svg{width:36px;height:36px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:760}.danger{color:var(--danger)}.error{color:var(--danger);font-weight:700}.formError{color:var(--accent-2);font-size:.9rem;margin:.35rem 0 0}.muted{color:var(--muted)}.shell{min-height:100vh;display:flex;flex-direction:column}.shell.reading{display:block}.appHeader{background:var(--surface);border-bottom:1px solid var(--line);padding:1rem 2rem;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1.25rem;position:sticky;top:0;z-index:10}.tabs{display:flex;gap:.45rem;justify-content:flex-end}.tabs button{justify-content:center;min-width:135px}.tabs .active{background:var(--surface-2);border-color:var(--accent);color:var(--accent);font-weight:780}.appFooter{width:min(1120px,100%);margin:auto auto 0;padding:0 2rem 2rem;display:flex;justify-content:center}.logoutLink{border:0;background:transparent;min-height:0;padding:.25rem;color:var(--accent);text-decoration:underline}.logoutLink:hover{border-color:transparent;color:var(--accent-2)}.logoutLink.confirming{color:var(--danger)}.main{width:min(1120px,100%);margin:0 auto;padding:2rem;flex:1 0 auto}.reading .main{width:min(860px,100%)}.toolbar,.detailTop,.sectionHead{display:flex;align-items:center;justify-content:space-between;gap:1rem}.toolbar{margin-bottom:1.4rem}.search{display:flex;align-items:center;gap:.6rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.35rem .7rem;margin-bottom:1rem}.search input{border:0;background:transparent;padding-left:0}.list{display:grid;gap:.75rem}.row{width:100%;min-height:72px;display:grid;justify-items:start;gap:.25rem;text-align:left;padding:1rem}.row span{color:var(--muted)}.row span p{margin-bottom:0}.row small{color:var(--muted)}.addRow{min-height:56px;align-items:center;grid-template-columns:auto 1fr;color:var(--accent)}.listAddRow{display:flex;justify-content:center;justify-items:center;text-align:center;gap:.5rem;background:var(--accent);border-color:var(--accent);color:#fff}.listAddRow:hover{background:var(--accent-2);border-color:var(--accent-2);color:#fff}.listAddRow strong{color:inherit}.recipeAddRow{margin-bottom:.75rem}.ingredientForm.inline{margin-top:0;grid-template-columns:minmax(0,1fr) 42px;align-items:end;justify-items:stretch;gap:.5rem .75rem}.ingredientForm.inline input:nth-child(2){grid-column:1 / -1;min-width:0}.ingredientForm.inline .ingredientNameInput{grid-column:1 / -1;font-weight:800}.ingredientForm.inline .ingredientNoteInput{grid-column:1 / -1;color:var(--muted)}.ingredientForm.inline .formActions{grid-column:1 / -1;justify-self:end}.ingredientForm.inline .icon{width:42px;height:42px;justify-self:end}.detail{display:grid;gap:1rem}.titleBlock{display:flex;align-items:center;gap:.75rem;min-width:0}.titleBlock h1{margin-bottom:0;overflow-wrap:anywhere}.titleInput{font-size:clamp(1.5rem,3vw,2.7rem);font-weight:400;line-height:1;padding:.35rem}.actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.link{border:0;background:transparent;padding-left:0;color:var(--accent);width:fit-content}.icon{width:42px;padding:0;justify-content:center}.createRecipeButton{width:100%;justify-content:center}.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:1rem;box-shadow:var(--shadow)}.reading .panel{box-shadow:none}.html{line-height:1.7}.descriptionPanel{display:grid;gap:.7rem}.panelActions,.formActions{display:flex;gap:.45rem;justify-content:flex-end}.editor,.items{display:grid;gap:.7rem}.item{display:flex;align-items:start;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding-top:.8rem}.item:first-child{border-top:0;padding-top:0}.clickableItem{cursor:pointer}.clickableItem:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.item p{color:var(--muted);margin-bottom:0;white-space:pre-wrap}.itemActions{display:flex;flex-wrap:wrap;gap:.35rem;justify-content:flex-end}.subform,.ingredientForm{margin-top:1rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:.55rem;align-items:start}.items+.collectionAdd{margin-top:1rem}.items .subform{margin-top:.8rem;border-top:1px solid var(--line);padding-top:.8rem}.subform textarea,.ingredientForm input:nth-child(2){grid-column:span 2}.ingredientsSubform{grid-template-columns:minmax(150px,1.5fr) minmax(72px,.5fr) minmax(86px,.5fr) minmax(160px,2fr) auto}.ingredientsSubform .formActions{grid-column:5}.ingredientsSubform input:nth-of-type(2){grid-column:auto}.stepsSubform{grid-template-columns:minmax(0,1fr)}.stepsSubform textarea{grid-column:1;min-height:4.8rem}.stepsSubform .formActions{justify-self:end}.stepIngredientPicker{display:grid;grid-template-columns:minmax(0,1fr);gap:.55rem;align-items:start}.selectedStepIngredients{display:flex;flex-wrap:wrap;gap:.45rem}.selectedStepIngredient{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--line);border-radius:8px;padding:.3rem .35rem .3rem .55rem;background:var(--surface-2);color:#000}.selectedStepIngredient .icon{width:30px;min-height:30px;height:30px}.notesSubform{grid-template-columns:minmax(0,1fr)}.notesSubform textarea{grid-column:1}.notesSubform .formActions{justify-self:end}@media(max-width:820px){.appHeader{position:static;grid-template-columns:1fr;padding:1rem}.tabs{grid-template-columns:repeat(3,1fr)}.tabs button{flex:1 1 0;min-width:0;justify-content:center}.appFooter{padding:0 1rem 1rem}.main{padding:1rem}.toolbar,.detailTop{align-items:stretch;flex-direction:column}.actions{justify-content:flex-start}.subform,.ingredientForm,.ingredientForm.inline,.grid2{grid-template-columns:1fr}.subform textarea,.ingredientForm input:nth-child(2){grid-column:auto}.ingredientsSubform .formActions{grid-column:1}.stepsSubform .formActions,.notesSubform .formActions{justify-self:stretch}.formActions .icon{flex:1 1 42px}.item{flex-direction:column}}
