/* Navigation Bande | Losbauen | Foto | Meine Werke (from the 11/2026 pilot, now the default). */
.nav-item[data-route="works"]{--nav-bg:var(--kds-color-band-gruen-bg);--nav-fg:var(--kds-color-text-default)}
/* Stage colours for work tiles: blue-violet only, light L.86-.87 or dark L.42-.45, every stone ΔE2000 >= 25 also under deutan/protan (Farbkonzept 14.11.) */
:root{--stage-tuerkis:#9de2ea;--stage-tuerkis-fg:#1c1913;--stage-flieder:#d6cbfc;--stage-flieder-fg:#1c1913;--stage-lila:#5c3e71;--stage-lila-fg:#fff;--stage-petrol:#006071;--stage-petrol-fg:#fff}
.nav-item[data-route="discover"]{--nav-bg:var(--kds-color-band-gelb-bg)}
.nav-item[data-route="works"] .nav-icon svg{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.nav-item[data-route="works"].is-active .nav-icon{background:var(--nav-bg)}
.ux-topic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ux-topic{border:0;padding:0 0 16px;border-radius:18px;background:var(--app-tint-gelb);color:var(--kds-color-text-default);display:flex;flex-direction:column;gap:6px;overflow:hidden;min-height:155px;text-align:left;cursor:pointer}
.ux-tiles{display:contents}
.ux-tiles[hidden]{display:none}
.ux-topic:nth-child(3n+2){background:var(--app-tint-gruen)}
.ux-topic:nth-child(3n+3){background:var(--app-surface-soft)}
.ux-topic img,.ux-topic-icon{width:100%;height:104px;object-fit:cover;background:var(--app-glass-card);display:grid;place-items:center;font-size:50px;font-weight:600}
.ux-topic strong,.ux-topic small{margin:0 12px}
.ux-topic strong{font-size:clamp(17px,4vw,22px);line-height:1.15}
.ux-topic small{font-size:12px;color:var(--kds-color-text-soft)}
.ux-back,.ux-path-button{display:block;min-height:58px;margin:0 0 15px;background:var(--app-surface-soft);border:0;border-radius:12px;padding:12px 20px;font:inherit;cursor:pointer}
.ux-path-button{width:100%;margin-top:12px;background:var(--app-tint-gelb)}
/* Meine Werke (Kai 09.11.): one area at a time, chosen by picture tiles that stay at the top under the header. */
.ux-works-tiles{position:sticky;top:var(--app-header-h,0px);z-index:30;display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:8px;margin:0 0 18px;padding:8px 0;background:var(--kds-color-surface-page)}
.ux-works-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:76px;padding:8px 4px;border:1px solid var(--kds-color-line-default);border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card);color:var(--kds-color-text-default);font:inherit;cursor:pointer}
.ux-works-tile svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.ux-works-tile small{font-size:11px;line-height:1.1;opacity:.75}
.ux-works-tile.is-active{background:var(--kds-color-band-blau-bg);color:var(--kds-color-band-blau-fg);border-color:transparent}
.ux-works-tile.is-active small{opacity:1}
.ux-filter{min-height:52px;min-width:72px;padding:10px 15px;border:1px solid var(--kds-color-line-default);border-radius:12px;background:var(--kds-color-surface-card);font:inherit;white-space:nowrap;cursor:pointer}
/* The save buttons stay in sight above the navigation: on a phone the picture fills the screen, and a swipe on it erases. */
.ai-save-bar{position:sticky;bottom:calc(100px + env(safe-area-inset-bottom));z-index:5;display:flex;gap:10px;padding:8px 0;background:var(--kds-color-surface-page)}
.ai-save-bar>button{flex:1 1 0;min-width:0;margin:0}
/* Four-year-olds read the picture: the icon carries the meaning, the small label is for the parents. */
.ai-icon-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:76px;padding:8px 8px 6px;line-height:1.15}
.ai-icon{width:36px;height:36px;flex:none;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ai-icon .ai-icon-fill{fill:currentColor;stroke:none}
.ai-btn-label{font-size:13px;font-weight:600}
.ai-save-bar .ai-icon-button{min-height:68px}
.ai-mask-tool.ai-icon-button{flex-direction:row;gap:8px;min-height:58px}
.ai-mask-tool .ai-btn-label{font-size:15px}
.ai-mask-tools{grid-template-columns:1fr 1fr auto}
#aiMaskReset{padding:8px 14px}
.ux-work-delete{margin:18px auto 0;min-width:120px;color:var(--kds-color-text-soft)}

.ai-save-bar>button[hidden]{display:none}
#aiMaskCanvas{max-height:42dvh}
.ux-sort{margin:12px 0}.ux-sort p{margin:0 0 8px;font-weight:700}.ux-sort-options{display:flex;gap:8px;flex-wrap:wrap}
.ux-sort select{display:block;width:100%;min-height:52px;margin-top:10px;padding:10px 12px;border:1px solid var(--kds-color-line-default);border-radius:12px;background:var(--kds-color-surface-card);font:inherit}
.ux-sort select[hidden]{display:none}
.ux-filter.is-active{background:var(--kds-color-band-gelb-bg);color:var(--kds-color-band-gelb-fg);border-color:transparent}
.ux-works-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.ux-work-card{--tile:var(--stage-tuerkis);--tile-fg:var(--stage-tuerkis-fg);padding:0;border:0;border-radius:16px;background:var(--tile);color:var(--tile-fg);text-align:left;overflow:hidden;cursor:pointer}
.ux-work-card img{display:block;box-sizing:border-box;width:100%;aspect-ratio:4/5;object-fit:contain;padding:10px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.18))}
.post-card .post-image-wrap{background:var(--tile,var(--stage-tuerkis))}
.ux-work-card .plan-share-note{color:var(--tile-fg)}
.post-card .post-image{box-sizing:border-box;padding:10px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.18))}
.ux-work-card span{display:block;padding:10px 13px 14px;font-size:16px;font-weight:600}
.ux-work-detail{--tile:var(--stage-tuerkis);display:grid;place-items:center;min-height:55vh;background:var(--tile);border-radius:16px}
.ux-work-detail img{display:block;max-height:68vh;max-width:100%;width:100%;object-fit:contain}
.ux-works-grid>.empty-state{grid-column:1/-1}
@media(min-width:600px){.ux-topic-grid,.ux-works-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:390px){.ux-topic-grid,.ux-works-grid{gap:9px}.ux-topic strong{font-size:16px}.ux-filter{padding:8px 12px}}
/* Kai 06.11.: a slim band without the slant; the two header buttons are rarely needed. The screen belongs to the work. */
.topbar.app-header{min-height:0;padding:10px 16px;align-items:center;clip-path:none}
.app-header h1{margin:0;font-size:26px;line-height:1.1}
.topbar-actions .header-icon-button{width:40px;height:40px;min-width:0;min-height:0;padding:0}
.header-icon-button svg{width:24px;height:24px}
.chip-avatar{font-size:26px;line-height:1} /* the child's animal instead of a figure */

/* Wirklich löschen? -- its own window with the picture of what goes; the keep button is the calm default. */
.confirm-dialog { width: min(100% - 32px, 360px); padding: 20px; border: 0; border-radius: var(--kds-radius-lg);
  background: var(--kds-color-surface-page); color: var(--kds-color-text-default); box-shadow: var(--kds-shadow-raised); text-align: center; }
.confirm-dialog::backdrop { background: var(--kds-color-overlay-scrim); }
.confirm-picture { display: block; width: 100%; max-height: 40vh; object-fit: contain; margin: 0 0 12px; border-radius: var(--kds-radius-md);
  background: var(--kds-color-surface-highlight); }
.confirm-question { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; border: 0;
  border-radius: var(--kds-radius-md); font: inherit; font-size: 17px; font-weight: 700; }
.confirm-keep { background: var(--kds-color-surface-highlight); color: var(--kds-color-text-default); }
.confirm-delete { background: var(--kds-color-band-rot-bg); color: var(--kds-color-band-rot-fg); }
.confirm-delete svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }

/* A Bande card (Kai 09.11.): the build, who built it with Merken beside, and Losbauen. Icons carry the meaning. */
.post-by{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 7px 0}
.post-by .post-author{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.post-save{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:0 0 auto;width:68px;min-height:64px;padding:6px;border:0;border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card);color:var(--kds-color-text-default);font:inherit;cursor:pointer}
.post-save svg,.post-build svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.post-save small{font-size:11px;line-height:1.1;opacity:.75}
.post-save.is-saved{background:var(--kds-color-band-gelb-bg);color:var(--kds-color-band-gelb-fg)}
.post-save.is-saved svg,.bau-tile.is-saved svg{fill:currentColor}
.post-build{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:72px;margin:12px 0 0;padding:10px 16px;border:0;border-radius:var(--kds-radius-md);background:var(--kds-color-action-primary-bg);color:var(--kds-color-action-primary-fg);font:inherit;font-size:18px;font-weight:600;cursor:pointer}
/* In the Baumodus every switched-on tile is turquoise, like Foto (Kai 11.11.). */
.bau-tile.is-saved,.bau-tile.is-on{background:var(--kds-color-action-primary-bg);color:var(--kds-color-action-primary-fg)}
/* #main takes the focus on every route change for screen readers; it is no control, so no ring around the page. */
#main:focus{outline:none}
/* Kai's review area (Foto → Bauplan): words are fine here, it is not for the children. */
.admin-switch{display:block;margin:0 0 12px auto;min-height:44px;padding:8px 16px;border:1px solid var(--kds-color-line-default);border-radius:999px;background:var(--kds-color-surface-card);color:var(--kds-color-text-default);font:inherit;cursor:pointer}
.admin-switch[aria-pressed="true"]{background:var(--kds-color-band-blau-bg);color:var(--kds-color-band-blau-fg);border-color:transparent}
.admin-list{display:grid;gap:18px}
.admin-card .post-image-wrap{position:relative;cursor:pointer}
.admin-state{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--kds-color-surface-card);font-size:13px}
.admin-card .admin-state{position:absolute;top:10px;left:10px}
.admin-state[data-state="failed"]{background:var(--kds-color-band-rot-bg);color:var(--kds-color-band-rot-fg)}
.admin-state[data-state="analyzed"]{background:var(--kds-color-band-gruen-bg)}
.admin-button,.admin-back,.admin-takedown{min-height:44px;padding:8px 14px;border:1px solid var(--kds-color-line-default);border-radius:12px;background:var(--kds-color-surface-card);color:var(--kds-color-text-default);font:inherit;cursor:pointer}
.admin-button:disabled,.admin-pieces button:disabled{opacity:.4;cursor:default}
.admin-button.is-release{background:var(--kds-color-band-gruen-bg)}
.admin-button.is-reject,.admin-takedown{color:var(--red)}
.admin-takedown{display:block;margin:10px 7px 0}
.admin-polish{display:grid;grid-template-columns:1fr 1fr;gap:var(--kds-space-8)}
.admin-polish figure{margin:0}
.admin-polish img{display:block;width:100%;max-height:40vh;object-fit:contain;border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card)}
.admin-polish figcaption{font-size:.85em;text-align:center}
.admin-photo{display:block;width:100%;max-height:60vh;object-fit:contain;border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card)}
/* Photos on the left, the rotatable 3D proposal on the right (spec 2026-11-15-bauwerk-fotos-3d-plan-design.md, Teil C). */
.admin-look{display:grid;gap:var(--kds-space-8)}
.admin-look.has-3d{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:start}
.admin-shots{display:grid;gap:var(--kds-space-8)}
.admin-look:not(.has-3d) .admin-shots{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.admin-shot{margin:0}
.admin-shot figcaption{font-size:.85em;text-align:center}
.admin-shot .admin-actions{margin:4px 0}
.admin-shot-view{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}
.admin-look.has-3d .admin-photo{max-height:30vh}
.admin-3d{position:sticky;top:8px}
.admin-3d .admin-meta{margin:0 0 4px}
.admin-3d-stage{aspect-ratio:3/4;max-height:70vh;border-radius:var(--kds-radius-md);overflow:hidden;background:var(--kds-color-surface-card)}
.admin-3d-canvas{display:block;width:100%;height:100%;touch-action:none}
.admin-correction{display:grid;gap:4px;margin:10px 0;font-size:14px}
.admin-correction textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid var(--kds-color-line-default);border-radius:12px;font:inherit;background:var(--kds-color-surface-card);color:var(--kds-color-text-default)}
.admin-state[data-state="plan3d-sicher"]{background:var(--kds-color-band-gruen-bg)}
.admin-state[data-state="plan3d-unsicher"],.admin-state[data-state="plan3d-failed"]{background:var(--kds-color-band-rot-bg);color:var(--kds-color-band-rot-fg)}
.admin-detail h3{margin:20px 0 8px;font-size:18px}
.admin-meta{margin:10px 0;font-size:14px}
.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.admin-pieces{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.admin-piece{display:grid;grid-template-columns:1fr 44px 36px 44px;align-items:center;gap:6px;opacity:.6}
.admin-piece.has-count{opacity:1;font-weight:600}
.admin-piece output{text-align:center}
.admin-pieces button{min-height:40px;border:1px solid var(--kds-color-line-default);border-radius:10px;background:var(--kds-color-surface-card);font:inherit;font-size:20px;cursor:pointer}
.admin-plan img{display:block;width:100%;max-width:420px;border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card)}
.admin-warning{color:var(--red)}
.admin-note{min-height:1.4em}
.admin-planner-host{position:fixed;inset:0;z-index:40;background:var(--kds-color-surface-page)}
/* As on the child's plate (planner.css): the plate has the whole screen, its palette sits where the navigation was. */
.app-shell:has(#adminPlannerRoot:not([hidden])) .app-header,.app-shell:has(#adminPlannerRoot:not([hidden])) .bottom-nav{display:none}
/* .feed-list is display:flex!important (ui-reference.css), so hidden needs the same weight. */
#feedList[hidden],#feedPager[hidden],#adminList[hidden],#adminDetail[hidden],#adminLoginForm[hidden]{display:none!important}
.admin-plan-failed{position:fixed;left:16px;right:16px;top:90px;z-index:45;margin:0;padding:12px 14px;border-radius:12px;background:var(--kds-color-band-rot-bg);color:var(--kds-color-band-rot-fg)}
/* "Das bin ich" (Bande Teil 1): picture, name, rank, Meine Steine (Kai 15.11.), album, centred; nothing else. */
.me-view.is-active{display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 0 24px;text-align:center}
.me-avatar{width:148px;height:148px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;background:var(--kds-color-band-gelb-bg);box-shadow:var(--kds-shadow-ring);cursor:pointer}
.me-avatar span{font-size:92px;line-height:1}
.me-sammlung{width:min(100%,360px);border:0;padding:0 0 12px;border-radius:18px;overflow:hidden;background:var(--stage-tuerkis);color:var(--stage-tuerkis-fg);display:flex;flex-direction:column;gap:10px;cursor:pointer}
.me-sammlung img{width:100%;aspect-ratio:8/5;object-fit:cover;display:block}
.me-sammlung strong{font:var(--kds-type-h4)}
.me-name{display:flex;align-items:center;justify-content:center;gap:6px}
.me-name h1{margin:0;font:var(--kds-type-h3)}
.me-edit{flex:none;width:48px;height:48px;min-height:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--kds-color-surface-highlight);color:var(--kds-color-text-default);cursor:pointer}
.me-edit svg,.me-close svg,.me-ok svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.me-rank-badge{display:inline-flex;flex-direction:column;align-items:center;gap:4px}
.me-rank-badge svg{width:84px;height:84px}
.me-rank-badge circle{fill:var(--rank-bg)}
.me-rank-arch{fill:#fff}
.me-rank-badge small{font-size:13px;color:var(--kds-color-text-soft)}
.me-rank-badge[data-rank="lehrling"]{--rank-bg:var(--kds-color-band-gelb-bg)}
.me-rank-badge[data-rank="junggeselle"]{--rank-bg:var(--kds-color-band-orange-bg)}
.me-rank-badge[data-rank="geselle"]{--rank-bg:var(--kds-color-band-gruen-bg)}
.me-rank-badge[data-rank="meister"]{--rank-bg:var(--kds-color-band-blau-bg)}
.me-rank-badge[data-rank="baumeister"]{--rank-bg:var(--kds-color-band-rot-bg)}
.me-rank-badge[data-rank="architekt"]{--rank-bg:var(--kds-color-band-lila-bg)}
.me-rank-badge[data-rank="legende"]{--rank-bg:var(--kds-color-accent-signature)}
.me-album{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.me-album:empty{display:none}
.me-tile{position:relative;aspect-ratio:1;border:0;border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card);box-shadow:var(--kds-shadow-ring);padding:14px 10px;display:grid;place-items:center;cursor:pointer}
.me-tile svg{width:100%;height:100%}
.me-tile-nr{position:absolute;right:7px;bottom:5px;font-size:12px;color:var(--kds-color-text-soft)}
.st-gelb{fill:var(--kds-color-stone-gelb)}.st-orange{fill:var(--kds-color-stone-orange)}.st-gruen{fill:var(--kds-color-stone-gruen)}.st-R{fill:var(--kds-color-stone-rot)}
.me-tile polygon{stroke:var(--kds-color-surface-card);stroke-width:1.2;stroke-linejoin:round}
.me-dialog{width:min(100% - 24px,420px);max-height:calc(100dvh - 32px);overflow:auto;padding:52px 14px 16px;border:0;border-radius:var(--kds-radius-lg);background:var(--kds-color-surface-page);color:var(--kds-color-text-default)}
.me-dialog::backdrop{background:var(--kds-color-overlay-scrim)}
.me-close{position:absolute;top:8px;right:8px;width:44px;height:44px;min-height:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:var(--kds-color-surface-highlight);color:inherit;cursor:pointer}
.me-avatars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.me-avatar-choice{aspect-ratio:1;border:0;border-radius:50%;background:var(--kds-color-surface-card);font-size:44px;line-height:1;cursor:pointer}
.me-avatar-choice[aria-pressed="true"]{background:var(--kds-color-band-gelb-bg)}
.me-name-preview{min-height:30px;margin:0 0 10px;text-align:center;font:var(--kds-type-h4)}
.me-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:12px}
.me-word{min-height:52px;border:0;border-radius:var(--kds-radius-md);background:var(--kds-color-surface-card);color:inherit;font:inherit;font-weight:700;font-size:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 2px;cursor:pointer}
.me-word b{font-size:26px;line-height:1}
.me-word[aria-pressed="true"]{background:var(--kds-color-band-blau-bg);color:var(--kds-color-band-blau-fg)}
.me-ok{display:grid;place-items:center;width:100%;min-height:60px;border:0;border-radius:var(--kds-radius-md);background:var(--kds-color-band-gruen-bg);color:var(--kds-color-band-gruen-fg);cursor:pointer}
.me-ok svg{width:36px;height:36px}
.me-ok:disabled{background:var(--kds-color-action-disabled-bg);color:var(--kds-color-action-disabled-fg)}
.schablone-rank{position:absolute;left:50%;bottom:calc(env(safe-area-inset-bottom) + 40px);transform:translateX(-50%);padding:16px 22px;border-radius:var(--kds-radius-lg);background:var(--kds-color-surface-page)}
/* Kai's groups and ranks (admin, words allowed). */
.admin-switches{display:flex;justify-content:flex-end;gap:8px;margin:0 0 12px}
.admin-switches .admin-switch{margin:0}
.admin-switches:not(:has(.admin-switch:not([hidden]))){display:none}
.album-admin h2{margin:18px 0 8px;font:var(--kds-type-h4)}
.aa-cat,.aa-req{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}
.aa-cat input,.aa-req select,.aa-template select,.aa-req input{min-height:44px;padding:6px 10px;border:1px solid var(--kds-color-line-field);border-radius:10px;font:inherit;background:var(--kds-color-surface-page);color:inherit}
.aa-cat input[type="text"]{flex:1 1 100px;min-width:0}
.aa-req input{width:72px}
.aa-templates{display:grid;gap:6px}
.aa-template{display:grid;grid-template-columns:1fr minmax(0,46%);align-items:center;gap:8px;font-size:15px}
.aa-rank{margin:0 0 12px;padding:10px 12px;border:1px solid var(--kds-color-line-default);border-radius:var(--kds-radius-md)}
.aa-rank legend{font-weight:700;padding:0 4px}
.aa-hint{margin:4px 0 8px;font-size:13px;color:var(--kds-color-text-soft)}
.aa-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 4px}
.aa-groups{display:grid;gap:10px;margin:0 0 12px}
.aa-group{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:start;padding:10px;border:1px solid var(--kds-color-line-default);border-radius:var(--kds-radius-md)}
.aa-group .aa-cat{margin:0 0 6px}
.aa-group select{flex:1 1 150px;min-width:0;min-height:44px;padding:6px 10px;border:1px solid var(--kds-color-line-field);border-radius:10px;font:inherit;background:var(--kds-color-surface-page);color:inherit}
.aa-thumb{width:64px;height:64px;object-fit:cover;border-radius:10px;background:var(--app-glass-card)}
.aa-thumb-empty{display:block}
.aa-count{font-size:13px;color:var(--kds-color-text-soft)}
.aa-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.aa-filter,.aa-chip{min-height:44px;padding:6px 14px;border:1px solid var(--kds-color-line-default);border-radius:999px;background:var(--kds-color-surface-card);color:inherit;font:inherit;font-size:14px;cursor:pointer}
.aa-filter[aria-pressed="true"],.aa-chip[aria-pressed="true"]{background:var(--kds-color-band-blau-bg);color:var(--kds-color-band-blau-fg);border-color:transparent;font-weight:700}
.aa-builds{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.aa-build{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:start;padding:8px 0;border-top:1px solid var(--kds-color-line-default)}
.aa-build .aa-thumb{width:56px;height:56px}
.aa-build small{color:var(--kds-color-text-soft)}
.aa-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
/* Kai's groups: the picture leads, the name stays small (the children cannot read yet). */
.ux-topic.ux-group{padding-bottom:10px;min-height:0}
.ux-topic.ux-group img{height:clamp(120px,34vw,170px)}
.ux-topic.ux-group strong{font-size:13px;font-weight:600;line-height:1.2}
/* Several photos of one build (spec 2026-11-15-bauwerk-fotos-3d-plan-design.md, Teil A): a swipe strip, one dot per photo */
.photo-swipe{position:relative;width:100%;height:100%}
.photo-track{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none}
.photo-track::-webkit-scrollbar{display:none}
.photo-slide{position:relative;flex:0 0 100%;width:100%;height:100%;scroll-snap-align:center}
.photo-slide>img:first-child{display:block;width:100%;height:100%;object-fit:contain}
.photo-slide>img[hidden]{display:none}
.photo-slide.is-waiting>img:first-child{opacity:.55}
.photo-slide .photo-wait{position:absolute;top:10px;right:10px;width:40px;height:40px;padding:0;filter:none}
.photo-dots{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:center;gap:7px;pointer-events:none}
.photo-dot{width:9px;height:9px;border-radius:50%;background:rgba(28,25,19,.28)}
.photo-dot.is-on{background:var(--kds-color-text-default)}
.post-image-wrap>.photo-swipe .photo-dots{bottom:6px}
.ux-work-detail>.photo-swipe{min-height:55vh}
.ux-work-detail>.photo-swipe .photo-slide>img:first-child{max-height:68vh}
.bau-stage>.photo-swipe{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}
.bau-stage.is-plan .photo-slide:not(:first-child),.bau-stage.is-plan .photo-dots{display:none}
.bau-stage.is-plan .photo-track{overflow-x:hidden}
@media (orientation:landscape) and (max-height:520px){.bau-stage>.photo-swipe{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}}
.photo-add-button{background:var(--kds-color-action-primary-bg);color:#fff;border:0}
.photo-add-button .ai-icon,.photo-step-actions img{stroke:none}
button.is-busy{opacity:.55}
/* The step after a shared photo: Fertig or one more photo, the hint picture, the sentence small for the parents */
.detail-view:has(.photo-step) #closeDetail{display:none}
.photo-step{display:grid;gap:10px;justify-items:center;padding-top:4px}
.photo-step-shots{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.photo-step-shots img{width:48px;height:48px;object-fit:contain;border-radius:12px;background:var(--stage-tuerkis);padding:4px;box-sizing:border-box}
.photo-step-hint{display:block;width:auto;max-width:100%;height:24vh;max-height:200px}
.photo-step-text{margin:0;max-width:340px;font-size:13px;line-height:1.35;color:var(--kds-color-text-soft);text-align:center}
.photo-step-actions{display:flex;gap:18px;justify-content:center;width:100%}
.photo-step-actions button{flex:0 1 150px;min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;border-radius:24px;color:#fff;box-shadow:0 3px 10px rgba(28,25,19,.18)}
.photo-step-actions img{width:56px;height:56px}
.photo-step-actions small{font-size:12px;opacity:.9}
.photo-step-done{background:var(--kds-color-feedback-success)}
.photo-step-add{background:var(--kds-color-action-primary-bg)}
.photo-step-note{margin:0;min-height:1.2em;font-size:14px;text-align:center}
