/* App-Feeling auch im Browser: schmale zentrierte Spalte, unten Platz
   fuer Tabbar und FABs. */
.app-shell { min-height: 100vh; display: grid; place-items: start center; padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(160px + env(safe-area-inset-bottom, 0px)); }
.card { width: min(520px, 100%); background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.stack { display: grid; gap: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.inline-form { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin: 16px 0; align-items: end; }
.item { display: flex; justify-content: space-between; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.035); }
.task-important { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: inset 4px 0 0 var(--accent); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
@media (max-width: 720px) {
  .app-shell { width: 100%; max-width: 100vw; padding: calc(18px + env(safe-area-inset-top, 0px)) 8px calc(160px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }
  .card { width: 100%; max-width: calc(100vw - 16px); padding: 20px 18px 18px; border-radius: 18px; overflow-x: hidden; }
  .header, .item { flex-direction: column; }
  .header { gap: 10px; margin-bottom: 12px; align-items: stretch; padding-top: 4px; }
  .header button { align-self: flex-start; padding: 9px 14px; }
  .inline-form { grid-template-columns: 1fr; }
  .actions { justify-content: start; }
}

/* Bottom-Navigation: schwebende Pill mit drei Tabs (Xdo-Stil), im
   Browser wie am Handy immer sichtbar. */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 4px; padding: 6px;
  background: color-mix(in srgb, var(--panel) 86%, #000);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  width: min(420px, calc(100vw - 24px));
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px; color: var(--muted); text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.02em; border-radius: 999px;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--accent-2); background: rgba(255, 255, 255, .07); }
