:root {
  --bg: #f8f5f0;
  --surface: #ffffff;
  --surface-2: #f2ede6;
  --border: #e6dfd5;
  --text: #2e2a26;
  --muted: #8a8076;
  --accent: #5f7f63;
  --accent-soft: #e5ede4;
  --rose: #c46b6b;
  --rose-soft: #f7e6e4;
  --amber: #b9862f;
  --amber-soft: #f6ecd8;
  --slate: #6e7276;
  --slate-soft: #e9eaeb;
  --glass: rgba(255, 255, 255, .9);
  --scrim: rgba(30, 24, 18, .45);
  --shadow: 0 1px 2px rgba(60, 45, 30, .06), 0 4px 16px rgba(60, 45, 30, .06);
  --radius: 14px;
  --topbar-h: 60px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1917;
    --surface: #24211e;
    --surface-2: #2d2a26;
    --border: #3a3631;
    --text: #efe9e1;
    --muted: #a39a90;
    --accent: #8fb193;
    --accent-soft: #2c3a2e;
    --rose: #e08f8f;
    --rose-soft: #3e2a29;
    --amber: #dcb066;
    --amber-soft: #3d3222;
    --slate: #a8adb2;
    --slate-soft: #33363a;
    --glass: rgba(45, 42, 38, .88);
    --scrim: rgba(0, 0, 0, .55);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, a, label, input, select, textarea { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; }
a { color: var(--accent); }
.muted { color: var(--muted); margin: 0; }
.hint { color: var(--muted); margin: 0; font-size: 13px; }
.error { color: var(--rose); min-height: 1.2em; margin: 0; font-size: 14px; }
input, textarea, select {
  font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 80px; }

.btn {
  font: inherit; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--rose); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn {
  border: none; background: none; color: var(--text); cursor: pointer; border-radius: 10px;
  min-width: 40px; height: 40px; padding: 0 8px; font-size: 22px; display: inline-grid; place-items: center;
}
@media (hover: hover) {
  .btn:hover { background: var(--surface-2); }
  .btn.primary:hover { background: var(--accent); filter: brightness(1.07); }
  .icon-btn:hover { background: var(--surface-2); }
}

/* Nur auf dem Smartphone sichtbar */
.menu-toggle, .drawer-close, .drawer-backdrop, .fab { display: none; }

/* Login */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.login-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 40px 32px; width: 100%; max-width: 380px; text-align: center; }
.login-rings { font-size: 40px; }
.login-card h1 { font-size: 40px; margin-top: 8px; }
.login-card h1 span, .brand span { color: var(--rose); font-style: italic; }
.login-card form { display: grid; gap: 12px; margin-top: 24px; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.who input { display: none; }
.who span { display: block; padding: 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 500; }
.who input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* Kopfzeile */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) calc(24px + env(safe-area-inset-right)) 0 calc(24px + env(safe-area-inset-left));
  border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 8px; position: relative; }
.me-chip { font-size: 13px; color: var(--muted); }
.me-chip b { color: var(--text); }
.menu { position: absolute; top: 110%; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; display: grid; }
.menu button { text-align: left; border: none; background: none; font: inherit; color: inherit; padding: 11px 12px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
.menu-toggle { position: relative; }
.toggle-badge {
  position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--rose); color: #fff; font: 600 11px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--surface);
}

/* Aufbau */
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--topbar-h) - 1px); }
.sidebar {
  border-right: 1px solid var(--border); padding: 20px 14px; position: sticky;
  top: calc(var(--topbar-h) + 1px + env(safe-area-inset-top));
  height: calc(100vh - var(--topbar-h) - 1px - env(safe-area-inset-top)); overflow-y: auto;
}
.sidebar-head { display: flex; align-items: center; gap: 8px; padding: 0 8px 12px; }
.sidebar-head h2 { font-size: 20px; flex: 1; }
.group-list { display: grid; gap: 2px; }
.group-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; border: none; background: none; font: inherit; color: inherit; text-align: left; width: 100%; }
.group-link:hover { background: var(--surface-2); }
.group-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.group-link .emoji { font-size: 18px; width: 24px; text-align: center; }
.group-link .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-link .count { font-size: 12px; color: var(--muted); font-weight: 500; }
.group-link .todo { font-size: 11px; background: var(--rose); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 600; }

.main { padding: 28px 32px 60px; min-width: 0; }
.group-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.group-head-text { min-width: 0; }
.group-head h1 { font-size: 38px; overflow-wrap: anywhere; }
.group-actions { display: flex; gap: 8px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; white-space: nowrap; }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .6; margin-left: 4px; }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s; position: relative; }
@media (hover: hover) {
  .chip:hover { background: var(--surface-2); }
  .chip.active:hover { background: var(--text); }
  .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60,45,30,.08), 0 10px 28px rgba(60,45,30,.1); }
}
.card-img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; font-size: 42px; color: var(--muted); position: relative; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img.note { font-family: var(--serif); font-size: 18px; padding: 44px 16px 16px; text-align: left; place-items: start; color: var(--text); line-height: 1.4; font-style: italic; }
.card-badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.card-photos { position: absolute; bottom: 8px; right: 8px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.badge-match { color: var(--accent); }
.badge-discuss { color: var(--amber); }
.badge-out { color: var(--slate); }
.badge-pending { color: var(--muted); }
.card-body { padding: 12px 14px 10px; display: grid; gap: 4px; flex: 1; align-content: start; }
.card-site { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-price { color: var(--text); font-weight: 600; }
.card-foot { border-top: 1px solid var(--border); padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.votes-mini { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.votes-mini span { display: inline-flex; gap: 3px; align-items: center; }

/* Bewertungs-Knöpfe */
.rate { display: flex; gap: 4px; }
.rate button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; width: 34px; height: 30px; padding: 0; cursor: pointer; font-size: 15px; display: grid; place-items: center; transition: transform .1s, background .15s; filter: grayscale(.6); opacity: .8; }
.rate button:active { transform: scale(.92); }
@media (hover: hover) {
  .rate button:hover { transform: scale(1.08); opacity: 1; filter: none; }
}
.rate button.on { filter: none; opacity: 1; }
.rate button.on[data-v="like"] { background: var(--rose-soft); border-color: var(--rose); }
.rate button.on[data-v="discuss"] { background: var(--amber-soft); border-color: var(--amber); }
.rate button.on[data-v="dislike"] { background: var(--slate-soft); border-color: var(--slate); }
.rate.big { gap: 8px; flex-wrap: wrap; }
.rate.big button { width: auto; height: auto; padding: 8px 14px; font: inherit; font-size: 14px; gap: 6px; display: inline-flex; align-items: center; }

/* Fenster */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; padding: 16px; background: var(--scrim); animation: fade-in .2s ease-out; }
.modal {
  margin: auto; width: 100%; max-width: 760px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop-in .2s ease-out;
}
/* Leiste mit 0 Höhe, die oben klebt: das X bleibt beim Scrollen immer sichtbar */
.modal-bar { position: sticky; top: 0; height: 0; z-index: 5; display: flex; justify-content: flex-end; }
.modal-close {
  flex: none; margin: 12px 12px 0 0; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: var(--text); background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.modal-pad { --pad: 28px; --pad-b: 28px; padding: var(--pad) var(--pad) var(--pad-b); display: grid; gap: 16px; }
.modal h2 { font-size: 30px; padding-right: 44px; overflow-wrap: anywhere; }
.detail-head { padding-right: 44px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 3; background: var(--bg); border-top: 1px solid var(--border);
  margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad-b)); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet-up { from { transform: translateY(60px); opacity: .5; } }

.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs button { border: none; background: none; padding: 7px 16px; border-radius: 999px; font: inherit; cursor: pointer; color: var(--muted); white-space: nowrap; }
.tabs button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }

.preview-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { width: 92px; height: 92px; border-radius: 10px; background: var(--surface-2) center / cover; position: relative; }
.thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--text); color: var(--bg); cursor: pointer; font-size: 14px; line-height: 1; padding: 0; }
.thumb.add { display: grid; place-items: center; border: 1px dashed var(--border); cursor: pointer; color: var(--muted); font-size: 26px; background: var(--surface); }
.thumb.cover::after { content: 'Titelbild'; position: absolute; bottom: 4px; left: 4px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 6px; }

/* Detailansicht */
.detail-hero { background: var(--surface-2); position: relative; }
.detail-hero img { width: 100%; max-height: 440px; object-fit: contain; display: block; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: var(--glass); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; box-shadow: var(--shadow); color: var(--text); }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.gallery-dots span.on { background: #fff; }
.detail-desc { white-space: pre-wrap; margin: 0; overflow-wrap: anywhere; }
.detail-meta { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; }
.detail-meta .price { color: var(--text); font-weight: 600; font-size: 18px; }
.vote-panel { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 14px; }
.vote-row { display: grid; gap: 8px; }
.vote-row .who-label { font-weight: 600; font-size: 14px; }
.vote-other { display: flex; align-items: center; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.pill.like { background: var(--rose-soft); } .pill.discuss { background: var(--amber-soft); } .pill.dislike { background: var(--slate-soft); } .pill.none { background: var(--surface-2); color: var(--muted); }

.comments { display: grid; gap: 10px; }
.comments h3 { font-size: 22px; }
.comment { display: flex; gap: 10px; }
.comment.mine { flex-direction: row-reverse; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; color: #fff; }
.avatar.leonie { background: var(--rose); } .avatar.daniel { background: var(--accent); }
.bubble { background: var(--surface); border-radius: 14px; padding: 8px 12px; max-width: 80%; }
.comment.mine .bubble { background: var(--accent-soft); }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble small { color: var(--muted); font-size: 11px; display: flex; gap: 8px; flex-wrap: wrap; }
.bubble small button { border: none; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 11px; text-decoration: underline; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form textarea { min-height: 44px; height: 44px; max-height: 160px; resize: none; }

.emoji-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.emoji-pick button { border: 1px solid transparent; background: var(--surface); border-radius: 8px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; padding: 0; }
.emoji-pick button.on { border-color: var(--accent); background: var(--accent-soft); }

.empty { text-align: center; padding: 80px 20px; display: grid; gap: 12px; justify-items: center; }
.empty.small { padding: 40px 20px; color: var(--muted); }
.empty-icon { font-size: 48px; }
.empty h2 { font-size: 34px; }
.empty p { max-width: 420px; margin: 0; color: var(--muted); }

.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }

/* ---------- Smartphone ---------- */
@media (max-width: 760px) {
  /* Ab 16px zoomt iOS beim Tippen in ein Feld nicht mehr hinein */
  input, textarea, select { font-size: 16px; }

  .topbar { --topbar-h: 56px; padding-left: calc(6px + env(safe-area-inset-left)); padding-right: calc(8px + env(safe-area-inset-right)); }
  .brand { font-size: 23px; }
  .me-chip { display: none; }
  .menu-toggle { display: inline-grid; }

  /* Kategorien als Seitenmenü zum Aufklappen */
  .layout { display: block; min-height: 0; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; height: auto;
    width: min(84vw, 320px); background: var(--surface); border-right: 1px solid var(--border);
    padding: calc(14px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-102%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility .28s;
  }
  .drawer-open .sidebar { transform: none; visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
  .sidebar-head { padding: 0 0 12px 8px; }
  .sidebar-head h2 { font-size: 24px; }
  .drawer-close { display: inline-grid; }
  .group-link { padding: 12px 10px; font-size: 16px; }
  .group-link .emoji { font-size: 20px; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 44; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .28s; }
  .drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

  .main { padding: 18px calc(16px + env(safe-area-inset-right)) calc(110px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left)); }
  .group-head { flex-wrap: nowrap; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .group-head h1 { font-size: 30px; }
  #add-item-btn { display: none; }

  /* Filter in einer wischbaren Zeile */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { padding: 7px 13px; }

  /* Plus-Knopf unten rechts – gut mit dem Daumen erreichbar */
  .fab {
    display: grid; place-items: center; position: fixed; z-index: 30;
    right: calc(18px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom));
    width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  }
  .fab:active { transform: scale(.94); }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card-badge { top: 8px; left: 8px; max-width: calc(100% - 16px); font-size: 11px; padding: 2px 8px; }
  .card-body { padding: 10px 10px 8px; }
  .card-title { font-size: 14px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
  .votes-mini { justify-content: center; }
  .rate { justify-content: space-between; }
  .rate button { flex: 1; width: auto; height: 38px; font-size: 17px; }

  /* Fenster als Bottom-Sheet; Höhe richtet sich nach dem wirklich sichtbaren Bereich */
  .modal-backdrop { padding: calc(10px + env(safe-area-inset-top)) 0 0; align-items: stretch; }
  .modal { margin: auto 0 0; max-width: none; border-radius: 18px 18px 0 0; animation: sheet-up .25s cubic-bezier(.2, .8, .2, 1); }
  .modal-close { width: 42px; height: 42px; margin: 10px 10px 0 0; }
  .modal-pad { --pad: 16px; --pad-b: calc(22px + env(safe-area-inset-bottom)); padding-top: 20px; }
  .modal h2 { font-size: 26px; padding-right: 48px; }
  .detail-head { padding-right: 48px; }
  .detail-hero img { max-height: 55vh; }
  .rate.big { flex-direction: column; }
  .rate.big button { justify-content: flex-start; text-align: left; padding: 12px 14px; font-size: 15px; }
  .bubble { max-width: 85%; }
  .tabs button { padding: 7px 12px; }

  .login-card { padding: 32px 22px; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
