/* HenniApp – iOS-artiges Design, hell und dunkel */
:root {
  color-scheme: light dark;
  --bg: #F2F2F7;
  --bg2: #FFFFFF;
  --bg3: #F2F2F7;
  --fill: rgba(118, 118, 128, 0.12);
  --fill2: rgba(118, 118, 128, 0.2);
  --text: #000000;
  --text2: rgba(60, 60, 67, 0.6);
  --text3: rgba(60, 60, 67, 0.3);
  --sep: rgba(60, 60, 67, 0.29);
  --accent: #007AFF;
  --accent-text: #FFFFFF;
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  --bar: rgba(249, 249, 249, 0.86);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg2: #1C1C1E;
    --bg3: #2C2C2E;
    --fill: rgba(118, 118, 128, 0.24);
    --fill2: rgba(118, 118, 128, 0.36);
    --text: #FFFFFF;
    --text2: rgba(235, 235, 245, 0.6);
    --text3: rgba(235, 235, 245, 0.3);
    --sep: rgba(84, 84, 88, 0.65);
    --accent: #0A84FF;
    --green: #30D158;
    --red: #FF453A;
    --orange: #FF9F0A;
    --bar: rgba(22, 22, 24, 0.86);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.3 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Startbild */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-logo { width: 84px; height: 84px; border-radius: 20px; background: url(/assets/icons/icon-192.png) center/cover; box-shadow: var(--shadow); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.94); opacity: 0.8; } }

/* ---------------------------------------------------------------- Seitenaufbau */
.screen { min-height: 100vh; padding: calc(var(--safe-top) + 8px) 0 calc(var(--safe-bottom) + 96px); }
.screen.no-tabs { padding-bottom: calc(var(--safe-bottom) + 24px); }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; }
.topbar .spacer { flex: 1; }
.large-title { font-size: 34px; font-weight: 700; letter-spacing: 0.37px; margin: 2px 0 12px; }
.subtitle { color: var(--text2); font-size: 15px; margin: -8px 0 14px; }

.icon-btn {
  border: 0; background: transparent; color: var(--accent);
  min-width: 44px; height: 44px; border-radius: 22px; font-size: 17px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.icon-btn.round { background: var(--fill); width: 36px; min-width: 36px; height: 36px; font-size: 22px; line-height: 1; }
.icon-btn:active { opacity: 0.5; }

/* ---------------------------------------------------------------- Listen (Inset Grouped) */
.section-title { font-size: 13px; text-transform: uppercase; color: var(--text2); margin: 22px 16px 7px; letter-spacing: -0.08px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title .count { text-transform: none; }
.section-title.big { text-transform: none; font-size: 20px; font-weight: 700; color: var(--text); margin: 22px 4px 8px; }
.list { background: var(--bg2); border-radius: var(--radius); overflow: hidden; }
.list + .list { margin-top: 16px; }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 8px 16px; position: relative;
  background: var(--bg2); width: 100%; border: 0; text-align: left;
}
.row::after { content: ''; position: absolute; left: var(--sep-inset, 16px); right: 0; bottom: 0; height: 0.5px; background: var(--sep); }
.row:last-child::after { display: none; }
button.row:active, .row.tappable:active { background: var(--fill); }
.row .grow { flex: 1; min-width: 0; }
.row .title { overflow-wrap: anywhere; }
.row .meta { color: var(--text2); font-size: 14px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row .value { color: var(--text2); }
.row .chev { color: var(--text3); font-size: 20px; }
.row.danger .title { color: var(--red); }
.row.accent .title { color: var(--accent); }
.row .emoji { font-size: 22px; width: 30px; text-align: center; }
.footnote { color: var(--text2); font-size: 13px; margin: 7px 16px 0; line-height: 1.4; }
.empty { text-align: center; color: var(--text2); padding: 40px 20px; }
.empty .big { font-size: 48px; margin-bottom: 8px; }

/* Abhak-Kreis */
.check {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  border: 2px solid var(--text3); background: transparent; padding: 0;
  display: grid; place-items: center; color: transparent; font-size: 15px; font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}
.check.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.check:disabled { opacity: 0.35; }
.row.done .title { color: var(--text2); text-decoration: line-through; text-decoration-color: var(--text3); }

/* Personen-Chips */
.avatar {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c, var(--accent)); color: #fff; font-size: 11px; font-weight: 700; flex: 0 0 auto;
}
.avatar.lg { width: 40px; height: 40px; font-size: 17px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text2); }
.pill.red { color: var(--red); }
.pill.orange { color: var(--orange); }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--fill); color: var(--text2); }

/* ---------------------------------------------------------------- Eingabezeile Einkauf */
.addbar { position: sticky; top: calc(var(--safe-top)); z-index: 5; background: var(--bg); padding: 6px 0 8px; }
.addbar form { display: flex; gap: 8px; }
.field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  background: var(--fill); border-radius: 10px; height: 40px; padding: 0 10px;
}
.field input { flex: 1; min-width: 0; width: 0; border: 0; background: transparent; outline: none; font-size: 17px; height: 100%; }
.field input.qty { flex: 0 0 72px; width: 72px; border-left: 0.5px solid var(--sep); padding-left: 8px; font-size: 15px; }
.field input::placeholder { color: var(--text2); }
.btn {
  border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-text);
  font-weight: 600; font-size: 17px; height: 50px; padding: 0 20px; width: 100%;
}
.btn.small { height: 40px; width: auto; flex: 0 0 auto; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn.secondary { background: var(--fill); color: var(--accent); }
.btn.danger { background: var(--fill); color: var(--red); }
.btn:disabled { opacity: 0.4; }
.btn:active { filter: brightness(0.9); }
.suggest { margin-top: 6px; background: var(--bg2); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.suggest .row { min-height: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 0; background: var(--bg2); color: var(--text); border-radius: 16px;
  height: 32px; padding: 0 12px; font-size: 15px; display: inline-flex; align-items: center; gap: 6px;
}
.chip.on { background: var(--accent); color: #fff; }
.chip .avatar { width: 20px; height: 20px; font-size: 10px; }

.finish-bar { margin: 16px 0 0; }

/* ---------------------------------------------------------------- Segmente */
.segmented { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; margin: 0 0 12px; }
.segmented button {
  flex: 1; border: 0; background: transparent; border-radius: 7px; height: 30px; font-size: 13px; font-weight: 500;
}
.segmented button.on { background: var(--bg2); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .segmented button.on { background: #636366; } }

/* ---------------------------------------------------------------- Tab-Leiste */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--bar); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
  display: flex; justify-content: space-around; padding: 6px 0 calc(var(--safe-bottom) + 4px);
}
.tabbar a {
  flex: 1; max-width: 120px; text-decoration: none; color: var(--text2); font-size: 10px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabbar a .ico { font-size: 24px; line-height: 28px; filter: grayscale(1); opacity: 0.6; }
.tabbar a.on { color: var(--accent); }
.tabbar a.on .ico { filter: none; opacity: 1; }
.tabbar .dot { position: absolute; margin-left: 22px; margin-top: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* ---------------------------------------------------------------- Banner & Hinweise */
.banner { border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.banner.offline { background: rgba(255, 149, 0, 0.15); color: var(--text); }
.banner.info { background: var(--bg2); }
.banner .x { margin-left: auto; border: 0; background: none; color: var(--text2); font-size: 18px; }

/* ---------------------------------------------------------------- Anmeldung */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: calc(var(--safe-top) + 24px) 28px calc(var(--safe-bottom) + 24px); gap: 6px; }
.hero .logo { width: 108px; height: 108px; border-radius: 24px; background: url(/assets/icons/icon-192.png) center/cover; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero h1 { font-size: 30px; margin: 0; }
.hero p { color: var(--text2); margin: 4px 0 24px; max-width: 340px; line-height: 1.45; }
.hero .btn { max-width: 340px; }
.hero .hint { margin-top: 22px; font-size: 14px; max-width: 340px; color: var(--text2); line-height: 1.45; }
.steps { text-align: left; background: var(--bg2); border-radius: var(--radius); padding: 14px 16px; margin-top: 18px; max-width: 360px; font-size: 15px; line-height: 1.5; }
.steps ol { margin: 6px 0 0; padding-left: 20px; }
.err { color: var(--red); font-size: 15px; margin-top: 12px; max-width: 340px; }

/* ---------------------------------------------------------------- Bottom Sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 40; opacity: 0; transition: opacity 0.25s; }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 14px 14px 0 0; padding: 0 0 calc(var(--safe-bottom) + 20px);
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 680px; margin: 0 auto; -webkit-overflow-scrolling: touch;
}
.sheet.show { transform: none; }
.sheet-head { position: sticky; top: 0; background: var(--bg); display: flex; align-items: center; padding: 8px 8px; z-index: 2; }
.sheet-head h2 { flex: 1; text-align: center; font-size: 17px; margin: 0; font-weight: 600; }
.sheet-head .icon-btn { min-width: 80px; }
.sheet-head .icon-btn.strong { font-weight: 600; }
.sheet-grab { width: 36px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 6px auto 0; }
.sheet-body { padding: 4px 16px 0; }
.form-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 16px; background: var(--bg2); position: relative; }
.form-row::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; height: 0.5px; background: var(--sep); }
.form-row:last-child::after { display: none; }
.form-row label { flex: 0 0 auto; }
.form-row input[type=text], .form-row input:not([type]), .form-row textarea, .form-row input[type=number] {
  flex: 1; border: 0; background: transparent; outline: none; font-size: 17px; min-width: 0; padding: 6px 0;
}
.form-row input[type=date] { margin-left: auto; border: 0; background: var(--fill); border-radius: 8px; padding: 6px 10px; font-size: 16px; min-height: 34px; }
.form-row textarea { resize: none; min-height: 72px; line-height: 1.35; }
.form-row select { margin-left: auto; border: 0; background: transparent; color: var(--text2); font-size: 17px; text-align: right; }
.form-row .chips { flex: 1; flex-wrap: wrap; overflow: visible; }
.form-row .chip { background: var(--fill); }
.form-row .chip.on { background: var(--accent); }
.weekday-row { display: flex; gap: 6px; padding: 10px 16px; background: var(--bg2); }
.weekday-row button { flex: 1; height: 36px; border-radius: 18px; border: 0; background: var(--fill); font-size: 14px; }
.weekday-row button.on { background: var(--accent); color: #fff; }

/* Kategorie-Auswahl */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-grid button {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px;
  border: 0; border-radius: 12px; background: var(--bg2); text-align: left; font-size: 15px; line-height: 1.2;
}
.cat-grid button .emoji { font-size: 22px; flex: 0 0 auto; }
.cat-grid button.on { outline: 2px solid var(--accent); }
.cat-grid button:active { background: var(--fill); }

/* Schalter */
.switch { position: relative; width: 51px; height: 31px; flex: 0 0 51px; margin-left: auto; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--fill2); border-radius: 16px; transition: background 0.2s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.15), 0 3px 1px rgba(0,0,0,0.06); transition: transform 0.2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Aktionsblatt */
.actions { padding: 8px 8px calc(var(--safe-bottom) + 8px); }
.actions .group { background: var(--bg2); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.actions .group .cap { text-align: center; color: var(--text2); font-size: 13px; padding: 12px 16px; border-bottom: 0.5px solid var(--sep); }
.actions button { display: block; width: 100%; border: 0; background: transparent; color: var(--accent); font-size: 20px; height: 57px; border-bottom: 0.5px solid var(--sep); }
.actions button:last-child { border-bottom: 0; }
.actions button.danger { color: var(--red); }
.actions button.cancel { font-weight: 600; }
.actions button:active { background: var(--fill); }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-bottom) + 92px); transform: translateX(-50%) translateY(20px);
  background: rgba(30, 30, 32, 0.92); color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast button { background: none; border: 0; color: #64D2FF; font-weight: 600; margin-left: 10px; pointer-events: auto; }

.copybox { background: var(--bg2); border-radius: var(--radius); padding: 12px; word-break: break-all; font-size: 14px; color: var(--text2); margin: 10px 0; user-select: all; -webkit-user-select: all; }
.spin { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot 0.7s linear infinite; vertical-align: -3px; }
@keyframes rot { to { transform: rotate(360deg); } }
.muted { color: var(--text2); }
.center { text-align: center; }
.mt { margin-top: 16px; }

/* ---------------------------------------------------------------- Kalender */
.cal { background: var(--bg2); border-radius: var(--radius); padding: 4px 8px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head b { font-size: 17px; }
.cal-head .icon-btn { font-size: 26px; }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd span { text-align: center; font-size: 12px; color: var(--text2); padding: 2px 0 6px; font-weight: 600; }
.cal-day {
  border: 0; background: transparent; height: 46px; padding: 2px 0 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.cal-day .n { width: 32px; height: 32px; line-height: 32px; border-radius: 50%; font-size: 17px; text-align: center; }
.cal-day.out .n { color: var(--text3); }
.cal-day.today .n { color: var(--red); font-weight: 600; }
.cal-day.sel .n { background: var(--text); color: var(--bg2); font-weight: 600; }
.cal-day.sel.today .n { background: var(--red); color: #fff; }
.cal-day .dots { display: flex; gap: 2px; height: 5px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; }
.cal-day:active .n { background: var(--fill); }
.ev-row { align-items: stretch; gap: 10px; }
.ev-time { flex: 0 0 56px; display: flex; flex-direction: column; justify-content: center; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.ev-time .t1 { color: var(--text); }
.ev-time .t2 { color: var(--text2); font-size: 13px; }
.ev-bar { flex: 0 0 4px; border-radius: 2px; background: var(--c, var(--accent)); margin: 2px 0; }
.form-row .dt { margin-left: auto; display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.form-row .dt input, .form-row input[type=time] { border: 0; background: var(--fill); border-radius: 8px; padding: 6px 8px; font-size: 16px; min-height: 34px; margin: 0; min-width: 0; }
.form-row .dt input[type=date] { flex: 0 1 auto; }
.form-row .dt input[type=time] { flex: 0 0 auto; }

/* ---------------------------------------------------------------- Schwarzes Brett */
.notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (min-width: 620px) { .notes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note {
  --nb: var(--bg2);
  background: var(--nb); border-radius: 16px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); position: relative; min-width: 0;
}
.note .n-tap { cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.note .n-emoji { font-size: 30px; line-height: 1; }
.note .n-text { font-size: 15px; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.note .n-pin { position: absolute; top: 8px; right: 10px; font-size: 15px; }
.note .n-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--text2); }
.note .n-foot .avatar { width: 18px; height: 18px; font-size: 9px; }
.note .n-exp { width: 100%; }
.reacts { display: flex; gap: 6px; flex-wrap: wrap; }
.react {
  border: 0; height: 28px; min-width: 36px; padding: 0 8px; border-radius: 14px; background: rgba(127, 127, 127, 0.14);
  font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.react span { font-size: 12px; font-weight: 600; color: var(--text2); }
.react.zero { opacity: 0.45; }
.react.on { background: var(--accent); }
.react.on span { color: #fff; }
.c-yellow { --nb: #FFF3BF; } .c-orange { --nb: #FFE2C6; } .c-green { --nb: #D6F3DC; }
.c-blue { --nb: #D7E8FF; } .c-purple { --nb: #EADCFA; } .c-pink { --nb: #FCDCE5; } .c-none { --nb: var(--bg2); }
@media (prefers-color-scheme: dark) {
  .c-yellow { --nb: #3B3313; } .c-orange { --nb: #3D2A17; } .c-green { --nb: #183622; }
  .c-blue { --nb: #172A45; } .c-purple { --nb: #2D2140; } .c-pink { --nb: #3D1F2A; }
}
.note-edit .form-row, .note-edit { background: var(--nb, var(--bg2)); }
.note-edit textarea { min-height: 120px; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emoji-row button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg2); font-size: 22px; padding: 0; }
.emoji-row button.on { outline: 2px solid var(--accent); }
.emoji-row input { width: 52px; height: 40px; border: 0; border-radius: 10px; background: var(--bg2); font-size: 22px; text-align: center; outline: none; }
.color-row { display: flex; gap: 12px; justify-content: center; padding: 14px 0 2px; }
.color-row .sw { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--sep); background: var(--nb); padding: 0; }
.color-row .sw.on { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- Stufe 3: Essen */
.me-btn { display: inline-flex; text-decoration: none; }
.avatar.md { width: 32px; height: 32px; font-size: 14px; }
.segmented.links a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.segmented.links a.on { background: var(--bg2); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); font-weight: 600; }
@media (prefers-color-scheme: dark) { .segmented.links a.on { background: #636366; } }
.badge.red { background: var(--red); color: #fff; font-size: 11px; padding: 1px 6px; }
.thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.thumb.ph { display: grid; place-items: center; font-size: 24px; }
.thumb.lg { width: 72px; height: 72px; flex-basis: 72px; border-radius: 14px; font-size: 32px; }
.meal-card { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; background: var(--bg2); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; }
.meal-card .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meal-card .t { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.meal-card.empty .t { color: var(--text2); font-weight: 500; font-size: 17px; }
.meal-card .slot { font-size: 12px; text-transform: uppercase; color: var(--text2); letter-spacing: 0.3px; }
.meal-card .meta { font-size: 14px; color: var(--text2); }
.meal-card:active { background: var(--fill); }
.slot-l { font-size: 12px; text-transform: uppercase; color: var(--text2); flex: 0 0 52px; }
.muted.small, .small { font-size: 13px; }
.section-title.big .muted { font-weight: 400; color: var(--text2); }
.rate-card { display: flex; gap: 12px; background: var(--bg2); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; align-items: flex-start; }
.rate-card .meta { color: var(--text2); font-size: 14px; margin-top: 2px; }
.rate-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rate-btns button { border: 0; background: var(--fill); border-radius: 15px; height: 30px; padding: 0 11px; font-size: 14px; }
.rate-btns button:active { background: var(--fill2); }
.hero-img { width: 100%; max-height: 280px; object-fit: cover; border-radius: 16px; margin: 4px 0 12px; display: block; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.row.ing .q { flex: 0 0 84px; color: var(--text2); font-size: 15px; font-variant-numeric: tabular-nums; }
.steps-list { background: var(--bg2); border-radius: var(--radius); margin: 0; padding: 12px 16px 12px 36px; line-height: 1.5; }
.steps-list li { margin: 6px 0; }
button.link { border: 0; background: none; color: var(--accent); padding: 0; font-size: inherit; }
.map-row { align-items: flex-start; }
.map-in { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.map-in input { flex: 1; min-width: 0; border: 0; background: var(--fill); border-radius: 8px; padding: 6px 8px; font-size: 16px; outline: none; }
.howto { margin: 0; padding-left: 20px; line-height: 1.5; font-size: 15px; }
.howto li { margin: 6px 0; }
.howto .copybox { margin: 6px 0; }
.cb { width: 22px; height: 22px; accent-color: var(--accent); flex: 0 0 22px; }
.chip .muted-on { opacity: 0.7; font-size: 13px; }
.row .title a { color: var(--accent); text-decoration: none; }
