/* =====================================================================
   Web-App umkleide.ai/app – baut auf site.css auf (Farben, Knöpfe, Vorher/Nachher).
   Hell, ruhige Karten, blaue Akzente. Pixel nur beim Klick auf „Anprobieren“.
   ===================================================================== */

/* „hidden“ muss gewinnen, auch wenn eine Klasse display setzt. */
.studio [hidden],
dialog.sheet [hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Kopf ---------- */
.app-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px);
  text-align: center;
}
.app-hero h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.app-hero h1 span {
  color: var(--blue);
}
.app-hero .sub {
  margin-inline: auto;
}
.app-section {
  padding-bottom: clamp(56px, 8vw, 96px);
}
.app-noscript {
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  background: var(--surface);
}

/* ---------- Studio: links Schritte, rechts Ergebnis ---------- */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(16px, 2.4vw, 28px);
  border-radius: calc(var(--radius) + 6px);
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-md);
}
.studio-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.studio .fine {
  margin-top: -8px;
  font-size: 13px;
}

/* Konto-Leiste */
.acct-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 6px 6px 6px 14px;
  border-radius: 14px;
  background: var(--surface);
}
.acct-note {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
}
.acct-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 0;
  border-radius: 99px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.acct-pill:hover {
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: var(--blue);
}
.avatar-lg {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.pro {
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--blue-soft);
}

/* Schritte */
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-head h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.step-head small {
  margin-left: auto;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  background: var(--blue-soft);
}

/* Foto */
.slot-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding: 26px 16px;
  border: 1.5px dashed var(--line-2);
  border-radius: 18px;
  color: var(--ink);
  font: inherit;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.slot-empty:hover {
  border-color: var(--blue-3);
  background: var(--blue-soft);
}
.slot-empty b {
  font-size: 15px;
}
.slot-empty small {
  color: var(--muted);
  font-size: 13px;
}
.slot-plus {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}
.slot-plus svg {
  width: 20px;
  height: 20px;
}
.slot-filled {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 18px;
  background: var(--surface);
}
.slot-filled img {
  width: 84px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  object-position: top;
  background: #fff;
}
.slot-change {
  padding: 9px 14px;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.slot-x,
.sheet-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.slot-x {
  position: absolute;
  top: 8px;
  right: 8px;
}
.slot-x:hover,
.sheet-x:hover {
  color: var(--ink);
  background: var(--surface-2);
}

/* Teile */
.pieces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.piece-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.15s ease;
}
.piece-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.piece:hover .piece-img {
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.piece[aria-checked='true'] .piece-img {
  box-shadow:
    0 0 0 2px var(--blue),
    inset 0 0 0 1px var(--blue);
}
.piece[aria-checked='true'] .piece-img::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.5 3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.piece-name {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.piece-name small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.piece-own .piece-img {
  border: 1.5px dashed var(--line-2);
  box-shadow: none;
}
.piece-own[aria-checked='true'] .piece-img {
  border-color: transparent;
}
.piece-upload {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
}
.cat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
}
.seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
}
.seg button {
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.08),
    0 0 0 1px var(--line);
}
.hint {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}
.btn-try[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Modus: Live / Foto */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
}
.mode-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}
.mode-tabs button svg {
  width: 17px;
  height: 17px;
}
.mode-tabs button[aria-selected='true'] {
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.08),
    0 0 0 1px var(--line);
}
.mode-tabs button[data-tab='live'][aria-selected='true'] svg {
  color: var(--live);
}

/* Produktlink */
.link-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.link-form:focus-within {
  box-shadow: inset 0 0 0 2px var(--blue);
}
.link-icon {
  display: grid;
  flex: none;
  color: var(--faint);
}
.link-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  background: transparent;
}
.link-form .btn {
  flex: none;
}
[data-piece-step].is-drop {
  border-radius: 16px;
  outline: 2px dashed var(--blue);
  outline-offset: 6px;
  background: var(--blue-soft);
}
.piece-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: -4px;
}
.piece-alts .link-btn {
  padding-left: 2px;
}
.pieces-empty {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
}
.piece-wrap {
  position: relative;
  min-width: 0;
}
.piece-x {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.piece[aria-checked='true'] + .piece-x {
  right: 32px;
}
.piece {
  width: 100%;
}
.piece-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.piece-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seg-wrap {
  flex-wrap: wrap;
}
.btn-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}
.btn-dark:hover {
  background: #23262f;
}

/* ---------- Ergebnis ---------- */
.studio-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage-live,
.stage-photo {
  position: absolute;
  inset: 0;
}
.live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b0d12;
}
.live-video.mirrored {
  transform: scaleX(-1);
}
.tips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.tips li {
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.live-connecting {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.live-connecting p {
  margin: 0;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.spinner {
  width: 42px;
  height: 42px;
  border: 3.5px solid var(--blue-line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pill {
  position: absolute;
  z-index: 3;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.pill-live {
  left: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.pill-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.pill-demo {
  right: 14px;
  color: #8a5a00;
  background: #fff4d6;
}
.stage-idle,
.stage-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}
.stage-idle b {
  font-size: 17px;
}
.stage-idle small {
  color: var(--muted);
  font-size: 13.5px;
}
.stage-orb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    var(--shadow-sm);
}
.stage-orb svg {
  width: 26px;
  height: 26px;
}
.stage-pct {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stage-pct small {
  margin-left: 2px;
  color: var(--faint);
  font-size: 28px;
}
.stage-loading p {
  color: var(--muted);
  font-weight: 650;
}
.stage-bar {
  width: min(240px, 70%);
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-2);
}
.stage-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.4s linear;
}
.stage-result {
  position: absolute;
  inset: 0;
}
.stage-result .compare {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}
.stage-result .ai-chip {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.stage-result .demo-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(0.8);
  transform: scale(1.06);
}
.stage-result .single {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-demo {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  background: rgba(245, 246, 249, 0.86);
}
.stage-demo b {
  font-size: 17px;
}
.stage-demo small {
  max-width: 26em;
  color: var(--muted);
  font-size: 13.5px;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.history {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.history-title {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
}
.history-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.history-list button {
  width: 52px;
  height: 68px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.history-list button[aria-current='true'] {
  box-shadow: 0 0 0 2px var(--blue);
}
.history-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.studio-ext {
  max-width: 40em;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  text-align: center;
}
.studio-ext a {
  color: var(--blue);
  font-weight: 750;
}

/* ---------- Dialoge (unten auf dem Handy, mittig am Computer) ---------- */
dialog.sheet {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 22px;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
dialog.sheet[open] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: sheet-in 0.28s var(--ease);
}
dialog.sheet::backdrop {
  background: rgba(11, 13, 18, 0.45);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sheet .fine {
  margin-top: 0;
  font-size: 12.5px;
}
.sheet .fine a {
  color: var(--muted);
}
.sheet-lead {
  color: var(--muted);
  font-size: 14.5px;
}
.rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rules li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 650;
  background: var(--surface);
}
.rules svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--blue);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-input {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.auth-input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.auth-code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.4em;
  text-align: center;
}
.auth-google {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.price-big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.price-big b {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-big span {
  color: var(--muted);
  font-weight: 650;
}
.sub-area,
.current-area,
.pack-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pack-area {
  gap: 8px;
}
/* Aufladen: Live-Paket und Shopping-Paket als zwei Karten (mit Abo die Hauptsache im Fenster) */
.pack-head {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 750;
  text-align: center;
}
.pack-opt {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px 12px 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease-out;
}
.pack-opt:hover {
  border-color: var(--line-2);
}
.pack-opt:active {
  transform: scale(0.985);
}
.pack-opt.is-suggested {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.pack-opt:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.pack-opt:disabled {
  cursor: default;
  opacity: 0.55;
}
.pack-opt.is-busy {
  opacity: 0.7;
}
.pack-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: var(--blue);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--blue-line);
}
.pack-ic svg {
  width: 18px;
  height: 18px;
}
.pack-txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pack-txt b {
  font-size: 15px;
  font-weight: 750;
}
.pack-txt small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}
.pack-price {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.topup-lead {
  margin: -4px 0 0;
}
.live-by-time {
  margin: -2px 0 0;
}
.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tier:hover {
  border-color: var(--line-2);
}
.tier[aria-checked='true'] {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.tier:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 16px;
}
.tier-badge {
  padding: 2px 8px;
  border-radius: 99px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  background: var(--blue);
}
.tier-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}
.tier-price b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.tier-price small,
.tier-note,
.tier-every {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.tier-note {
  margin-top: -4px;
  min-height: 1.4em;
}
.tier-feat {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.35;
}
.tier-feat svg {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--blue);
}
.current-plan {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
  background: var(--surface);
}
.sheet .billing-toggle {
  align-self: center;
  margin-top: 0;
}
.acct-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.acct-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.acct-head b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-head small {
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
}
.stats b {
  font-size: 26px;
  font-weight: 800;
}
.stats small {
  color: var(--muted);
  font-size: 12.5px;
}
.confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  background: #fff1f1;
}
.confirm span {
  flex: 1 1 100%;
}
.btn-danger {
  color: #fff;
  background: #c4282d;
}
.btn-danger:hover {
  background: #a51f24;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  background: transparent;
  cursor: pointer;
}
.link-btn svg {
  width: 16px;
  height: 16px;
}
.link-btn:hover {
  color: var(--ink);
}

/* ---------- Handy ---------- */
@media (max-width: 900px) {
  .studio {
    grid-template-columns: minmax(0, 1fr);
  }
  .stage {
    max-width: 460px;
  }
}
@media (max-width: 560px) {
  .studio {
    padding: 14px;
    border-radius: var(--radius);
  }
  dialog.sheet {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .step-head small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open],
  .pill-live i {
    animation: none;
  }
  .stage-bar span {
    transition: none;
  }
}

/* ---------- Guthaben-Ring: wie viel im aktuellen Modus noch übrig ist ---------- */
.meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: -8px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.meter-ring {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}
.meter-ring svg {
  display: block;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: var(--blue-line);
  stroke-width: 3.5;
}
.ring-fill {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 119.38;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s var(--ease);
}
.meter-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.meter-ring b.is-long {
  font-size: 11.5px;
  letter-spacing: -0.02em;
}
.meter-text {
  display: grid;
  flex: 1;
  gap: 1px;
  min-width: 0;
}
.meter-text b {
  font-size: 14px;
  font-weight: 750;
}
.meter-text small {
  color: var(--muted);
  font-size: 12.5px;
}
.meter-more {
  flex: none;
  color: var(--blue);
  font-weight: 750;
}

/* ---------- Kamera-Check: Umriss zum Positionieren, Licht, Kamera aus ---------- */
.live-guide {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.guide-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: 78%;
  transform: translateX(-50%);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-figure * {
  vector-effect: non-scaling-stroke;
}
.guide-halo {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 6;
}
.guide-line {
  stroke: var(--blue);
  stroke-width: 2.5;
}
.guide-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 13px;
  border-radius: 99px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
}
.guide-light {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 140px);
  padding: 6px 11px;
  border-radius: 99px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}
.guide-light i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.guide-light[data-state='dark'] i {
  background: #e09a00;
}
.stage-chip {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border: 0;
  border-radius: 99px;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.stage-chip:hover {
  background: #fff;
}
.pill-ring {
  width: 16px;
  height: 16px;
  transform: rotate(-90deg);
}
.pill-ring .ring-track,
.pill-ring .ring-fill {
  stroke-width: 2.5;
}
.pill-ring .ring-fill {
  stroke-dasharray: 37.7;
  transition: stroke-dashoffset 0.25s linear;
}
@media (prefers-reduced-motion: reduce) {
  .ring-fill {
    transition: none;
  }
}

/* ---------- Umkleide wartet: blaue Silhouette mit ruhigem Puls (keine Person) ---------- */
.idle-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--blue-line),
    var(--shadow-md);
}
.idle-figure svg {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  fill: var(--blue-soft);
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: hidden;
}
.idle-figure i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
  opacity: 0;
  animation: idle-pulse 2.8s var(--ease) infinite;
}
.idle-figure i + i {
  animation-delay: 1.4s;
}
@keyframes idle-pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .idle-figure i {
    animation: none;
  }
  .spinner {
    animation-duration: 2.4s;
  }
}

/* Hinweis unter der Kategorie (Foto-Modus): was das eigene Foto zeigen sollte */
.cat-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Aufnahme der Live-Anprobe (bleibt auf dem Gerät) */
.rec-chip {
  top: auto;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.rec-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--live);
  transition: border-radius 0.2s var(--ease);
}
.rec-chip.is-recording i {
  border-radius: 2px;
  animation: pulse 1.4s ease-in-out infinite;
}
.video-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* Hilfe, wenn ein Shop keine automatischen Abrufe zulässt */
.link-help {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px var(--blue-line);
}
.link-help-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 750;
}
.link-help-steps {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--ink-2, #2a2f3a);
  font-size: 13.5px;
  line-height: 1.45;
}
.link-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (pointer: coarse) {
  .link-help [data-help='desktop'] {
    display: none;
  }
}
@media (pointer: fine) {
  .link-help [data-help='mobile'] {
    display: none;
  }
}
