/* BALEON App UI — 1:1 Komponenten aus iOS (BaleonColor, BaleonRadius) */

/* Tierbilder immer quadratisch */
.baleon-1x1 {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.baleon-1x1--round {
  border-radius: 50%;
}

/* Platzhalter bis phone-mockups.js rendert */
[data-phone]:empty {
  display: block;
  width: var(--phone-display-w, 272px);
  max-width: 100%;
  aspect-ratio: 390 / 844;
  margin-left: auto;
  margin-right: auto;
  background: var(--fog);
  border-radius: calc(var(--phone-display-w, 272px) * 52 / 390);
  box-shadow: var(--shadow-card);
  position: relative;
}
[data-phone]:empty::after {
  content: '';
  position: absolute;
  inset: 12% 8%;
  border-radius: calc(var(--phone-display-w, 272px) * 36 / 390);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(45, 75, 50, 0.08));
  animation: phone-placeholder-pulse 1.4s ease-in-out infinite;
}
@keyframes phone-placeholder-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.hero-device .iphone,
.hero-stage__phone .iphone {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 900px) {
  .iphone--hero-tilt {
    transform: none;
  }
}

/* —— iPhone-Rahmen (390×844, Radien skalieren mit --phone-w) —— */
.iphone {
  --phone-w: var(--phone-display-w, 272px);
  --phone-r-device: calc(var(--phone-w) * 52 / 390);
  --phone-r-screen: calc(var(--phone-w) * 48 / 390);
  --phone-bezel: max(1.5px, calc(var(--phone-w) * 2 / 390));
  width: var(--phone-w);
  max-width: 100%;
  flex-shrink: 0;
  position: relative;
  font-size: calc(var(--phone-w) * 14 / 390);
  padding: var(--phone-bezel);
  border-radius: var(--phone-r-device);
  background: linear-gradient(
    155deg,
    #8e8e93 0%,
    #48484a 12%,
    #2c2c2e 35%,
    #1c1c1e 55%,
    #0a0a0b 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 calc(var(--phone-w) * 0.2) calc(var(--phone-w) * 0.38) calc(var(--phone-w) * -0.11) rgba(33, 41, 38, 0.45),
    0 calc(var(--phone-w) * 0.07) calc(var(--phone-w) * 0.15) calc(var(--phone-w) * -0.05) rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.25s ease, outline-color 0.25s ease;
}
.iphone--highlight,
.baleon-demo-postbox.iphone--highlight,
.docs-demo.iphone--highlight {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 calc(var(--phone-w) * 0.2) calc(var(--phone-w) * 0.38) calc(var(--phone-w) * -0.11) rgba(33, 41, 38, 0.45),
    0 calc(var(--phone-w) * 0.07) calc(var(--phone-w) * 0.15) calc(var(--phone-w) * -0.05) rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(199, 148, 46, 0.35);
  outline: none;
}
.iphone--hero-tilt {
  transform: perspective(1200px) rotateY(-4deg) rotateX(1deg);
}
.iphone__screen {
  background: #000;
  border-radius: var(--phone-r-screen);
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  min-height: 0;
}
.iphone__status {
  position: absolute;
  top: calc(var(--phone-w) * 11 / 390);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}
.iphone__island {
  display: block;
  width: 28%;
  min-width: calc(var(--phone-w) * 68 / 390);
  max-width: calc(var(--phone-w) * 88 / 390);
  height: calc(var(--phone-w) * 21 / 390);
  margin: 0;
  background: #000;
  border-radius: calc(var(--phone-w) * 14 / 390);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.iphone__ui {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--fog);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--phone-w) * 16 / 390);
  box-sizing: border-box;
}
.iphone__ui > .ui-screen,
.iphone__ui > .ui-screen--discover-hero,
.iphone__ui > .ui-screen--discover-showcase,
.iphone__ui > .baleon-demo-mount {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
}

/* —— Discover —— */
.app-discover {
  background: var(--fog);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: var(--ink);
}
/* Discover 1:1 (neues Layout) */
.app-discover--phone {
  height: 100%;
  min-height: 0;
  padding-top: 30px;
  position: relative;
}
.discover-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 6px;
  flex-shrink: 0;
}
.discover-header__icon,
.discover-header__bell {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  padding: 0;
}
.discover-header__intent {
  margin-left: auto;
  background: var(--forest);
  color: #fff;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.discover-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.discover-header__modus {
  flex-shrink: 0;
  border: none;
  background: var(--white);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68em;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 4px rgba(33, 41, 38, 0.06);
}
.discover-header__bell {
  position: relative;
}
.discover-header__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fog);
}
.discover-tierart {
  margin: 0;
  padding: 2px 12px 3px;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.discover-species {
  display: flex;
  gap: 5px;
  padding: 0 10px 8px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.discover-species::-webkit-scrollbar { display: none; }
.discover-pill {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 600;
  border: none;
  background: rgba(33, 41, 38, 0.06);
  color: var(--ink-muted);
  font-family: inherit;
  cursor: default;
}
.discover-pill--active {
  background: var(--forest);
  color: #fff;
}
.app-discover--live .discover-pill {
  cursor: pointer;
  border: none;
}
.discover-likes {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 8px;
  padding: 9px 11px;
  background: var(--blush);
  border: none;
  border-radius: 14px;
  width: calc(100% - 20px);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.discover-likes__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--petal), #e8a0c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1em;
  flex-shrink: 0;
}
.discover-likes__text {
  flex: 1;
  min-width: 0;
}
.discover-likes__text strong {
  display: block;
  font-size: 0.82em;
  color: var(--rose-ink);
}
.discover-likes__text span {
  font-size: 0.68em;
  color: var(--ink-muted);
}
.discover-likes__chev {
  font-size: 1.2em;
  color: var(--rose-ink);
  opacity: 0.7;
}
.discover-name-block {
  text-align: center;
  padding: 0 10px 6px;
  flex-shrink: 0;
}
.discover-name {
  font-family: var(--font-serif);
  font-size: 1.55em;
  font-weight: 700;
  margin: 0;
  display: inline;
  line-height: 1.1;
}
.discover-species-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--rose-ink);
  font-family: var(--font-sans);
  font-size: 0.68em;
  font-weight: 600;
}
.discover-meta {
  margin: 3px 0 0;
  font-size: 0.72em;
  color: var(--ink-muted);
}
.discover-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.discover-scroll::-webkit-scrollbar { display: none; }
.discover-card {
  margin: 0 10px 6px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.discover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.discover-card__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}
.discover-action {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-family: inherit;
}
.discover-action--like {
  color: var(--rose-ink);
  background: var(--blush);
}
.discover-action--pass {
  color: var(--ink);
}
.discover-card__boost {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  color: var(--rose-ink);
}
.discover-section-label {
  text-align: center;
  margin: 4px 0 6px;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.discover-profile-card {
  margin: 0 10px 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  box-shadow: none;
  border: none;
}
.discover-profile-card__pills {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.discover-profile-pill {
  font-size: 0.68em;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--fog);
  color: var(--forest);
}
.discover-profile-pill--intent {
  background: rgba(45, 75, 50, 0.12);
}
.discover-profile-card__loc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 0 6px;
  font-size: 0.68em;
  color: var(--ink-soft);
}
.discover-profile-card__bio {
  margin: 0;
  font-size: 0.68em;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.discover-tabbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 4px 10px 8px;
  padding: 8px 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.discover-tab {
  font-size: 1em;
  opacity: 0.4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.app-discover--live .discover-tab:not(.discover-tab--on):hover {
  opacity: 0.65;
}
.discover-tab--on {
  opacity: 1;
  background: rgba(45, 75, 50, 0.12);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.discover-tab--profile {
  opacity: 1;
  background: rgba(45, 75, 50, 0.12);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  box-shadow: 0 0 0 2px rgba(199, 148, 46, 0.35);
}
.discover-tab--badge small {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--forest);
  color: #fff;
  font-size: 8px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-live-badge--phone {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(38%, -42%);
  z-index: 25;
  margin: 0;
  font-size: 9px;
  padding: 4px 9px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(33, 41, 38, 0.12);
}
.app-discover--live .discover-card__actions,
.app-discover--live .discover-header__icon,
.app-discover--live .discover-header__modus,
.app-discover--live .discover-header__bell,
.app-discover--live .discover-likes,
.app-discover--live .discover-pill,
.app-discover--live .discover-tab {
  pointer-events: auto;
}

/* Hero-Anker: nur Connector-Linien, keine Outline-Ringe */

/* In-Phone: kompakt, nichts am Rahmen abschneiden */
.iphone .app-discover--phone {
  padding-top: 26px;
}
.iphone .discover-header {
  padding: 0 8px 3px;
}
.iphone .discover-header__icon,
.iphone .discover-header__bell {
  width: 30px;
  height: 30px;
}
.iphone .discover-tierart {
  margin: 0 8px 2px;
  font-size: 0.58em;
}
.iphone .discover-species {
  margin: 0 8px 4px;
  gap: 4px;
}
.iphone .discover-pill {
  padding: 4px 8px;
  font-size: 0.64em;
}
.iphone .discover-likes {
  margin: 0 8px 4px;
  padding: 6px 8px;
}
.iphone .discover-likes__text strong {
  font-size: 0.72em;
}
.iphone .discover-likes__text span {
  font-size: 0.62em;
}
.iphone .discover-name-block {
  padding: 0 8px;
  margin-bottom: 2px;
}
.iphone .discover-name {
  font-size: 1.15em;
}
.iphone .discover-meta {
  font-size: 0.66em;
  margin-top: 2px;
}
.iphone .discover-card {
  margin: 0 8px 4px;
  border-radius: 18px;
}
.iphone .discover-action {
  width: 34px;
  height: 34px;
}
.iphone .discover-section-label {
  margin: 2px 0 4px;
  font-size: 0.58em;
}
.iphone .discover-profile-card {
  margin: 0 8px 4px;
  padding: 6px 10px;
}
.iphone .discover-profile-card__bio {
  font-size: 0.64em;
  -webkit-line-clamp: 2;
}
.iphone .discover-tabbar {
  margin: 2px 8px 0;
  padding: 5px 4px;
  border-radius: 18px;
}
.iphone .ui-screen--profile {
  padding: 28px 10px 2px;
}
.iphone .ui-profile-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
}
.iphone .ui-profile-avatar__photo {
  width: 100%;
  height: 100%;
}
.iphone .ui-profile-avatar__paw {
  width: 34px;
  height: 34px;
}
.iphone .ui-profile-name {
  font-size: 0.95em;
}
.iphone .ui-plan-pill {
  font-size: 0.65em;
  padding: 3px 8px;
}
.iphone .ui-profile-verify {
  font-size: 0.68em;
  margin-bottom: 6px;
}
.iphone .ui-level-card {
  padding: 7px;
  margin-bottom: 6px;
  gap: 8px;
}
.iphone .ui-level-ring {
  width: 40px;
  height: 40px;
  border-width: 3px;
  font-size: 0.9em;
}
.iphone .ui-level-card strong {
  font-size: 0.82em;
}
.iphone .ui-level-card p {
  font-size: 0.68em;
  margin: 2px 0 4px;
}
.iphone .ui-level-card small {
  font-size: 0.62em;
}
.iphone .ui-profile-tabs {
  font-size: 0.68em;
  margin-bottom: 6px;
  gap: 4px;
}
.iphone .ui-menu-row {
  padding: 7px 10px;
  margin-bottom: 0;
}
.iphone .ui-menu-row strong {
  font-size: 0.78em;
}
.iphone .ui-menu-row span {
  font-size: 0.65em;
}
.iphone .app-match-card--phone .app-match-card__msg {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.iphone .baleon-demo-postbox--phone .ui-chat-list {
  overflow: visible;
  padding: 0 6px;
}

.app-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px 10px;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  margin-top: auto;
  flex-shrink: 0;
  font-size: 1em;
  opacity: 0.45;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}
.app-tabbar span.on {
  opacity: 1;
  background: rgba(45, 75, 50, 0.12);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-tabbar--mini {
  margin: 0;
  border-radius: 0;
}
.app-discover__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: var(--fog);
}
.app-discover__toolbar button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-discover__intent {
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--radius-chip);
}
.app-discover__species-label {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.app-discover__species {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
}
.app-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: rgba(33, 41, 38, 0.06);
  color: var(--ink-muted);
}
.app-pill--active {
  background: var(--forest);
  color: #fff;
}
.app-discover__likes {
  margin: 0 12px;
  padding: 12px 14px;
  background: var(--blush);
  border-radius: var(--radius-button);
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-discover__likes-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--petal), #e8a0c8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.app-discover__likes strong {
  display: block;
  font-size: 14px;
  color: var(--rose-ink);
}
.app-discover__likes span {
  font-size: 12px;
  color: var(--ink-muted);
}
.app-discover__profile-head {
  text-align: center;
  padding: 0 16px 8px;
}
.app-discover__profile-head h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  display: inline;
}
.app-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  background: var(--blush);
  color: var(--rose-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}
.app-discover__sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}
.app-discover__card {
  margin: 0 12px 16px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.app-discover__card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.app-discover__card-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}
.app-discover__card-actions span {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-card);
}
.app-discover__card-actions .like {
  color: var(--rose-ink);
}
.app-discover__section-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
  padding: 12px 0 4px;
}
.app-discover__facts {
  margin: 0 12px 16px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.app-discover__facts p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.45;
}
.app-fact-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.app-fact-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-chip);
  background: var(--fog);
  color: var(--forest);
}
.app-fact-pill--adopt {
  background: rgba(45, 75, 50, 0.12);
}
.app-discover__location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  text-align: center;
  padding: 8px 16px 20px;
  font-size: 12px;
  color: var(--ink-soft);
}
.app-discover__location svg {
  flex-shrink: 0;
  color: var(--forest);
}

/* —— Intent cards (Onboarding) —— */
.app-intent-grid {
  display: grid;
  gap: 16px;
  max-width: 360px;
  margin: 0 auto;
}
.app-intent-grid--row {
  max-width: 720px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .app-intent-grid--row {
    grid-template-columns: 1fr;
  }
}
.app-intent-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}
.app-intent-card--active {
  background: var(--gradient-app-icon);
  border: none;
  box-shadow: 0 16px 28px rgba(33, 41, 38, 0.14);
  color: #fff;
}
.app-intent-card--active p,
.app-intent-card--active h3 {
  color: rgba(255, 255, 255, 0.92);
}
.app-intent-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.app-intent-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.app-intent-card--active p {
  color: rgba(255, 255, 255, 0.72);
}
.app-intent-card--active h3 {
  color: #fff;
}
.app-intent-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(45, 75, 50, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-intent-card[data-mode="adoption"] .app-intent-card__icon {
  color: var(--forest);
}
.app-intent-card[data-mode="breeding"] .app-intent-card__icon {
  color: var(--moss);
}
.app-intent-card__icon svg { display: block; }
.app-intent-card--active .app-intent-card__icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.app-intent-card__check {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(33, 41, 38, 0.28);
  line-height: 0;
}
.app-intent-card--active .app-intent-card__check {
  color: #fff;
}

/* —— Match inbox —— */
.app-inbox {
  background: var(--fog);
  min-height: 400px;
  padding: 16px;
}
.app-inbox__header {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.app-inbox__header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}
.app-inbox__header-icon svg {
  display: block;
}
.app-inbox__header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.app-inbox__header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}
.chat-showcase__aside .app-inbox__header--panel {
  margin-bottom: 12px;
}
.chat-showcase__aside .app-inbox__header--panel h3 {
  font-size: 16px;
}
.app-seg-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.app-seg-3 button {
  border: none;
  border-radius: 14px;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  cursor: default;
}
.app-seg-3 button.active {
  background: var(--forest);
  color: #fff;
}
.app-seg-3 .seg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.app-seg-3 .seg-icon svg {
  display: block;
}
.app-match-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-subtle);
}
.app-match-card__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.app-match-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
}
.app-match-card__meta {
  flex: 1;
  min-width: 0;
}
.app-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.app-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.app-badge--breed {
  background: var(--forest);
  color: #fff;
}
.app-badge--adopt {
  background: rgba(45, 75, 50, 0.12);
  color: var(--forest);
}
.app-badge--muted {
  background: var(--fog);
  color: var(--ink-muted);
}
.app-badge--ok {
  background: rgba(45, 75, 50, 0.15);
  color: var(--forest);
}
.app-badge--sent {
  background: rgba(242, 189, 209, 0.35);
  color: var(--rose-ink);
}
.app-match-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}
.app-match-card time {
  font-size: 12px;
  color: var(--ink-soft);
}
.app-match-card__msg {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.app-match-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.app-btn {
  border: none;
  border-radius: var(--radius-button);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  cursor: default;
}
.app-btn--ghost {
  background: var(--fog);
  color: var(--ink);
}
.app-btn--primary {
  background: var(--forest);
  color: #fff;
}
.app-btn--chat {
  background: var(--fog);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.app-btn-row {
  display: flex;
  gap: 8px;
}
.app-btn-row .app-btn--primary {
  flex: 1;
}
.app-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--white);
  font-size: 16px;
  color: var(--rose-ink);
  flex-shrink: 0;
}

/* —— Premium plans —— */
.app-plans {
  display: grid;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}
.app-plan {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 18px 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
  position: relative;
}
.app-plan--plus {
  border: 2px solid rgba(45, 75, 50, 0.45);
}
.app-plan--gold {
  border: 2px solid rgba(199, 148, 46, 0.55);
}
.app-plan__badge {
  position: absolute;
  top: -11px;
  right: 14px;
  padding: 5px 10px;
  border-radius: var(--radius-chip);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}
.app-plan__badge--popular {
  background: var(--forest);
}
.app-plan__badge--gold {
  background: var(--gold);
}
.app-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.app-plan__head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.app-plan__price {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
}
.app-plan--gold .app-plan__price {
  color: var(--gold);
}
.app-plan__tagline {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.app-plan__features {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-plan__features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 13px;
  color: rgba(33, 41, 38, 0.78);
  line-height: 1.35;
}
.app-plan__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--forest);
}
.app-plan--gold .app-plan__features li::before {
  color: var(--gold);
}
.app-plan__cta {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
}
.app-plan--gold .app-plan__cta {
  color: var(--gold);
}

/* —— Filter panel —— */
.app-filter {
  background: #f9f9f9;
  border-radius: var(--radius-card);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
  font-size: 14px;
}
.app-filter__head {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.app-filter__head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.app-premium-pill {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--premium-bg, #f2e8d5);
  color: var(--premium-ink, #b89562);
}
.app-filter > p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}
.app-seg-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 6px;
  display: block;
}
.app-seg-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}
.app-seg-row button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  font-family: inherit;
}
.app-seg-row button.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.app-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}
.app-toggle-row:last-of-type {
  border-bottom: none;
}
.app-switch {
  width: 50px;
  height: 30px;
  border-radius: 15px;
  background: #d1d1d6;
  position: relative;
  flex-shrink: 0;
}
.app-switch.on {
  background: var(--forest);
}
.app-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}
.app-switch.on::after {
  transform: translateX(20px);
}
.app-filter__reset {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 600;
  font-size: 14px;
  border: none;
  background: none;
  font-family: inherit;
  cursor: default;
  padding: 0;
}

/* —— Profile card —— */
.app-profile {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}
.app-profile__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.app-profile__avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.app-profile__avatar--paw img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.app-profile__avatar:not(.app-profile__avatar--paw) img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.app-profile__verify {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.app-profile h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}
.app-profile__sub {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-muted);
}
.app-profile__stats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.app-profile__stats span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-chip);
  background: var(--fog);
  color: var(--forest);
}
.app-profile__bio {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* —— Phone-Showcase: immer max. 3 pro Zeile, einheitliche Größe & Abstand —— */
.app-showcase-grid {
  --phone-grid-gap-x: 2.5rem;
  --phone-grid-gap-y: 3rem;
  display: grid;
  grid-template-columns: repeat(3, var(--phone-display-w, 272px));
  column-gap: var(--phone-grid-gap-x);
  row-gap: var(--phone-grid-gap-y);
  justify-content: center;
  justify-items: center;
  align-items: start;
  margin-top: var(--space-xl);
}
.app-showcase-grid--follow {
  margin-top: var(--phone-grid-gap-y);
}
.app-showcase-item {
  width: var(--phone-display-w, 272px);
  max-width: 100%;
}
.app-showcase-item figcaption {
  margin-top: var(--space-md);
  text-align: center;
  font-size: var(--text-subhead);
  color: var(--ink-muted);
  max-width: var(--phone-display-w, 272px);
}
.app-showcase-item figcaption strong {
  display: block;
  color: var(--ink);
  font-size: var(--text-headline);
  margin-bottom: 4px;
}
.app-showcase-item .iphone {
  margin: 0 auto;
  --phone-w: var(--phone-display-w, 272px);
}

/* —— Tab-aligned vertical app journey (statt Phone-Grid) —— */
.app-tab-trail {
  text-align: center;
  max-width: 38rem;
  margin: var(--space-lg) auto var(--space-xl);
  font-size: var(--text-subhead);
  color: var(--ink-muted);
  line-height: 1.55;
}
.app-tab-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4rem);
  max-width: calc(var(--phone-display-w, 272px) + 3rem);
  margin-left: auto;
  margin-right: auto;
}
.app-tab-flow--section {
  margin-top: var(--space-xl);
}
.app-tab-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.app-tab-section__head {
  max-width: 28rem;
}
.app-tab-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.35rem;
}
.app-tab-section__head h3 {
  margin: 0 0 0.35rem;
  font-size: var(--text-title3, 1.25rem);
  color: var(--ink);
}
.app-tab-section__head p {
  margin: 0;
  font-size: var(--text-subhead);
  color: var(--ink-muted);
  line-height: 1.45;
}
.app-tab-section__phone {
  margin: 0;
  width: 100%;
}
.app-tab-section__phone .iphone,
.app-tab-section__phone [data-phone]:empty {
  margin-left: auto;
  margin-right: auto;
}
.app-tab-section__caption {
  margin: 0;
  font-size: var(--text-subhead);
  color: var(--ink-muted);
}
.app-tab-section__caption strong {
  color: var(--ink);
}
.section--tab-app {
  scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}
[data-tab-section] {
  scroll-margin-top: calc(var(--header-h, 72px) + 12px);
}
.section--focused,
.app-tab-section.section--focused,
.demo-playground.section--focused {
  outline: 2px solid rgba(45, 75, 50, 0.28);
  outline-offset: 10px;
  border-radius: var(--radius-card, 16px);
  transition: outline-color 0.25s ease;
}
.demo-playground__grid--stack {
  grid-template-columns: 1fr;
  justify-items: center;
}

/* —— Matches: featured live demo (panel + phone) —— */
#matches.section--alt {
  background: linear-gradient(180deg, var(--fog) 0%, rgba(248, 246, 244, 0.35) 100%);
}
.demo-playground--matches {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.demo-playground--matches .demo-playground__shell {
  border-radius: calc(var(--radius-card) + 8px);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 246, 244, 0.9) 48%, rgba(242, 230, 221, 0.28) 100%);
  border: 1px solid rgba(45, 75, 50, 0.1);
  box-shadow: 0 22px 52px rgba(33, 41, 38, 0.07);
}
.demo-playground__top {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}
.demo-playground--matches .demo-playground__lead {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  line-height: 1.55;
}
.demo-playground__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}
.demo-playground__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(45, 75, 50, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--forest);
  box-shadow: 0 2px 8px rgba(33, 41, 38, 0.04);
}
.demo-playground__stats svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.demo-playground__grid--matches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  justify-content: center;
  position: relative;
}
.demo-playground__grid--matches::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(45, 75, 50, 0.14), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}
.demo-playground--matches .demo-playground__panel {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  width: 100%;
}
.demo-playground--matches .baleon-demo-postbox:not(.baleon-demo-postbox--phone) {
  min-height: 500px;
  padding: clamp(1.1rem, 2vw, 1.35rem) clamp(1.1rem, 2vw, 1.35rem) 0;
  background: #fff;
  border: 1px solid rgba(45, 75, 50, 0.1);
  box-shadow: 0 10px 28px rgba(33, 41, 38, 0.07);
}
.demo-playground--matches .baleon-demo-postbox:not(.baleon-demo-postbox--phone) .app-inbox__header {
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(45, 75, 50, 0.08);
}
.demo-playground--matches .baleon-demo-postbox:not(.baleon-demo-postbox--phone) .app-inbox__header h3 {
  font-size: 1.125rem;
}
.demo-playground--matches .baleon-demo-postbox:not(.baleon-demo-postbox--phone) .app-seg-3--interactive {
  margin-bottom: 1rem;
}
.demo-playground--matches .app-match-card {
  border-color: rgba(45, 75, 50, 0.08);
  box-shadow: 0 4px 16px rgba(33, 41, 38, 0.05);
}
.demo-playground__phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  justify-self: center;
}
.demo-playground__phone-label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.demo-playground__phone-wrap .iphone {
  filter: drop-shadow(0 18px 36px rgba(33, 41, 38, 0.14));
}
@media (max-width: 960px) {
  .demo-playground__grid--matches {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .demo-playground__grid--matches::before {
    display: none;
  }
  .demo-playground__phone-wrap {
    order: -1;
  }
  .demo-playground--matches .baleon-demo-postbox:not(.baleon-demo-postbox--phone) {
    min-height: 440px;
  }
}
@media (min-width: 1100px) {
  .demo-playground__grid--matches {
    grid-template-columns: minmax(380px, 1fr) minmax(260px, 280px);
    max-width: 980px;
    margin-inline: auto;
  }
}

/* Preview grid — max. 3 phones per row, centered incomplete rows */
.app-tab-flow--strip {
  max-width: 100%;
  width: 100%;
  --strip-gap: clamp(1.25rem, 3vw, 2.5rem);
  --strip-row-gap: clamp(2rem, 4vw, 3rem);
}
.app-tab-section--compact .app-tab-section__head h3 {
  font-size: 0.9375rem;
  margin: 0;
}
.app-tab-section--compact .app-tab-section__head p,
.app-tab-section--compact .app-tab-section__eyebrow {
  display: none;
}
@media (min-width: 640px) {
  .app-tab-flow--strip {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    column-gap: var(--strip-gap);
    row-gap: var(--strip-row-gap);
  }
  .app-tab-flow--strip.app-tab-flow {
    max-width: min(
      100%,
      calc(3 * 240px + 2 * var(--strip-gap))
    );
    margin-inline: auto;
  }
  .app-tab-section--compact {
    flex: 0 0 min(240px, calc((100% - 2 * var(--strip-gap)) / 3));
    width: min(240px, calc((100% - 2 * var(--strip-gap)) / 3));
    max-width: calc((100% - 2 * var(--strip-gap)) / 3);
    --phone-display-w: min(240px, calc((100% - 2 * var(--strip-gap)) / 3));
  }
}
@media (min-width: 1024px) {
  .app-tab-flow--strip.app-tab-flow {
    max-width: calc(3 * 240px + 2 * var(--strip-gap));
  }
  .app-tab-section--compact {
    flex-basis: 240px;
    width: 240px;
    max-width: 240px;
    --phone-display-w: 240px;
  }
}

/* —— Phone UI screens —— */
.ui-icon-btn {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
  flex-shrink: 0;
}
.ui-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--fog);
  padding: 32px 0 8px;
}
.ui-screen--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ui-screen-header,
.ui-screen .ui-screen-header {
  display: flex;
  gap: 8px;
  padding: 10px 12px 8px;
  align-items: flex-start;
  flex-shrink: 0;
}
.ui-heart {
  color: var(--forest);
  display: flex;
  align-items: center;
  margin-top: 2px;
  line-height: 0;
}
.ui-screen-header h3 {
  margin: 0;
  font-family: var(--font-rounded);
  font-size: 1em;
  font-weight: 700;
}
.ui-screen-header p {
  margin: 2px 0 0;
  font-size: 0.78em;
  color: var(--ink-muted);
  line-height: 1.35;
}
.ui-section-label {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 12px 6px;
  flex-shrink: 0;
}
.app-seg-3--phone {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0 10px 8px;
  flex-shrink: 0;
}
.app-seg-3--phone .app-seg-3__btn {
  border: none;
  border-radius: 12px;
  padding: 8px 4px;
  font-size: 0.68em;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
}
.app-seg-3--phone .app-seg-3__btn.active {
  background: var(--forest);
  color: #fff;
}
.app-match-card--phone {
  margin: 0 10px 8px;
  padding: 10px;
  flex-shrink: 0;
}
.app-match-card--phone .app-match-card__thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.app-match-card--phone h4 {
  font-size: 0.85em;
}
.app-match-card--phone .app-match-card__msg {
  font-size: 0.72em;
  margin-bottom: 6px;
  line-height: 1.35;
}
.app-match-card--phone .app-match-card__meta time {
  font-size: 0.65em;
}
.app-match-card--phone .app-btn {
  padding: 8px;
  font-size: 0.78em;
}
.ui-link-btn {
  display: block;
  text-align: center;
  font-size: 0.75em;
  font-weight: 600;
  color: var(--rose-ink);
  margin-top: 6px;
}
.ui-chat-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.ui-chat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.ui-chat-row__av {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fog);
  padding: 7px;
  flex-shrink: 0;
}
.ui-chat-row__av img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ui-chat-row__av:has(.baleon-1x1) {
  padding: 0;
  background: transparent;
}
.ui-chat-row__av img.baleon-1x1 {
  object-fit: cover;
}
.ui-chat-row__badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1.5px solid var(--white);
}
.ui-chat-row__badge--green {
  background: var(--forest);
}
.ui-chat-row__badge--gold {
  background: var(--gold);
}
.ui-chat-row__text {
  flex: 1;
  min-width: 0;
}
.ui-chat-row__text strong {
  display: block;
  font-size: 0.85em;
}
.ui-chat-row__text span {
  display: block;
  font-size: 0.75em;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ui-chat-row__chev {
  color: var(--ink-soft);
}

/* Profile screen */
.ui-screen--profile {
  background: var(--white);
  align-items: center;
  text-align: center;
  padding: 32px 12px 10px;
  overflow-y: auto;
  min-height: 0;
}
.ui-screen--profile .ui-level-card {
  margin-bottom: 8px;
  padding: 8px;
}
.ui-screen--profile .ui-profile-avatar {
  width: 64px;
  height: 64px;
  margin: 2px auto 6px;
}
.ui-screen--profile .ui-menu-row {
  margin-bottom: 4px;
}
.ui-profile-top {
  display: flex;
  gap: 8px;
  align-self: flex-end;
  width: 100%;
  justify-content: flex-end;
  flex-shrink: 0;
}
.ui-badge-num {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--forest);
  color: #fff;
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 8px;
  font-weight: 700;
}
.ui-icon-btn {
  position: relative;
}
.ui-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--forest);
  margin: 4px auto 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ui-profile-avatar--photo {
  padding: 0;
  background: transparent;
  overflow: visible;
  border: none;
  width: auto;
  height: auto;
}
.ui-profile-avatar--app {
  background: transparent;
  padding: 0;
}
.ui-profile-avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.ui-profile-avatar--app .ui-profile-avatar__photo {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(199, 148, 46, 0.45);
}
.ui-profile-avatar__paw {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.ui-profile-avatar__edit {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.ui-profile-avatar__gold {
  display: none;
}
.ui-profile-name {
  margin: 0;
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.ui-plan-pill {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  margin: 4px 0;
}
.ui-plan-pill--gold {
  background: var(--gold-light);
  color: var(--gold-ink);
}
.ui-profile-verify {
  margin: 0 0 10px;
  font-size: 0.75em;
  color: var(--gold-ink);
  font-weight: 600;
}
.ui-level-card {
  display: flex;
  gap: 10px;
  text-align: left;
  background: var(--fog);
  border-radius: var(--radius-card);
  padding: 10px;
  width: 100%;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.ui-level-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--forest);
  flex-shrink: 0;
}
.ui-level-card strong {
  font-size: 0.9em;
}
.ui-reward-pill {
  font-size: 0.65em;
  background: var(--gold-light);
  color: var(--gold-ink);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}
.ui-level-card p {
  margin: 2px 0;
  font-size: 0.72em;
  color: var(--ink-muted);
}
.ui-xp-bar {
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  margin: 6px 0 4px;
  overflow: hidden;
}
.ui-xp-bar span {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: 3px;
}
.ui-level-card small {
  font-size: 0.65em;
  color: var(--ink-soft);
}
.ui-profile-tabs {
  display: flex;
  gap: 12px;
  font-size: 0.75em;
  font-weight: 600;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.ui-profile-tabs .on {
  color: var(--forest);
  border-bottom: 2px solid var(--forest);
  padding-bottom: 4px;
}
.ui-profile-tabs span:not(.on) {
  color: var(--ink-soft);
}
.ui-menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--fog);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  text-align: left;
  flex-shrink: 0;
}
.ui-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 75, 50, 0.12);
}
.ui-menu-icon--gold {
  background: var(--gold-light);
}
.ui-menu-row div {
  flex: 1;
}
.ui-menu-row strong {
  display: block;
  font-size: 0.85em;
}
.ui-menu-row span {
  font-size: 0.72em;
  color: var(--ink-muted);
}

/* Statische App-Screens (1:1, kein Live-Demo) */
.ui-screen--static {
  pointer-events: none;
  user-select: none;
}
.ui-screen--discover-hero,
.ui-screen--discover-showcase.ui-screen--static {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ui-screen--discover-hero [data-demo="discover-phone"],
.ui-screen--discover-hero .app-discover--phone,
.ui-screen--discover-showcase.ui-screen--static .app-discover--phone {
  height: 100%;
  min-height: 0;
  flex: 1;
}
.ui-screen--discover-hero .app-discover--phone {
  padding-top: 26px;
}
.ui-screen--discover-showcase.ui-screen--static .discover-name-block {
  margin-bottom: 2px;
}
.ui-screen--discover-showcase.ui-screen--static .discover-likes {
  margin-bottom: 4px;
}
.ui-screen--discover-showcase.ui-screen--static,
.ui-screen--discover-showcase.ui-screen--static * {
  pointer-events: none;
}

/* Login — BaleonLoginBackground (1:1 App) */
.ui-screen--login.ui-screen--demo {
  padding: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    var(--sand) 0%,
    #ebe4dc 32%,
    #c8d4cb 68%,
    #6d8f76 100%
  );
  position: relative;
  overflow: hidden;
}
.ui-login-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 14px 36px;
  flex: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.ui-login-card {
  background: var(--white);
  border-radius: 28px;
  padding: 20px 16px 18px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 18px 42px rgba(33, 41, 38, 0.14);
  border: none;
}
.ui-logo-mark {
  margin-bottom: 14px;
}
.ui-logo-mark__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(45, 75, 50, 0.18);
}
.ui-logo-mark__paw {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  object-fit: contain;
}
.ui-logo-mark__word {
  font-family: var(--font-serif);
  color: var(--forest);
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
}
.ui-logo-mark__rule {
  display: block;
  height: 1px;
  max-width: 78%;
  margin: 0 auto;
  background: rgba(45, 75, 50, 0.55);
}
.ui-login-welcome {
  font-weight: 600;
  margin: 0 0 14px;
  font-size: 0.92em;
  color: rgba(33, 41, 38, 0.9);
}
.ui-field--app {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 10px;
  text-align: left;
}
.ui-field__icon,
.ui-field__eye {
  color: var(--forest);
  flex-shrink: 0;
}
.ui-field__label {
  flex: 1;
  font-size: 0.82em;
  color: var(--ink-soft);
}
.ui-field__eye {
  margin-left: auto;
  opacity: 0.55;
}
.ui-btn-primary {
  width: 100%;
  border: none;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-button);
  font-size: 0.88em;
  font-family: inherit;
  box-shadow: var(--shadow-btn);
}
.ui-btn-primary--app {
  text-align: center;
  margin-top: 2px;
  cursor: pointer;
}
.ui-field--app {
  cursor: pointer;
}
.ui-field__eye {
  cursor: pointer;
}
.ui-field__eye.is-on {
  opacity: 1;
  color: var(--forest);
}
.ui-login-forgot,
.ui-login-register {
  cursor: pointer;
}
.ui-login-forgot {
  margin: 12px 0 8px;
  font-size: 0.76em;
  font-weight: 500;
  color: rgba(33, 41, 38, 0.75);
}
.ui-login-register {
  margin: 0;
  font-size: 0.78em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  color: rgba(33, 41, 38, 0.85);
}
.ui-login-register__chev {
  font-size: 1.1em;
  line-height: 1;
}

/* Intent — DiscoverModeSelection (Gate) */
.ui-screen--intent.ui-screen--demo {
  background: var(--fog);
  padding: 32px 14px 14px;
  justify-content: flex-start;
  overflow-y: auto;
}
.app-mode-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.app-mode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 12px;
  min-height: 108px;
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.app-mode-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(33, 41, 38, 0.08);
}
.app-mode-card:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.app-mode-card--on {
  background: var(--gradient-app-icon);
  border: none;
  box-shadow: 0 16px 28px rgba(33, 41, 38, 0.14);
}
.app-mode-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.app-mode-card__icon-wrap--adoption,
.app-mode-card__icon-wrap--breeding {
  background: rgba(45, 75, 50, 0.1);
  color: var(--forest);
}
.app-mode-card--on .app-mode-card__icon-wrap {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.app-mode-card__title {
  display: block;
  margin: 0 0 6px;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.app-mode-card--on .app-mode-card__title {
  color: #fff;
}
.app-mode-card__body {
  display: block;
  margin: 0 0 8px;
  font-size: 0.72em;
  line-height: 1.4;
  color: var(--ink-muted);
  max-width: 92%;
}
.app-mode-card--on .app-mode-card__body {
  color: rgba(255, 255, 255, 0.9);
}
.app-mode-card__footer {
  color: #fff;
  line-height: 0;
}
.app-mode-card__footer--muted {
  color: rgba(33, 41, 38, 0.28);
}

/* Filter — DiscoverSettings advancedFiltersCard */
.ui-screen--filter.ui-screen--demo {
  background: var(--fog);
  padding: 32px 14px 14px;
  overflow-y: auto;
}
.ui-screen--filter.ui-screen--demo .app-seg-row span,
.ui-screen--filter.ui-screen--demo .app-toggle-row,
.ui-screen--filter.ui-screen--demo .app-filter-screen__reset {
  cursor: pointer;
}
.app-filter-screen__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.app-filter-screen__head h3 {
  margin: 0;
  flex: 1;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--ink);
}
.app-filter-screen__menu {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.app-filter-screen__lead {
  margin: 0 0 10px;
  font-size: 0.72em;
  line-height: 1.4;
  color: var(--ink-muted);
}
.ui-screen--filter .app-seg-label {
  font-size: 0.68em;
  margin-bottom: 5px;
}
.app-seg-row--static {
  margin-bottom: 10px;
}
.app-seg-row--static span {
  pointer-events: none;
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  border-radius: 10px;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--ink-muted);
}
.app-seg-row--static span.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.ui-screen--filter .app-toggle-row {
  font-size: 0.78em;
  padding: 9px 0;
}
.ui-screen--filter .app-switch {
  transform: scale(0.88);
  transform-origin: center right;
}
.app-filter-screen__reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--forest);
}

/* Signup */
.ui-screen--signup {
  background: var(--fog);
}
.ui-nav-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 0.9em;
  flex-shrink: 0;
}
.ui-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 1.2em;
}
.ui-signup-card {
  margin: 0 10px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 14px 12px;
  box-shadow: var(--shadow);
}
.ui-signup-card h3 {
  margin: 0 0 12px;
  font-size: 1em;
}
.ui-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72em;
  margin: 8px 0;
  color: var(--ink-muted);
}
.ui-check-box {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.ui-check-box.on {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: inset 0 0 0 2px var(--white);
}
.ui-screen--signup.ui-screen--demo .ui-check,
.ui-screen--signup.ui-screen--demo .ui-field,
.ui-screen--signup.ui-screen--demo .ui-back,
.ui-screen--signup.ui-screen--demo .ui-btn-primary {
  cursor: pointer;
}
.ui-screen--signup.ui-screen--demo .ui-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 14px;
  font: inherit;
  font-family: inherit;
  text-align: left;
  color: var(--ink-muted);
}
.ui-screen--signup.ui-screen--demo .ui-field--filled {
  color: var(--ink);
  border-color: rgba(45, 75, 50, 0.25);
}
.ui-screen--signup.ui-screen--demo .ui-field__emoji {
  display: inline-flex;
  color: var(--forest);
}
.ui-link-inline {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-family: inherit;
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ui-link-inline:hover {
  color: var(--moss);
}
.ui-screen--signup.ui-screen--demo .ui-back {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.4em;
  line-height: 1;
  color: var(--forest);
}

/* Achievements */
.ui-collect-list {
  margin: 0 10px 12px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 4px 10px;
  box-shadow: var(--shadow);
}
.ui-collect-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.8em;
}
.ui-collect-row:last-child {
  border-bottom: none;
}
.ui-collect-row span:first-child {
  color: var(--forest);
}
.ui-collect-row span:nth-child(2) {
  flex: 1;
}
.ui-pill-btn {
  border: none;
  background: var(--forest);
  color: #fff;
  font-size: 0.65em;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: inherit;
}
.ui-badges-head {
  display: flex;
  justify-content: space-between;
  padding: 0 12px 8px;
  font-size: 0.85em;
}
.ui-badges-head span {
  color: var(--ink-soft);
  font-size: 0.8em;
}
.ui-badge-chips {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
  flex-wrap: wrap;
}
.ui-badge-chips span {
  font-size: 0.7em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--ink-muted);
}
.ui-badge-chips span.on {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.ui-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 12px;
}
.ui-badge-tile {
  background: var(--white);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  font-size: 0.72em;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}
.ui-badge-icon {
  display: block;
  font-size: 1.4em;
  margin-bottom: 4px;
}
.ui-badge-tile .ui-pill-btn {
  margin-top: 6px;
  width: 100%;
}

/* Org profile */
.app-profile--phone {
  padding: 16px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ui-report {
  margin: 10px 0 0;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--forest);
}

/* Plans in phone */
.ui-screen--plans {
  padding: 12px 8px;
  gap: 10px;
}
.app-plan--phone {
  padding: 12px 10px;
}
.app-plan--phone h3 {
  font-size: 1em;
}
.app-plan--phone .app-plan__features li {
  font-size: 0.72em;
}

/* Animal detail */
.ui-screen--animal {
  overflow-y: auto;
}
.ui-screen--animal .app-discover__card {
  margin: 0 10px;
  border-radius: 22px;
  position: relative;
}
.ui-screen--animal .app-discover__card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* Settings nationwide */
.ui-screen--settings {
  padding: 12px 10px;
  justify-content: flex-start;
}
.ui-settings-card {
  background: #f9f9f9;
  border-radius: var(--radius-card);
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
}
.ui-settings-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ui-settings-card__head strong {
  flex: 1;
  font-size: 0.9em;
}
.ui-settings-card p {
  margin: 0 0 10px;
  font-size: 0.75em;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 900px) and (min-width: 621px) {
  .app-showcase-grid {
    grid-template-columns: repeat(2, var(--phone-display-w, 272px));
  }
}
@media (max-width: 620px) {
  .app-showcase-grid {
    grid-template-columns: var(--phone-display-w, 272px);
  }
  .iphone {
    --phone-w: min(var(--phone-display-w, 272px), calc(100vw - 40px));
  }
}

/* —— Live-Demos (interaktiv) —— */
.demo-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-light);
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  margin-bottom: 8px;
}
.demo-live-badge--sm {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  margin: 0;
  font-size: 9px;
  padding: 3px 8px;
}
.demo-static-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted, rgba(33, 41, 38, 0.55));
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 8px;
  border-radius: var(--radius-chip, 999px);
  border: 1px solid rgba(45, 75, 50, 0.12);
}
.demo-static-badge--phone {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  margin: 0;
}
.demo-hero-hint {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
  z-index: 4;
}
.demo-playground {
  margin-top: var(--space-lg);
}
.demo-playground__lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-subhead);
  color: var(--ink-muted);
  line-height: 1.5;
}
.demo-playground__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 300px);
  gap: var(--space-xl);
  align-items: start;
  justify-content: center;
}
.demo-playground__panel {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(45, 75, 50, 0.12);
  position: relative;
}
@media (max-width: 900px) {
  .demo-playground__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
.baleon-demo-postbox {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.baleon-demo-postbox:not(.baleon-demo-postbox--phone) {
  min-height: 420px;
  border-radius: 20px;
  background: var(--fog, #f8f6f4);
  overflow: hidden;
}
.baleon-demo-postbox:not(.baleon-demo-postbox--phone) .baleon-tabbar {
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(33, 41, 38, 0.06);
}
.baleon-demo-postbox:not(.baleon-demo-postbox--phone) .app-inbox__header,
.baleon-demo-postbox:not(.baleon-demo-postbox--phone) .app-seg-3--interactive {
  flex-shrink: 0;
}
.baleon-demo-postbox:not(.baleon-demo-postbox--phone) .baleon-demo-postbox__body {
  flex: 1;
  min-height: 0;
}
.baleon-demo-postbox--phone {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 26px;
}
.baleon-demo-postbox--phone .demo-live-badge {
  display: none;
}
.baleon-demo-postbox--phone .app-inbox__header {
  margin: 0 8px 5px;
  gap: 6px;
  flex-shrink: 0;
}
.baleon-demo-postbox--phone .app-inbox__header-icon {
  font-size: 1.05em;
}
.baleon-demo-postbox--phone .app-inbox__header h3 {
  font-size: 0.92em;
  line-height: 1.15;
}
.baleon-demo-postbox--phone .app-inbox__header p {
  font-size: 0.68em;
  line-height: 1.3;
}
.baleon-demo-postbox--phone .app-seg-3--interactive {
  flex-shrink: 0;
  margin: 0 8px 5px;
  gap: 4px;
}
.baleon-demo-postbox--phone .app-seg-3--interactive .app-seg-3__btn {
  font-size: 0.62em;
  padding: 6px 2px;
  border-radius: 10px;
}
.baleon-demo-postbox--phone .app-seg-3 .seg-icon {
  font-size: 1em;
}
.baleon-demo-postbox__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.baleon-demo-mount {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.app-seg-3--interactive {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0 12px;
}
.app-seg-3--interactive .app-seg-3__btn {
  border: none;
  border-radius: 12px;
  padding: 10px 4px;
  font-size: 0.72em;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.app-seg-3--interactive .app-seg-3__btn:hover {
  transform: translateY(-1px);
}
.app-seg-3--interactive .app-seg-3__btn.active {
  background: var(--forest);
  color: #fff;
}
.app-seg-3--phone.app-seg-3--interactive {
  margin: 0 8px 6px;
  padding: 0;
}
.app-seg-3--phone.app-seg-3--interactive .app-seg-3__btn {
  font-size: 0.68em;
  padding: 8px 2px;
}
.app-btn {
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}
.app-btn:hover {
  transform: translateY(-1px);
}
.app-btn:active {
  transform: scale(0.98);
}
.demo-card--out {
  animation: demoCardOut 0.32s ease forwards;
  pointer-events: none;
}
@keyframes demoCardOut {
  to {
    opacity: 0;
    transform: translateX(24px) scale(0.96);
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
}
.demo-card-swap.demo-card--like {
  animation: demoLike 0.28s ease forwards;
}
.demo-card-swap.demo-card--pass {
  animation: demoPass 0.28s ease forwards;
}
@keyframes demoLike {
  to {
    transform: translateX(40px) rotate(8deg);
    opacity: 0;
  }
}
@keyframes demoPass {
  to {
    transform: translateX(-40px) rotate(-8deg);
    opacity: 0;
  }
}
.demo-swipe-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s;
}
.demo-swipe-btn:hover {
  transform: scale(1.06);
}
.demo-swipe-btn--like {
  color: var(--rose-ink);
}
.demo-card-swap.demo-card--like {
  animation: demoSwipeLike 0.28s ease forwards;
}
.demo-card-swap.demo-card--pass {
  animation: demoSwipePass 0.28s ease forwards;
}
.demo-empty {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: var(--ink-muted);
  font-size: 14px;
}
.demo-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-chip);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}
.demo-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.demo-toast--muted {
  background: var(--ink-soft);
}
.demo-toast--ok {
  background: var(--forest);
}
.demo-toast--error {
  background: #8b3a3a;
}
.demo-chats-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 8px;
}
.demo-chats-split--stack {
  display: block;
  padding: 0 6px;
}
.demo-chats-split--stack .ui-chat-list {
  max-height: 140px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.baleon-demo-postbox--phone .demo-chats-split--stack .ui-chat-list {
  max-height: none;
}
.baleon-demo-postbox--phone .ui-chat-row {
  padding: 8px 4px;
}
.baleon-demo-postbox--phone .ui-chat-row__text strong {
  font-size: 0.78em;
}
.baleon-demo-postbox--phone .ui-chat-row__text span {
  font-size: 0.68em;
}
.baleon-demo-mount--postbox {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.baleon-demo-mount[data-demo='discover-phone'] {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.baleon-demo-mount[data-demo='discover-phone'] > .app-discover {
  flex: 1;
  min-height: 0;
}
.ui-chat-row {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-family: inherit;
  cursor: pointer;
  border-radius: 10px;
}
.ui-chat-row:hover {
  background: rgba(45, 75, 50, 0.06);
}
.ui-chat-row.is-active {
  background: rgba(45, 75, 50, 0.1);
}
.demo-unread {
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.demo-chat-thread {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.demo-chat-thread__head {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.demo-chat-thread__head strong {
  display: block;
  font-size: 14px;
}
.demo-chat-thread__head span {
  font-size: 12px;
  color: var(--ink-muted);
}
.demo-chat-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.demo-empty--inline {
  margin: 0;
  padding: 1rem 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
}
.demo-chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.demo-chat-bubble--them {
  align-self: flex-start;
  background: var(--fog);
  color: var(--ink);
}
.demo-chat-bubble--me {
  align-self: flex-end;
  background: var(--forest);
  color: #fff;
}
.demo-chat-compose {
  display: flex;
  gap: 8px;
}
.demo-chat-compose input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
}
.demo-chat-compose .app-btn {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.ui-link-btn {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.ui-pill-btn--done {
  background: var(--ink-soft);
  cursor: default;
}
@media (max-width: 700px) {
  .demo-chats-split {
    grid-template-columns: 1fr;
  }
}

/* Paw avatar in lists */
.app-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fog);
  padding: 8px;
  flex-shrink: 0;
  object-fit: contain;
}
.app-avatar--sm {
  width: 40px;
  height: 40px;
  padding: 6px;
}

/* —— Galerie (Discover-Karten) —— */
.animal-card--app {
  cursor: pointer;
  text-align: center;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-radius: var(--radius-card);
}
.animal-card--app:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.animal-card--app .animal-card__media {
  border-radius: 24px;
  margin-top: var(--space-sm);
}
.animal-card--app .animal-card__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.animal-card--app .animal-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}
.animal-card--app .animal-card__species-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  background: var(--blush);
  color: var(--rose-ink);
}
.animal-card--app .animal-card__subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}
.animal-card--app .animal-card__facts {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.animal-card--app .animal-card__loc {
  margin: var(--space-sm) 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.gallery-filters {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.gallery-tabs--intent .gallery-tab {
  font-size: 0.8rem;
}

/* —— Demo-Profile —— */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.owner-card__inner {
  height: 100%;
}
.owner-card__plan {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  margin-bottom: 8px;
}
.owner-card__plan--plus {
  background: rgba(45, 75, 50, 0.12);
  color: var(--forest);
}
.owner-card__plan--gold {
  background: var(--gold-light);
  color: var(--gold-ink);
}
.owner-card--interactive {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.owner-card--interactive:hover {
  transform: translateY(-4px);
}
.owner-card--active .owner-card__inner {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.owner-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.owner-modal[hidden] {
  display: none;
}
.owner-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 41, 38, 0.45);
}
.owner-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.owner-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: var(--fog);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.owner-modal__hero {
  width: 96px;
  margin: 0 auto 1rem;
}
.owner-modal__hero img {
  width: 96px;
  border-radius: 50%;
}
.owner-modal__sub {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}
.owner-modal__hint {
  font-size: 0.85rem;
  color: var(--forest);
  font-weight: 600;
  margin: 1rem 0 0;
}
.app-profile__verify--gold {
  background: var(--gold);
}

/* —— Tier-Modal —— */
.animal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.animal-modal[hidden] {
  display: none;
}
.animal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 41, 38, 0.45);
  backdrop-filter: blur(4px);
}
.animal-modal__panel {
  position: relative;
  background: var(--fog);
  border-radius: var(--radius-sheet);
  max-width: 380px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  box-shadow: var(--shadow-card);
}
.animal-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.animal-modal__photo {
  border-radius: 28px;
  overflow: hidden;
  margin: 0 0 var(--space-md);
  box-shadow: var(--shadow-card);
}
.animal-modal__photo img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.animal-modal__owner {
  text-align: center;
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}
body.modal-open {
  overflow: hidden;
}

/* —— Chat-Liste (Demo) —— */
.chat-list-panel {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}
.chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chat-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.chat-list__item-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: 100%;
  padding: var(--space-md) 0;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}
.chat-list__item-btn:hover {
  background: rgba(45, 75, 50, 0.06);
}
.chat-list__item-btn.is-active {
  background: rgba(45, 75, 50, 0.1);
}
.composer-input {
  flex: 1;
  border: none;
  background: rgba(248, 246, 244, 0.9);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-family: inherit;
}
.chat-list__item:last-child {
  border-bottom: none;
}
.chat-list__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fog);
  padding: 8px;
  flex-shrink: 0;
}
.chat-list__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chat-list__avatar:has(.baleon-1x1) {
  padding: 0;
  background: transparent;
}
.chat-list__avatar img.baleon-1x1 {
  object-fit: cover;
}
.chat-list__verify {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.chat-list__verify--gold {
  background: var(--gold);
}
.chat-list__body {
  flex: 1;
  min-width: 0;
}
.chat-list__body strong {
  display: block;
  font-size: 15px;
}
.chat-list__body span {
  display: block;
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-list__chev {
  color: var(--ink-soft);
  font-size: 20px;
}

/* —— Dokumente / Scan (Live-Demo) —— */
.ui-screen--documents {
  padding: 0;
  justify-content: stretch;
  gap: 0;
  text-align: left;
  background: var(--sand, #f8f6f4);
  overflow: hidden;
}
.app-doc-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-top: calc(var(--phone-w, 272px) * 26 / 390);
}
.app-doc-layout__nav {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 0 12px 10px;
  margin-bottom: 0;
}
.app-doc-layout__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}
.app-doc-layout__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 8px;
}
.app-doc-layout__footer {
  flex-shrink: 0;
  padding: 10px 12px calc(var(--phone-w, 272px) * 10 / 390);
  background: linear-gradient(180deg, rgba(248, 246, 244, 0) 0%, var(--sand, #f8f6f4) 24%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.ui-nav-bar--docs {
  margin-bottom: 0;
}
.ui-nav-bar--docs .ui-nav-bar__action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
}
.ui-nav-bar--docs .ui-back {
  cursor: pointer;
}
.app-doc-form {
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}
.app-doc-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.app-doc-form__row + .app-doc-form__row {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.app-doc-form__label {
  font-size: 0.72rem;
  color: var(--ink-muted);
}
.app-doc-form__picker {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  padding: 0;
}
.app-doc-form__picker--value {
  color: var(--ink);
}
.app-doc-form__picker:active,
.app-doc-form__picker:focus-visible {
  outline: 2px solid rgba(45, 75, 50, 0.25);
  outline-offset: 2px;
  border-radius: 6px;
}
.app-doc-form__value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.app-doc-form__hint {
  margin: 8px 0 0;
  font-size: 0.65rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.ui-section-label--docs {
  margin: 6px 0 10px;
  font-size: 0.65rem;
}
.app-doc-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.app-doc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.app-doc-row:hover,
.app-doc-row--selected,
.app-doc-row--active {
  border-color: rgba(45, 75, 50, 0.35);
  box-shadow: 0 4px 12px rgba(45, 75, 50, 0.08);
}
.app-doc-row--done {
  background: rgba(45, 75, 50, 0.04);
}
.app-doc-row__icon {
  color: var(--moss);
  display: flex;
}
.app-doc-row__text strong {
  display: block;
  font-size: 0.74rem;
  color: var(--ink);
}
.app-doc-row__text small {
  font-size: 0.62rem;
  color: var(--ink-muted);
}
.app-doc-row__badge {
  color: var(--moss);
  display: flex;
}
.app-doc-scan {
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
}
.app-doc-scan__title {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-doc-scan__preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  margin-bottom: 8px;
  align-items: start;
}
.app-doc-scan__preview[hidden] {
  display: none !important;
}
.app-doc-scan__thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}
.app-doc-scan__ocr {
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--forest);
  background: rgba(45, 75, 50, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
  min-height: 72px;
}
.app-doc-scan__status {
  font-size: 0.65rem;
  margin: 0 0 8px;
  min-height: 1.2em;
}
.app-doc-scan__status--busy {
  color: var(--ink-muted);
}
.app-doc-scan__status--ok {
  color: var(--forest);
  font-weight: 600;
}
.app-doc-scan__status--error {
  color: #8b3a3a;
  font-weight: 600;
}
.app-doc-scan__btn {
  width: 100%;
  margin-bottom: 8px;
}
.app-doc-vault-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.62rem;
  color: var(--forest);
}
.ui-screen--documents.ui-screen--scroll {
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}
.ui-nav-bar--docs .ui-back,
.ui-nav-bar--docs .ui-nav-bar__action {
  border: none;
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
}
.ui-nav-bar--docs button.ui-back {
  color: var(--forest);
  font-size: 1.4em;
  line-height: 1;
  padding: 0 4px;
}
.ui-nav-bar--docs .ui-nav-bar__action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--forest);
  padding: 4px 0;
}
.ui-nav-bar--docs .ui-nav-bar__action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Login / Signup interactive fields */
.ui-screen--login.ui-screen--demo .ui-field--app,
.ui-screen--signup.ui-screen--demo .ui-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 14px;
  font: inherit;
  font-family: inherit;
  text-align: left;
  color: var(--ink-muted);
  cursor: pointer;
}
.ui-screen--login.ui-screen--demo .ui-field--app.ui-field--filled,
.ui-screen--signup.ui-screen--demo .ui-field--filled {
  color: var(--ink);
  border-color: rgba(45, 75, 50, 0.25);
}
.ui-screen--login.ui-screen--demo .ui-field--input,
.ui-screen--signup.ui-screen--demo .ui-field--input {
  cursor: text;
  color: var(--ink);
}

/* Profile interactive */
.ui-screen--profile.ui-screen--demo .ui-icon-btn,
.ui-screen--profile.ui-screen--demo .ui-plan-pill,
.ui-screen--profile.ui-screen--demo .ui-level-card,
.ui-screen--profile.ui-screen--demo .ui-menu-row {
  border: none;
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: inherit;
  color: inherit;
  width: auto;
}
.ui-screen--profile.ui-screen--demo .ui-level-card,
.ui-screen--profile.ui-screen--demo .ui-menu-row {
  width: 100%;
}
.ui-screen--profile.ui-screen--demo .ui-profile-avatar {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 4px auto 8px;
  border: none;
  cursor: pointer;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.ui-screen--profile.ui-screen--demo .ui-profile-avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: none;
}
.ui-screen--profile.ui-screen--demo .ui-profile-tabs button {
  border: none;
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  color: var(--ink-muted);
}
.ui-screen--profile.ui-screen--demo .ui-profile-tabs button.on {
  color: var(--forest);
  font-weight: 700;
}
.ui-screen--profile.ui-screen--demo .ui-icon-btn:active,
.ui-screen--profile.ui-screen--demo .ui-menu-row:active,
.ui-screen--profile.ui-screen--demo .ui-level-card:active {
  opacity: 0.85;
}

/* Achievements chips as buttons */
.ui-badge-chips button {
  border: none;
  background: rgba(0, 0, 0, 0.06);
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75em;
  color: var(--ink-muted);
}
.ui-badge-chips button.on {
  background: var(--forest);
  color: #fff;
}
.ui-collect-row__icon {
  display: inline-flex;
  color: var(--forest);
}

/* Org profile interactive */
.ui-screen--org.ui-screen--demo .app-profile__stats button,
.ui-screen--org.ui-screen--demo .animal-card__loc,
.ui-screen--org.ui-screen--demo .ui-report {
  border: none;
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ui-screen--org.ui-screen--demo .app-profile__stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ui-screen--org.ui-screen--demo .app-profile__stats button {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(45, 75, 50, 0.08);
  font-size: 0.72rem;
  font-weight: 600;
}
.ui-screen--org.ui-screen--demo .ui-report {
  color: #a33;
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

/* Demo button active states */
.iphone__ui button:active:not(:disabled),
.iphone__ui .app-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.discover-tab.discover-tab--on,
.app-seg-3__btn.active,
.path-card--active {
  box-shadow: 0 0 0 2px rgba(45, 75, 50, 0.15);
}

/* Login — Debug-Hinweise wie in der App */
.ui-login-demo-hint {
  font-size: 0.62rem;
  color: var(--ink-soft);
  margin: 10px 0 0;
  line-height: 1.35;
}
.ui-login-debug {
  font-size: 0.58rem;
  color: rgba(33, 41, 38, 0.38);
  margin: 6px 0 0;
}
.ui-login-forgot,
.ui-login-register {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  width: 100%;
}

/* Signup — Feld-Hinweise */
.ui-field-hint {
  font-size: 0.62rem;
  color: var(--ink-soft);
  margin: -4px 0 8px;
  line-height: 1.35;
}

/* Filter — Alter-Stepper */
.app-age-filter {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0 6px;
  font-size: 0.72rem;
  font-weight: 600;
}
.app-age-filter__hint {
  color: var(--ink-soft);
  font-weight: 500;
}
.app-age-steppers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.app-age-stepper {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 8px 10px;
}
.app-age-stepper__label {
  display: block;
  font-size: 0.62rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.app-age-stepper__ctrl {
  display: flex;
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.app-age-stepper__btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}
.app-age-stepper__btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}

/* Postbox — Sent-Aktionen & Paw-Avatar */
.app-match-card__thumb--paw {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--white);
  flex-shrink: 0;
}
.app-match-card__chev {
  color: rgba(33, 41, 38, 0.28);
  font-size: 1.1rem;
  align-self: center;
  margin-left: auto;
}
.app-match-card__sent-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.app-match-card__chat-open {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(248, 246, 244, 0.9);
  color: var(--forest);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}
.app-match-card__dissolve {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(248, 246, 244, 0.65);
  color: rgba(180, 60, 60, 0.65);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.app-match-card__cancel {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(180, 60, 60, 0.55);
  cursor: pointer;
  text-align: left;
}

/* Postbox — Segment-Tabs vertikal wie iOS */
.app-seg-3--stacked .app-seg-3__btn {
  flex-direction: column;
  gap: 4px;
  padding: 8px 4px;
  font-size: 0.58rem;
}
.app-seg-3--stacked .seg-label {
  display: block;
  line-height: 1.1;
}
.discover-tabbar--postbox {
  margin-top: auto;
  flex-shrink: 0;
}
.baleon-demo-postbox--phone {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Achievements — Badge-Medaillons */
.ui-badge-medallion {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid #c48452;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #f5ebe0 100%);
  margin: 0 auto 6px;
  color: var(--forest);
}
.ui-badge-tile {
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 10px 6px;
  text-align: center;
  background: var(--white);
}
.ui-badge-tile--match { border-color: rgba(242, 189, 209, 0.9); }
.ui-badge-tile--streak { border-color: rgba(245, 210, 120, 0.9); }
.ui-badge-tile--social { border-color: rgba(160, 200, 230, 0.9); }
.ui-badge-tile--discover { border-color: rgba(200, 180, 220, 0.7); }
.ui-badge-tile--done { border-color: rgba(0, 0, 0, 0.08); opacity: 0.85; }
.ui-badge-tile span:not(.ui-badge-medallion) {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}
.ui-badge-reward {
  font-size: 0.58rem !important;
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
}
.ui-badge-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 2px;
}
.ui-badge-chips button {
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.62rem;
  cursor: pointer;
}
.ui-badge-chips button.on {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* Settings-Screens (Entdecken, Bundesweit) */
.ui-screen--settings.ui-screen--demo {
  padding: 10px 12px 16px;
  background: var(--screen-bg);
}
.ui-settings-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 4px 0 6px;
  font-weight: 600;
}
.ui-settings-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}
.ui-settings-pill,
.ui-settings-value {
  margin-left: auto;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(33, 41, 38, 0.08);
  color: var(--ink-soft);
}
.ui-settings-locate,
.ui-settings-prefs,
.ui-settings-subscribe {
  width: 100%;
  margin-top: 8px;
}
.ui-settings-sub {
  font-size: 0.62rem;
  color: var(--ink-soft);
  margin: 10px 0 6px;
}
.ui-settings-search-row {
  display: flex;
  gap: 8px;
}
.ui-settings-input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.72rem;
  background: var(--white);
}
.ui-settings-search {
  width: 38px;
  border: none;
  border-radius: 12px;
  background: rgba(87, 117, 98, 0.25);
  color: var(--forest);
  cursor: pointer;
}
.ui-settings-slider {
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  margin: 10px 0;
  position: relative;
}
.ui-settings-slider span {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: 999px;
}
.ui-settings-foot {
  font-size: 0.58rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.ui-settings-perks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.64rem;
  color: var(--ink-muted);
}
.ui-settings-perks li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.ui-settings-perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.ui-settings-card--membership .ui-settings-seal {
  margin-left: auto;
  color: var(--gold);
}
.app-profile__owner {
  font-size: 0.62rem;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-block;
  margin: 6px auto;
}
.app-showcase-grid--premium {
  margin-top: 2rem;
}
.discover-tabbar--profile {
  margin-top: 12px;
}

/* Discover — erweiterte Profil-Blöcke (App-Parität) */
.discover-header__intent--breed {
  background: var(--moss);
}
.discover-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  justify-content: center;
}
.discover-name-row .discover-name {
  margin: 0;
}
.discover-liked-chip {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--rose-ink);
  background: var(--blush);
  border: none;
  padding: 3px 8px;
  border-radius: 999px;
}
.discover-card__boost {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, var(--blush), var(--petal));
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--rose-ink);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(122, 51, 77, 0.2);
}
.discover-card__boost-count {
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  margin-top: -2px;
}
.discover-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 12px;
}
.discover-facts__item {
  background: var(--white);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border-subtle);
}
.discover-facts__item small {
  display: block;
  font-size: 0.58rem;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.discover-facts__item strong {
  font-size: 0.68rem;
  color: var(--ink);
}
.discover-owner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 24px);
  margin: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
.discover-owner-card__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(45, 75, 50, 0.12);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.discover-owner-card__av--photo {
  padding: 0;
  background: transparent;
  overflow: hidden;
}
.discover-owner-card__av img,
.discover-owner-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.discover-owner-card__text {
  flex: 1;
  min-width: 0;
}
.discover-owner-card__text strong {
  display: block;
  font-size: 0.72rem;
}
.discover-owner-card__text span {
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.discover-owner-card__chev {
  color: var(--ink-soft);
}
.discover-prompt-card {
  margin: 8px 12px 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(87, 117, 98, 0.08);
  border: 1px solid var(--border-moss);
}
.discover-prompt-card__q {
  margin: 0 0 6px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--forest);
}
.discover-prompt-card__a {
  margin: 0;
  font-size: 0.68rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Profile — Account Hub */
.ui-achievement-showcase {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  width: calc(100% - 20px);
  margin: 0 10px 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
.ui-achievement-showcase__body p {
  margin: 0 0 6px;
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.ui-achievement-showcase__head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ui-achievement-showcase__chev {
  color: var(--forest);
  align-self: center;
}
.ui-achievement-showcase__badges {
  grid-column: 1 / -1;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ui-ach-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.ui-ach-badge--rose { background: #e8a0b8; }
.ui-ach-badge--blue { background: #8eb8d8; }
.ui-ach-badge--more {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
}
.ui-hub-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px 10px;
}
.ui-hub-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow);
}
.ui-hub-card div {
  flex: 1;
  min-width: 0;
}
.ui-hub-card strong {
  display: block;
  font-size: 0.74rem;
}
.ui-hub-card span {
  font-size: 0.62rem;
  color: var(--ink-soft);
}
.ui-hub-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(45, 75, 50, 0.1);
  color: var(--forest);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ui-hub-card__icon--gold {
  background: rgba(199, 148, 46, 0.16);
  color: var(--gold);
}
.ui-hub-card--gradient {
  background: linear-gradient(135deg, rgba(199, 148, 46, 0.18), rgba(45, 75, 50, 0.12));
  border-color: rgba(199, 148, 46, 0.2);
}
.ui-hub-card--moss {
  background: linear-gradient(135deg, rgba(87, 117, 98, 0.14), rgba(45, 75, 50, 0.1));
}
.ui-hub-card--promo {
  border-style: dashed;
}

/* Membership phone plans */
.ui-screen--plans.ui-screen--demo {
  padding: 8px 10px 14px;
  gap: 10px;
}
.app-plan__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.app-plan__seal {
  color: var(--forest);
}
.app-plan__seal--gold {
  color: var(--gold);
}
.app-plan__price--gold {
  color: var(--gold) !important;
}
.app-plan--current {
  border: 2px solid var(--gold);
}
.app-plan__link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  margin-top: 8px;
}
.app-plan__cta--current {
  color: var(--gold);
  font-weight: 700;
}
.app-plan__features--gold li::marker {
  color: var(--gold);
}
.ui-nav-bar--inline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}
.app-seg-row--compact {
  margin-bottom: 8px;
}
.ui-settings-card--filters .app-toggle-row {
  margin-top: 6px;
}
.discover-tab--profile svg {
  border-radius: 50%;
  background: rgba(45, 75, 50, 0.1);
  padding: 2px;
}

/* —— Einheitliche Tab-Leiste (BaleonTabBar.swift) —— */
.ui-screen--with-tabbar {
  padding-bottom: 0;
  overflow: hidden;
}
.ui-screen--with-tabbar > .ui-screen__main {
  flex: 1;
  min-height: 0;
}
.ui-screen__main--scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ui-screen__main--fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.baleon-tabbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 4px 8px 8px;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 24px rgba(45, 75, 50, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.baleon-tab {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: none;
  background: transparent;
  color: rgba(33, 41, 38, 0.42);
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.baleon-tab svg.baleon-tab__icon {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  overflow: visible;
}
.baleon-tab--on svg.baleon-tab__icon {
  transform: scale(1.06);
}
.baleon-tab__pill {
  position: absolute;
  inset: 2px 0;
  margin: auto;
  width: 54px;
  height: 40px;
  border-radius: 999px;
  background: rgba(45, 75, 50, 0.12);
  border: none;
  pointer-events: none;
}
.baleon-tab--on {
  color: var(--forest);
}
.baleon-tab__badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 18px);
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.baleon-tab-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: visible;
  display: block;
  flex-shrink: 0;
}
.baleon-tab-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.baleon-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  overflow: visible;
}
.baleon-avatar-wrap--tab {
  width: calc(var(--avatar-d, 28px) + 3px);
  height: calc(var(--avatar-d, 28px) + 3px);
  align-items: flex-start;
  justify-content: flex-start;
}
.baleon-avatar-wrap--hero {
  width: calc(var(--avatar-d, 72px) + 8px);
  height: calc(var(--avatar-d, 72px) + 8px);
  margin: 4px auto 8px;
}
.baleon-avatar-shell {
  display: block;
  width: var(--avatar-d, 28px);
  height: var(--avatar-d, 28px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(76, 122, 88, 0.55), rgba(45, 75, 50, 0.9));
}
.baleon-avatar-shell__img,
.ui-profile-avatar__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.baleon-avatar-wrap--tab .baleon-avatar-shell {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}
.baleon-avatar-wrap--hero .baleon-avatar-shell,
.ui-profile-avatar--photo .baleon-avatar-shell {
  box-shadow:
    0 0 0 3.5px rgba(255, 255, 255, 0.9),
    0 6px 12px rgba(45, 75, 50, 0.16);
}
.baleon-avatar-seal {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: var(--seal-d, 12px);
  height: var(--seal-d, 12px);
  border-radius: 50%;
  background: #fff;
  color: var(--gold, #C7942E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  transform: translate(28%, 28%);
  pointer-events: none;
}
.baleon-avatar-seal svg {
  display: block;
  width: 52%;
  height: 52%;
}
.baleon-tab--profile {
  color: var(--forest);
  overflow: visible;
}
.baleon-tabbar {
  overflow: visible;
}

/* Rassenauswahl — Erweiterte Filter */
.app-breed-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.app-breed-chip {
  border: 1px solid var(--border-subtle);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.app-breed-chip.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.app-breed-chip--custom {
  border-style: dashed;
}
.app-breed-custom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.app-breed-custom__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.app-breed-custom__input {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.75rem;
  background: var(--white);
  color: var(--ink);
}
.app-breed-custom__input:focus {
  outline: 2px solid rgba(45, 75, 50, 0.25);
  border-color: var(--forest);
}

/* Echte Eingabefelder in Login/Signup */
.ui-field--input {
  cursor: text;
  text-align: left;
}
.ui-field--input input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  padding: 0;
}
.ui-field--input input::placeholder {
  color: var(--ink-soft);
}
.ui-field--input input:focus {
  outline: none;
}
.ui-field--input .ui-field__eye {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ui-field--filled {
  border-color: rgba(45, 75, 50, 0.35);
}

/* Rundes App-Logo */
.ui-logo-mark__icon--round {
  border-radius: 50%;
  object-fit: cover;
}

/* Org-Profil: Avatar sichtbar halten */
.ui-screen--org.ui-screen--demo .app-profile__avatar {
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  margin: 0 auto 10px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--forest);
}
.ui-screen--org.ui-screen--demo .app-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.ui-screen--org.ui-screen--demo .app-profile__stats button,
.ui-screen--org.ui-screen--demo .animal-card__loc,
.ui-screen--org.ui-screen--demo .ui-report {
  border: none;
  background: transparent;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Profil-Avatar rund (AccountHub) */
.ui-profile-avatar--photo .ui-profile-avatar__photo {
  border-radius: 50%;
}
.ui-profile-avatar--app .ui-profile-avatar__photo {
  border-radius: 50%;
}
.iphone .ui-screen--filter.ui-screen--demo {
  padding-top: 32px;
}
.iphone .baleon-tabbar {
  margin-bottom: 6px;
}
.app-discover--phone .baleon-tabbar {
  margin: 2px 8px 6px;
}
.ui-screen--filter.ui-screen--demo .app-breed-filter,
.ui-screen--filter.ui-screen--demo .app-breed-custom {
  padding: 0 2px;
}

/* Discover — Medienstreifen & Kontakt-Karte (iOS DiscoverView) */
.discover-media-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.discover-media-strip__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  scroll-snap-align: start;
}
.discover-contact-card {
  margin: 10px 12px 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(45, 58, 42, 0.08);
}
.discover-contact-card__hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(45, 58, 42, 0.65);
  line-height: 1.4;
}
.discover-contact-card__input {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.85);
  font: inherit;
  font-size: 13px;
  resize: none;
  color: var(--forest, #2d3a2a);
}
.discover-contact-card__input:focus {
  outline: 2px solid rgba(76, 122, 88, 0.35);
  outline-offset: 1px;
}
.discover-contact-card__count {
  display: block;
  margin: 6px 0 8px;
  font-size: 11px;
  color: rgba(45, 58, 42, 0.5);
  text-align: right;
}
.discover-contact-card__send {
  width: 100%;
}
.discover-contact-card__send:disabled {
  opacity: 0.45;
}
.ui-screen--discover-feed .app-discover--live,
.ui-screen--discover-hero .app-discover--live {
  min-height: 0;
}
.demo-card--drag-like {
  box-shadow: 0 0 0 2px rgba(76, 122, 88, 0.45);
}
.demo-card--drag-pass {
  box-shadow: 0 0 0 2px rgba(180, 90, 70, 0.45);
}
.discover-card[data-demo-card] {
  touch-action: pan-y;
  cursor: grab;
}
.discover-card[data-demo-card]:active {
  cursor: grabbing;
}

/* Dokumente-Hub (iOS DocumentsView) */
.ui-screen--documents-hub {
  padding-top: 36px;
}
.app-doc-hub__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
}
.app-doc-hub__head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--forest, #2d3a2a);
}
.app-doc-hub__add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: rgba(76, 122, 88, 0.12);
  color: var(--forest, #2d3a2a);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.app-doc-hub__picker {
  display: block;
  margin: 0 14px 12px;
  font-size: 12px;
  color: rgba(45, 58, 42, 0.65);
}
.app-doc-hub__select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: rgba(245, 240, 232, 0.9);
  font: inherit;
  font-size: 13px;
}
.app-doc-hub-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
}
.app-doc-hub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.app-doc-hub-row__icon {
  flex: 0 0 auto;
  color: var(--forest, #2d3a2a);
  opacity: 0.75;
}
.app-doc-hub-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-doc-hub-row__text strong {
  font-size: 13px;
  font-weight: 600;
}
.app-doc-hub-row__text small {
  font-size: 11px;
  color: rgba(45, 58, 42, 0.55);
}
.app-doc-hub-row__status {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.app-doc-hub-row__status--verified {
  background: rgba(76, 122, 88, 0.15);
  color: #3d6b4a;
}
.app-doc-hub-row__status--pending {
  background: rgba(200, 150, 60, 0.18);
  color: #8a6520;
}
.app-doc-hub-missing {
  padding: 0 14px 10px;
}
.app-doc-hub-missing__chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(200, 90, 70, 0.12);
  color: #9a4a3a;
  font-size: 11px;
  font-weight: 600;
}
.app-doc-hub__scan {
  margin: 8px 14px 16px;
  width: calc(100% - 28px);
}
