:root {
  --bg: #faf6f0; --card: #ffffff; --ink: #2b2420; --muted: #7a6d63; --line: #e8dfd4;
  --accent: #8a4b2a; --accent-ink: #ffffff; --accent-soft: #f3e4d8; --warn: #fff4d6; --danger: #b3261e;
  --radius: 14px; --shadow: 0 1px 3px rgba(60, 40, 20, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1916; --card: #28221e; --ink: #f2ebe4; --muted: #a8998c; --line: #3a322c;
    --accent: #d98b5f; --accent-ink: #1d1916; --accent-soft: #3a2a20; --warn: #3a3220; --danger: #f2867e; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.center main { min-height: 100vh; display: grid; place-items: center; }
a { color: var(--accent); }
h1 { font-size: 1.7rem; line-height: 1.2; margin: .4em 0; }
h2 { font-size: 1.25rem; margin: 1.2em 0 .5em; }
h3 { font-size: 1.05rem; margin: 1em 0 .3em; color: var(--muted); }
.wrap { max-width: 980px; margin: 0 auto; padding: 12px 16px calc(40px + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.top nav { display: flex; align-items: center; gap: 10px; }
.navlink { text-decoration: none; font-size: .95rem; color: var(--muted); }
@media (max-width: 400px) { .top nav { gap: 8px; } .navlink { font-size: .85rem; } .top .btn { padding: 8px 12px; } }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit;
  font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-big { min-height: 54px; padding: 12px 24px; font-size: 1.1rem; }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.btn[disabled] { opacity: .6; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; box-shadow: var(--shadow); }
.card.narrow { max-width: 420px; text-align: center; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.error { color: var(--danger); }
.notice { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.notice.review { background: var(--warn); }
.notice .btn { margin-top: 8px; }
.hint { margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--accent-soft); text-align: left; font-size: .95rem; }
.search input { width: 100%; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.tags { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; -webkit-overflow-scrolling: touch; }
.tag { white-space: nowrap; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.tag.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tile img, .tile .noimg { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.tile .noimg { display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.tile-title { display: block; padding: 8px 10px 10px; font-weight: 600; line-height: 1.25; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--warn); color: var(--ink); font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.lead { font-size: 1.05rem; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.qty { font-weight: 700; } .note { color: var(--muted); }
.steps { padding-left: 1.4em; } .steps li { margin: 0 0 12px; padding-left: 4px; }
.prewrap { white-space: pre-wrap; }
.scans { display: flex; gap: 10px; flex-wrap: wrap; }
.scans img { width: 140px; border-radius: 10px; border: 1px solid var(--line); }
.form label { display: block; margin: 12px 0; font-weight: 600; }
.form input, .form textarea, .inline input { width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.form textarea { font-size: 1rem; line-height: 1.5; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .inline input { flex: 1 1 200px; margin: 0; }
.check { display: inline-flex; gap: 6px; align-items: center; }
.edit-layout { display: grid; gap: 18px; }
@media (min-width: 860px) { .edit-layout:has(aside) { grid-template-columns: 300px 1fr; } .sticky { position: sticky; top: 80px; align-self: start; flex-direction: column; } .sticky img { width: 100%; } }
.danger-zone { margin-top: 40px; }
.filepick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filepick .btn { width: 100%; border-style: dashed; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; } .previews img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.jobs { list-style: none; padding: 0; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; margin: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.job-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-processing .job-state::before, .job-media .job-state::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.people { list-style: none; padding: 0; } .devices { padding-left: 1.2em; } .devices li { display: flex; align-items: center; gap: 8px; }
.copy { width: 100%; font: inherit; font-size: .9rem; padding: 8px; margin: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
body.cook { font-size: 21px; }
.cookmode h1 { font-size: 1.6rem; }
.cook-ingredients { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.cook-ingredients summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.cook-steps { list-style: none; counter-reset: s; padding: 0; }
.cook-steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 58px; margin: 12px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.55; cursor: pointer; }
.cook-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 1rem; }
.cook-steps li small { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.cook-steps li.done { opacity: .45; text-decoration: line-through; }
.card > h2:first-child { margin-top: 0; }
.inline-form { display: inline; }
.btn.fav.on { color: #c0392b; border-color: #e7b3ab; }
.fav-badge { position: absolute; top: 6px; right: 8px; color: #c0392b; font-size: 1.3rem; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
.comments { list-style: none; padding: 0; margin: 0 0 12px; }
.comments li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; }
.comments p { margin: 6px 0 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-head form { margin-left: auto; }
.comment-form { display: grid; gap: 8px; }
.comment-form textarea { margin: 0; }
.comment-form .btn { justify-self: start; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.changelog { list-style: none; padding: 0; }
.changelog li { border-left: 4px solid var(--line); padding: 8px 12px; margin: 10px 0; background: var(--bg); border-radius: 6px; }
.changelog p { margin: 6px 0 0; }
.fb-status { font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); }
.fb-ausgerollt { border-left-color: #2e7d32; } .fb-ausgerollt .fb-status { background: #dcefdc; color: #1b5e20; }
.fb-freigabe_noetig { border-left-color: #e0a100; } .fb-freigabe_noetig .fb-status { background: var(--warn); }
.fb-abgelehnt, .fb-fehlgeschlagen { border-left-color: var(--danger); }
.account-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.icon-user { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.account-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) { .account-name { max-width: 5em; } }
.section-title { margin-top: 1.6em; }
.people > li { border-bottom: 1px solid var(--line); padding: 6px 0 12px; }
.people > li:last-child { border-bottom: 0; }
.changelog details > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 2px 22px 2px 0; position: relative; }
.changelog details > summary::-webkit-details-marker { display: none; }
.changelog details > summary::after { content: "▸"; position: absolute; right: 2px; top: 4px; color: var(--muted); }
.changelog details[open] > summary::after { content: "▾"; }
.fb-line1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fb-what { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-short { line-height: 1.35; }
.fb-body { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; font-size: .92rem; }
.changelog details > summary { min-width: 0; }
.changelog li { padding: 6px 12px; }
