/* Zuhause – Bausteine der Module (Haus, Wetter, Start, Admin) */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px !important; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }

/* Segment-Tabs */
.segments {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--sp-4)); padding: 0 var(--sp-4);
}
.segments::-webkit-scrollbar { display: none; }
.segments a {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--card); color: var(--mut);
  text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.segments a.active { background: var(--acc-soft); color: var(--acc); }

/* Wetter */
.wx-icon { font-size: 3.2rem; line-height: 1; }
.hours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); }
.hours.scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.hours.scroll .hour { flex: 0 0 76px; }
.hour { background: var(--card-2); border-radius: var(--r-inner); padding: 8px 4px; text-align: center; }
.hour-ico { font-size: 1.6rem; line-height: 1.3; }
.hour .rain { color: var(--rain); min-height: 1.2em; }
.spark { width: 100%; height: 56px; display: block; margin-top: var(--sp-2); }

/* Kurzlisten auf Start */
.mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-list li { overflow: hidden; text-overflow: ellipsis; }
.mini-list small { display: block; color: var(--mut); font-size: var(--fs-note); }

/* Müll */
.waste-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.waste-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-inner); }
.waste-row.warn { background: var(--warn-soft); }
.waste-row.bad { background: var(--bad-soft); }
.waste-row .when { text-align: right; font-weight: 650; white-space: nowrap; }
.waste-row .when small { display: block; color: var(--mut); font-weight: 400; font-size: var(--fs-label); }
.bin { width: 14px; height: 18px; border-radius: 3px 3px 4px 4px; flex: none; position: relative; }
.bin::before { content: ""; position: absolute; left: -2px; right: -2px; top: -4px; height: 3px; border-radius: 2px; background: inherit; }

/* Einkauf */
.add-row { padding: 8px; gap: 8px; }
.add-row input { flex: 1; min-width: 0; min-height: var(--touch); padding: 10px 12px; border-radius: var(--r-inner); background: var(--bg); border: 1px solid var(--line); font-size: 16px; outline: none; }
.add-row input:focus { border-color: var(--acc); }
.add-row .btn { font-size: 1.4rem; min-width: 52px; }
.shop-item { display: flex; align-items: center; }
.shop-item .list-item { flex: 1; }
.check-box {
  width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--acc-txt);
}
.shop-item.done .check-box { background: var(--ok); border-color: var(--ok); }
.shop-item.done .grow { color: var(--mut); text-decoration: line-through; }
.icon-btn.del { color: var(--mut); font-size: 1rem; margin-right: 6px; }
.icon-btn.del:active { color: var(--bad); }

/* Chips zum Antippen */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--card-2); border: 1px solid var(--line); color: var(--mut);
  font-weight: 600; cursor: pointer;
}
.chip-btn.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }

/* Notizen */
.note-card { border-left: 3px solid var(--acc); }
.note-text { white-space: pre-wrap; word-break: break-word; }
.card textarea { width: 100%; min-height: 88px; padding: 10px 12px; border-radius: var(--r-inner); background: var(--bg); color: var(--txt); border: 1px solid var(--line); font-size: 16px; outline: none; resize: vertical; }
.card textarea:focus { border-color: var(--acc); }

/* Fotos */
.upload { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: var(--sp-5) var(--sp-4); border: 2px dashed var(--line); background: transparent; cursor: pointer; }
.upload:active { background: var(--card); }
.progress { position: relative; height: 34px; margin-top: var(--sp-3); border-radius: var(--r-inner); background: var(--card); overflow: hidden; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--acc-soft); transition: width .2s; }
.progress span { position: relative; display: block; line-height: 34px; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ph { aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--card); cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-full { width: 100%; max-height: 65dvh; object-fit: contain; border-radius: var(--r-inner); background: #000; }

/* Admin */
.link-row { margin-bottom: 8px; }
.link-row input, .card .input { width: 100%; min-height: var(--touch); padding: 10px 12px; border-radius: var(--r-inner); background: var(--bg); color: var(--txt); border: 1px solid var(--line); font-size: 16px; }

/* Quest-Kachel auf Start */
.quest-tile h2 { color: var(--q-acc); }
.quest-bar { height: 10px; background: #080d1b; border-radius: var(--r-pill); overflow: hidden; margin: 6px 0 10px; }
.quest-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--q-acc), var(--q-green)); }

/* Quest-Vorschläge */
.suggest-card { border: 1px solid #8b7cff55; }
.suggest-card h2 { color: var(--q-acc); }
.suggest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.suggest-item { display: flex; align-items: center; gap: 10px; }
.suggest-item small { display: block; color: var(--mut); font-size: var(--fs-note); margin-top: 2px; }
.suggest-ico { font-size: 1.6rem; flex: none; }

/* Diashow-Kachel auf Start */
.photo-tile { padding: 0; overflow: hidden; position: relative; }
.slide-box { position: relative; height: clamp(220px, 42vw, 340px); background: #000; overflow: hidden; }
.slide-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide-layer.show { opacity: 1; }
.slide-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.45); }
.slide-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-tile-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(15, 23, 42, .75); font-size: .85rem; font-weight: 600; }

/* Ideen */
.prompt-box { width: 100%; min-height: 320px; margin-top: 10px; line-height: 1.45; resize: vertical; white-space: pre-wrap; }

/* Schnellwahl im Einkauf */
.quick-box { margin-bottom: var(--sp-3); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: calc(3 * 52px); overflow-y: auto; }
.quick-chip { min-height: var(--touch); padding: 0 16px; font-size: .95rem; color: var(--txt); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.quick-chip:active:not([disabled]) { background: var(--acc-soft); border-color: var(--acc); }
.quick-chip[disabled] { opacity: .4; cursor: default; }
.link-btn { background: none; border: 0; color: var(--mut); font: inherit; font-size: var(--fs-note); text-decoration: underline; padding: 8px 2px; min-height: var(--touch); cursor: pointer; }

/* Wochenrückblick */
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1.1rem; }
.review-tile { border: 1px solid #8b7cff55; }
.review-tile h2 { color: var(--q-acc); }
.review-tile .q-xp, .rv-head .q-xp { color: var(--q-gold); font-weight: 800; }

/* Anpassen (P12) */
.cz-item { gap: 4px; padding-right: 6px; }
.cz-item.off .cz-check { opacity: .5; }
.cz-check { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.cz-check input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; }
.cz-item .icon-btn { width: 40px; height: 40px; font-size: 1.1rem; }
.cz-item .icon-btn[disabled] { opacity: .25; }
.cz-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cz-bar span { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px; font-size: .8rem; }
.start-edit { display: block; padding: var(--sp-3) 0; text-decoration: none; }
.card .row.between > .chip { white-space: nowrap; flex: none; }

/* Erinnerungen (P14) */
.rm-row { display: block; }
.rm-row.due { box-shadow: inset 3px 0 0 var(--bad); }
.rm-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--sp-3) var(--sp-3) 56px; }
.rm-chips, .rm-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-kinds { margin-bottom: var(--sp-3); }
.rm-chips .chip, .rm-kinds .chip { border: 0; cursor: pointer; font: inherit; font-size: .85rem; padding: 6px 10px; }
.rm-due { border: 1px solid var(--bad); background: linear-gradient(0deg, var(--bad-soft), var(--bad-soft)), var(--card); }
.rm-due h2 { color: var(--bad); }
.rm-due .rm-item + .rm-item { border-top: 1px solid #33415588; margin-top: var(--sp-2); padding-top: var(--sp-2); }
.rm-due .rm-acts { padding: 6px 0 0; }
.fab {
  position: fixed; z-index: 25; right: calc(16px + var(--safe-right)); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--acc); color: var(--acc-txt); font-size: 1.8rem; line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.fab:active { transform: scale(.95); }
@media (min-width: 900px) { .fab { right: calc(50% - 380px + 16px); } }

/* Changelog (P15) */
.cl-entry summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cl-entry summary::-webkit-details-marker { display: none; }
.cl-entry.current { border: 1px solid var(--ok); }
.cl-items { margin: var(--sp-2) 0 0; padding-left: 20px; }
.cl-items li { margin: 4px 0; line-height: 1.4; }
.cl-new { border: 1px solid var(--acc); }
.cl-new .btn { margin-top: var(--sp-2); }

/* Bereiche in „Mehr“ (P18) – wächst mit jedem neuen Bereich mit */
.areas-search { width: 100%; margin-bottom: var(--sp-1); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-2); }
.area-tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r-card); background: var(--card); color: var(--txt); text-decoration: none; min-height: 96px; }
.area-tile:active { background: var(--card-hover); }
.area-tile b { font-weight: 650; }
.area-tile small { color: var(--mut); font-size: var(--fs-note); line-height: 1.3; }
.area-ico { font-size: 1.5rem; line-height: 1; }
.check input { flex: none; } /* Häkchen bei langem Text nicht stauchen */

/* Zuhause 2.0 (P25): Bereiche-Raster, Suche – P40: große farbige Kacheln mit Untertitel und Live-Zahl */
.ar-page { max-width: 1400px; margin: 0 auto; }
.ar-head { display: flex; align-items: center; gap: 10px; margin: var(--sp-2) var(--sp-1) var(--sp-2); }
.ar-head .section-title { margin: 0; flex: 1; }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ar-grid.fav { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
@media (max-width: 520px) { .ar-grid, .ar-grid.fav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.ar-tile {
  --c: var(--acc); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 84px; padding: 14px; border-radius: 16px; color: var(--txt); text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, var(--card)) 0%, var(--card) 75%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  transition: transform .12s, border-color .12s, background .12s;
}
.ar-tile.big { min-height: 108px; padding: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 32%, var(--card)) 0%, color-mix(in srgb, var(--c) 8%, var(--card)) 100%); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.ar-tile:active { transform: scale(.98); }
@media (hover: hover) { .ar-tile:hover { border-color: var(--c); transform: translateY(-1px); } }
.ar-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--bg)); }
.ar-tile.big .ar-ico { width: 54px; height: 54px; border-radius: 16px; }
.ar-tile.big .ar-ico svg { width: 28px; height: 28px; }
.ar-txt { display: grid; gap: 3px; min-width: 0; }
.ar-name { font-weight: 750; font-size: 1rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.ar-tile.big .ar-name { font-size: 1.1rem; }
.ar-sub { color: var(--mut); font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-txt .bd-pill { justify-self: start; margin-top: 3px; }
.ar-tile:has(.ar-star) { padding-right: 48px; }
.ar-star { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--mut); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ar-star.on { color: #facc15; border-color: #facc15; }
.ar-empty { width: 100%; text-align: left; border: 1px dashed var(--line); }
.ar-recent { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin-top: var(--sp-3); padding-bottom: 2px; }
.ar-recent .note { flex: none; margin-right: 2px; }
.ar-chip { --c: var(--acc); flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--card); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: var(--txt); text-decoration: none; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.ar-chip-ico { color: var(--c); display: grid; }
.ar-chip-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-group .section-title { margin-top: var(--sp-5, 24px); }
@media (max-width: 520px) {
  .ar-tile { grid-template-columns: 1fr; align-content: start; gap: 8px; min-height: 104px; padding: 12px; }
  .ar-tile.big { min-height: 112px; }
  .ar-ico, .ar-tile.big .ar-ico { width: 40px; height: 40px; border-radius: 12px; }
  .ar-tile.big .ar-ico svg { width: 24px; height: 24px; }
  .ar-name, .ar-tile.big .ar-name { font-size: .95rem; }
}
/* Live-Zahlen (P40) */
.bd-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.5; white-space: nowrap; background: color-mix(in srgb, var(--txt) 12%, transparent); color: var(--txt); }
.bd-pill.tone-warn { background: var(--warn); color: #1c1917; }
.bd-pill.tone-bad { background: var(--bad); color: #fff; }
.bd-pill[hidden] { display: none; }
.tabbar a.tb-fav .bd-count { margin-left: auto; min-width: 22px; text-align: center; padding: 1px 6px; }
.ar-ico svg, .sr-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 50px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--mut); }
.sr-box:focus-within { border-color: var(--acc); }
.sr-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; font-size: 1.05rem; outline: none; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-chips .chip { border: 0; cursor: pointer; font: inherit; font-size: .85rem; padding: 6px 12px; }
.sr-out { margin-top: var(--sp-2); }

/* Start als Cockpit (Zuhause 2.0, Schritt B / P26) */
.ck-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.ck-hero h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin-top: 2px; }
.ck-wx-link { color: var(--txt); text-decoration: none; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.ck-now { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--sp-4); }
.ck-now > .row h2, .ck-title h2 { font-size: 1rem; font-weight: 700; }
.ck-now-extra { display: contents; }
.ck-calm { padding: 10px 12px; border-radius: var(--r-inner); background: var(--card); }
.now-item { display: block; padding: 12px 14px; border-radius: var(--r-card); background: var(--card); color: var(--txt); text-decoration: none; }
a.now-item:active { background: var(--card-hover); }
.now-row { display: flex; align-items: center; gap: 12px; }
.now-row b { display: block; font-weight: 650; }
.now-row small { display: block; color: var(--mut); font-size: var(--fs-note); margin-top: 1px; }
.now-row .chev { color: var(--mut); font-size: 1.2rem; }
.now-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--bg); }
.now-ico svg, .wd-head svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.now-ico svg { width: 20px; height: 20px; }
.now-item .rm-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 48px; }
.ck-title { margin-bottom: var(--sp-2); }
.cockpit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; } /* dense: keine Lücken neben breiten Kacheln */
.cockpit > * { min-width: 0; margin: 0 !important; }
.cockpit { grid-auto-rows: minmax(104px, auto); }
/* Diashow im Raster: genau 2 Kachelreihen hoch, sonst zieht sie die Nachbarn in die Länge */
.cockpit .photo-tile { grid-row: span 2; display: flex; }
.cockpit .photo-tile .slide-box { height: auto; min-height: 0; flex: 1; }
.cockpit .wd-w, .cockpit .wd-f { grid-column: 1 / -1; }
.wd { --c: var(--acc); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 14px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 22%, var(--card)) 0%, var(--card) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); border-top: 3px solid var(--c); }
.wd > :not(.wd-mark) { position: relative; }
.wd-mark { position: absolute; right: -10px; bottom: -14px; color: var(--c); opacity: .13; pointer-events: none; }
.wd-mark svg { width: 92px; height: 92px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { a.wd:hover { border-color: var(--c); } }
.wd-head { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--c); }
.wd-head svg { width: 17px; height: 17px; flex: none; }
.wd-head span { color: color-mix(in srgb, var(--c) 55%, var(--txt)); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-head .wd-badge { margin-left: auto; color: var(--warn); text-transform: none; letter-spacing: 0; }
.wd-val { font-size: 1.35rem; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-sub { color: var(--mut); font-size: var(--fs-note); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd .quest-bar { margin: 4px 0 2px; }
@media (min-width: 900px) {
  .cockpit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cockpit .wd-w { grid-column: span 2; }
  .ck-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-now > .row, .ck-now > .ck-calm { grid-column: 1 / -1; }
  body.with-tabs[data-tab="start"] .view { max-width: 1080px; } /* andere Bereiche folgen in Schritt C */
}

/* Einheitliche Bereichsseite (Zuhause 2.0, Schritt C / P27) */
.ah-wrap { margin-bottom: var(--sp-3); }
.ah { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-3); }
.ah h1 { flex: 1; min-width: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-btn { flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--mut); cursor: pointer; text-decoration: none; }
.ah-btn:active { background: var(--card-hover); }
.ah-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--card); }
.ah svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ah-wrap .ah { margin-bottom: var(--sp-2); }
@media (min-width: 900px) {
  body.with-tabs.page-wide .view { max-width: 1080px; }
  body.with-tabs.page-wide .view:has(.ar-page) { max-width: 1400px; }
  .ah-back { display: none; } /* am PC gibt es die Seitenleiste */
}
/* Start: Abstand unter „Neu in …“ */
.cl-new { margin-bottom: var(--sp-3); }

/* ---------- Board (P29): volle Breite, Raster ohne Lücken ---------- */
body[data-tab="board"] { --acc: #e879f9; --acc-soft: #e879f922; }
body.page-full .view { max-width: none; }
@media (min-width: 900px) { body.with-tabs.page-full .view { max-width: none; } }
.bd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 var(--sp-3); padding-bottom: 2px; }
.bd-chips::-webkit-scrollbar { display: none; }
.bd-chips .chip-btn { flex: none; white-space: nowrap; }
.bd-grid { width: 100%; }
.bd-row { display: flex; gap: 3px; margin-bottom: 3px; }
.bd-tile { position: relative; flex: none; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #1e293b; cursor: zoom-in; }
.bd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-tile:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.bd-badge, .bd-react { position: absolute; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(2, 6, 23, .72); color: #fff; pointer-events: none; }
.bd-badge { top: 4px; left: 4px; }
.bd-react { bottom: 4px; right: 4px; }
.bd-more { min-height: 40px; text-align: center; color: var(--mut); font-size: var(--fs-note); padding: var(--sp-3) 0; }
body.bd-drag .view { outline: 3px dashed var(--acc); outline-offset: -6px; }
.bd-prev { display: flex; gap: 6px; overflow-x: auto; }
.bd-prev img { height: 90px; width: auto; border-radius: 6px; flex: none; }
.bd-check { gap: 8px; align-items: flex-start; font-size: .9rem; }
.bd-check input { margin-top: 3px; }
/* Großansicht */
body.bd-lb-open { overflow: hidden; }
.bd-lb { position: fixed; inset: 0; z-index: 80; background: rgba(2, 6, 23, .96); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.bd-lb-img { max-width: 100vw; max-height: calc(100dvh - 150px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.bd-lb-x { position: absolute; top: calc(10px + var(--safe-top, 0px)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; }
.bd-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 72px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 2rem; }
.bd-lb-nav.prev { left: 8px; } .bd-lb-nav.next { right: 8px; }
.bd-lb-nav:disabled { opacity: .15; }
@media (pointer: coarse) { .bd-lb-nav { display: none; } }
.bd-lb-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(12px + var(--safe-bottom, 0px)); background: linear-gradient(transparent, rgba(2, 6, 23, .9) 30%); }
.bd-lb-cap { font-size: 1.05rem; font-weight: 650; margin-bottom: 2px; color: #fff; }
.bd-lb-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.bd-rbtn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.05rem; text-decoration: none; }
.bd-rbtn small { font-size: .8rem; opacity: .85; }
.bd-rbtn.on { background: #e879f933; border-color: #e879f9; }
.bd-rbtn.del { margin-left: auto; font-size: .95rem; }
.bd-rbtn.del.on { background: #ef444433; border-color: #ef4444; }
/* Board am Handy randlos: nur das Raster geht bis an den Rand, Kopf und Filter behalten Abstand */
@media (max-width: 699px) {
  body.page-full .view { padding-left: 3px; padding-right: 3px; }
  body.page-full .view > .ah, body.page-full .view > .bd-chips, body.page-full .view > .bd-empty { margin-left: 13px; margin-right: 13px; }
}

/* ---------- Filme & Serien (P32) ---------- */
body[data-tab="filme"] { --acc: #f43f5e; --acc-soft: #f43f5e22; }
.md-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.md-tools .grow { min-width: 160px; flex: 1; }
.md-tools select.input { width: auto; }
.list.md-list { display: grid; gap: 8px; margin-top: var(--sp-3); }
@media (min-width: 900px) { .md-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-item { padding: 12px 14px; }
.md-title { min-width: 0; overflow-wrap: anywhere; }
.md-acts { gap: 4px; flex: none; }
.md-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.md-person { font-size: .85rem; padding: 3px 9px; border-radius: 999px; background: var(--acc-soft); color: var(--txt); }
.md-note { display: block; color: var(--mut); font-size: .75rem; }
.md-whobox { gap: 14px; flex-wrap: wrap; }
.md-imp { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line, #1e293b); }
.md-imp small { display: block; }
.md-imp select.input { width: auto; }
.md-tips { display: grid; gap: 8px; }
@media (min-width: 900px) { .md-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* P33: Start am großen PC zweispaltig + breiter; Tipps */
@media (min-width: 1200px) {
  body.with-tabs[data-tab="start"] .view { max-width: 1480px; }
  .ck-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--sp-5, 24px); align-items: start; }
  .ck-side { position: sticky; top: calc(var(--appbar-h, 56px) + 12px); }
  .ck-side .ck-now { display: flex; flex-direction: column; }
  .ck-main .cockpit { grid-auto-rows: minmax(118px, auto); }
}
@media (min-width: 1600px) {
  .ck-main .cockpit { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.md-seen { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line, #1e293b); }
.md-tip.md-gone { opacity: .7; }
.qa-kind { width: auto; flex: none; }
.md-nf { background: #e50914; border-color: #e50914; color: #fff; text-decoration: none; }
.md-tipacts { gap: 6px; flex-wrap: wrap; }
/* P35: Cover */
.md-item.has-poster { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.md-item.has-poster > :not(.md-poster) { grid-column: 2; }
.md-poster { grid-column: 1; grid-row: 1 / span 6; width: 64px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #1e293b; }
.md-tip.has-poster { grid-template-columns: 92px minmax(0, 1fr); }
.md-tip .md-poster { width: 92px; }
.md-src { font-size: .7rem; opacity: .7; }

/* ---------- Veranstaltungen (P36) ---------- */
body[data-tab="events"] { --acc: #22d3ee; --acc-soft: #22d3ee22; }
.ev-list { display: grid; gap: 8px; margin-top: var(--sp-3); }
.ev-list .section-title { margin-top: var(--sp-3); }
.ev-card { padding: 12px 14px; }
.ev-card.has-img { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.ev-img { width: 110px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #1e293b; }
.ev-when { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--acc); font-weight: 700; font-size: .85rem; }
.ev-title { display: block; margin: 2px 0; font-size: 1.02rem; overflow-wrap: anywhere; }
.ev-acts { gap: 6px; flex-wrap: wrap; }
.ev-acts .btn.on { background: var(--acc-soft); border-color: var(--acc); }
.ev-desc summary { cursor: pointer; }
.ev-src { font-size: .72rem; opacity: .75; }
@media (min-width: 900px) { .ev-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-list .section-title { grid-column: 1 / -1; } }
@media (max-width: 420px) { .ev-card.has-img { grid-template-columns: 84px minmax(0, 1fr); } .ev-img { width: 84px; } }

/* ---------- Haushaltsbuch (P39) ---------- */
body[data-tab="haushaltsbuch"] { --acc: #10b981; --acc-soft: #10b98122; }
.hb-month { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: var(--sp-3); }
.hb-month b { min-width: 150px; text-align: center; text-transform: capitalize; }
.hb-cols { display: grid; gap: var(--sp-3); }
@media (min-width: 900px) { .hb-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.hb-big { font-size: 1.9rem; font-weight: 800; line-height: 1.15; color: var(--acc); }
.hb-h { font-size: 1.1rem; margin: 0 0 6px; }
.hb-h3 { font-size: .95rem; margin: 0 0 8px; }
.hb-payers { display: grid; gap: 4px; }
.hb-payer, .hb-sum-main, .hb-barlabel, .hb-top li, .hb-refund-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hb-open-link { display: block; color: var(--warn); font-weight: 700; text-decoration: none; }
.hb-draft { display: block; margin-bottom: var(--sp-3); border-color: var(--warn); background: var(--warn-soft); color: inherit; text-decoration: none; font-weight: 600; }
.hb-bars { display: grid; gap: 8px; }
.hb-barlabel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb-track { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 3px; }
.hb-track span { display: block; height: 100%; border-radius: 4px; }
.hb-top { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.hb-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb-empty { text-align: center; }
.hb-scan-ico { font-size: 2.6rem; text-align: center; }
.hb-scan-wait { text-align: center; }
.hb-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 360px; margin: 10px auto 0; }
.hb-bar span { display: block; height: 100%; width: 0; background: var(--acc); transition: width .2s; }
.hb-bar.busy span { width: 100% !important; animation: hb-pulse 1.2s ease-in-out infinite; }
@keyframes hb-pulse { 50% { opacity: .35; } }
.hb-bons { display: grid; gap: 2px; }
.hb-bon { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.hb-bon:hover { background: var(--acc-soft); }
.hb-bon-main { display: grid; min-width: 0; }
.hb-bon-main b, .hb-bon-main .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-bon.draft .hb-bon-sum { color: var(--warn); }
/* Kontroll-Liste */
.hb-edit.with-photo { display: grid; gap: var(--sp-3); }
@media (min-width: 900px) { .hb-edit.with-photo { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } .hb-photo { position: sticky; top: 70px; } }
.hb-photo img { width: 100%; max-height: 260px; object-fit: cover; object-position: top; border-radius: 10px; display: block; background: #1e293b; }
@media (min-width: 900px) { .hb-photo img { max-height: 80vh; object-fit: contain; } }
.hb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: var(--sp-3); }
.hb-grid label, .hb-form > label { display: grid; gap: 2px; }
.hb-rows { display: grid; gap: 6px; }
.hb-rows-head { display: none; }
.hb-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 34px; grid-template-areas: "name amt del" "cat own own"; gap: 4px; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.hb-row .input { min-height: 36px; padding: 6px 8px; font-size: .92rem; }
.hb-name { grid-area: name; } .hb-amt { grid-area: amt; text-align: right; } .hb-cat { grid-area: cat; } .hb-own { grid-area: own; } .hb-del { grid-area: del; padding: 0; }
.hb-row.priv { border-color: var(--warn); background: var(--warn-soft); }
.hb-row.neg .hb-amt { color: var(--ok); }
@media (min-width: 760px) {
  .hb-rows-head { display: grid; grid-template-columns: minmax(0, 1fr) 92px 190px 160px 34px; gap: 4px; padding: 0 6px; margin-bottom: 2px; }
  .hb-row { grid-template-columns: minmax(0, 1fr) 92px 190px 160px 34px; grid-template-areas: "name amt cat own del"; padding: 3px 6px; }
}
.hb-sum { margin-top: var(--sp-3); padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.hb-sum-main b { font-size: 1.2rem; }
.hb-sum .ok { color: var(--ok); } .note.warn, .hb-sum .warn { color: var(--warn); }
.hb-refund-items { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.hb-refund-items li { display: flex; gap: 4px; align-items: baseline; }
.hb-refund-items li b { margin-left: auto; }
@media (max-width: 480px) { .hb-btn-txt { display: none; } }

@media (min-width: 900px) { .tabbar a.tb-fav { min-height: 38px; } }

/* ---------- Fokus-Helfer (P47) ---------- */
.ck-focus { margin: 0 0 var(--sp-3); }
.focus-btn { width: 100%; min-height: 54px; font-size: 1.08rem; font-weight: 800; border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #10b981); color: #052e16; border: 0; box-shadow: 0 6px 18px #10b98133; }
.focus-btn:active { transform: scale(.99); }
@media (min-width: 900px) { .ck-focus .focus-btn { max-width: 420px; } }
.focus-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.focus-card h3 { font-size: 1.25rem; margin: 4px 0; }
.focus-why { color: var(--ok); }
.focus-pill { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 8px 16px 8px 12px; border-radius: 999px; border: 1px solid #10b981;
  background: linear-gradient(90deg, #10b98140 calc(var(--p, 0) * 100%), var(--card) calc(var(--p, 0) * 100%)); color: var(--txt); font: inherit; box-shadow: 0 6px 20px #0006; cursor: pointer; }
.focus-pill b { font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.focus-lbl { color: var(--mut); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.focus-dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; animation: hb-pulse 1.4s ease-in-out infinite; }
@media (min-width: 900px) { .focus-pill { left: auto; right: 24px; transform: none; bottom: calc(var(--safe-bottom) + 24px); } }
.eve-card { margin-bottom: var(--sp-3); border: 1px solid #a78bfa55; background: linear-gradient(150deg, #a78bfa26, var(--card) 70%); }
.eve-list { margin: 4px 0 0; padding-left: 1.1em; display: grid; gap: 2px; }
.eve-add { display: grid; gap: 6px; }
.eve-add-row { gap: 8px; align-items: center; }
.eve-add-row .eve-time { width: auto; flex: 1; min-width: 0; }
.eve-add .input { min-height: 40px; }

/* ---------- P48: Fokus, Booster, Starter, Entscheiden, Verliehen, Wünsche, Tiere ---------- */
.fk-start .input { margin-top: 6px; }
.fk-start .focus-chips { margin-top: 8px; }
.fk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 700px) { .fk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fk-big { min-height: 64px; flex-direction: column; gap: 2px; white-space: normal; text-align: center; line-height: 1.2; }
.fk-big small { font-size: .78rem; opacity: .8; font-weight: 500; }
.fk-team { display: grid; gap: 8px; }
.fk-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fk-row.me .fk-name { color: var(--ok); font-weight: 700; }
.fk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-bar { height: 12px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.fk-bar i { display: block; height: 100%; min-width: 2px; border-radius: 99px; background: linear-gradient(90deg, #10b981, #22d3ee); transition: width .6s; }
.fk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; }
.fk-day { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.fk-col { width: 100%; max-width: 34px; height: 80px; display: flex; align-items: flex-end; background: var(--card-2); border-radius: 8px; overflow: hidden; }
.fk-col i { display: block; width: 100%; min-height: 2px; background: #10b981; border-radius: 8px 8px 0 0; }
.fk-day small { font-variant-numeric: tabular-nums; font-size: .75rem; }
.fk-boost { display: flex; gap: 12px; align-items: center; margin-bottom: var(--sp-3); }
.fk-boost .grow { min-width: 0; }
.fk-boost-ico { font-size: 1.7rem; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--card-2); flex: none; }
.fk-step { font-size: 1.35rem; font-weight: 750; text-align: center; margin: 14px 0 4px; min-height: 2.4em; }
.fk-count { font-size: 3rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; color: var(--ok); min-height: 1.2em; }
.fk-prog { width: 100%; height: 8px; margin: 10px 0 6px; accent-color: #10b981; }
.fk-breath { width: 120px; height: 120px; margin: 8px auto 0; border-radius: 50%; background: radial-gradient(circle, #22d3ee66, #10b98133 70%); border: 2px solid #22d3ee;
  transform: scale(.55); transition: transform 4s ease-in-out; }
.fk-breath.in, .fk-breath.hold-in { transform: scale(1); }
.fk-breath.out, .fk-breath.hold-out { transform: scale(.55); }
@media (prefers-reduced-motion: reduce) { .fk-breath { transition: none; } }
.fk-kick { padding: 12px; border-radius: var(--r-inner); background: var(--card-2); }
.fk-kick h3 { margin: 0 0 4px; font-size: 1.1rem; }
.fk-kick .focus-chips { margin: 6px 0; }
.fk-quote { font-size: 1.2rem; font-weight: 650; line-height: 1.4; margin: 4px 0 8px; }
.fk-opts { display: grid; gap: 6px; margin-top: 8px; }
.fk-result { margin-top: 10px; }
.fk-pick { padding: 14px; border-radius: var(--r-inner); background: var(--card-2); font-size: 1.15rem; font-weight: 700; text-align: center; }
.fk-pick.done { background: var(--ok-soft); color: var(--ok); font-size: 1.3rem; animation: fk-pop .35s ease-out; }
@keyframes fk-pop { 0% { transform: scale(.92); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
.wi-card { display: grid; gap: 8px; }
.wi-card.mine { border: 1px solid #ec489966; }
.wi-main { all: unset; cursor: pointer; display: grid; gap: 2px; }
.wi-main:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
.wi-card .actions { margin-top: 0; }
.wi-card > a.btn { justify-self: start; }
.pt-head { align-items: flex-start; gap: 8px; }
.pt-head h2 { margin-bottom: 2px; }
.pt-spark { margin-top: 8px; }
.pt-spark .spark { width: 100%; height: 44px; display: block; }
.pt-ev { position: relative; padding-right: 30px; }
.pt-del { position: absolute; right: 0; top: 0; background: none; border: 0; color: var(--mut); font-size: 1rem; cursor: pointer; padding: 2px 6px; }

/* P52: Startkarte TV heute 20:15 */
.tv-wd-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; position: relative; }
.tv-wd-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-wd-list b { color: var(--c, var(--acc)); font-weight: 700; margin-right: 2px; }
.tv-wd-list small { color: var(--mut); }

/* P74: Benutzer & Bereiche */
.au-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.au-mod { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r-inner); background: var(--card-2); border: 1px solid var(--line); font-size: .88rem; cursor: pointer; }
.au-mod input { width: 18px; height: 18px; flex: none; }
.au-mod span { flex: 1; min-width: 0; }
.au-mod small { color: var(--mut); font-size: .7rem; }
.au-mod.off { opacity: .55; cursor: default; }
.au-all { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 8px 10px; border-radius: var(--r-inner); background: var(--acc-soft); cursor: pointer; }
.au-all input { width: 20px; height: 20px; }
.au-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.au-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); background: var(--card-2); }
.au-demo > div { flex: 1 1 240px; }

/* P82: Fehlermeldungen */
.bug-card { margin-bottom: 10px; }
.bug-card.bug-neu { border-left: 4px solid #ef4444; }
.bug-card.bug-arbeit { border-left: 4px solid #f59e0b; }
.bug-card.bug-erledigt { opacity: .7; border-left: 4px solid #22c55e; }
.bug-text { white-space: pre-wrap; word-break: break-word; margin: 6px 0; }
.bug-img { max-width: 100%; max-height: 260px; border-radius: 8px; border: 1px solid var(--line); margin: 4px 0; }
.bug-tech { margin: 6px 0; font-size: .8rem; }
.bug-tech pre { white-space: pre-wrap; word-break: break-word; font-size: .74rem; background: var(--card-2); padding: 8px; border-radius: 8px; max-height: 200px; overflow: auto; }
.bug-acts { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; margin-top: 8px; }
.bug-acts .btn { width: 100%; }
@media (min-width: 700px) { .bug-acts { grid-template-columns: 130px 1fr auto auto auto; } }

/* P97: Alltag neu – Einkaufsliste */
.sh-top { padding: 12px; display: grid; gap: 10px; }
.sh-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-count { font-size: 1.1rem; }
.sh-add { display: flex; gap: 8px; }
.sh-add input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 17px; outline: none; }
.sh-add input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft, #38bdf833); }
.sh-add .btn { min-width: 56px; font-size: 1.5rem; border-radius: 14px; }
.sh-quick { display: grid; gap: 6px; }
.sh-quick-h { display: flex; justify-content: space-between; align-items: center; }
.sh-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chips .chip-btn { flex: none; }
.sh-chips .chip-btn.on { opacity: .55; }
.sh-list { margin-top: var(--sp-3); }
.sh-group + .sh-group { margin-top: var(--sp-2); }
.sh-item { display: flex; align-items: center; transition: opacity .2s, transform .2s; }
.sh-item.leaving { opacity: .3; transform: translateX(8px); }
.sh-tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 10px; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: pointer; min-height: 56px; }
.sh-tap small { display: block; color: var(--mut); font-size: var(--fs-note); margin-top: 1px; }
.sh-text { font-size: 1.05rem; font-weight: 550; }
.sh-check { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong, #475569); display: grid; place-items: center; font-weight: 800; color: #0f172a; transition: background .15s, border-color .15s; }
.sh-tap:hover .sh-check { border-color: var(--acc); }
.sh-item.done .sh-check { background: var(--ok); border-color: var(--ok); }
.sh-item.done .sh-text { color: var(--mut); text-decoration: line-through; font-weight: 450; }
.sh-item .del { opacity: .5; }
.sh-item:hover .del { opacity: 1; }
.sh-done summary { cursor: pointer; color: var(--mut); font-weight: 600; padding: 10px 4px; }
.sh-empty { text-align: center; padding: 28px 16px; display: grid; gap: 6px; justify-items: center; }
.sh-empty-ico { font-size: 2.4rem; }
/* P97: Notizen als Zettel */
.nt-form textarea { width: 100%; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); align-items: start; }
.nt-card .note-text { overflow-wrap: anywhere; }
.nt-card { position: relative; padding: 14px 14px 12px; border-radius: 14px; background: color-mix(in srgb, var(--nt, #fde68a) 14%, var(--card, #1e293b)); border-top: 4px solid var(--nt, #fde68a); }
.nt-card .note-text { font-size: 1rem; line-height: 1.45; }
.nt-card.exp::after { content: '⏳'; position: absolute; right: 44px; top: 12px; font-size: .9rem; opacity: .8; }

/* P100: Admin – Punkte & Belohnungen */
.ap-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line, #1e293b); }
.ap-row:last-child { border-bottom: 0; }
.ap-person { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--line, #1e293b); }
.ap-person:last-child { border-bottom: 0; }
.ap-person:hover { background: #ffffff06; }
.ap-person small { display: block; color: var(--mut); font-size: var(--fs-note); }
.ap-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--acc-soft, #38bdf833); color: var(--acc); flex: none; }
.ap-stars { text-align: right; white-space: nowrap; }
.ap-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; margin-bottom: 8px; }
.ap-kpis > div { padding: 8px 4px; border-radius: 10px; background: #ffffff08; }
.ap-kpis b { display: block; font-size: 1.1rem; }
.ap-kpis small { color: var(--mut); font-size: .72rem; }
.ap-items { max-height: 240px; overflow: auto; }

/* P100: Wunschlisten neu */
.wi-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wi-head h2 { margin: 0 0 2px; }
.wi-ava { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; flex: none;
  background: linear-gradient(135deg, #ec4899, #a78bfa); color: #fff; box-shadow: 0 6px 18px #ec489944; }
.wi-bd { margin-top: 6px; display: inline-block; padding: 3px 10px; border-radius: 999px; background: #22c55e22; color: #86efac; font-size: .85rem; font-weight: 600; }
.wi-bd.soon { background: #f59e0b26; color: #fcd34d; }
.wi-stats { display: flex; gap: 8px; }
.wi-stats > div { text-align: center; padding: 6px 10px; border-radius: 10px; background: #ffffff08; min-width: 64px; }
.wi-stats b { display: block; font-size: 1.2rem; }
.wi-stats small { color: var(--mut); font-size: .72rem; }
.wi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-3); align-items: start; }
.wi-gift { position: relative; display: grid; gap: 8px; padding: 0 14px 14px; border-radius: 16px; background: var(--card, #1e293b); border: 1px solid #ffffff10; overflow: hidden; }
.wi-gift.p1 { --wi: #ec4899; } .wi-gift.p2 { --wi: #a78bfa; } .wi-gift.p3 { --wi: #64748b; }
.wi-ribbon { display: flex; justify-content: space-between; align-items: center; margin: 0 -14px; padding: 6px 14px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(90deg, color-mix(in srgb, var(--wi) 35%, transparent), transparent); border-bottom: 1px solid color-mix(in srgb, var(--wi) 40%, transparent); }
.wi-secret { font-weight: 600; color: #fcd34d; }
.wi-gift .wi-main { all: unset; cursor: pointer; display: grid; gap: 4px; }
.wi-gift .wi-main:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
.wi-title { font-size: 1.1rem; }
.wi-note { margin: 0; color: var(--mut); font-size: .92rem; }
.wi-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wi-meta a.chip { text-decoration: none; }
.wi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.wi-gift.mine { border-color: #fbbf2488; box-shadow: 0 0 0 1px #fbbf2444, 0 8px 20px #fbbf2415; }
.wi-gift.taken { opacity: .6; }
.wi-empty { text-align: center; padding: 26px 16px; display: grid; gap: 6px; justify-items: center; }
.wi-empty-ico { font-size: 2.4rem; }

/* P100: Tiere neu */
.pt-up { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pt-due { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card, #1e293b); border: 1px solid #ffffff10; }
.pt-due small { display: block; color: var(--mut); font-size: var(--fs-note); }
.pt-due:hover { border-color: var(--acc); }
.pt-days { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; align-content: center; flex: none; background: #22c55e22; color: #86efac; line-height: 1; }
.pt-days b { font-size: 1.15rem; } .pt-days small { font-size: .6rem; color: inherit; }
.pt-due.soon .pt-days { background: #f59e0b26; color: #fcd34d; }
.pt-due.late .pt-days { background: #ef444433; color: #fca5a5; }
.pt-due.late { border-color: #ef444466; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--sp-3); align-items: start; }
@media (max-width: 420px) { .pt-grid { grid-template-columns: minmax(0, 1fr); } }
.pt-profile { border-top: 4px solid var(--pt); display: grid; gap: 10px; }
.pt-top { display: flex; align-items: flex-start; gap: 12px; }
.pt-top h2 { margin: 0 0 4px; font-size: 1.35rem; }
.pt-ava { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; flex: none;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--pt) 55%, #fff 0%), color-mix(in srgb, var(--pt) 25%, #0f172a)); box-shadow: 0 6px 18px color-mix(in srgb, var(--pt) 30%, transparent); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-next { padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--pt) 14%, transparent); font-size: .9rem; font-weight: 600; }
.pt-next.late { background: #ef444426; color: #fca5a5; }
.pt-info { display: grid; gap: 2px; font-size: .9rem; color: #cbd5e1; }
.pt-note { margin: 0; }
.pt-weight { padding: 8px 10px; border-radius: 12px; background: #ffffff06; }
.pt-weight .spark { width: 100%; height: 44px; display: block; }
.pt-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pt-qbtn { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; border: 1px solid #ffffff12; background: #ffffff06; color: inherit; cursor: pointer; font: inherit; }
.pt-qbtn span { font-size: 1.3rem; } .pt-qbtn small { font-size: .74rem; color: var(--mut); text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-qbtn:hover { border-color: var(--pt); }
.pt-tl ul { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid #ffffff14; }
.pt-tl-item { position: relative; display: flex; gap: 10px; padding: 6px 28px 8px 18px; }
.pt-tl-dot { position: absolute; left: -13px; top: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; background: #0f172a; border: 2px solid var(--pt); }
.pt-tl-item small { display: block; }
.pt-tl .pt-del { top: 6px; }

/* P101: Unterpunkte unter den Alltag-Reitern (z. B. Essen: Woche · Kühlschrank · Rezepte · Vorlieben) */
.seg-sub { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--acc-soft, #38bdf833); }
.seg-sub .segments a { font-size: .88rem; padding-top: 6px; padding-bottom: 6px; }

/* P102: Beute-Ideen im Quest-Admin */
.lq-ideas summary { cursor: pointer; }
.lq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.lq-card { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: 12px; background: #ffffff06; border: 1px solid #ffffff10; }
.lq-card.on { opacity: .6; }
.lq-cond { color: var(--q-gold, #ffc857); font-weight: 600; }
.lq-card .btn { justify-self: start; margin-top: 4px; }

/* P105: Unterpunkte als Chips in der Eltern-Kachel */
.ar-tilewrap { display: grid; gap: 6px; align-content: start; }
.ar-tilewrap > .ar-tile { height: 100%; }
.ar-kids { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.ar-kid { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600; position: relative; }
.ar-kid:hover { background: color-mix(in srgb, var(--c) 26%, transparent); }
.ar-kid .ar-chip-ico svg { width: 16px; height: 16px; color: var(--c); }
.ar-kid .ar-star { position: static; margin-left: 2px; }

/* P105: Mein Haushalt als Sammelpunkt */
.hh-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.hh-tile { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--card, #1e293b); border: 1px solid #ffffff10; color: inherit; text-decoration: none; }
.hh-tile:hover { border-color: var(--acc); }
.hh-tile small { color: var(--mut); font-size: var(--fs-note); }
.hh-ico { font-size: 1.4rem; }

/* P106: Kalender */
.cal-legend .chip-btn { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.cal-legend .chip-btn.on { background: color-mix(in srgb, var(--c) 22%, transparent); color: inherit; }
.cal-day { margin-top: var(--sp-3); }
.cal-dayhead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 6px; }
.cal-day.today .cal-dayhead b { color: var(--acc); }
.cal-list { display: grid; gap: 6px; }
.cal-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card, #1e293b); border-left: 4px solid var(--c); color: inherit; text-decoration: none; }
.cal-item small { display: block; color: var(--mut); font-size: var(--fs-note); }
.cal-time { min-width: 44px; font-variant-numeric: tabular-nums; color: var(--mut); font-size: .85rem; }
.cal-ico { font-size: 1.2rem; }
.cal-empty { padding: 6px 4px; }
.cal-mhead { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-3); }
.cal-mhead b { font-size: 1.1rem; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.cal-wd { text-align: center; font-size: .75rem; color: var(--mut); font-weight: 700; }
.cal-cell { aspect-ratio: 1 / 1; min-height: 44px; display: grid; align-content: space-between; justify-items: center; padding: 6px 2px; border-radius: 10px; border: 1px solid #ffffff10; background: var(--card, #1e293b); color: inherit; font: inherit; cursor: pointer; }
.cal-cell.blank { background: none; border: 0; cursor: default; }
.cal-cell.today { border-color: var(--acc); }
.cal-cell.picked { background: color-mix(in srgb, var(--acc) 22%, var(--card, #1e293b)); }
.cal-num { font-weight: 700; font-size: .9rem; }
.cal-dots { display: flex; gap: 2px; min-height: 6px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; }

/* P107: Mitteilungen */
.zh-bell { position: relative; font-size: 1.05rem; text-decoration: none; }
.zh-bell-n { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.nt-list { display: grid; gap: 6px; margin-top: 10px; }
.nt-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card, #1e293b); border: 1px solid #ffffff0d; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.nt-item small { display: block; color: var(--mut); font-size: var(--fs-note); }
.nt-item.unread { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, var(--card, #1e293b)); }
.nt-item.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); margin-right: 6px; vertical-align: 2px; }
.nt-ico { font-size: 1.3rem; }
.nt-at { color: var(--mut); font-size: .78rem; white-space: nowrap; }

/* P108: Fortschritt */
.pg-how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 6px; }
.pg-how-grid > div { padding: 10px; border-radius: 12px; background: #ffffff08; display: grid; gap: 2px; }
.pg-how-grid small, .pg-src small, .pg-loot small { color: var(--mut); font-size: var(--fs-note); display: block; }
.pg-loot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pg-loot > div { padding: 8px 10px; border-radius: 10px; background: #ffc8570f; border: 1px dashed #ffc85744; }
.pg-src { display: grid; gap: 4px; }
.pg-src > div { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line, #1e293b); }
.pg-src > div:last-child { border-bottom: 0; }
.pg-num { text-align: right; white-space: nowrap; font-weight: 700; }

/* P109: Personen */
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pp-card { display: grid; gap: 8px; }
.pp-card.soon { border-color: #f472b666; }
.pp-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ec489933; font-weight: 800; }
.pp-wishes { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }

/* P114: Fokus – Regeln + Admin-Prüfung */
.fk-rules summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.fk-rules summary::-webkit-details-marker { display: none; }
.fk-rules .eve-list li { margin-bottom: 6px; }
.fk-audit { overflow-x: auto; }
.fk-audit-t { width: 100%; border-collapse: collapse; font-size: .85rem; }
.fk-audit-t th, .fk-audit-t td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--line, rgba(127,127,127,.2)); white-space: nowrap; }
.fk-audit-t th:first-child, .fk-audit-t td:first-child { text-align: left; }
.fk-rules-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; align-items: end; }
.fk-rules-form label { display: flex; flex-direction: column; gap: 4px; }
/* P116: Quest-Serie auf der Startseite */
.q-wd-streak { color: #f97316; font-weight: 700; }
.q-wd-streak.risk { color: #ef4444; }
/* P122: Unterbereiche als runde Symbol-Knöpfe IN der Kachel – keine Extra-Zeile, Raster bleibt gleichmäßig */
.ar-tilewrap.has-kids { position: relative; display: grid; gap: 0; }
.ar-tilewrap.has-kids > .ar-tile { padding-bottom: 50px; }
.ar-tilewrap.has-kids, .ar-tilewrap:not(:has(> .ar-kids)) { align-content: stretch; }
.ar-tilewrap.has-kids .ar-kids { position: absolute; left: 10px; right: 10px; bottom: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0; gap: 5px; }
.ar-tilewrap.has-kids .ar-kids::-webkit-scrollbar { display: none; }
.ar-tilewrap.has-kids .ar-kid { flex: none; width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.ar-tilewrap.has-kids .ar-kid-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-tilewrap.has-kids .ar-kid .ar-chip-ico svg { width: 17px; height: 17px; }

/* P134: Kinder-Startseite – groß, wenig, freundlich */
.kd-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 2px 14px; }
.kd-hero h2 { font-size: 1.7rem; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.kd-hero-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kd-stars { background: var(--acc); color: var(--acc-txt); font-weight: 800; font-size: 1.1rem; padding: 6px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 3px 0 #c79a12; white-space: nowrap; }
.kd-wx { color: var(--mut); font-weight: 700; }
.kd-tasks h2 { margin-bottom: 12px; }
.kd-task { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 8px; border-radius: 18px; background: #ffffff0d; color: inherit; text-decoration: none; border: 1px solid #ffffff10; }
.kd-task:active { transform: scale(.99); }
.kd-task b { display: block; font-size: 1.12rem; }
.kd-task small { color: var(--mut); }
.kd-task-ico { font-size: 1.6rem; }
.kd-go { background: var(--acc); color: var(--acc-txt); font-weight: 800; padding: 8px 14px; border-radius: 14px; white-space: nowrap; box-shadow: 0 3px 0 #c79a12; }
.kd-empty { font-size: 1.1rem; margin: 4px 0 12px; }
.kd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.kd-tile {
  display: flex; flex-direction: column; gap: 4px; min-height: 140px; padding: 16px; border-radius: 22px; color: inherit; text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 38%, transparent), color-mix(in srgb, var(--c) 12%, var(--card)) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 35%, #000), 0 10px 24px #0005;
  transition: transform .1s;
}
.kd-tile:active { transform: translateY(3px); }
.kd-emo { font-size: 2.6rem; line-height: 1; margin-bottom: 4px; }
.kd-tile b { font-size: 1.2rem; font-weight: 800; }
.kd-tile small { color: #e6ecff; opacity: .85; font-size: .95rem; }
.kd-wear { grid-column: 1 / -1; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.kd-wear .kd-emo { margin: 0; }
.kd-wear small { flex-basis: 100%; }
.kd-radio-btn { margin-top: 8px; min-height: 38px; }
@media (min-width: 700px) { .kd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* P134: 2D-Avatar mit Stimmungen */
.av2d { position: relative; display: inline-block; line-height: 0; flex: none; }
.av2d svg { overflow: visible; }
.av2d .av-body { transform-origin: 50px 100px; animation: av-breathe 3.6s ease-in-out infinite; }
.av2d .av-arm-r { transform-origin: 71px 62px; transform-box: view-box; }
.av2d .av-arm-l { transform-origin: 28px 62px; transform-box: view-box; }
.av2d .av-eyes-shut { display: none; }
.av2d .av-zz { display: none; position: absolute; right: -4px; top: -2px; font: 700 12px/1 var(--font); color: var(--mut); }
.av2d .av-zz span { display: inline-block; margin-left: 1px; }
.av2d.mood-wave .av-arm-r { animation: av-wave .5s ease-in-out 4 alternate; }
.av2d.mood-cheer .av-body { animation: av-hop .45s ease-in-out 5 alternate; }
.av2d.mood-cheer .av-arm-r { transform: rotate(-150deg); }
.av2d.mood-cheer .av-arm-l { transform: rotate(150deg); }
.av2d.mood-sleep .av-eyes { display: none; }
.av2d.mood-sleep .av-eyes-shut { display: inline; }
.av2d.mood-sleep .av-body { animation-duration: 5.5s; }
.av2d.mood-sleep .av-zz { display: block; animation: av-zz 2.8s ease-in-out infinite; }
@keyframes av-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes av-wave { from { transform: rotate(-130deg); } to { transform: rotate(-170deg); } }
@keyframes av-hop { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@keyframes av-zz { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(4px, -10px); } }
@media (prefers-reduced-motion: reduce) { .av2d *, .av2d { animation: none !important; } }
.ck-hero .av2d { margin-right: 4px; opacity: .95; }
.ck-hero-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kd-hero-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
