/* Sheet */
.scrim { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgb(8 18 12 / .55); }
.sheet { background: var(--surface); width: 100%; max-width: 640px; max-height: 92dvh; overflow-y: auto; border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; align-content: start; }
@media (min-width: 720px) { .scrim { align-items: center; padding: 24px; } .sheet { border-radius: 20px; padding: 24px; max-height: 88dvh; } }
.sheethead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheethead h2 { font-size: 24px; overflow-wrap: anywhere; }
.sheethead p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ing { list-style: none; margin: 0; padding: 0; display: grid; }
.ing li { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.ing li:first-child { border-top: 0; }
.ing .q { width: 84px; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.steps li::marker { font-weight: 700; color: var(--accent); }
.pickrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.pickrow:hover { border-color: var(--accent); }
.pickrow .tt { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.picklist { display: grid; gap: 6px; }
.cook { display: grid; gap: 20px; }
.cook .stepno { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.cook .bigtext { font: 500 clamp(24px, 6vw, 34px)/1.35 var(--font-display); }
.cook .actions .btn { flex: 1; min-height: 56px; font-size: 17px; }
.whenday { font-weight: 700; font-size: 13px; margin-top: 4px; }
.whenrow { display: flex; gap: 8px; flex-wrap: wrap; }

.trash { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  padding: 12px 22px; border-radius: 999px; background: var(--surface); border: 2px dashed var(--danger); color: var(--danger); font-weight: 700; }
.trash.dropover { background: var(--danger) !important; color: var(--bg); outline: 0; border-style: solid; }
@media (min-width: 720px) { .trash { bottom: 28px; } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; max-width: calc(100% - 32px); }
@media (min-width: 720px) { .toast { bottom: 32px; } }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .22s ease-out; }
  @keyframes rise { from { transform: translateY(24px); opacity: 0; } }
}
.catpick { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.catpick legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.catlist { display: flex; flex-wrap: wrap; gap: 8px; }
.catopt { position: relative; display: inline-block; }
.catopt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.catopt span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; }
.catopt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.catopt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.catadd { display: flex; gap: 8px; margin-bottom: 8px; }
.catadd input { flex: 1; min-width: 0; }
.catrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.catrow input[type="text"] { flex: 1 1 140px; min-width: 0; }

/* Anwendungsmenü (Fenster "apps") */
.apptiles { display: grid; gap: 10px; }
.apptile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
.apptile:hover { border-color: var(--app); }
.apptile[aria-current="true"] { border-color: var(--app); background: color-mix(in srgb, var(--app) 10%, var(--surface)); }
.appicon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: color-mix(in srgb, var(--app) 18%, var(--surface)); color: color-mix(in srgb, var(--app) 60%, var(--fg)); }
.appicon svg { width: 26px; height: 26px; }
.apptext { display: grid; min-width: 0; flex: 1; }
.apptext b { font: 700 18px var(--font-display); }
.apptext small { color: var(--muted); font-size: 13px; }
.appnow { color: var(--app); display: inline-flex; }
