/* localhost666 · Design 2 — „Fickstutenstall, aber erwachsen"
   Helles Creme mit Sonnengelb als Akzent, weiße Karten, schwarze Hauptknöpfe.
   Liegt über app.css: setzt die Farben neu und gibt den Bausteinen ihre neue Form.
   Am Rechner wird die Tab-Leiste zur Seitenleiste. */

:root, :root[data-theme="light"] {
  --bg: #f3f0e9;
  --bg2: #faf8f3;
  --page-bg:
    radial-gradient(900px 560px at 92% -12%, #ffe7a3 0%, transparent 62%),
    radial-gradient(700px 520px at -12% 22%, #fff3d2 0%, transparent 58%),
    linear-gradient(180deg, #f7f4ee 0%, #efebe3 100%);
  --card: #ffffff;
  --card-solid: #ffffff;
  --card-2: #f7f5f0;
  --ghost: #f6f4ef;
  --inset: rgba(24, 22, 14, .05);
  --line: rgba(24, 22, 14, .08);
  --ink: #1c1b18;
  --ink-soft: rgba(28, 27, 24, .55);
  --ink-faint: rgba(28, 27, 24, .32);
  --input: #f7f5f0;
  --track: rgba(28, 27, 24, .08);
  --chip: #ffffff;
  --chrome: transparent;
  --chrome-bar: rgba(255, 255, 255, .9);
  --sheet: #fbfaf7;
  --accent: #ffcb2f;
  --accent-ink: #1c1b18;
  --accent-soft: rgba(255, 203, 47, .22);
  --brand: #fb5f1c;
  --green: #22a565;
  --green-soft: rgba(34, 165, 101, .13);
  --green-ink: #ffffff;
  --sea: #3cc68a;
  --bad: #e2482d;
  --pink: var(--accent);
  --butter: #b98100;
  --purple: #7c5cff;
  --tabbar-bg: rgba(255, 255, 255, .92);
  --tabbar-ink: rgba(28, 27, 24, .5);
  --shadow: 0 1px 2px rgba(30, 25, 10, .04), 0 10px 28px -14px rgba(70, 55, 15, .22);
  --shadow-lg: 0 2px 4px rgba(30, 25, 10, .04), 0 22px 48px -22px rgba(70, 55, 15, .35);
  --r: 26px;
  --tabh: 78px;
  --side: 248px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #11110f;
  --bg2: #191916;
  --page-bg:
    radial-gradient(900px 560px at 92% -12%, rgba(255, 203, 47, .14) 0%, transparent 62%),
    radial-gradient(700px 520px at -12% 22%, rgba(255, 140, 60, .07) 0%, transparent 58%),
    linear-gradient(180deg, #151513 0%, #0f0f0d 100%);
  --card: #1c1c19;
  --card-solid: #1c1c19;
  --card-2: #23231f;
  --ghost: #24241f;
  --inset: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08);
  --ink: #f3f0e8;
  --ink-soft: rgba(243, 240, 232, .56);
  --ink-faint: rgba(243, 240, 232, .3);
  --input: #24241f;
  --track: rgba(255, 255, 255, .08);
  --chip: #23231f;
  --chrome-bar: rgba(28, 28, 25, .92);
  --sheet: #181815;
  --accent: #ffcb2f;
  --accent-ink: #1c1b18;
  --accent-soft: rgba(255, 203, 47, .16);
  --green: #3cc68a;
  --green-ink: #0d1a12;
  --butter: #ffcb2f;
  --tabbar-bg: rgba(28, 28, 25, .92);
  --tabbar-ink: rgba(243, 240, 232, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 48px -22px rgba(0, 0, 0, .8);
}

body { background: var(--page-bg); background-attachment: fixed; color: var(--ink); letter-spacing: -0.005em; }
h1, h2, h3, h4 { letter-spacing: -0.025em; }

/* ------------------------------------------------------------- Grundbausteine */
.card {
  background: var(--card); border: 0; border-radius: var(--r); box-shadow: var(--shadow);
  backdrop-filter: none; padding: 18px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.btn { border-radius: 999px; font-weight: 650; padding: 12px 18px; }
.btn-primary { background: var(--ink); color: var(--card); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
:root[data-theme="dark"] .btn-primary { color: #11110f; }
.btn-ghost { background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 999px; }
.btn-clean { background: var(--ink); color: var(--card); border-radius: 999px; }
.btn-buy { background: var(--ink); color: var(--card); border: 0; border-radius: 999px; font-weight: 700; }
.btn-buy.is-xp { background: var(--accent); color: var(--accent-ink); }
.btn-buy.is-off, .reward.is-off .btn-buy { opacity: .4; }
:root[data-theme="dark"] .btn-buy:not(.is-xp) { color: #11110f; }
.icon-btn { color: var(--ink-soft); border-radius: 999px; }
.icon-btn:hover { background: var(--inset); }

.chip {
  background: var(--card); border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: 8px 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chip .icon { opacity: .75; }
.chip-select { position: relative; padding-right: 30px; }
.chip-select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit;
  font: inherit; font-weight: 600; padding: 0; outline: none; cursor: pointer; max-width: 150px;
}
.chip-select::after {
  content: ''; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5;
}

.seg { background: var(--inset); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 0; }
.seg-btn { border-radius: 999px; padding: 8px 12px; font-weight: 650; }
.seg-btn.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-mini .seg-btn { padding: 6px 11px; font-size: 13px; }
.seg-icons .seg-btn { padding: 7px 10px; display: grid; place-items: center; }

.field > span { font-weight: 600; font-size: 12.5px; }
.field input[type=text], .field input:not([type]), .field input[type=password], .field input[type=email],
.field input[type=number], .field input[name], .field select, .field textarea, .search {
  border-radius: 16px; border: 1px solid var(--line); background: var(--input); padding: 13px 15px;
}
.search { width: 100%; margin: 8px 0 12px; color: var(--ink); outline: none; font: inherit; }
.field input:focus, .field select:focus, .search:focus { border-color: var(--ink-faint); }

.bar { height: 6px; background: var(--track); }
.bar > i, .dirt > i { background: linear-gradient(90deg, #8fd694, #ffcb2f 55%, #ff7a5c); }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.tag-sun { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.tag-poke { background: #ffe1d6; border-color: transparent; color: #a33a12; }
.tag-stink { background: #e6f2d9; border-color: transparent; color: #3f6b1d; }
:root[data-theme="dark"] .tag-poke { background: rgba(255, 120, 70, .18); color: #ffb28f; }
:root[data-theme="dark"] .tag-stink { background: rgba(140, 200, 80, .15); color: #b8e08f; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font-weight: 700;
  padding: 10px 16px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.pill-btn:active, .round-dark:active, .check:active, .ptab:active, .qtile:active { transform: scale(.95); }
.pill-light { background: var(--card); border: 1px solid var(--line); }
.round-dark {
  width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--card); flex: none; transition: transform .12s;
}
:root[data-theme="dark"] .round-dark { color: #11110f; }

.muted { color: var(--ink-soft); }

/* ------------------------------------------------------------------- Shell */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; background: transparent; backdrop-filter: none;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 10px; display: flex; align-items: center; gap: 10px;
}
.topbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hello { display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-width: 0; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 30%, #fff8e0, var(--accent-soft)); box-shadow: 0 0 0 3px var(--card), var(--shadow);
}
.avatar > * { transform: translateY(5px) scale(1.15); }
.hello-text { display: grid; min-width: 0; }
.hello-text b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hello-text small { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; gap: 8px; }
.circle-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--card); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow);
}
.badge-dot {
  position: absolute; top: 6px; right: 6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: #ff4d2e; color: #fff; font-size: 10.5px; font-weight: 800; font-style: normal; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--card);
}

#view { padding-bottom: calc(var(--tabh) + env(safe-area-inset-bottom) + 24px); }
.page { max-width: 640px; padding: 4px 16px 24px; }
.page-title { font-size: 28px; font-weight: 750; }

/* Tab-Leiste: schwebende Pille unten, (+) in der Mitte */
.tabbar {
  left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 10px); border-radius: 30px;
  padding: 8px; background: var(--tabbar-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); align-items: center;
}
.tab { color: var(--tabbar-ink); font-size: 11px; font-weight: 650; gap: 2px; padding: 6px 2px; border-radius: 20px; background: none; }
.tab.is-on { background: none; color: var(--ink); }
.tab.is-on .icon { color: var(--ink); fill: var(--accent); }
.tab .icon { transition: transform .15s; }
.tab.is-on .icon { transform: translateY(-1px); }
.tab-add { flex: 0 0 72px; color: var(--ink-soft); }
.tab-add-ring {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin-top: -26px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 22px -8px rgba(200, 150, 0, .7), 0 0 0 5px var(--bg);
}
.tab-add > span:last-child { display: none; }
.side-brand, .side-foot { display: none; }

/* -------------------------------------------------------------- Heute */
.hero-card {
  background: var(--card); border-radius: 30px; padding: 22px 18px 18px; box-shadow: var(--shadow); margin-bottom: 14px;
  background-image: radial-gradient(120% 100% at 100% 0%, var(--accent-soft), transparent 55%);
}
.hero-title { font-size: 32px; line-height: 1.08; font-weight: 750; letter-spacing: -.035em; margin: 0; }
.hero-sub { color: var(--ink-soft); font-size: 15px; line-height: 1.45; margin: 8px 0 0; }
.hero-small { padding: 18px; }
.hero-small .hero-title { font-size: 24px; }
.daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.dpill {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 5px 0 10px; border-radius: 999px;
  border: 0; background: var(--ghost); color: var(--ink-soft); cursor: pointer; font: inherit;
}
.dpill b {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 650;
  background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.dpill span { font-size: 12.5px; font-weight: 600; }
.dpill i { position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }
.dpill.is-on { background: var(--accent); color: var(--accent-ink); }
.dpill.is-on i { background: var(--accent-ink); }
.dpill.is-today:not(.is-on) b { box-shadow: 0 0 0 2px var(--accent); }
.dpill.is-past { opacity: .4; cursor: default; }

.pill-tabs { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pill-tabs::-webkit-scrollbar { display: none; }
.ptab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 12px 16px; border-radius: 999px; border: 0;
  background: var(--card); color: var(--ink-soft); font-weight: 650; font-size: 14.5px; cursor: pointer; box-shadow: var(--shadow);
}
.ptab.is-on { background: var(--accent); color: var(--accent-ink); }
.ptab em { font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--inset); }
.ptab.is-on em { background: rgba(0,0,0,.1); }

.feat {
  background: var(--card); border-radius: 30px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 12px; cursor: pointer;
  background-image: radial-gradient(90% 80% at 100% 0%, var(--accent-soft), transparent 60%);
}
.feat-top { display: flex; gap: 6px; flex-wrap: wrap; }
.feat-body { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.feat-body > div { flex: 1; min-width: 0; }
.feat-title { font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.feat-sub { color: var(--ink-soft); margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.feat-art { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px; background: var(--ghost); }
.feat-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.feat-meta .tag { background: var(--ghost); border-color: transparent; }
.feat-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--accent);
  color: var(--accent-ink);
}
.feat-who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.feat-who b { font-size: 14px; }
.feat-bar .pill-btn { background: rgba(255,255,255,.8); color: #1c1b18; }
.feat-bar .round-dark { width: 46px; height: 46px; background: #1c1b18; color: #fff; }
.mini-av {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none;
  background: #fff; box-shadow: 0 0 0 2px var(--c, #fff); font-weight: 800;
}
.mini-av > * { transform: translateY(4px) scale(1.1); }

.tlist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.trow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--card); border-radius: 22px;
  padding: 8px 10px 8px 8px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .15s;
}
.trow-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.trow-art {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--ghost);
  display: grid; place-items: center;
}
.trow-text { display: grid; gap: 3px; min-width: 0; flex: 1; }
.trow-text b { font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow-meta { color: var(--ink-soft); font-size: 12.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.trow .dirt, .ttile .dirt { display: block; height: 4px; border-radius: 99px; background: var(--track); overflow: hidden; margin-top: 3px; max-width: 160px; }
.dirt > i { display: block; height: 100%; border-radius: 99px; }
.trow.is-done { opacity: .55; }
.trow.is-done b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.trow.is-clean { opacity: .62; }
.trow.is-sel { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.trow.is-stink .trow-art { background: #eef6e2; }
:root[data-theme="dark"] .trow.is-stink .trow-art { background: rgba(140, 200, 80, .12); }
.pts { font-size: 13px; font-weight: 750; color: var(--ink-soft); padding: 0 4px; }
.check {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink-faint); background: transparent;
  color: transparent; display: grid; place-items: center; cursor: pointer; transition: all .15s;
}
.check:hover { border-color: var(--green); color: var(--green); }
.check.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.whochip {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink);
}
.whochip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--ink-faint)); }
.whochip.is-open { color: var(--ink-soft); }
.poke-badge {
  display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-weight: 800; font-size: 11.5px;
  padding: 2px 7px 2px 5px; border-radius: 99px; background: #ffe1d6; color: #a33a12;
}
:root[data-theme="dark"] .poke-badge { background: rgba(255, 120, 70, .18); color: #ffb28f; }
.fly-ic { position: absolute; top: -4px; right: -4px; color: #3b3d2c; animation: buzz 1.2s ease-in-out infinite; }
:root[data-theme="dark"] .fly-ic { color: #cfd6b8; }
@keyframes buzz {
  0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(3px, -3px) rotate(14deg); }
  50% { transform: translate(-2px, -5px) rotate(-10deg); } 75% { transform: translate(-4px, 0) rotate(8deg); }
}
.trow-actions { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 0 2px 64px; }
.trow-actions .chip { padding: 7px 12px; font-size: 13px; background: var(--ghost); border-color: transparent; }

.empty-card {
  display: grid; gap: 4px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: 26px;
  background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px;
}
.empty-card b { font-size: 17px; }
.time-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 24px;
  background: var(--card-2); margin-bottom: 14px;
}
.time-text { flex: 1; display: grid; }
.time-text b { font-size: 15px; }
.time-text small { color: var(--ink-soft); font-size: 12.5px; }
.time-text .over { color: var(--bad); font-style: normal; font-weight: 700; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.qtile {
  display: grid; gap: 3px; text-align: left; align-content: start; padding: 14px; border-radius: 24px; border: 0;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; font: inherit; min-height: 112px;
}
.qtile b { font-size: 15px; font-weight: 650; margin-top: 6px; }
.qtile small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.35; }
.qt-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); }
.qt-pet { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); }
.qt-pet > * { transform: translateY(5px) scale(1.12); }

.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.news li small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.news-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ghost); color: var(--ink); }
.news li.is-poke .news-ic, .inbox-row.is-poke .news-ic { background: #ffe1d6; color: #a33a12; }

/* -------------------------------------------------------- Wohnung & Board */
.flat-layout { display: block; }
.flat3d {
  margin: 0 12px 14px; height: calc(100svh - 270px); min-height: 380px; max-height: 640px;
  border-radius: 30px; box-shadow: var(--shadow-lg); background: #f4e6d3;
}
.flat-side { padding: 0 16px; }
.w3d-top { left: 12px; right: 12px; top: 12px; }
.w3d-title { color: #1c1b18; font-weight: 700; }
.chip-btn {
  height: 40px; border-radius: 999px; padding: 0 14px; background: rgba(255, 255, 255, .94); color: #1c1b18;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,.25); font-weight: 650;
}
.w3d-ctrl {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 3;
  display: grid; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.3); backdrop-filter: blur(8px);
}
.w3d-ctrl button {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #1c1b18;
  display: grid; place-items: center; cursor: pointer;
}
.w3d-ctrl button:hover { background: rgba(0,0,0,.05); }
.w3d-ctrl button.is-on { background: var(--accent); }
.w3d-ctrl button em {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 8.5px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: rgba(28,27,24,.55);
}
.w3d-hint { bottom: 12px; background: rgba(255,255,255,.88); color: rgba(28,27,24,.7); font-weight: 600; }
:root[data-theme="dark"] .w3d-ctrl, :root[data-theme="dark"] .chip-btn, :root[data-theme="dark"] .w3d-hint {
  background: rgba(32, 32, 28, .9); color: #f3f0e8;
}
:root[data-theme="dark"] .w3d-ctrl button { color: #f3f0e8; }
:root[data-theme="dark"] .w3d-ctrl button em { color: rgba(243,240,232,.55); }
:root[data-theme="dark"] .w3d-ctrl button.is-on { background: var(--accent); color: #1c1b18; }
.flat3d.is-dog .w3d-title { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.w3d-room { border-radius: 14px; font-family: inherit; }
.w3d-task.is-sel { outline: 3px solid var(--accent); }

.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 4px 2px 12px; }
.board-head h2 { font-size: 26px; font-weight: 750; }
.board-head small { color: var(--ink-soft); font-size: 13px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 2px 2px 12px; margin: 0 -2px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row > * { flex: none; }
.filter-row .seg { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid var(--line); }
.filter-row .seg-btn.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.group-head { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 14px 4px 8px; }
.board-foot { display: flex; gap: 8px; margin: 4px 0 14px; }

.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ttile {
  position: relative; display: grid; gap: 5px; align-content: start; padding: 12px; border-radius: 24px; background: var(--card);
  box-shadow: var(--shadow); cursor: pointer; transition: box-shadow .2s, transform .15s; outline: none;
}
.ttile:active { transform: scale(.98); }
.ttile.is-sel { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.ttile.is-clean { opacity: .62; }
.ttile-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.ttile-top .tag { padding: 4px 9px; font-size: 11.5px; background: var(--ghost); border-color: transparent; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ttile-art { position: relative; height: 84px; display: grid; place-items: center; border-radius: 18px; background: var(--ghost); }
.ttile.is-stink .ttile-art { background: #eef6e2; }
:root[data-theme="dark"] .ttile.is-stink .ttile-art { background: rgba(140, 200, 80, .12); }
.ttile .flies { position: absolute; top: 6px; right: 10px; color: #3b3d2c; display: flex; gap: 4px; }
.ttile .flies .icon:first-child { animation: buzz 1.1s ease-in-out infinite; }
.ttile .flies .icon:last-child { animation: buzz 1.4s ease-in-out .3s infinite reverse; }
.ttile-name { font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.ttile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.ttile .trow-actions { padding: 6px 0 0; }

/* ------------------------------------------------------------------ Sheets */
.scrim { background: rgba(20, 18, 10, .35); backdrop-filter: blur(4px); }
.sheet { background: var(--sheet); border-radius: 30px 30px 0 0; border: 0; box-shadow: 0 -20px 50px -20px rgba(0,0,0,.35); }
.sheet-inner::before { background: var(--ink-faint); opacity: .5; }
.sheet-head h3 { font-size: 21px; font-weight: 700; }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.qa {
  display: grid; gap: 2px; justify-items: start; text-align: left; padding: 16px; border-radius: 22px; border: 0;
  background: var(--card); box-shadow: var(--shadow); cursor: pointer; color: var(--ink); font: inherit;
}
.qa > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); margin-bottom: 8px; }
.qa b { font-size: 15px; }
.qa small { color: var(--ink-soft); font-size: 12.5px; }
.inbox-group { display: grid; gap: 8px; margin: 12px 0; }
.inbox-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.inbox-row {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--card);
  border: 0; text-align: left; color: var(--ink); font: inherit; font-size: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
button.inbox-row { cursor: pointer; }
.inbox-row > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.inbox-row small { color: var(--ink-soft); font-size: 12px; }
.inbox-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tlist-pick { max-height: 56vh; overflow-y: auto; }
.tlist-pick .trow { box-shadow: none; background: var(--card); border: 1px solid var(--line); }

.toast {
  background: var(--card); border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  font-size: 14px; line-height: 1.4;
}
.toast-good { box-shadow: inset 4px 0 0 var(--green), var(--shadow-lg); }
.toast-bad { box-shadow: inset 4px 0 0 var(--bad), var(--shadow-lg); }
.toast-nudge { box-shadow: inset 4px 0 0 #ff7a45, var(--shadow-lg); }

/* ------------------------------------------------------------ Tier & Shop */
.wallet { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.w-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; background: var(--card);
  font-size: 13.5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); border: 1px solid var(--line);
}
.w-pill small { color: var(--ink-soft); font-weight: 600; }
.w-xp { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.w-xp small { color: rgba(28,27,24,.6); }
.w-lvl { font-weight: 800; }
.wallet-row { margin: 0 0 14px; }
.level-card { background: var(--card); border: 0; box-shadow: var(--shadow); border-radius: var(--r); }
.room-host { padding: 0 12px; }
.room-bar { gap: 8px; }
.room-btn { background: var(--card); border: 0; box-shadow: var(--shadow); border-radius: 20px; padding: 10px 2px; }
.room-btn.is-on { background: var(--accent); color: var(--accent-ink); }
.shop-card .shop-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.shop-item { background: var(--ghost); border: 0; border-radius: 22px; padding: 14px 12px; gap: 6px; }
.shop-item b { font-size: 14px; }
.emoji-art { font-size: 54px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.12)); }
.shop-item.is-weird { background: linear-gradient(160deg, var(--accent-soft), var(--ghost) 60%); }
.owned { color: var(--green); font-weight: 700; }
.inv-item { background: var(--ghost); border: 0; border-radius: 20px; }
.inv-item.is-on { background: var(--accent); }
.reward { background: var(--ghost); border: 0; border-radius: 20px; }
.lvl-badge { --c: var(--ink); }
.level-card .bar-xp > i, .bar-xp > i { background: linear-gradient(90deg, #ffe58a, var(--accent)); }
.task-main { background: var(--ghost); border-color: transparent; border-radius: 18px; }
.task-who { --c: var(--ink); }
.room-card-head h3, :root[data-theme="light"] .room-card-head h3, :root:not([data-theme]) .room-card-head h3 { color: var(--ink); }
.cal-day.is-today span { background: var(--accent); color: var(--accent-ink); }
.podium-block { border-radius: 22px 22px 8px 8px; }

/* Auth-Seiten in der neuen Optik */
.auth-card { background: var(--card); box-shadow: var(--shadow-lg); border-radius: 30px; }
.logo span, .brand span, .side-brand span { color: var(--brand); }

/* ------------------------------------------------- Rechner: Seitenleiste */
@media (min-width: 960px) {
  :root { --tabh: 0px; }
  .tabbar {
    left: 16px; top: 16px; bottom: 16px; right: auto; width: calc(var(--side) - 16px); flex-direction: column;
    align-items: stretch; gap: 4px; padding: 20px 12px; border-radius: 30px;
  }
  .side-brand { display: grid; gap: 2px; padding: 4px 12px 22px; }
  .side-brand b { font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
  .side-brand small { color: var(--ink-soft); font-size: 13px; }
  .tab {
    flex: none; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; padding: 12px 14px;
    font-size: 15px; border-radius: 16px; color: var(--ink-soft);
  }
  .tab:hover { background: var(--inset); }
  .tab.is-on { background: var(--accent); color: var(--accent-ink); }
  .tab.is-on .icon { fill: none; color: var(--accent-ink); }
  .tab-add { order: 10; margin-top: 10px; flex: none; color: var(--ink); background: var(--inset); }
  .tab-add-ring { width: 30px; height: 30px; margin: 0; box-shadow: none; }
  .tab-add > span:last-child { display: inline; content: ''; }
  .tab-add > span:last-child::after { content: ' eintragen'; }
  .side-foot { display: block; order: 11; margin-top: auto; padding: 10px 6px 0; }
  .side-foot .wallet { display: grid; gap: 6px; }
  .side-foot .w-pill { justify-content: flex-start; }
  .shell { margin-left: var(--side); }
  .topbar { padding: 22px 28px 12px; }
  .page { max-width: 1120px; padding: 6px 28px 40px; }
  #view { padding-bottom: 30px; }

  .today-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .page-today .hero-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px 24px; align-items: end; }
  .page-today .hero-card .daystrip { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .page-today .hero-title { font-size: 40px; }

  .flat-layout {
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 20px; padding: 0 28px 30px;
    align-items: start; max-width: 1500px;
  }
  .flat3d { position: sticky; top: 90px; margin: 0; height: calc(100vh - 120px); max-height: none; }
  .flat-side { padding: 0; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flatwrap { padding: 0 28px; }

  .sheet {
    left: 50%; right: auto; bottom: 50%; width: min(560px, 92vw); max-height: 84vh; border-radius: 30px;
    transform: translate(calc(-50% + var(--side) / 2), 60%) scale(.98); opacity: 0;
    transition: transform .28s cubic-bezier(.2,.8,.25,1), opacity .2s;
    pointer-events: none;
  }
  .sheet.is-open { transform: translate(calc(-50% + var(--side) / 2), 50%); opacity: 1; pointer-events: auto; }
  .sheet-inner::before { display: none; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .room-host, .room-bar { max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1280px) {
  .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Feinschliff nach dem ersten Durchklicken */
.toast { display: block; }
.toast .icon, .toast svg { vertical-align: -3px; margin-right: 4px; }
.auth-card .seg { margin-bottom: 18px; }
.link-btn { color: var(--ink-soft); }
/* Steuerung unten als Leiste, Hinweis nur kurz einblenden */
.w3d-ctrl {
  top: auto; bottom: 12px; right: 12px; transform: none; grid-auto-flow: column; gap: 2px; padding: 4px;
}
.w3d-ctrl button { width: 38px; height: 38px; }
.w3d-hint { bottom: auto; top: 60px; transition: opacity .6s; }
.w3d-hint.is-faded { opacity: 0; pointer-events: none; }
@media (min-width: 960px) { .w3d-ctrl button { width: 42px; height: 42px; } }
.w3d-hint { white-space: normal; text-align: center; max-width: calc(100% - 32px); line-height: 1.3; }

/* --- Heute als Übersicht: Tag/Woche, Gruppen, Filter ----------------------- */
.hero-card { display: grid; gap: 14px; }
.hero-right { display: grid; gap: 10px; }
.hero-scope { justify-self: start; }
.daystrip { margin-top: 0; }
.dpill i {
  position: absolute; top: -4px; right: 2px; bottom: auto; width: auto; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 99px; background: var(--ink); color: var(--card); font-size: 10.5px; font-weight: 800; font-style: normal;
  display: grid; place-items: center;
}
.dpill.is-on i { background: var(--accent-ink); color: var(--accent); }
.dpill.is-span { background: var(--accent-soft); color: var(--ink); }
.dpill.is-span.is-today { background: var(--accent); color: var(--accent-ink); }
.page-today .filter-row { margin-top: -4px; }
.tgroup { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.tgroup > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none;
}
.tgroup > summary::-webkit-details-marker { display: none; }
.tg-title { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.tg-title small { color: var(--ink-soft); font-weight: 600; }
.tg-meta { color: var(--ink-soft); font-size: 13px; margin-right: auto; }
.tg-chev { color: var(--ink-faint); transition: transform .2s; display: grid; }
.tgroup[open] .tg-chev { transform: rotate(90deg); }
.tgroup .tlist { padding: 0 8px 8px; margin: 0; }
.tgroup .trow { box-shadow: none; background: var(--ghost); }
.chip-mini { padding: 5px 10px; font-size: 12px; }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.news-head .card-title { margin: 0; }
.news-note { margin: 0 0 10px; }
.anon { color: var(--ink); font-weight: 700; }
@media (min-width: 960px) {
  .page-today .hero-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; }
  .page-today .hero-card .daystrip { grid-column: auto; grid-row: auto; }
  .hero-scope { justify-self: end; }
}
.seg-btn { white-space: nowrap; }

/* Seitenleiste am Rechner: heller, warm getönt */
@media (min-width: 960px) {
  .tabbar {
    background: linear-gradient(180deg, #fffdf7 0%, #fff7df 100%);
    border: 1px solid rgba(255, 203, 47, .25);
  }
  .tab { color: rgba(28, 27, 24, .62); }
  .tab:hover { background: rgba(255, 203, 47, .14); }
  .tab-add { background: rgba(255, 203, 47, .16); }
  :root[data-theme="dark"] .tabbar { background: linear-gradient(180deg, #2c2b25 0%, #26251f 100%); border-color: rgba(255, 203, 47, .14); }
  :root[data-theme="dark"] .tab { color: rgba(243, 240, 232, .7); }
}

/* Draufsicht: Punkte direkt an den Sachen */
.w3d-task.is-compact {
  padding: 3px 8px; min-width: 0; border-radius: 99px; gap: 0; background: var(--accent); color: #1c1b18;
  box-shadow: 0 3px 10px -3px rgba(0,0,0,.35); font-size: 11.5px; font-weight: 800;
}
.w3d-task.is-compact .w3d-task-ic, .w3d-task.is-compact .w3d-task-name { display: none; }
.w3d-task.is-compact .w3d-task-pts { color: #1c1b18; margin: 0; }
.w3d-task.is-compact.is-filthy { background: #ff7a45; color: #fff; }
.w3d-task.is-compact.is-filthy .w3d-task-pts { color: #fff; }
.w3d-task.is-compact:not(:has(.w3d-task-pts)) { display: none !important; }
.flat3d:not(.in-room) .w3d-task.is-compact { padding: 3px 9px; }
.flat3d:not(.in-room) .w3d-task.is-compact .w3d-task-pts { display: inline; }

/* Stall: Deko und Zimmer-Look direkt auf der Seite */
.emoji-sm { font-size: 38px; }
.look-rows { display: grid; gap: 4px; margin-top: 12px; }
.look-row { display: grid; gap: 2px; }
.look-row > span { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.look-row .chip-row { margin: 4px 0 6px; }
.inv-item small { font-size: 11px; }

/* --- Landing: bunter Verlauf, eure Tiere, Logo auf Glas -------------------- */
.auth-glow { position: relative; min-height: 100svh; }
.glow-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #fff1e4; }
.glow-bg i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .75;
  animation: glow-move 22s ease-in-out infinite alternate;
}
.glow-bg i:nth-child(1) { background: #ffb36b; left: -20vmax; top: -25vmax; }
.glow-bg i:nth-child(2) { background: #ff8fb8; right: -25vmax; top: -10vmax; animation-duration: 26s; animation-delay: -6s; }
.glow-bg i:nth-child(3) { background: #ffe066; left: -10vmax; bottom: -35vmax; animation-duration: 30s; animation-delay: -12s; }
.glow-bg i:nth-child(4) { background: #b9a4ff; right: -30vmax; bottom: -30vmax; animation-duration: 24s; animation-delay: -3s; }
.glow-bg i:nth-child(5) { background: #8fe3c2; left: 30vw; top: 35vh; width: 40vmax; height: 40vmax; opacity: .5; animation-duration: 34s; }
@keyframes glow-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.12); }
  100% { transform: translate(-6vmax, 10vmax) scale(.95); }
}
:root[data-theme="dark"] .glow-bg { background: #15130f; }
:root[data-theme="dark"] .glow-bg i { opacity: .38; }
.auth-glow .auth-hero, .auth-glow .auth-card, .auth-glow .auth-foot { position: relative; z-index: 1; }
.auth-glow .auth-stage { background: none; padding-bottom: 0; margin-bottom: -26px; z-index: 2; }
.glass-logo {
  position: relative; display: inline-block; padding: 30px 28px 18px; border-radius: 30px;
  background: linear-gradient(140deg, rgba(255,255,255,.55), rgba(255,255,255,.22));
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.25), 0 18px 40px -18px rgba(120, 60, 20, .45);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
}
.glass-logo::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 70%, rgba(255,255,255,.25) 100%);
}
.glass-logo .logo { margin: 0; font-size: 40px; letter-spacing: -.045em; }
.glass-sub { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(28,27,24,.62); }
:root[data-theme="dark"] .glass-logo { background: linear-gradient(140deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); border-color: rgba(255,255,255,.18); }
:root[data-theme="dark"] .glass-sub { color: rgba(243,240,232,.6); }
.auth-glow .auth-card {
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
:root[data-theme="dark"] .auth-glow .auth-card { background: rgba(28,28,25,.7); border-color: rgba(255,255,255,.1); }
.auth-glow .auth-foot { color: rgba(28,27,24,.6); }
@media (prefers-reduced-motion: reduce) { .glow-bg i { animation: none; } }

/* --- App-Icon gestalten ----------------------------------------------------- */
.icon-stage {
  display: grid; place-items: center; padding: 26px 0 22px; margin: 6px 0 14px; border-radius: 26px;
  background: radial-gradient(120% 120% at 20% 0%, #ffb36b, transparent 55%), radial-gradient(120% 120% at 100% 100%, #b9a4ff, transparent 55%), #ff9ec7;
}
.icon-home { display: grid; justify-items: center; gap: 8px; }
.ih-app { width: 112px; height: 112px; border-radius: 26px; overflow: hidden; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
.ih-app canvas { width: 100%; height: 100%; display: block; }
.ih-label { color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.icon-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.iswatch {
  position: relative; width: 38px; height: 38px; border-radius: 12px; border: 2px solid rgba(0,0,0,.08); cursor: pointer;
  display: grid; place-items: center; color: var(--ink-soft); background: var(--ghost); padding: 0;
}
.iswatch.is-on { outline: 3px solid var(--ink); outline-offset: 2px; }
.iswatch-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.icon-howto { margin-top: 14px; padding: 14px 16px; border-radius: 20px; background: var(--card); font-size: 14px; line-height: 1.45; }
.icon-howto ol { margin: 6px 0 6px 18px; padding: 0; }
.icon-howto .icon { vertical-align: -2px; }
.icon-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; margin: 8px 0 14px; border: 0; cursor: pointer;
  border-radius: 22px; background: linear-gradient(120deg, var(--accent-soft), var(--card)); color: var(--ink); text-align: left; font: inherit;
  box-shadow: var(--shadow);
}
.icon-cta > span:nth-child(2) { flex: 1; display: grid; }
.icon-cta small { color: var(--ink-soft); font-size: 12.5px; }
.icon-cta-img img, .install-hint img { width: 46px; height: 46px; border-radius: 12px; display: block; box-shadow: 0 4px 12px -4px rgba(0,0,0,.3); }
.install-hint {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 12px; margin: 0 0 14px; border-radius: 24px;
  background: linear-gradient(120deg, #ffe7a3, #ffd0e2); color: #1c1b18; box-shadow: var(--shadow);
}
.install-hint > span { flex: 1; display: grid; min-width: 0; }
.install-hint small { color: rgba(28,27,24,.65); font-size: 12.5px; }
.install-hint .pill-btn { background: #1c1b18; color: #fff; white-space: nowrap; }
.install-hint .icon-btn { color: rgba(28,27,24,.5); }
@media (max-width: 420px) { .install-hint .pill-btn { padding: 9px 12px; font-size: 13px; } }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.cal-actions .btn { flex: 1 1 auto; }
.cal-help ol { margin: 6px 0 6px 18px; padding: 0; line-height: 1.5; }
.cal-import { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* --- Rückgängig, Level-Weg ------------------------------------------------- */
.toast-undo {
  display: inline-block; margin: 8px 0 0; padding: 6px 12px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--ink); color: var(--card); font: inherit; font-size: 13px; font-weight: 700;
}
.news li .chip-mini { margin-left: auto; flex: none; align-self: center; }
.reset-block > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: center; }
.reset-block > summary::-webkit-details-marker { display: none; }
.road-track { height: 10px; border-radius: 99px; background: var(--track); overflow: hidden; margin: 2px 0 12px; }
.road-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffe58a, var(--accent), #ff9a3c); }
.road-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.road-next li, .road-list li { display: flex; gap: 12px; align-items: flex-start; }
.road-next li > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.road-next small, .road-list small { color: var(--ink-soft); font-size: 12.5px; }
.road-next em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.road-lvl {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--ghost); color: var(--ink);
}
.road-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.road-list li { padding: 10px 6px; border-radius: 18px; }
.road-list li > div { flex: 1; display: grid; gap: 2px; }
.road-list li.is-done .road-lvl { background: var(--accent); color: var(--accent-ink); }
.road-list li.is-now { background: var(--accent-soft); }
.road-perk { margin: 4px 0 0; font-size: 13.5px; font-weight: 600; }
.road-items { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.road-items span { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--ghost); }

/* --- Stall: Laune und Effekte ---------------------------------------------- */
.room-pop {
  position: absolute; z-index: 4; pointer-events: none; font-style: normal; translate: -50% -50%;
  animation: room-pop 1.2s ease-out forwards;
}
.room-pop.is-crumb { color: #a9744a; font-size: 14px; animation-duration: .7s; --fall: 26px; }
.room-pop.is-nom { font-weight: 900; font-size: 18px; color: #fff; text-shadow: 0 2px 0 #e8692e, 0 0 10px rgba(0,0,0,.25); }
.room-pop.is-trail { color: #ffd23f; font-size: 10px; opacity: .8; animation: room-trail .45s linear forwards; }
.room-pop.is-dust { font-size: 18px; animation-duration: .8s; }
.room-pop.is-party { font-size: 24px; }
@keyframes room-pop {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  20% { opacity: 1; transform: translate(calc(var(--x) * .3), -12px) scale(1.1); }
  100% { transform: translate(var(--x), var(--fall, -54px)) scale(.9); opacity: 0; }
}
@keyframes room-trail { to { transform: scale(.2); opacity: 0; } }
.room-mood {
  position: absolute; z-index: 4; font-size: 28px; translate: -50% -50%; pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); animation: mood-bob 1.6s ease-in-out infinite;
}
@keyframes mood-bob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.room.is-sad canvas { filter: saturate(.75); }
.room.is-angry canvas { filter: saturate(.55) brightness(.92); }
.pet-mood.mood-sad { color: #5a6b8c; font-weight: 600; }
.pet-mood.mood-angry { color: var(--bad); font-weight: 700; }
.try-on { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 40%, #fff, var(--accent-soft)); overflow: hidden; }
.try-on > * { transform: translateY(6px) scale(1.15); }
.decor-thumb { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.15)); }
.decor-thumb.is-sm { width: 64px; height: 64px; }
.inv-art .try-on { width: 64px; height: 64px; } .inv-art .try-on > * { transform: translateY(4px) scale(.8); }

/* Landing: lächerliche „KI"-Tags rund ums Logo */
.auth-glow .auth-hero { position: relative; }
.ai-tags { position: absolute; inset: -10px -10px -40px; pointer-events: none; z-index: 0; }
.ai-tag {
  position: absolute; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 99px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); color: rgba(28,27,24,.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 16px -8px rgba(80,40,20,.35);
  animation: ai-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s);
}
@keyframes ai-float { 50% { transform: translateY(-7px) rotate(var(--rot, 0deg)); } }
.ai-tag:nth-child(1) { left: 2%; top: 4px; --rot: -4deg; }
.ai-tag:nth-child(2) { right: 0; top: 30px; --rot: 3deg; }
.ai-tag:nth-child(3) { left: -2%; top: 150px; --rot: 2deg; }
.ai-tag:nth-child(4) { right: -2%; top: 175px; --rot: -3deg; }
.ai-tag:nth-child(5) { left: 8%; bottom: 0; --rot: 3deg; }
.ai-tag:nth-child(6) { right: 6%; bottom: -6px; --rot: -2deg; }
.ai-tag:nth-child(n+7) { display: none; }
@media (min-width: 700px) {
  .ai-tags { inset: -20px -230px -30px; }
  .ai-tag { font-size: 13px; }
  .ai-tag:nth-child(n+7) { display: block; }
  .ai-tag:nth-child(7) { left: 0; top: 80px; } .ai-tag:nth-child(8) { right: 0; top: 100px; }
  .ai-tag:nth-child(9) { left: 6%; top: 230px; } .ai-tag:nth-child(10) { right: 4%; top: 250px; }
  .ai-tag:nth-child(11) { left: 14%; top: -14px; } .ai-tag:nth-child(12) { right: 14%; top: -20px; }
}
:root[data-theme="dark"] .ai-tag { background: rgba(40,40,36,.55); border-color: rgba(255,255,255,.12); color: rgba(243,240,232,.8); }
@media (prefers-reduced-motion: reduce) { .ai-tag { animation: none; } }
@media (max-width: 699px) {
  .auth-glow .auth-hero { margin-bottom: 44px; }
  .ai-tags { inset: 0; }
  .ai-tag:nth-child(1) { left: 0; top: 0; }
  .ai-tag:nth-child(2) { right: 0; left: auto; top: 22px; }
  .ai-tag:nth-child(3) { left: 4px; top: auto; bottom: -36px; }
  .ai-tag:nth-child(4) { right: 4px; top: auto; bottom: -40px; }
  .ai-tag:nth-child(5), .ai-tag:nth-child(6) { display: none; }
}
.sync-step { display: grid; gap: 4px; margin: 8px 0; }
.sync-step small { color: var(--ink-soft); font-size: 12.5px; line-height: 1.4; }
.sync-in { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.feed-form { display: flex; gap: 8px; margin-top: 6px; }
.feed-form input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--input); color: var(--ink); font: inherit; font-size: 13px; }
.feed-on { display: grid; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: 16px; background: var(--green-soft); font-size: 13px; }
.feed-on .icon { vertical-align: -3px; color: var(--green); }

/* --- Landing 2: Jutebeutel-Textwand + Tiere schweben ums Logo -------------- */
.ai-tags { display: none; }
.tote-wall {
  position: fixed; inset: -20vh -40vw; z-index: 0; pointer-events: none; overflow: hidden;
  transform: rotate(-9deg); display: grid; align-content: start; gap: 2px; padding-top: 4vh;
}
.tote-wall p {
  margin: 0; white-space: nowrap; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(22px, 4.2vw, 46px); line-height: 1.02; color: rgba(28, 27, 24, .11);
  font-family: "Arial Black", "Helvetica Neue", -apple-system, system-ui, sans-serif;
  animation: tote-run 90s linear infinite; animation-direction: var(--dir, normal);
}
.tote-wall p:nth-child(even) { --dir: reverse; animation-duration: 110s; }
.tote-wall p b { font-weight: 900; margin: 0 .35em; color: rgba(28, 27, 24, .16); }
.tote-wall .is-out { color: transparent; -webkit-text-stroke: 1.4px rgba(28, 27, 24, .22); }
.tote-wall .is-hot { color: rgba(251, 95, 28, .28); }
.tote-wall .is-big { font-size: 1.35em; }
@keyframes tote-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
:root[data-theme="dark"] .tote-wall p { color: rgba(255, 255, 255, .07); }
:root[data-theme="dark"] .tote-wall .is-out { -webkit-text-stroke-color: rgba(255,255,255,.16); }

.orbit-hero { position: relative; z-index: 2; display: grid; place-items: center; min-height: 330px; margin: 6px auto 8px; max-width: 520px; }
.orbit-hero .glass-logo { position: relative; z-index: 2; }
.pet-orbit { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.orbit-pet {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 78px; height: 78px;
  animation: orbit-float 4.5s ease-in-out infinite, orbit-drift 13s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.65s), calc(var(--i) * -1.9s);
  filter: drop-shadow(0 12px 10px rgba(80, 40, 10, .22));
}
.orbit-pet > * { width: 100% !important; height: 100% !important; }
.orbit-pet .pet-sprite-wrap, .orbit-pet .pet-sprite { width: 100% !important; height: 100% !important; }
@keyframes orbit-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes orbit-drift { 0%, 100% { margin-left: 0; } 50% { margin-left: 12px; } }
.auth-glow .auth-card { position: relative; z-index: 2; }
@media (min-width: 700px) { .orbit-hero { min-height: 420px; max-width: 640px; } .orbit-pet { width: 104px; height: 104px; } }
@media (prefers-reduced-motion: reduce) { .tote-wall p, .orbit-pet { animation: none; } }
.tote-wall { inset: 0; transform: none; display: block; padding: 0; }
.tote-inner { position: absolute; inset: -25vh -60vw; transform: rotate(-9deg); display: grid; align-content: start; gap: 2px; padding-top: 4vh; }

/* Textwand fest: kleine bunte Großbuchstaben in geraden Zeilen, flächendeckend */
.tote-wall { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transform: none; padding: 6px 8px; }
.tote-wall p {
  margin: 0; white-space: normal; text-align: justify; animation: none; transform: none;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 12.5px; line-height: 1.45; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: inherit; word-spacing: .35em;
}
.tote-wall span { opacity: .42; }
.tote-wall .c1 { color: #e8692e; } .tote-wall .c2 { color: #d6457a; } .tote-wall .c3 { color: #7c5cff; }
.tote-wall .c4 { color: #2f8fd6; } .tote-wall .c5 { color: #22a565; } .tote-wall .c6 { color: #c89200; }
:root[data-theme="dark"] .tote-wall span { opacity: .3; }
@media (min-width: 700px) { .tote-wall p { font-size: 14px; } }

/* Tiere eng ums Logo */
.orbit-hero { min-height: 270px; }
.orbit-pet { width: 70px; height: 70px; }
@media (min-width: 700px) { .orbit-hero { min-height: 330px; } .orbit-pet { width: 92px; height: 92px; } }
.tote-wall p { text-align: left; }

/* Farben für Möbel und Deko */
.color-grid { margin: 10px 0 14px; }
.decor-tile { position: relative; flex: 1; min-width: 96px; display: grid; }
.decor-color {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  background: var(--c); box-shadow: 0 2px 6px rgba(0,0,0,.25); cursor: pointer; padding: 0;
}
.flat3d.is-paint { box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg); }
.flat3d.is-paint canvas { cursor: crosshair; }
/* Textwand: Blocksatz bis an beide Ränder, klein genug, dass keine Lücken entstehen */
.tote-wall { padding: 4px 6px; }
.tote-wall p {
  text-align: justify; text-align-last: justify; font-size: 11px; line-height: 1.5;
  letter-spacing: .03em; word-spacing: 0; hyphens: none;
}
@media (min-width: 700px) { .tote-wall p { font-size: 13px; } }
.orbit-hero { margin-top: 34px; }

/* eigene Farbe hinter dem Tier */
.avatar { background: var(--pet-bg, radial-gradient(70% 70% at 50% 30%, #fff8e0, var(--accent-soft))); }
.avatar-preview { display: grid; place-items: center; margin: 8px 0 14px; }
.avatar.big { width: 120px; height: 120px; }
/* Startseite: Tiere kreisen ums Logo (Position kommt aus JS) */
.orbit-pet.is-orbiting { animation: orbit-float 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }

/* ⭐ Freie Jagd */
.whochip.is-hunt { color: #b47a00; }
.whochip.is-hunt::before { display: none; }
.hunt-card { background-image: radial-gradient(120% 90% at 100% 0%, rgba(255, 203, 47, .3), transparent 60%); }
.hunt-card .trow { box-shadow: none; background: var(--ghost); }
.hunt-pts { color: #b47a00; }
.hunt-split { display: flex; border-radius: 12px; overflow: hidden; margin: 10px 0 12px; font-size: 12.5px; }
.hunt-split span { padding: 8px 10px; flex: 1; }
.hunt-split span:first-child { flex: 0 0 var(--p); background: var(--green-soft); }
.hunt-split span:last-child { background: var(--accent-soft); text-align: right; }
.hunt-block .row-gap { display: flex; align-items: center; gap: 10px; }
.hunt-block input[type=range] { flex: 1; accent-color: var(--accent); }

/* ⚡ Alltag-Kacheln (wie bei der Einkaufsliste) */
.qk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.qk-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.qk {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center;
  padding: 12px 6px 10px; border-radius: 20px; background: var(--ghost); cursor: pointer; user-select: none;
  transition: transform .12s, background .2s; min-height: 104px;
}
.qk:active { transform: scale(.95); }
.qk-emoji { font-size: 30px; line-height: 1.1; margin-bottom: 4px; }
.qk b { font-size: 12.5px; line-height: 1.2; font-weight: 650; }
.qk small { font-size: 11px; color: var(--ink-soft); line-height: 1.25; }
.qk.is-due { background: var(--accent); color: var(--accent-ink); }
.qk.is-due small { color: rgba(28,27,24,.7); font-weight: 700; }
.qk.is-due.is-pool { background: linear-gradient(140deg, #ffe58a, #ffcb2f); }
.qk.is-fresh { background: var(--green-soft); }
.qk.is-fresh small { color: var(--green); font-weight: 700; }
.qk-more {
  position: absolute; top: 4px; right: 6px; border: 0; background: none; color: inherit; opacity: .45;
  font-size: 16px; line-height: 1; padding: 4px; cursor: pointer;
}
.qk-add { background: transparent; border: 2px dashed var(--line); color: var(--ink-soft); }
.qk-card .qk-grid { margin-top: 4px; }
.steal-btn { background: #1c1b18; color: #fff; padding: 8px 12px; font-size: 13px; }
.steal-chip { background: #1c1b18 !important; color: #fff !important; }
.turnus-note { font-size: 13px; color: var(--ink-soft); margin: 4px 0 12px; line-height: 1.45; }
.turnus-note .icon { vertical-align: -2px; }
.mood-pill { font-weight: 650; }
.mood-pill.mood-sad { color: #5a6b8c; }
.mood-pill.mood-angry { color: var(--bad); }
.roulette-btn { font-size: 16px; letter-spacing: .05em; margin-bottom: 8px; }
@media (max-width: 420px) { .topbar .circle-btn { width: 40px; height: 40px; } .topbar-right { gap: 6px; } }

/* Einklappen + Kachel-Ansicht auf Heute */
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
.fold-chev { display: inline-grid; transition: transform .2s; color: var(--ink-faint); vertical-align: middle; }
details.fold[open] .fold-chev { transform: rotate(90deg); }
.fold-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12.5px; }
.fold-count { font-style: normal; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); margin-left: 4px; }
.fold-count:empty { display: none; }
.qk-card:not([open]) { padding-bottom: 12px; }
.qk-card > summary { margin: 0; }
.fold-summary { display: flex; align-items: center; gap: 6px; padding: 4px 4px 10px; font-size: 15px; }
.fold-summary .fold-chev { margin-left: auto; }
.seg-push { margin-left: auto; flex: none; }
.tile-day { margin-bottom: 14px; }
.qk-task { background: var(--card); box-shadow: var(--shadow); padding-bottom: 38px; }
.qk-task.is-stink { background: #eef6e2; }
.qk-art { width: 52px; height: 52px; display: grid; place-items: center; }
.qk-btn {
  position: absolute; bottom: 8px; left: 50%; translate: -50% 0; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ink-faint); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink-soft);
}
.qk-btn.steal-btn { width: auto; padding: 0 10px; border: 0; }
.qk-done { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; color: var(--green); }

/* --- Kontrast Leiste, Wegwischen, kompakter ------------------------------- */
.tabbar { background: rgba(255, 255, 255, .94) !important; }
.tab { color: rgba(28, 27, 24, .72) !important; font-weight: 700; }
.tab .icon { stroke-width: 2.2; }
.tab.is-on { color: #1c1b18 !important; }
:root[data-theme="dark"] .tabbar { background: rgba(32, 32, 28, .95) !important; }
:root[data-theme="dark"] .tab { color: rgba(243, 240, 232, .82) !important; }
:root[data-theme="dark"] .tab.is-on { color: #fff !important; }
@media (min-width: 960px) { .tab.is-on { color: var(--accent-ink) !important; } }
.toast { pointer-events: auto; touch-action: none; cursor: grab; }

/* Heute kompakter: weniger Kopf, schneller zu den Aufgaben */
.page-today .hero-card { padding: 14px 14px 12px; gap: 8px; margin-bottom: 10px; }
.page-today .hero-title { font-size: 24px; }
.page-today .hero-sub { font-size: 13.5px; margin-top: 4px; }
.page-today .dpill { padding: 3px 0 7px; gap: 3px; }
.page-today .dpill b { width: 28px; height: 28px; font-size: 13.5px; }
.page-today .dpill span { font-size: 11px; }
@media (min-width: 960px) { .page-today .hero-title { font-size: 32px; } }

/* Kalender kleiner */
.cal-grid { gap: 3px !important; }
.cal-day { min-height: 0 !important; height: 38px; padding: 3px !important; font-size: 13px; }
.cal-head { margin-bottom: 4px; }

/* Aufgaben-Fenster: Einstellungen direkt sichtbar */
.title-input { width: 100%; font: inherit; font-size: 19px; font-weight: 700; border: 0; border-bottom: 1.5px dashed var(--line);
  background: transparent; color: var(--ink); padding: 2px 0; outline: none; }
.title-input:focus { border-bottom-color: var(--accent); }
.act-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.act-chips .chip { padding: 7px 11px; font-size: 13px; }
.act-chips .chip[disabled] { opacity: .4; }
.last-line { margin: 6px 0 10px; }
.edit-grid { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 2px; }
.edit-grid .field { margin-bottom: 8px; }
.chip-row.wrap { flex-wrap: wrap; overflow: visible; margin: 2px 0 0; }
.chip-row.wrap .chip { padding: 6px 11px; font-size: 13px; }
.day-chip { min-width: 40px; justify-content: center; }
.mini-input { width: 76px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--input); color: var(--ink); font: inherit; font-size: 13px; }
.seg-kind { margin: 2px 0 4px; }
.kind-help { display: block; font-size: 12px; }
.points-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.save-state { margin: 4px 0; }

/* --- Tricks & Parcours im Stall ---------------------------------------- */
.trick-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.trick-strip::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .trick-strip { max-width: 760px; margin: 0 auto; flex-wrap: wrap; } }
.trick-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px 8px 10px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); font: inherit; font-size: 14px; cursor: pointer; transition: transform .12s; }
.trick-chip span { font-size: 18px; line-height: 1; }
.trick-chip:active { transform: scale(.94); }
.trick-chip.is-locked { opacity: .55; }
.trick-chip small { color: var(--ink-faint); font-size: 11.5px; }
.trick-more { flex: none; align-self: center; font-size: 12.5px; color: var(--ink-faint); padding: 0 6px; }
.road-perk.is-trick { color: var(--purple); }

.course-list { display: grid; gap: 8px; }
.course { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; width: 100%;
  border: 0; border-radius: 18px; padding: 10px 12px; background: var(--inset); color: var(--ink); font: inherit; cursor: pointer; }
.course b { display: block; }
.course small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.course .course-best { color: var(--ink); font-weight: 700; margin-top: 2px; }
.course-emoji { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--card); }
.course em { font-style: normal; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.course.is-locked { opacity: .6; }
.course.is-locked em { background: transparent; color: inherit; padding: 0; }

.parcours-hud { position: absolute; inset: 0; z-index: 4; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.parcours-hud .ph-time, .parcours-hud .ph-faults { position: absolute; top: 10px; padding: 5px 11px; border-radius: 999px;
  background: rgba(20,18,28,.62); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.parcours-hud .ph-time { left: 10px; font-weight: 800; }
.parcours-hud .ph-faults { left: 50%; transform: translateX(-50%); }
.parcours-hud .ph-stop { position: absolute; top: 8px; right: 8px; border: 0; border-radius: 999px; padding: 6px 12px;
  background: rgba(255,255,255,.85); color: #222; font: inherit; font-size: 13px; cursor: pointer; }
.parcours-hud .ph-big { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font-style: normal;
  font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 4px 0 #e8692e, 0 0 24px rgba(0,0,0,.3); pointer-events: none; }
.parcours-hud .ph-big.is-pop { animation: phpop .6s cubic-bezier(.2,1.6,.4,1); }
.parcours-hud .ph-tip { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.8); color: #222; font-size: 12.5px; font-weight: 600; pointer-events: none; }
@keyframes phpop { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.room.is-parcours .room3d-title, .room.is-parcours .room3d-name, .room.is-parcours .room-hint:not(.is-loud), .room.is-parcours .room-mood { opacity: 0; }

/* Filter brechen um statt seitlich zu verschwinden; Raum-Auswahl gut sichtbar */
.filter-row .chip-select { max-width: 100%; }
.filter-row .chip-select select { max-width: 30vw; text-overflow: ellipsis; }
@media (min-width: 700px) { .filter-row .chip-select select { max-width: 220px; } }
.trow.is-busy .check, .check.is-busy { opacity: .45; pointer-events: none; }
.time-card .time-text .good { color: #3fbf7f; font-style: normal; font-weight: 700; }
@media (max-width: 699px) {
  .filter-row:has(.chip-select) { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-row:has(.chip-select) > .seg-mini { grid-column: 1 / -1; justify-self: start; }
  .filter-row .chip-select { min-width: 0; }
  .filter-row .chip-select select { max-width: none; width: 100%; min-width: 0; }
  .filter-row .seg-push { margin-left: 0; justify-self: end; }
}

/* Raumauswahl (mehrere Räume, „Alle Räume") */
.room-all { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; margin: 4px 0 14px;
  background: var(--inset); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.room-all small { margin-left: auto; color: var(--ink-faint); }
.room-all.is-on { background: var(--accent); color: var(--accent-ink); }
.room-all.is-on small { color: inherit; opacity: .75; }
.room-multi { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.room-multi .chip em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; margin-left: 2px; }
.filter-row button.chip-select { border: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.filter-row .chip-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Morgen-Roulette in den Einstellungen */
.morning-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.morning-row > span { flex: 1; min-width: 0; }
.morning-row small { display: block; color: var(--ink-faint); font-size: 12.5px; }
.morning-row input[type="time"] { font: inherit; font-weight: 700; font-size: 17px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--input); color: var(--ink); }
.morning-row.is-off { opacity: .4; pointer-events: none; }
.switch { position: relative; display: inline-block; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--track); transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }

/* Raumwechsel */
.rp-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 8px; }
.rp-list li { display: flex; align-items: center; gap: 10px; }
.rp-list li > span:last-child { min-width: 0; flex: 1; overflow: hidden; }
.rp-list b { display: block; }
.rp-list small { display: block; color: var(--ink-faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-list .whochip { flex: none; min-width: 64px; text-align: center; }
.rp-warn { margin: 6px 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(232,105,46,.14); font-size: 13.5px; }
.rp-week { margin: 6px 0 18px; }
.rp-week h4 { margin: 0 0 8px; font-size: 15px; }
.rp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rp-row b { display: block; }
.rp-row small { color: var(--ink-faint); }
.rp-row select { font: inherit; font-weight: 600; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); color: var(--ink); }
.rp-zone { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rp-zone .input { width: 100%; margin-bottom: 4px; font-weight: 700; }
.rp-zone small { color: var(--ink-faint); display: block; margin-bottom: 6px; }

/* Anstupsen mit Spruch */
.nudge-picks { display: grid; gap: 8px; margin: 4px 0 10px; }
.nudge-pick { text-align: left; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--inset); color: var(--ink);
  font: inherit; font-size: 14.5px; cursor: pointer; }
.nudge-pick:active { transform: scale(.98); background: var(--accent); color: var(--accent-ink); }

/* Spruch des Tages */
.spruch-card .sp-actions { display: flex; gap: 6px; }
.spruch-text { margin: 6px 0 2px; font-size: 16px; line-height: 1.45; font-weight: 600; }
.spruch-text.is-new { animation: sprIn .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes sprIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.spruch-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spruch-log li { padding: 12px 14px; border-radius: 14px; background: var(--inset); line-height: 1.4; }
.spruch-log small { display: block; color: var(--ink-faint); font-size: 12px; margin-bottom: 3px; }
.fp-actions { display: grid; gap: 8px; margin-bottom: 14px; }
.fp-h { margin: 6px 0 2px; font-size: 15px; }
.fp-tricks { padding: 6px 0 10px; flex-wrap: wrap; }
/* Steuerleiste passt auf schmale Handys: Knöpfe etwas kleiner, notfalls wischbar */
@media (max-width: 480px) {
  .w3d-ctrl { left: 8px; right: 8px; bottom: 8px; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .w3d-ctrl::-webkit-scrollbar { display: none; }
  .w3d-ctrl button { width: 34px; height: 34px; flex: none; }
}
