:root {
  color-scheme: dark;

  --bg-0: #050807;
  --bg-1: #0a100e;
  --bg-2: #101a16;
  --panel: rgba(12, 22, 18, 0.82);
  --panel-solid: #0e1713;
  --panel-elevated: #13201b;

  --white: #f4fff8;
  --white-dim: rgba(244, 255, 248, 0.72);
  --white-soft: rgba(244, 255, 248, 0.5);

  --green-soft: #b8ffd4;
  --green: #6dffb0;
  --green-deep: #22e07a;
  --neon: #39ff9a;
  --neon-hot: #7dffc0;
  --neon-dim: rgba(57, 255, 154, 0.18);
  --neon-glow: 0 0 18px rgba(57, 255, 154, 0.45), 0 0 48px rgba(57, 255, 154, 0.18);

  --line: rgba(184, 255, 212, 0.14);
  --line-strong: rgba(57, 255, 154, 0.45);
  --danger: #ff003c;
  --danger-hot: #ff2a55;
  --danger-glow: 0 0 18px rgba(255, 0, 60, 0.55), 0 0 42px rgba(255, 0, 60, 0.22);

  --amber: #e8b86d;
  --amber-hot: #f0c98a;
  --amber-dim: rgba(232, 184, 109, 0.18);

  --paper: #eef8f1;
  --paper-deep: #d9ebe0;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --font-sans: "Space Grotesk", "Segoe UI", sans-serif;
  --font-display: "Syne Full", "Syne", "Space Grotesk", sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--bg-0);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(57, 255, 154, 0.35);
  color: var(--white);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(57, 255, 154, 0.16), transparent 58%),
    radial-gradient(700px 480px at 92% 12%, rgba(184, 255, 212, 0.08), transparent 52%),
    radial-gradient(600px 400px at 50% 100%, rgba(34, 224, 122, 0.08), transparent 55%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 42%, #07110d 100%);
}

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 154, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 154, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
  animation: rise 0.55s ease both;
}

.shell:has(.topbar--with-nav) {
  padding-top: 2.85rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}

.brand:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 8px;
}

.brand__logo {
  display: block;
  height: clamp(3.5rem, 7.5vw, 5.25rem);
  width: auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: lighten;
  transform: translateZ(0) scale(1);
  transform-origin: center center;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 0 transparent);
}

@media (hover: hover) {
  .brand:hover .brand__logo {
    transform: translateZ(0) scale(1.06);
    filter:
      brightness(1.1)
      drop-shadow(0 0 10px rgba(57, 255, 154, 0.45))
      drop-shadow(0 0 28px rgba(57, 255, 154, 0.22));
  }
}

.brand:focus-visible .brand__logo {
  transform: translateZ(0) scale(1.06);
  filter:
    brightness(1.1)
    drop-shadow(0 0 10px rgba(57, 255, 154, 0.45))
    drop-shadow(0 0 28px rgba(57, 255, 154, 0.22));
}

@media (prefers-reduced-motion: reduce) {
  .brand__logo {
    transition: none;
  }

  .brand:hover .brand__logo,
  .brand:focus-visible .brand__logo {
    transform: none;
  }
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(3.75rem, 7vw, 5rem);
  padding-top: 0;
  margin-bottom: 1.15rem;
  padding-bottom: 0;
}

.topbar .brand {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  z-index: 3;
  line-height: 0;
}

.topbar .brand__logo {
  height: clamp(3.35rem, 6.8vw, 4.65rem);
}

.topbar .userbar {
  position: relative;
  z-index: 3;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

.topbar--with-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1.75rem;
}

.topbar--with-nav .brand {
  justify-self: start;
  align-self: start;
  grid-column: 1;
  transform: translateY(-2.05rem);
}

.topbar--with-nav.topbar--storage .brand {
  position: absolute;
  left: 50%;
  justify-self: unset;
  grid-column: auto;
  transform: translateX(-50%) translateY(-2.05rem);
  z-index: 3;
}

.topbar--with-nav.topbar--storage .userbar {
  margin-left: auto;
  justify-self: end;
  grid-column: 3;
}

.topbar--with-nav.topbar--storage > .nav-toggle {
  justify-self: start;
  grid-column: 1;
  z-index: 3;
}

.topbar--with-nav .app-nav {
  position: relative;
  left: auto;
  top: auto;
  transform: translateX(-2.75rem);
  margin: 0;
  z-index: 2;
  grid-column: 2;
  justify-self: center;
  animation: app-nav-fade 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.topbar--with-nav .userbar {
  grid-column: 3;
  justify-self: end;
  margin-left: 0;
}

.userbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white-dim);
  font-size: 0.92rem;
}

.userbar--guest {
  gap: 0.55rem;
}

.userbar--guest .btn,
.userbar--guest .btn--neon,
.userbar--guest .btn--ghost {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  min-height: 2.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: none;
}

.userbar--guest .btn--compact {
  border-radius: 12px;
}

.userbar__balance {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: var(--neon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.12);
  text-shadow: 0 0 14px rgba(57, 255, 154, 0.35);
  cursor: pointer;
  transform: translateZ(0);
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    background 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.userbar__balance::after {
  content: "";
  position: absolute;
  inset: -30% -70%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(184, 255, 212, 0.38) 50%,
    transparent 62%
  );
  transform: translateX(-85%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.userbar__balance:hover,
.userbar__balance:focus-visible {
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.78);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.28),
    0 0 22px rgba(57, 255, 154, 0.5),
    0 0 48px rgba(57, 255, 154, 0.22);
  transform: scale(1.05);
}

.userbar__balance:hover::after,
.userbar__balance:focus-visible::after {
  animation: userbar-shine 0.55s ease;
}

.userbar__balance:hover .userbar__balance-plus,
.userbar__balance:focus-visible .userbar__balance-plus {
  animation: userbar-plus-bounce 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.userbar__balance:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.userbar__balance--zero {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  text-shadow: none;
}

.userbar__balance--zero:hover,
.userbar__balance--zero:focus-visible {
  border-color: rgba(244, 255, 248, 0.4);
  box-shadow:
    0 0 0 1px rgba(244, 255, 248, 0.16),
    0 0 18px rgba(244, 255, 248, 0.08);
}

.userbar__balance--zero:focus-visible {
  outline-color: var(--white);
}

.nav-toggle {
  display: none;
  appearance: none;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(184, 255, 212, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: var(--neon);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.12);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.72);
  box-shadow: var(--neon-glow);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(57, 255, 154, 0.35);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.app-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 0;
}

@keyframes app-nav-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes userbar-shine {
  from {
    opacity: 0.9;
    transform: translateX(-85%) rotate(8deg);
  }
  to {
    opacity: 0;
    transform: translateX(85%) rotate(8deg);
  }
}

@keyframes userbar-shine-shift {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -20% 0;
  }
}

@keyframes userbar-plus-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-2px) scale(1.18);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes userbar-ring-spin {
  from {
    transform: scale(1) rotate(0deg);
  }
  to {
    transform: scale(1) rotate(360deg);
  }
}

.app-nav__track {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 24px rgba(57, 255, 154, 0.08);
  overflow: hidden;
}

.app-nav__thumb {
  position: absolute;
  top: 0.28rem;
  left: 0;
  bottom: 0.28rem;
  width: 0;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.4);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, width;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease;
}

.app-nav__link {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--white-dim);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.35s ease;
}

.app-nav__link:hover:not(.is-active):not(.is-preview) {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.35);
}

.app-nav__link.is-active,
.app-nav__link.is-preview {
  color: #04140c;
  text-shadow: none;
}

.app-nav__track.is-previewing .app-nav__link.is-active:not(.is-preview) {
  color: var(--white-dim);
}

.app-nav__link:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.app-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.38rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: var(--neon);
  color: #04140c;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-nav__plus {
  position: relative;
  top: -0.16em;
  margin-left: 0.05em;
  font-family: var(--font-sans);
  font-size: 1.48em;
  font-weight: 700;
  line-height: 0.8;
  color: var(--neon);
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.userbar__balance-plus {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-right: 0.22em;
  font-family: var(--font-sans);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-shadow: none;
}

.app-nav__link.is-active .app-nav__plus,
.app-nav__link.is-preview .app-nav__plus {
  color: #04140c;
}

.app-nav__track.is-previewing .app-nav__link.is-active:not(.is-preview) .app-nav__plus {
  color: var(--neon);
}

.app-nav__link.is-active .app-nav__badge,
.app-nav__link.is-preview .app-nav__badge {
  background: #04140c;
  color: var(--neon);
}

.app-nav__track.is-previewing .app-nav__link.is-active:not(.is-preview) .app-nav__badge {
  background: var(--neon);
  color: #04140c;
}

@media (prefers-reduced-motion: reduce) {
  .app-nav__thumb {
    transition: none;
  }

  .userbar__balance,
  .user-menu__trigger,
  .user-menu__trigger::before,
  .inbox-bell__trigger,
  .inbox-bell__trigger::before,
  .app-nav__track {
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    transform: none;
    animation: none;
  }

  .userbar__balance:hover,
  .userbar__balance:focus-visible,
  .user-menu__trigger:hover,
  .user-menu__trigger:focus-visible,
  .user-menu.is-open .user-menu__trigger,
  .inbox-bell__trigger:hover,
  .inbox-bell__trigger:focus-visible,
  .inbox-bell.is-open .inbox-bell__trigger,
  .app-nav__track:hover,
  .app-nav__track:focus-within {
    transform: none;
  }

  .userbar__balance::after,
  .user-menu__trigger::after,
  .inbox-bell__trigger::after,
  .app-nav__track::after,
  .userbar__balance:hover::after,
  .userbar__balance:focus-visible::after,
  .user-menu__trigger:hover::after,
  .user-menu__trigger:focus-visible::after,
  .inbox-bell__trigger:hover::after,
  .inbox-bell__trigger:focus-visible::after,
  .app-nav__track:hover::after,
  .app-nav__track:focus-within::after,
  .user-menu__trigger:hover::before,
  .user-menu__trigger:focus-visible::before,
  .user-menu.is-open .user-menu__trigger::before,
  .inbox-bell__trigger:hover::before,
  .inbox-bell__trigger:focus-visible::before,
  .inbox-bell.is-open .inbox-bell__trigger::before,
  .userbar__balance:hover .userbar__balance-plus,
  .userbar__balance:focus-visible .userbar__balance-plus {
    animation: none;
    opacity: 0;
  }

  .user-menu__trigger:hover::before,
  .user-menu__trigger:focus-visible::before,
  .user-menu.is-open .user-menu__trigger::before,
  .inbox-bell__trigger:hover::before,
  .inbox-bell__trigger:focus-visible::before,
  .inbox-bell.is-open .inbox-bell__trigger::before {
    opacity: 1;
    transform: none;
  }
}

.user-menu {
  position: relative;
  z-index: 20;
}

.user-menu__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.12);
  transform: translateZ(0);
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    background 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-menu__trigger::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px dashed rgba(57, 255, 154, 0.7);
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.35);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.user-menu__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(184, 255, 212, 0.32) 50%,
    transparent 62%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  opacity: 0;
  pointer-events: none;
}

.user-menu__trigger:hover,
.user-menu__trigger:focus-visible,
.user-menu.is-open .user-menu__trigger {
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.78);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.28),
    0 0 22px rgba(57, 255, 154, 0.5),
    0 0 48px rgba(57, 255, 154, 0.22);
  transform: scale(1.06);
}

.user-menu__trigger:hover::before,
.user-menu__trigger:focus-visible::before,
.user-menu.is-open .user-menu__trigger::before {
  opacity: 1;
  transform: scale(1);
  animation: userbar-ring-spin 1.35s linear infinite;
}

.user-menu__trigger:hover::after,
.user-menu__trigger:focus-visible::after {
  opacity: 1;
  animation: userbar-shine-shift 0.55s ease;
}

.user-menu__trigger:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.inbox-bell {
  position: relative;
  z-index: 21;
}

.inbox-bell__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  overflow: visible;
  font-family: var(--font-sans);
  box-shadow: none;
  transform: translateZ(0);
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    background 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.inbox-bell__trigger::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px dashed rgba(57, 255, 154, 0.7);
  opacity: 0;
  transform: scale(0.86);
  pointer-events: none;
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.35);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.inbox-bell__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(184, 255, 212, 0.32) 50%,
    transparent 62%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  opacity: 0;
  pointer-events: none;
}

.inbox-bell__trigger:hover,
.inbox-bell__trigger:focus-visible,
.inbox-bell.is-open .inbox-bell__trigger {
  border-color: var(--line-strong);
  background: rgba(0, 0, 0, 0.78);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.28),
    0 0 22px rgba(57, 255, 154, 0.5),
    0 0 48px rgba(57, 255, 154, 0.22);
  transform: scale(1.06);
}

.inbox-bell__trigger:hover::before,
.inbox-bell__trigger:focus-visible::before,
.inbox-bell.is-open .inbox-bell__trigger::before {
  opacity: 1;
  transform: scale(1);
  animation: userbar-ring-spin 1.35s linear infinite;
}

.inbox-bell__trigger:hover::after,
.inbox-bell__trigger:focus-visible::after {
  opacity: 1;
  animation: userbar-shine-shift 0.55s ease;
}

.inbox-bell__trigger:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.inbox-bell__icon {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.inbox-bell__badge {
  position: absolute;
  top: -0.22rem;
  right: -0.22rem;
  z-index: 2;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--neon);
  color: #04140c;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  box-shadow: 0 0 12px rgba(57, 255, 154, 0.45);
}

.inbox-bell__badge[hidden] {
  display: none !important;
}

.inbox-bell__dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(22.5rem, calc(100vw - 1.4rem));
  padding: 0.45rem;
  border-radius: 18px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(135deg, rgba(57, 255, 154, 0.07), transparent 55%),
    rgba(8, 14, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(57, 255, 154, 0.12);
  display: none;
}

.inbox-bell.is-open .inbox-bell__dropdown {
  display: grid;
  gap: 0.35rem;
}

.inbox-bell__dropdown[hidden] {
  display: none !important;
}

.inbox-bell__list {
  display: grid;
  gap: 0.28rem;
  max-height: min(24rem, 60vh);
  overflow: auto;
}

.inbox-bell__empty {
  margin: 0;
  padding: 1.15rem 0.85rem;
  text-align: center;
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.inbox-bell__footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.15rem 0.2rem 0.1rem;
}

.inbox-bell__clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}

.inbox-bell__clear:hover,
.inbox-bell__clear:focus-visible {
  color: var(--neon);
}

.inbox-bell__clear[hidden] {
  display: none !important;
}

.inbox-item {
  position: relative;
  display: grid;
  gap: 0.18rem;
  padding: 0.7rem 2.1rem 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--white-dim);
  font-family: var(--font-sans);
  text-align: left;
}

.inbox-item--link {
  cursor: pointer;
}

.inbox-item--link:hover {
  color: var(--white);
  border-color: rgba(57, 255, 154, 0.28);
  background:
    linear-gradient(160deg, rgba(57, 255, 154, 0.1), transparent 60%),
    rgba(5, 10, 8, 0.55);
}

.inbox-item__kind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--neon);
}

.inbox-item__icon {
  display: inline-flex;
  width: 0.9rem;
  height: 0.9rem;
}

.inbox-item__icon svg {
  width: 100%;
  height: 100%;
}

.inbox-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.inbox-item__body {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--white-soft);
}

.inbox-item__time {
  font-size: 0.72rem;
  color: var(--white-dim);
}

.inbox-item__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--white-dim);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.inbox-item__close:hover,
.inbox-item__close:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 248px;
  padding: 0.5rem;
  border-radius: 18px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(135deg, rgba(57, 255, 154, 0.07), transparent 55%),
    rgba(8, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(57, 255, 154, 0.12);
  display: none;
  gap: 0.28rem;
  overflow: hidden;
}

.user-menu.is-open .user-menu__dropdown {
  display: grid;
}

.user-menu__dropdown[hidden] {
  display: none !important;
}

.user-menu__item {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white-dim);
  text-align: left;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.user-menu__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 9px;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  border: 1px solid rgba(57, 255, 154, 0.22);
  line-height: 0;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.user-menu__icon {
  display: block;
  width: 15px;
  height: 15px;
}

.user-menu__label {
  min-width: 0;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__item:hover {
  color: var(--white);
  border-color: rgba(57, 255, 154, 0.28);
  background:
    linear-gradient(160deg, rgba(57, 255, 154, 0.1), transparent 60%),
    rgba(5, 10, 8, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.user-menu__item:hover .user-menu__icon-wrap {
  border-color: rgba(57, 255, 154, 0.45);
  background: rgba(57, 255, 154, 0.16);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.18);
  color: var(--neon-hot);
}

.user-menu__item--danger {
  color: var(--white-dim);
  border-color: rgba(255, 0, 60, 0.35);
  background: transparent;
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.1);
}

.user-menu__item--danger .user-menu__icon-wrap {
  color: var(--danger-hot);
  border-color: rgba(255, 0, 60, 0.45);
  background: rgba(255, 0, 60, 0.08);
}

.user-menu__item--danger .user-menu__label {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.user-menu__item--danger:hover {
  color: var(--white);
  border-color: rgba(255, 0, 60, 0.85);
  background: rgba(255, 0, 60, 0.06);
  box-shadow: 0 0 22px rgba(255, 0, 60, 0.28);
}

.user-menu__item--danger:hover .user-menu__icon-wrap {
  color: var(--danger-hot);
  border-color: rgba(255, 0, 60, 0.8);
  background: rgba(255, 0, 60, 0.14);
  box-shadow: 0 0 14px rgba(255, 0, 60, 0.35);
}

.user-menu__sep {
  height: 1px;
  margin: 0.2rem 0.55rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 255, 212, 0.18) 20%,
    rgba(57, 255, 154, 0.22) 50%,
    rgba(184, 255, 212, 0.18) 80%,
    transparent
  );
}

.user-avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  user-select: none;
}

.user-avatar--sm {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.78rem;
}

.user-avatar--md {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 0.95rem;
}

.user-avatar--lg {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.5rem;
}

.user-avatar--initial {
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-avatar--anon {
  color: var(--neon);
  background:
    radial-gradient(circle at 50% 35%, rgba(57, 255, 154, 0.18), transparent 58%),
    #050a08;
  border: 1px solid rgba(57, 255, 154, 0.35);
  box-shadow: inset 0 0 12px rgba(57, 255, 154, 0.08);
}

.user-avatar--anon svg {
  display: block;
  width: 68%;
  height: 68%;
}

.user-avatar--sm.user-avatar--anon svg {
  width: 72%;
  height: 72%;
}

.user-avatar--image {
  background: #000;
  border: 1px solid rgba(184, 255, 212, 0.22);
}

.user-avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.credit-balance {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  color: var(--white-dim);
}

.credit-balance strong {
  color: var(--neon);
  text-shadow: 0 0 14px rgba(57, 255, 154, 0.35);
}

.credits-page {
  padding-bottom: 1.5rem;
  gap: 0.85rem;
}

#credits-root.home {
  gap: 0;
}

.credits-page-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 4rem 0 0.15rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.credits-page-intro__main {
  flex: 1 1 auto;
  min-width: 0;
}

.credits-page-intro .docs-storage-wrap {
  align-self: flex-start;
}

.credits-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.credits-page__lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.credits-page__fx {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.credits-page-intro .credit-balance {
  margin: 0.55rem 0 0;
}

.credits-panel__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 0 0 1.1rem;
}

.credits-panel__intro-main {
  flex: 1 1 auto;
  min-width: 0;
}

.credits-panel__intro .docs-storage-wrap {
  align-self: flex-start;
}

.credits-panel__intro .credits-panel__lead {
  margin-bottom: 0.55rem;
}

.credits-panel__intro .credit-balance {
  margin-bottom: 0.2rem;
}

.credits-panel__head {
  margin-bottom: 0.35rem;
}

.credits-panel__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
}

.credits-panel__lead {
  margin: 0.35rem 0 1.1rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.help-panel__head {
  margin-bottom: 0.35rem;
}

.help-panel__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--white);
}

.help-panel__lead {
  margin: 0.35rem 0 1.25rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.help-panel__foot {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

.help-panel__foot a,
.faq-item__a a,
.faq-empty a,
.faq-support-cta a,
.support-form-card a {
  color: var(--neon);
  text-decoration: none;
}

.help-panel__foot a:hover,
.faq-item__a a:hover,
.faq-support-cta a:hover,
.support-form-card a:hover {
  text-decoration: underline;
}

.faq-toolbar {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.faq-search {
  position: relative;
  display: block;
}

.faq-search__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--neon);
  pointer-events: none;
}

.faq-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(244, 255, 248, 0.03);
  border-radius: var(--radius-sm);
  padding: 0.7rem 2.6rem 0.7rem 2.55rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.faq-search input::placeholder {
  color: rgba(244, 255, 248, 0.32);
}

.faq-search input:focus {
  border-color: var(--line-strong);
  background: rgba(244, 255, 248, 0.05);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.faq-search input[type="search"]::-webkit-search-cancel-button {
  appearance: none;
}

.faq-search__clear {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white-dim);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.faq-search__clear:hover {
  color: var(--white);
  background: rgba(57, 255, 154, 0.16);
}

.faq-toolbar__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  flex-wrap: wrap;
}

.faq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.faq-item__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.55);
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.faq-item[open] .faq-item__badge {
  border-color: rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.14);
  color: var(--neon);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.12);
}

.faq-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.55);
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.faq-chip:hover {
  border-color: rgba(57, 255, 154, 0.4);
  color: var(--white);
}

.faq-chip.is-active {
  border-color: rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.14);
  color: var(--neon);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.12);
}

.faq-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.faq-tools #faq-sort {
  appearance: none;
  -webkit-appearance: none;
  min-width: 9.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 2.15rem 0.45rem 0.9rem;
  background-color: rgba(5, 10, 8, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%23b8ffd4' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  background-size: 0.72rem 0.48rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
}

.faq-tools #faq-sort::-ms-expand {
  display: none;
}

.faq-tools #faq-sort:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.faq-tools #faq-toggle-all {
  flex: 0 0 auto;
}

.faq-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.faq-count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--white-dim);
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 10, 8, 0.55);
}

.faq-item[open] {
  border-color: rgba(57, 255, 154, 0.28);
  background:
    linear-gradient(165deg, rgba(57, 255, 154, 0.08), transparent 55%),
    rgba(5, 10, 8, 0.55);
}

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q-text {
  flex: 1 1 auto;
  min-width: 0;
}

.faq-item__q::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--neon);
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-item__q::after {
  content: "–";
}

.faq-item__a {
  padding: 0 1.1rem 1.05rem 1.1rem;
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.faq-item__a em {
  font-style: normal;
  color: var(--white);
}

.faq-mark {
  color: #04140c;
  background: var(--neon);
  border-radius: 3px;
  padding: 0 0.12em;
}

.faq-empty {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.35rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(184, 255, 212, 0.22);
  background: rgba(5, 10, 8, 0.55);
}

.faq-empty__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.faq-empty__lead {
  margin: 0 0 0.45rem;
  color: var(--white-dim);
  font-size: 0.95rem;
}

.faq-support-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 1.6rem;
  margin-top: 0.6rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 255, 154, 0.28);
  background: linear-gradient(135deg, rgba(57, 255, 154, 0.1), transparent 55%);
}

.faq-support-cta__eyebrow {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
}

.faq-support-cta__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-support-cta__lead {
  margin: 0;
  max-width: 34rem;
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.faq-support-cta__action {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  flex: 0 0 auto;
}

.faq-support-cta__aside {
  margin: 0;
  font-size: 0.82rem;
  color: var(--white-soft);
  text-align: right;
}

.faq-support-cta .btn--neon {
  text-decoration: none;
}

.support-page {
  padding-bottom: 1.5rem;
  gap: 0.85rem;
}

#support-root.home {
  gap: 0;
}

.support-page-intro {
  position: relative;
  z-index: 1;
  margin: 4rem 0 0.15rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.support-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.support-page__lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.support-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.support-topic {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(5, 10, 8, 0.55);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-sans);
}

.support-topic strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.support-topic span {
  color: var(--white-dim);
  font-size: 0.88rem;
  line-height: 1.4;
}

.support-topic:hover {
  border-color: rgba(57, 255, 154, 0.35);
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.08);
}

.support-form-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(5, 10, 8, 0.55);
  min-width: 0;
}

.support-form-card__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.support-form-card #support-form {
  flex: 1 1 auto;
  min-height: 0;
  grid-template-rows: auto minmax(10.5rem, 1fr) auto;
}

.support-form-card #support-status {
  margin: 0;
  min-height: 0;
}

.support-form-card #support-status:empty {
  display: none;
}

.support-form-card__message {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.support-form-card .support-form-card__message textarea {
  flex: 1 1 auto;
  min-height: 10.5rem;
  height: 100%;
}

.support-form-card #support-submit.btn--neon {
  width: auto;
  min-width: 0;
  min-height: 2.45rem;
  justify-self: start;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}

.support-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(15.5rem, 0.7fr);
  gap: 0.85rem;
  align-items: stretch;
  margin: 0 0 0.85rem;
}

.support-contact-row--solo {
  grid-template-columns: 1fr;
}

.support-telegram-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(57, 255, 154, 0.28);
  background:
    linear-gradient(160deg, rgba(57, 255, 154, 0.12), transparent 58%),
    rgba(5, 10, 8, 0.55);
  min-width: 0;
}

.support-telegram-card__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  border: 1px solid rgba(57, 255, 154, 0.22);
}

.support-telegram-card__title {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.support-telegram-card__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.support-telegram-card__lead {
  margin: 0;
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-telegram-card__note {
  margin: 2lh 0 0;
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-telegram-card__actions {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}

.support-telegram-card__actions .btn--neon,
.support-telegram-card__actions .btn-secondary {
  width: 100%;
  min-height: 2.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-sans);
}

.support-telegram-card #support-telegram-status {
  margin: 0;
  min-height: 0;
}

.support-telegram-card #support-telegram-status:empty {
  display: none;
}

.support-tickets-card {
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(5, 10, 8, 0.55);
  overflow: hidden;
}

.support-tickets-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.support-chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(184, 255, 212, 0.1);
  background: rgba(5, 10, 8, 0.55);
}

.support-chat__count {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.support-chat__body {
  padding: 0.85rem 0.9rem 1rem;
}

.support-tickets-card > .muted,
.support-tickets-card > .hint {
  margin: 0 1.15rem 1rem;
}

.support-tickets-card #support-tickets-status:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.support-chat-empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 2.4rem 1.2rem;
  text-align: center;
  color: var(--white-dim);
}

.support-chat-empty p {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--white);
}

.support-chat-empty span {
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-chat-list {
  display: grid;
  gap: 0.85rem;
}

.support-chat-thread {
  border-radius: 16px;
  border: 1px solid rgba(184, 255, 212, 0.1);
  overflow: hidden;
  background: rgba(4, 9, 7, 0.55);
}

.support-chat-thread.is-closed {
  opacity: 0.78;
}

.support-chat-thread__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  background: rgba(8, 16, 12, 0.65);
  font-family: var(--font-sans);
}

.support-chat-thread.is-expanded .support-chat-thread__head {
  border-bottom: 1px solid rgba(184, 255, 212, 0.08);
}

.support-chat-thread__toggle {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.45rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.support-chat-thread__toggle:hover {
  background: rgba(57, 255, 154, 0.06);
}

.support-chat-thread__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.support-chat-thread__chevron {
  flex-shrink: 0;
  width: 0.48rem;
  height: 0.48rem;
  margin-left: 0.12rem;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.support-chat-thread.is-expanded .support-chat-thread__chevron {
  transform: rotate(45deg);
  margin-top: -0.12rem;
}

.support-chat-thread__topic {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-chat-thread__number {
  grid-column: 2;
  justify-self: center;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
}

.support-chat-thread__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.support-chat-thread__panel[hidden] {
  display: none;
}

.support-chat-thread__status {
  flex: 0 0 auto;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-chat-thread__status.is-open {
  color: var(--neon);
  background: rgba(57, 255, 154, 0.12);
  border: 1px solid rgba(57, 255, 154, 0.28);
}

.support-chat-thread__status.is-closed {
  color: var(--white-soft);
  background: rgba(244, 255, 248, 0.06);
  border: 1px solid rgba(184, 255, 212, 0.14);
}

.support-chat-thread__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.support-chat-action {
  appearance: none;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: transparent;
  color: var(--white-soft);
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.support-chat-action:hover {
  color: var(--white);
  border-color: rgba(57, 255, 154, 0.35);
}

.support-chat-action--danger {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.28);
}

.support-chat-action--danger:hover {
  color: #ff8a95;
  border-color: rgba(255, 107, 122, 0.5);
}

.support-chat-thread__log {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 0.85rem 0.8rem 0.95rem;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(57, 255, 154, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(6, 14, 10, 0.35), rgba(3, 7, 6, 0.7));
}

.support-chat-day,
.support-chat-service {
  justify-self: center;
  align-self: start;
  width: max-content;
  max-width: 100%;
}

.support-chat-day {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.82);
  border: 1px solid rgba(184, 255, 212, 0.1);
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.support-chat-row {
  display: flex;
}

.support-chat-row--user {
  justify-content: flex-start;
}

.support-chat-row--support {
  justify-content: flex-end;
}

.support-chat-bubble {
  display: grid;
  gap: 0.22rem;
  max-width: min(34rem, 86%);
  padding: 0.5rem 0.75rem 0.4rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.support-chat-bubble--user {
  justify-items: start;
  border-radius: 1.05rem 1.05rem 1.05rem 0.28rem;
  background: rgba(18, 28, 24, 0.92);
  border: 1px solid rgba(184, 255, 212, 0.12);
}

.support-chat-bubble--support {
  justify-items: end;
  border-radius: 1.05rem 1.05rem 0.28rem 1.05rem;
  background:
    linear-gradient(180deg, rgba(57, 255, 154, 0.2), rgba(57, 255, 154, 0.1));
  border: 1px solid rgba(57, 255, 154, 0.22);
}

.support-chat-bubble__name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.support-chat-bubble--user .support-chat-bubble__name {
  color: var(--green-soft);
}

.support-chat-bubble--support .support-chat-bubble__name {
  color: var(--neon);
}

.support-chat-bubble__text {
  margin: 0;
  justify-self: start;
  white-space: pre-wrap;
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1.45;
}

.support-chat-bubble__time {
  color: rgba(184, 255, 212, 0.62);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  justify-self: end;
}

.support-chat-bubble--user .support-chat-bubble__time {
  justify-self: start;
}

.support-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
  padding: 0.7rem 0.8rem 0.8rem;
  border-top: 1px solid rgba(184, 255, 212, 0.08);
  background: rgba(8, 16, 12, 0.55);
}

.support-chat-compose textarea {
  width: 100%;
  min-height: 2.6rem;
  max-height: 8rem;
  resize: vertical;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}

.support-chat-compose textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.support-chat-compose .btn--neon {
  width: auto;
  min-width: 0;
  min-height: 2.45rem;
}

.support-chat-compose__hint {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--white-soft);
}

.support-chat-reopen {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(184, 255, 212, 0.08);
  background: rgba(8, 16, 12, 0.55);
}

.support-chat-reopen p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--white-soft);
}

.support-chat-reopen .btn--neon {
  width: auto;
  min-width: 0;
  min-height: 2.45rem;
}

.support-chat-service {
  margin: 0.1rem 0 0;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.7);
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
}

.help-panel .stack select,
.help-panel .stack textarea,
.support-form-card .stack select,
.support-form-card .stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--white);
  outline: none;
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.help-panel .stack select:focus,
.help-panel .stack textarea:focus,
.support-form-card .stack select:focus,
.support-form-card .stack textarea:focus {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.95);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.help-panel .stack textarea::placeholder,
.support-form-card .stack textarea::placeholder {
  color: rgba(244, 255, 248, 0.28);
}

@media (max-width: 720px) {
  .support-topics {
    grid-template-columns: 1fr;
  }

  .support-contact-row {
    grid-template-columns: 1fr;
  }

  .support-chat-thread__head {
    column-gap: 0.3rem;
  }

  .support-chat-thread__actions {
    justify-content: flex-end;
  }

  .support-chat-bubble {
    max-width: 92%;
  }

  .support-chat-compose {
    grid-template-columns: 1fr;
  }

  .faq-toolbar__row {
    align-items: stretch;
  }

  .faq-tools {
    width: 100%;
  }

  .faq-tools #faq-sort {
    min-width: 0;
    width: 100%;
  }

  .faq-item__q {
    flex-wrap: wrap;
  }

  .faq-item__q-text {
    flex: 1 1 calc(100% - 2.5rem);
    order: 2;
  }

  .faq-item__q::after {
    order: 3;
    margin-left: auto;
  }

  .faq-support-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .faq-support-cta__action {
    justify-items: start;
  }

  .faq-support-cta__aside {
    text-align: left;
  }
}

.credits-banner {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 255, 154, 0.28);
  background: rgba(8, 28, 18, 0.55);
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
}

.credits-banner[hidden] {
  display: none !important;
}

.credits-banner__text {
  flex: 1 1 14rem;
}

.credits-banner__actions,
.credits-history__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.credits-banner__resume,
.credits-banner__cancel,
.credits-history__cancel {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.credits-banner__resume {
  color: var(--green-soft);
  text-decoration: none;
}

.credits-banner__resume:hover,
.credits-history__resume:hover {
  color: var(--neon);
}

.credits-banner__cancel,
.credits-history__cancel {
  color: var(--white-dim);
}

.credits-banner__cancel:hover,
.credits-history__cancel:hover {
  color: var(--white);
}

.credits-banner[data-tone="ok"] {
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border-color: rgba(57, 255, 154, 0.72);
  background: rgba(5, 12, 9, 0.72);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.12) inset,
    0 0 22px rgba(57, 255, 154, 0.22);
  color: var(--neon);
  text-align: center;
}

.credits-banner[data-tone="error"] {
  border-color: rgba(255, 90, 110, 0.45);
  background: rgba(40, 10, 16, 0.5);
  color: var(--danger);
}

.credit-packs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.credit-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1.15rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(165deg, rgba(57, 255, 154, 0.05), transparent 50%),
    rgba(5, 10, 8, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.credit-pack--featured {
  border-color: rgba(57, 255, 154, 0.55);
  background:
    linear-gradient(165deg, rgba(57, 255, 154, 0.12), transparent 55%),
    rgba(5, 10, 8, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px rgba(57, 255, 154, 0.16);
}

.credit-pack__ribbon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.65);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.28), rgba(230, 162, 60, 0.12) 60%),
    rgba(28, 20, 8, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 230, 170, 0.08) inset,
    0 0 16px rgba(255, 209, 102, 0.28);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe29a;
}

.credit-pack__name {
  margin: 0 1.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.credit-pack__amount {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(57, 255, 154, 0.28);
}

.credit-pack__hint {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white-dim);
  min-height: 1.35em;
}

.credit-pack__cta {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  font-family: var(--font-sans);
}

.credit-pack__cta:disabled {
  opacity: 0.72;
  cursor: default;
}

.credit-pack--custom {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 0;
}

.credit-pack--custom .credit-pack__name {
  margin: 0;
}

.credit-pack--custom .credit-pack__hint {
  min-height: 0;
  font-weight: 500;
}

.credit-pack__custom-row {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 0.35rem;
}

.credit-pack--custom .credit-pack__cta {
  width: auto;
  max-width: none;
  margin-top: 0;
  flex: 0 0 auto;
  padding-inline: 1.15rem;
}

.credit-pack__custom-field {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 9.5rem;
}

.credit-pack__custom-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0.55rem 1.85rem 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
}

.credit-pack__custom-suffix {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--white-dim);
}

.credits-history {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(244, 255, 248, 0.1);
}

.credits-history__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.credits-history__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.credits-history__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.credits-history__retention {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-soft);
}

.credits-history__retention input {
  width: 4.4rem;
  padding: 0.38rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
}

.btn.credits-history__tool-btn {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.26rem 0.55rem;
  min-height: 1.8rem;
  border-radius: 10px;
}

.credits-history__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.credits-history__filters .docs-filter-chip {
  font-family: var(--font-sans);
}

.credits-history__list {
  display: grid;
  gap: 0.4rem;
}

.credits-history__empty {
  margin: 0;
}

.credits-history__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(244, 255, 248, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(5, 10, 8, 0.55);
}

.credits-history__row strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.credits-history__doc {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--neon);
  cursor: pointer;
  text-decoration: none;
}

.credits-history__doc:hover {
  text-decoration: underline;
}

.credits-history__row small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
}

.credits-history__amount--in {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--neon);
}

.credits-history__amount--out {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--white);
}

.credits-history__amount--void {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--white-dim);
  text-decoration: line-through;
}

.credits-history__amount--pending {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--white-dim);
}

.credits-history__resume {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-soft);
  text-decoration: none;
}

.credits-history__resume:hover {
  color: var(--neon);
}

.credits-short-link {
  color: var(--neon);
  font-weight: 700;
  text-decoration: none;
}

.credits-short-link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .credit-packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .credits-page-intro,
  .credits-panel__intro {
    flex-direction: column;
    align-items: stretch;
  }

  .credits-page-intro .docs-storage-wrap,
  .credits-page-intro .docs-storage,
  .credits-panel__intro .docs-storage-wrap,
  .credits-panel__intro .docs-storage {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .credit-packs {
    grid-template-columns: 1fr;
  }

  .credit-pack__custom-row {
    max-width: none;
  }

  .credit-pack__custom-field {
    max-width: none;
  }

  .credits-history__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .credits-history__resume,
  .credits-history__actions {
    grid-column: 1 / -1;
  }
}

.back-link {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--green-soft);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.back-link:hover {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.45);
}

.shell--editor .back-link {
  position: relative;
  z-index: 4;
}

.shell--editor.shell--home .panel,
.shell--editor.shell--home .panel.panel--form,
.shell--editor.shell--home .panel.panel--preview,
.shell--editor.shell--home .panel.panel--dark {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  padding: 0.15rem 0 0;
}

.shell--editor.shell--home .panel::before,
.shell--editor.shell--home .panel.panel--dark::before {
  display: none;
}

.editor-page {
  gap: 1.1rem;
}

.shell--editor.shell--home .panel__head h1,
.shell--editor.shell--home .panel__head h2 {
  font-family: var(--font-sans);
}

.panel {
  position: relative;
  z-index: 1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(244, 255, 248, 0.04);
  padding: 1.3rem 1.4rem 1.5rem;
  overflow: hidden;
}

.panel.panel--hero,
.panel.panel--dark {
  overflow: visible;
  padding-top: 1.6rem;
  background: rgba(4, 7, 6, 0.96);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel--hero::before,
.panel--dark::before {
  display: none;
}

.panel--hero .panel__head,
.panel--dark .panel__head {
  overflow: visible;
  margin-bottom: 0.5rem;
  align-items: flex-start;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57, 255, 154, 0.65),
    transparent
  );
  opacity: 0.7;
  pointer-events: none;
}

.shell--auth {
  --auth-logo-zone: clamp(7.5rem, 18vh, 11rem);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 0;
  padding-bottom: 3rem;
  box-sizing: border-box;
  position: relative;

  animation: none;
}

.shell--auth > :not(.auth-fx):not(.topbar) {
  position: relative;
  z-index: 1;
}

.shell--auth > .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  height: var(--auth-logo-zone);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  animation: authEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shell--auth .topbar .brand {

  left: 0.45rem;
}

.shell--auth .topbar .brand__logo {
  height: clamp(3.5rem, 7.5vw, 5.25rem);
  filter:
    drop-shadow(0 0 12px rgba(57, 255, 154, 0.22))
    drop-shadow(0 0 36px rgba(57, 255, 154, 0.1));
}

.shell--auth .topbar .userbar {
  margin-left: 0;
}

.shell--auth .panel--auth {
  flex: 0 0 auto;
  margin-top: var(--auth-logo-zone);
}

.auth-fx {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100vh;
  margin-left: -50vw;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-fx__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-fx__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 52% 46% at 50% 42%,
      rgba(5, 8, 7, 0.08) 0%,
      rgba(5, 8, 7, 0.5) 52%,
      rgba(5, 8, 7, 0.9) 100%
    ),
    linear-gradient(180deg, rgba(5, 8, 7, 0.4) 0%, transparent 26%, transparent 72%, rgba(5, 8, 7, 0.6) 100%);
  pointer-events: none;
}

body.auth-fx-active .atmosphere {
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(57, 255, 154, 0.07), transparent 60%),
    linear-gradient(165deg, #030605 0%, #050807 45%, #07110d 100%);
}

body.auth-fx-active .atmosphere::before {
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 0%, transparent 75%);
}

@keyframes authEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes authPanelPulse {
  0%,
  100% {
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.72),
      0 0 0 1px rgba(57, 255, 154, 0.07),
      0 0 40px rgba(57, 255, 154, 0.1),
      inset 0 1px 0 rgba(244, 255, 248, 0.05);
  }
  50% {
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.72),
      0 0 0 1px rgba(57, 255, 154, 0.14),
      0 0 58px rgba(57, 255, 154, 0.18),
      inset 0 1px 0 rgba(244, 255, 248, 0.07);
  }
}

@keyframes authSheen {
  0% {
    transform: translateX(-60%) skewX(-18deg);
    opacity: 0;
  }
  35% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(220%) skewX(-18deg);
    opacity: 0;
  }
}

.panel--auth {
  width: min(440px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding-top: 1.85rem;
  padding-bottom: 2.55rem;
  overflow: hidden;
  background: rgba(3, 6, 5, 0.9);
  border-color: rgba(57, 255, 154, 0.2);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(57, 255, 154, 0.07),
    0 0 40px rgba(57, 255, 154, 0.1),
    inset 0 1px 0 rgba(244, 255, 248, 0.05);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation:
    authEnter 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.07s both,
    authPanelPulse 5.5s ease-in-out 1s infinite;
}

.panel--auth .stack,
.panel--auth .stack label {
  min-width: 0;
  max-width: 100%;
}

.panel--auth .stack label {
  gap: calc(0.32rem + 1px);
}

.panel--auth .stack label > span:not(.field-error):not(.field-hint):not(.hint) {
  font-weight: 400;
  padding-left: 2px;
}

.panel--auth::before {
  opacity: 0.85;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(57, 255, 154, 0.15) 20%,
    rgba(184, 255, 212, 0.85) 50%,
    rgba(57, 255, 154, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.35);
}

.panel--auth::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(184, 255, 212, 0.05) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: authSheen 7s ease-in-out 1.4s infinite;
}

.panel--auth .stack input {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(184, 255, 212, 0.12);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.panel--auth .stack input:hover {
  border-color: rgba(184, 255, 212, 0.22);
}

.panel--auth .stack input:focus {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(57, 255, 154, 0.55);
  box-shadow:
    0 0 0 3px rgba(57, 255, 154, 0.14),
    0 0 22px rgba(57, 255, 154, 0.16);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 2.85rem;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 0.38rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(57, 255, 154, 0.07);
  color: var(--green-soft);
  opacity: 0.92;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.password-field__toggle:hover {
  opacity: 1;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  transform: translateY(-50%) scale(1.06);
}

.password-field__toggle:active {
  transform: translateY(-50%) scale(0.94);
}

.password-field__toggle:focus-visible {
  outline: 2px solid rgba(57, 255, 154, 0.55);
  outline-offset: 2px;
  opacity: 1;
}

.password-field__eye {
  width: 1.2rem;
  height: 1.2rem;
  overflow: visible;
}

.password-field__socket,
.password-field__iris,
.password-field__pupil,
.password-field__glint {
  transform-box: fill-box;
  transform-origin: center;
}

.password-field__socket {
  transform: scaleY(1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.password-field__iris,
.password-field__pupil,
.password-field__glint {
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    opacity 0.2s ease;
}

.password-field__slash {
  stroke-dasharray: 28;
  stroke-dashoffset: 0;
  opacity: 1;
  transition:
    stroke-dashoffset 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease 0.12s;
}

.password-field__toggle.is-revealed .password-field__iris,
.password-field__toggle.is-revealed .password-field__pupil,
.password-field__toggle.is-revealed .password-field__glint {
  transform: scale(1);
  opacity: 1;
}

.password-field__toggle.is-revealed .password-field__slash {
  stroke-dashoffset: 28;
  opacity: 0;
  transition:
    stroke-dashoffset 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.12s ease;
}

.password-field__toggle.is-blinking .password-field__socket {
  animation: pwEyeBlink 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.password-field__toggle.is-revealed:hover .password-field__iris,
.password-field__toggle.is-revealed:hover .password-field__pupil,
.password-field__toggle.is-revealed:hover .password-field__glint {
  animation: pwEyeLook 1.8s ease-in-out infinite;
}

@keyframes pwEyeBlink {
  0%,
  100% {
    transform: scaleY(1);
  }
  42% {
    transform: scaleY(0.12);
  }
}

@keyframes pwEyeLook {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(1.1px, -0.35px) scale(1);
  }
  58% {
    transform: translate(-0.9px, 0.4px) scale(1);
  }
  78% {
    transform: translate(0.45px, 0.2px) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-fx__canvas {
    display: none;
  }

  .shell--auth .topbar,
  .panel--auth {
    animation: none;
  }

  .panel--auth::after {
    animation: none;
    display: none;
  }

  .auth-fx__vignette {
    background:
      radial-gradient(
        ellipse 60% 50% at 50% 40%,
        rgba(57, 255, 154, 0.08) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse 80% 70% at 50% 50%,
        rgba(5, 8, 7, 0.2) 0%,
        rgba(5, 8, 7, 0.75) 100%
      );
  }

  .password-field__socket,
  .password-field__iris,
  .password-field__pupil,
  .password-field__glint,
  .password-field__slash,
  .password-field__toggle {
    transition: none;
  }

  .password-field__toggle.is-blinking .password-field__socket,
  .password-field__toggle.is-revealed:hover .password-field__iris,
  .password-field__toggle.is-revealed:hover .password-field__pupil,
  .password-field__toggle.is-revealed:hover .password-field__glint {
    animation: none;
  }
}

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  overflow: visible;
}

.panel__head h1,
.panel__head h2,
.auth-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
}

.auth-title {
  text-align: center;
}

.panel__head-tools {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  flex-shrink: 0;
}

.random-fill-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.65);
  color: var(--white-dim);
  cursor: pointer;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.random-fill-btn:hover,
.random-fill-btn:focus-visible {
  border-color: var(--neon);
  background: rgba(57, 255, 154, 0.12);
  color: var(--neon);
  box-shadow: var(--neon-glow);
}

.random-fill-btn:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.random-fill-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  color: var(--white-dim);
}

.random-fill-btn svg {
  flex: 0 0 auto;
  display: block;
}

.random-fill-btn__label {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.random-fill-btn.is-busy svg {
  animation: random-fill-swap 0.7s ease-in-out infinite;
}

@keyframes random-fill-swap {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

.auth-switch {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--white-soft);
}

.auth-switch--home {
  /* Match .stack gap so button sits midway between last field and this link */
  margin-top: 0.8rem;
  text-align: center;
}

/* Equal space above/below submit between last field and "Zur Startseite" */
.panel--auth #auth-form > .btn--auth {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.panel--auth #auth-status:empty {
  display: none;
}

.auth-switch--alt {
  margin-top: 0.65rem;
  text-align: center;
}

.auth-switch a {
  color: var(--neon);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.35);
}

.auth-switch a:hover {
  color: var(--neon-hot);
}

.password-strength {
  display: grid;
  gap: 0;
  margin-top: 0.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.password-strength[hidden] {
  display: none !important;
}

.password-strength__track {
  position: relative;
  height: 0.34rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(184, 255, 212, 0.12);
  box-shadow: inset 0 1px 0 rgba(244, 255, 248, 0.04);
}

.password-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--danger);
  transition:
    width 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.password-strength__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  margin-top: 0.55rem;
}

.password-strength__label {
  display: block;
  width: 100%;
  margin: 1.5rem 0 0;
  min-height: 0;
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
  font-weight: 500;
  color: var(--white-soft);
  transition: color 0.22s ease;
}

.password-strength.is-empty .password-strength__fill {
  box-shadow: none;
}

.password-strength.is-valid .password-strength__track {
  border-color: rgba(57, 255, 154, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .password-strength__fill,
  .password-strength__label {
    transition: none;
  }
}

.stack {
  display: grid;
  gap: 0.8rem;
}

.stack label,
.grid label,
.field-stempel {
  display: grid;
  gap: 0.32rem;
}

.stack label > span:not(.field-error):not(.field-hint):not(.hint),
.grid label > span:not(.field-error):not(.field-hint):not(.hint),
.field-stempel > span,
.choice__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.stack input,
.grid input,
.field-stempel select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.stack input::placeholder,
.grid input::placeholder {
  color: rgba(244, 255, 248, 0.28);
}

.stack input:focus,
.grid input:focus,
.field-stempel select:focus {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.95);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.stack input:-webkit-autofill,
.stack input:-webkit-autofill:hover,
.stack input:-webkit-autofill:focus,
.grid input:-webkit-autofill,
.grid input:-webkit-autofill:hover,
.grid input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  box-shadow: 0 0 0 1000px #080d0b inset;
  border-color: rgba(184, 255, 212, 0.16);
  transition: background-color 99999s ease-out;
}

.stack input:autofill,
.stack input:autofill:hover,
.stack input:autofill:focus,
.grid input:autofill,
.grid input:autofill:hover,
.grid input:autofill:focus {
  background-color: #080d0b !important;
  background-image: none !important;
  color: var(--white) !important;
  caret-color: var(--white);
  filter: none;
  box-shadow: inset 0 0 0 1px rgba(57, 255, 154, 0.1);
  border-color: rgba(184, 255, 212, 0.16);
}

.panel--auth .stack input:-webkit-autofill,
.panel--auth .stack input:-webkit-autofill:hover,
.panel--auth .stack input:-webkit-autofill:focus {
  box-shadow:
    0 0 0 1000px #070b09 inset,
    0 0 0 1px rgba(57, 255, 154, 0.08) inset;
}

.panel--auth .stack input:autofill,
.panel--auth .stack input:autofill:hover,
.panel--auth .stack input:autofill:focus {
  background-color: #070b09 !important;
}

.grid label.is-invalid input {
  border-color: rgba(255, 107, 122, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.18);
}

.grid label.is-warning input {
  border-color: rgba(232, 196, 72, 0.85);
  box-shadow: 0 0 0 3px rgba(232, 196, 72, 0.2);
}

.grid label.is-warning .field-error {
  color: #e8c448;
}

.field-error {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  min-height: 0;
}

.grid label .field-error {
  color: var(--danger);
  text-transform: none;
  letter-spacing: 0.01em;
  min-height: 0;
}

.field-error[hidden] {
  display: none !important;
}

.field-suggest {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.2rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(120, 220, 170, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(40, 90, 60, 0.35);
  color: var(--green-soft);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: left;
}

.field-suggest:hover,
.field-suggest:focus-visible {
  border-color: rgba(120, 220, 170, 0.7);
  background: rgba(40, 90, 60, 0.55);
  outline: none;
}

.grid label.is-warning .field-suggest {
  border-color: rgba(232, 196, 72, 0.45);
  background: rgba(90, 70, 20, 0.35);
  color: #e8c448;
}

.grid label.is-warning .field-suggest:hover,
.grid label.is-warning .field-suggest:focus-visible {
  border-color: rgba(232, 196, 72, 0.8);
  background: rgba(90, 70, 20, 0.55);
}

.field-suggest[hidden] {
  display: none !important;
}

.text-stempel {
  display: grid;
  gap: 0.65rem;
  grid-column: 1 / -1;
}

.text-stempel[hidden],
.text-stempel__farbe[hidden],
.text-stempel__preview[hidden] {
  display: none !important;
}

.text-stempel__farbe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
}

.text-stempel__preview {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
}

.text-stempel__lines {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  color: #8eb4e8;
}

.text-stempel__lines--black {
  color: #e6e2dc;
}

.text-stempel__lines strong {
  font-weight: 700;
}

.gewa-toggle-row,
.option-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.15rem;
  grid-column: 1 / -1;
}

.field-stempel select option {
  background: var(--panel-solid);
  color: var(--white);
}

.stempel-picker {
  position: relative;
  z-index: 20;
}

.panel.panel--form:has(.stempel-picker.is-open),
body.stempel-sheet-open .panel.panel--form {
  z-index: 80;
  overflow: visible;
}

body.stempel-sheet-open .panel.panel--preview,
.layout:has(.stempel-picker.is-open) .panel.panel--preview {
  z-index: 0;
}

.stempel-picker,
.stempel-picker img,
.stempel-card,
.stempel-card__media,
.stempel-card__wm,
.stempel-card__name {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.stempel-picker__trigger {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
}

.stempel-picker__trigger:hover,
.stempel-picker.is-open .stempel-picker__trigger {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.stempel-picker__trigger-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.stempel-picker__trigger-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.stempel-picker__trigger-label {
  font-family: var(--font-sans);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stempel-picker.is-missing .stempel-picker__trigger {
  grid-template-columns: 1fr;
  padding-left: 0.75rem;
}

.stempel-picker.is-missing .stempel-picker__trigger-media {
  display: none;
}

.stempel-picker.is-missing .stempel-picker__trigger-label {
  color: var(--danger);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.stempel-picker__panel {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.32rem);
  left: 0;
  right: 0;
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.55rem;
  border: 1px solid rgba(57, 255, 154, 0.32);
  border-radius: var(--radius-sm);
  background: #0b1410;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stempel-picker__panel[hidden] {
  display: none;
}

.stempel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.stempel-card {
  position: relative;
  display: grid;
  gap: 0.28rem;
  padding: 0.32rem;
  border-radius: 10px;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.stempel-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.stempel-card:hover,
.stempel-card:has(input:checked) {
  border-color: var(--neon);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.22);
}

.stempel-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.stempel-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.stempel-card__wm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: clamp(0.42rem, 2.4vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: rgba(16, 20, 26, 0.34);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
  transform: rotate(-24deg);
  user-select: none;
}

.stempel-card__name {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stempel-create {
  position: relative;
  z-index: 2;
  margin-top: 0.55rem;
}

.stempel-create:has(.stempel-create__hits:not([hidden])) {
  z-index: 32;
}

.stempel-create__toggle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--neon);
  background: transparent;
  border: 0;
  padding: 0.2rem 0;
  cursor: pointer;
}

.stempel-create__sheet[hidden] {
  display: none !important;
}

.stempel-create__sheet {
  margin-top: 0.5rem;
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid rgba(57, 255, 154, 0.22);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  overflow: visible;
}

.stempel-create__head {
  display: grid;
  gap: 0.28rem;
  width: 100%;
}

.stempel-create__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.stempel-create__hint {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.4;
}

.stempel-create__field {
  position: relative;
  width: 100%;
}

.stempel-create__icon {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  color: var(--neon);
  pointer-events: none;
}

.stempel-create__input,
.grid .stempel-create__input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.72rem 0.85rem 0.72rem 2.45rem;
  border: 1px solid rgba(57, 255, 154, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(8, 16, 13, 0.92);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.stempel-create__input::placeholder,
.grid .stempel-create__input::placeholder {
  color: rgba(244, 255, 248, 0.32);
}

.stempel-create__input:focus,
.grid .stempel-create__input:focus {
  border-color: var(--neon);
  background: rgba(8, 18, 14, 0.98);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.stempel-create__hits {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.45rem;
  max-height: 14rem;
  overflow: auto;
  border: 1px solid rgba(57, 255, 154, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(8, 16, 13, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.stempel-create__hits[hidden] {
  display: none !important;
}

.stempel-create__hit {
  appearance: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.stempel-create__hit:hover {
  background: rgba(57, 255, 154, 0.1);
  color: var(--white);
}

.stempel-create__sheet .btn--compact {
  justify-self: start;
  width: auto;
}

.stempel-create__status {
  font-size: 0.78rem;
  margin: 0;
}

.stempel-create__status.is-error {
  color: var(--danger);
}

.admin-stamp-list {
  display: grid;
  gap: 0.55rem;
}

.admin-stamp-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(184, 255, 212, 0.16);
  border-radius: 10px;
}

.admin-stamp-row img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

@media (max-width: 920px) {
  .stempel-picker__panel {
    -webkit-overflow-scrolling: touch;
  }
}

.btn,
.btn-secondary,
.linkish {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.btn {
  border-radius: 14px;
  background: linear-gradient(180deg, var(--neon-hot) 0%, var(--green-deep) 100%);
  color: #04140c;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.95rem 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), 0 0 12px rgba(57, 255, 154, 0.2);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn--compact {
  min-height: 0;
  min-width: 0;
  width: auto;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.btn--auth {
  background: rgba(244, 255, 248, 0.06);
  color: var(--white-dim);
  border: 1px solid rgba(184, 255, 212, 0.2);
  box-shadow: none;
  letter-spacing: 0.02em;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.btn--auth:hover:not(:disabled):not(.btn--success) {
  filter: none;
  background: linear-gradient(
    180deg,
    rgba(57, 255, 154, 0.18) 0%,
    rgba(34, 224, 122, 0.1) 100%
  );
  color: var(--white);
  border-color: rgba(57, 255, 154, 0.45);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.08),
    0 0 22px rgba(57, 255, 154, 0.22);
  transform: translateY(-1px);
}

.btn--auth:focus-visible {
  outline: none;
  border-color: rgba(57, 255, 154, 0.55);
  box-shadow:
    0 0 0 3px rgba(57, 255, 154, 0.16),
    0 0 22px rgba(57, 255, 154, 0.2);
}

.btn--auth.btn--success {
  background: linear-gradient(180deg, var(--neon-hot) 0%, var(--green-deep) 100%);
  color: #04140c;
  border-color: transparent;
  box-shadow: var(--neon-glow);
  pointer-events: none;
}

.btn-secondary,
.linkish {
  background: rgba(57, 255, 154, 0.06);
  color: var(--green-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-secondary:hover,
.linkish:hover {
  color: var(--white);
  border-color: var(--line-strong);
  background: rgba(57, 255, 154, 0.12);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
}

.hint {
  margin: 0.4rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--white-soft);
}

.hint--username-rules,
.hint--email-format {
  display: block;
  margin: 0.2rem 0 0;
  min-height: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  letter-spacing: -0.015em;
  text-align: left;
  text-transform: none;
  color: var(--danger);
  text-shadow: var(--danger-glow);
}

.hint--username-rules[hidden],
.hint--email-format[hidden] {
  display: none !important;
}

.hint--password-rules {
  display: block;
  margin: 0;
  min-height: 0;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  font-size: 0.58rem;
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: none;
  color: var(--white-soft);
}

.hint--password-rules[hidden] {
  display: none !important;
}

#status:empty,
#buy-status:empty,
#credits-status:empty,
#storage-plans-status:empty {
  display: none;
  min-height: 0;
  margin: 0;
}

.hint[data-tone="error"] {
  color: var(--danger);
  text-shadow: var(--danger-glow);
}

.hint[data-tone="ok"] {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.35);
}

.shell--home {
  padding-bottom: 4rem;
}

.home {
  --home-mx: 50%;
  --home-my: 32%;
  --home-dx: 0;
  --home-dy: 0;
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: 2.5rem;

}

.home-fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.home-fx__glow {
  position: absolute;
  inset: -15%;
  will-change: background;
  filter: blur(28px);
}

.home-fx__glow--a {
  background: radial-gradient(
    58% 48% at var(--home-mx) var(--home-my),
    rgba(57, 255, 154, 0.38) 0%,
    rgba(57, 255, 154, 0.16) 28%,
    rgba(57, 255, 154, 0.05) 52%,
    transparent 72%
  );
}

.home-fx__glow--b {
  background: radial-gradient(
    42% 38% at calc(100% - var(--home-mx)) calc(90% - var(--home-my) * 0.4),
    rgba(125, 255, 192, 0.18) 0%,
    rgba(125, 255, 192, 0.06) 40%,
    transparent 70%
  );
  mix-blend-mode: screen;
  filter: blur(36px);
}

.home-fx__grid {
  position: absolute;
  inset: -5%;
  background-image:
    linear-gradient(rgba(57, 255, 154, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 154, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(
    ellipse 80% 72% at var(--home-mx) var(--home-my),
    black 0%,
    rgba(0, 0, 0, 0.55) 38%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 72% at var(--home-mx) var(--home-my),
    black 0%,
    rgba(0, 0, 0, 0.55) 38%,
    transparent 78%
  );
  transform: translate3d(
    calc(var(--home-dx) * -18px),
    calc(var(--home-dy) * -14px),
    0
  );
  opacity: 0.9;
  will-change: transform;
}

.home-fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.65;
  will-change: transform;
  transform: translate3d(
    calc(var(--home-dx) * 42px),
    calc(var(--home-dy) * 34px),
    0
  );
}

.home-fx__orb--1 {
  width: min(38vw, 320px);
  height: min(38vw, 320px);
  top: 6%;
  left: 8%;
  background: radial-gradient(
    circle,
    rgba(57, 255, 154, 0.4) 0%,
    rgba(57, 255, 154, 0.12) 42%,
    transparent 72%
  );
}

.home-fx__orb--2 {
  width: min(30vw, 260px);
  height: min(30vw, 260px);
  top: 34%;
  right: 6%;
  background: radial-gradient(
    circle,
    rgba(184, 255, 212, 0.28) 0%,
    rgba(184, 255, 212, 0.08) 45%,
    transparent 74%
  );
  transform: translate3d(
    calc(var(--home-dx) * -36px),
    calc(var(--home-dy) * 28px),
    0
  );
}

.home-fx__beam {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 30%;
  height: 120px;
  background: radial-gradient(
    70% 55% at 50% 50%,
    rgba(57, 255, 154, 0.22) 0%,
    rgba(57, 255, 154, 0.06) 40%,
    transparent 72%
  );
  transform: translate3d(
    calc(var(--home-dx) * 20px),
    calc(var(--home-dy) * 36px),
    0
  );
  opacity: 0.75;
  filter: blur(22px);
  will-change: transform;
}

body.home-fx-active .atmosphere {
  opacity: 1;
  background:
    radial-gradient(
      65% 55% at var(--home-mx, 50%) var(--home-my, 32%),
      rgba(57, 255, 154, 0.2) 0%,
      rgba(57, 255, 154, 0.08) 32%,
      transparent 68%
    ),
    radial-gradient(
      55% 48% at calc(100% - var(--home-mx, 50%)) calc(100% - var(--home-my, 32%)),
      rgba(184, 255, 212, 0.1) 0%,
      transparent 65%
    ),
    radial-gradient(50% 40% at 50% 100%, rgba(34, 224, 122, 0.08) 0%, transparent 70%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 42%, #07110d 100%);
}

body.home-fx-active .atmosphere::before {
  mask-image: radial-gradient(
    ellipse 85% 75% at var(--home-mx, 50%) var(--home-my, 32%),
    black 0%,
    rgba(0, 0, 0, 0.45) 42%,
    transparent 78%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 85% 75% at var(--home-mx, 50%) var(--home-my, 32%),
    black 0%,
    rgba(0, 0, 0, 0.45) 42%,
    transparent 78%
  );
}

.shell--home .home > :not(.home-fx) {
  position: relative;
  z-index: 1;
}

.shell--home .topbar {
  position: relative;
  z-index: 40;
}

.shell--home .user-menu,
.shell--home .user-menu__dropdown {
  z-index: 50;
}

.home-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(0.5rem, 2vw, 1.25rem) 0.5rem clamp(1.25rem, 3.5vw, 2.25rem);
  margin-top: 0;
  overflow: visible;
}

.home-hero__eyebrow,
.home-hero__title,
.home-hero__lead,
.home-hero__sub,
.home-hero__cta,
.home-hero__meta {
  position: relative;
  z-index: 1;
}

.home-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(57, 255, 154, 0.35);
  animation: home-hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero__title {
  margin: 0 0 5rem;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: var(--white);
  text-shadow: 0 0 36px rgba(57, 255, 154, 0.22);
  animation: home-hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.home-hero__x {
  color: var(--neon);
  font-size: 1.18em;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(57, 255, 154, 0.45);
  line-height: 1;
}

.home-hero__eyebrow .home-hero__x {
  font-size: 1.22em;
  vertical-align: -0.02em;
}

.home-hero__title .home-hero__x {
  font-size: 1.12em;
  vertical-align: -0.04em;
}

.home-hero__lead {
  margin: 0 auto 0.7rem;
  max-width: 34rem;
  font-size: clamp(1.08rem, 2.4vw, 1.3rem);
  font-weight: 600;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(57, 255, 154, 0.25);
  animation: home-hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.home-hero__sub {
  margin: 0 auto 1.55rem;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--white-dim);
  animation: home-hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  animation: home-hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.home-hero__meta {
  list-style: none;
  margin: 2.85rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  animation: home-hero-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.home-hero__meta li {
  display: grid;
  gap: 0.1rem;
  min-width: 5.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
  align-content: center;
}

.home-hero__meta-item--wide {
  min-width: 9.25rem;
  max-width: 11.5rem;
  text-align: center;
}

.home-hero__meta strong,
.home-hero__meta-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--neon);
  letter-spacing: -0.02em;
}

.home-hero__meta strong {
  font-weight: 750;
}

.home-hero__meta-value {
  font-weight: 560;
}

.home-hero__meta-value--count {
  font-size: 1.5rem;
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.04em;
  display: inline-block;
  transform: scaleX(0.9);
  transform-origin: center;
}

.home-hero__meta li > span:last-child {
  font-size: 0.78rem;
  color: var(--white-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-hero__meta-item--wide > span:last-child {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.home-hero__cta .btn,
.home-close .btn,
.home-section__cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  min-width: 11.5rem;
  width: auto;
  flex: 0 0 auto;
  line-height: normal;
  overflow: visible;
  padding: 0.95em 1.35em;
  min-height: 0;
  box-sizing: border-box;
  font-size: 1.05rem;
}

.home-hero__cta .btn__icon,
.home-close .btn__icon,
.home-section__cta .btn__icon {
  flex-shrink: 0;
  display: block;
  width: 1.1em;
  height: 1.1em;
}

.home-hero__cta .btn--neon,
.home-close .btn--neon {
  width: auto;
  flex: 0 0 auto;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

@keyframes home-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.home-section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
}

.home-section__head {
  text-align: center;
  display: grid;
  gap: 0.4rem;
}

.home-section__head h1,
.home-section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.3;
  overflow: visible;
  color: var(--white);
}

#home-products-title,
#templates-title {
  font-family: var(--font-sans);
}

.home-section__head .muted,
.home-close__lead {
  margin: 0;
}

.home-section__cta {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}

.home-gallery {
  margin-top: 0.25rem;
}

#home-gallery .card__preview img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

body:not(.is-preview-admin) .is-soft-guarded,
body:not(.is-preview-admin) .is-soft-guarded img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.home-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.home-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-highlight {
  --step: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 1.5rem 1.3rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      160deg,
      rgba(57, 255, 154, calc(0.1 + var(--home-dx, 0) * 0.025)),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(12, 18, 15, 0.55), rgba(0, 0, 0, 0.38)),
    rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(184, 255, 212, 0.06);
  opacity: 0;
  transform: translateY(1.4rem) scale(0.97);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.home-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57, 255, 154, 0.45),
    transparent
  );
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.home-highlight::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 154, 0.14), transparent 68%);
  transform: translate3d(calc(var(--home-dx) * 16px), calc(var(--home-dy) * 12px), 0);
  pointer-events: none;
}

.home-highlights.is-inview .home-highlight {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--step) * 0.16s);
}

.home-highlights.is-settled .home-highlight {
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  transition-delay: 0s;
}

.home-highlights.is-settled .home-highlight:hover {
  border-color: rgba(57, 255, 154, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(184, 255, 212, 0.1),
    0 0 32px rgba(57, 255, 154, 0.14);
  transform: translateY(-4px) scale(1);
}

.home-highlight:hover .home-steps__num {
  color: var(--neon-hot);
}

.home-highlight:hover .home-steps__globe {
  animation-duration: 2.8s;
  filter: drop-shadow(0 0 10px rgba(57, 255, 154, 0.55));
}

.home-highlight h3,
.home-highlight p {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(0.55rem);
}

.home-highlights.is-inview .home-highlight h3,
.home-highlights.is-inview .home-highlight p {
  animation: home-steps-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-highlights.is-inview .home-highlight h3 {
  animation-delay: calc(0.18s + var(--step) * 0.16s);
}

.home-highlights.is-inview .home-highlight p {
  animation-delay: calc(0.26s + var(--step) * 0.16s);
}

.home-highlight h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.home-highlight p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--white-dim);
}

.home-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.home-steps__item {
  --step: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 1.45rem 1.25rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(57, 255, 154, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(1.4rem) scale(0.97);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.home-steps.is-inview .home-steps__item {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--step) * 0.16s);
}

.home-steps.is-settled .home-steps__item {
  transition:
    border-color 0.22s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
  transition-delay: 0s;
}

.home-steps.is-settled .home-steps__item:hover {
  border-color: rgba(57, 255, 154, 0.4);
  box-shadow: 0 0 32px rgba(57, 255, 154, 0.14);
  transform: translateY(-4px) scale(1);
}

.home-steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3rem;
  right: -0.65rem;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(57, 255, 154, 0.05),
    rgba(57, 255, 154, 0.75),
    rgba(57, 255, 154, 0.05)
  );
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.35);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
}

.home-steps.is-inview .home-steps__item:not(:last-child)::after {
  animation: home-steps-connector 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.28s + var(--step) * 0.16s);
}

.home-steps__item:hover .home-steps__num {
  color: var(--neon-hot);
}

.home-steps__item:hover .home-steps__globe {
  animation-duration: 2.8s;
  filter: drop-shadow(0 0 10px rgba(57, 255, 154, 0.55));
}

.home-steps__num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1.05rem;
  border-radius: 50%;
  isolation: isolate;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 16px rgba(57, 255, 154, 0.55);
  opacity: 0;
  transform: scale(0.7) rotate(-8deg);
}

.home-steps.is-inview .home-steps__num,
.home-highlights.is-inview .home-steps__num {
  animation: home-steps-num-in 0.65s cubic-bezier(0.34, 1.35, 0.64, 1) both;
  animation-delay: calc(0.08s + var(--step) * 0.16s);
}

.home-steps.is-inview .home-steps__num-val,
.home-highlights.is-inview .home-steps__num-val {
  animation: home-steps-num-pulse 2.8s ease-in-out infinite;
  animation-delay: calc(0.9s + var(--step) * 0.2s);
}

.home-steps__globe {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: home-steps-globe-spin 5.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(57, 255, 154, 0.35));
}

.home-steps__globe-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--neon);
}

.home-steps__globe-svg circle,
.home-steps__globe-svg ellipse,
.home-steps__globe-svg line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.home-steps__globe-rim {
  stroke-width: 1.7;
  opacity: 0.95;
}

.home-steps__globe-svg ellipse {
  stroke-width: 1.15;
  opacity: 0.72;
}

.home-steps__globe-svg line {
  stroke-width: 1.05;
  opacity: 0.55;
}

.home-steps__num-val {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    rgba(20, 36, 28, 0.55),
    rgba(6, 10, 9, 0.82) 70%
  );
}

.home-steps__item h3,
.home-steps__item p {
  opacity: 0;
  transform: translateY(0.55rem);
}

.home-steps.is-inview .home-steps__item h3,
.home-steps.is-inview .home-steps__item p {
  animation: home-steps-copy-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-steps.is-inview .home-steps__item h3 {
  animation-delay: calc(0.18s + var(--step) * 0.16s);
}

.home-steps.is-inview .home-steps__item p {
  animation-delay: calc(0.26s + var(--step) * 0.16s);
}

.home-steps__item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.home-steps__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--white-dim);
}

@keyframes home-steps-num-in {
  0% {
    opacity: 0;
    transform: scale(0.7) rotate(-8deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes home-steps-num-pulse {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(57, 255, 154, 0.4);
  }
  50% {
    text-shadow:
      0 0 18px rgba(57, 255, 154, 0.75),
      0 0 32px rgba(57, 255, 154, 0.35);
  }
}

@keyframes home-steps-globe-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes home-steps-connector {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes home-steps-copy-in {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-steps__item,
  .home-highlight,
  .home-close,
  .home-close__promise,
  .home-steps__num,
  .home-steps__item h3,
  .home-steps__item p,
  .home-highlight h3,
  .home-highlight p {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .home-steps__globe,
  .home-steps__num-val {
    animation: none !important;
  }

  .home-steps__item:not(:last-child)::after {
    transform: scaleX(1);
    opacity: 0.7;
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .home-steps__item:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 50%;
    bottom: -0.7rem;
    width: 2px;
    height: 1.15rem;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    background: linear-gradient(
      180deg,
      rgba(57, 255, 154, 0.05),
      rgba(57, 255, 154, 0.75),
      rgba(57, 255, 154, 0.05)
    );
  }

  .home-steps.is-inview .home-steps__item:not(:last-child)::after {
    animation-name: home-steps-connector-v;
  }

  @keyframes home-steps-connector-v {
    from {
      transform: translateX(-50%) scaleY(0);
      opacity: 0;
    }
    to {
      transform: translateX(-50%) scaleY(1);
      opacity: 1;
    }
  }
}

.home-close {
  --step: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 1.75rem 2.4rem;
  align-items: center;
  padding: clamp(1.7rem, 3.4vw, 2.55rem) clamp(1.35rem, 3vw, 2.25rem);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(184, 255, 212, 0.16);
  background:
    radial-gradient(
      560px 240px at var(--home-mx) 0%,
      rgba(57, 255, 154, 0.16),
      transparent 68%
    ),
    linear-gradient(180deg, rgba(12, 22, 18, 0.62), rgba(0, 0, 0, 0.46));
  box-shadow: inset 0 1px 0 rgba(184, 255, 212, 0.08);
  opacity: 0;
  transform: translateY(1.2rem);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-close.is-inview {
  opacity: 1;
  transform: none;
}

.home-close__mark {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-color: var(--neon);
  border-style: solid;
  opacity: 0.55;
  pointer-events: none;
}

.home-close__mark--tl {
  top: 0.85rem;
  left: 0.85rem;
  border-width: 2px 0 0 2px;
}

.home-close__mark--tr {
  top: 0.85rem;
  right: 0.85rem;
  border-width: 2px 2px 0 0;
}

.home-close__mark--bl {
  bottom: 0.85rem;
  left: 0.85rem;
  border-width: 0 0 2px 2px;
}

.home-close__mark--br {
  bottom: 0.85rem;
  right: 0.85rem;
  border-width: 0 2px 2px 0;
}

.home-close__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.home-close__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(57, 255, 154, 0.35);
}

.home-close h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.18;
  color: var(--white);
}

.home-close__lead {
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--white-dim);
}

.home-close__action {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  margin-top: 0.35rem;
}

.home-close__aside {
  margin: 0;
  font-size: 0.88rem;
  color: var(--white-soft);
}

.home-close__aside a {
  color: var(--green-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 255, 212, 0.35);
}

.home-close__aside a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.home-close__promises {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.35rem;
  display: grid;
  gap: 0.55rem;
  border-left: 1px solid rgba(57, 255, 154, 0.18);
}

.home-close__promise {
  --step: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  row-gap: 0.08rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: calc(var(--radius-sm) + 2px);
  border: 1px solid rgba(184, 255, 212, 0.1);
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateX(0.7rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    background 0.22s ease;
}

.home-close.is-inview .home-close__promise {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--step) * 0.08s);
}

.home-close.is-settled .home-close__promise {
  transition:
    border-color 0.22s ease,
    background 0.22s ease;
  transition-delay: 0s;
}

.home-close__promise:hover {
  border-color: rgba(57, 255, 154, 0.35);
  background: rgba(57, 255, 154, 0.06);
}

.home-close__promise-icon {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.08);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.12);
}

.home-close__promise-icon svg {
  display: block;
}

.home-close__promise strong {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.home-close__promise span:last-child {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--white-soft);
}

@media (max-width: 860px) {
  .home-close {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.35rem;
  }

  .home-close__copy,
  .home-close__action {
    justify-items: center;
  }

  .home-close__lead {
    max-width: 34rem;
  }

  .home-close__promises {
    width: 100%;
    max-width: 26rem;
    padding-left: 0;
    border-left: 0;
  }

  .home-close__promise {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-fx__grid,
  .home-fx__orb,
  .home-fx__beam,
  .home-highlight::after {
    transform: none !important;
  }

  .home-hero__eyebrow,
  .home-hero__title,
  .home-hero__lead,
  .home-hero__sub,
  .home-hero__cta,
  .home-hero__meta {
    animation: none;
  }
}

.templates-page {
  padding-bottom: 1.5rem;
}

.templates-page__count {
  margin: 0.15rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--white-soft);
}

.templates-page__count-value {
  color: var(--neon);
  font-weight: 650;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: start;
}

.gallery.home-gallery--guest {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  height: auto;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 16, 15, 0.98) 0%, rgba(6, 8, 7, 0.99) 100%);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(57, 255, 154, 0.15), var(--neon-glow),
    0 18px 40px rgba(0, 0, 0, 0.4);
}

.card--maintenance {
  position: relative;
  pointer-events: none;
  user-select: none;
  opacity: 0.92;
  filter: grayscale(0.35) saturate(0.75);
}

.card--maintenance:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.card__maintenance {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: rgba(4, 6, 5, 0.28);
  padding: 1.15rem 0.9rem;
  box-sizing: border-box;
  container-type: inline-size;
}

.card__maintenance span {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  width: max-content;
  padding: 0.48rem 0.9rem;
  border: 2px solid rgba(255, 214, 102, 0.95);
  background: rgba(18, 14, 4, 0.92);
  color: #ffd666;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 8.5cqi, 0.98rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
  transform: translateX(-0.7rem) rotate(-14deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.card__preview--maintenance {
  cursor: default;
}

.card--maintenance .card__select-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.card__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, #eef8f1 0%, #d5e8dc 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
}

.card__price-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 154, 0.55);
  background: rgba(0, 0, 0, 0.72);
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(57, 255, 154, 0.2);
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.35);
}

.card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.card__preview--gewa img {
  object-position: center 8%;
}

.card__preview--ausweis img {
  object-fit: cover;
  object-position: center 55%;
}

.card__preview--ausweis[data-preview-side="back"] img {
  object-position: center 32%;
}

.card__preview--fuehrerschein img {
  object-fit: cover;
  object-position: center center;
}

.card__preview--melde img {
  object-fit: cover;
  object-position: top center;
}

.card__preview:hover img {
  transform: scale(1.03);
}

.card__preview-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.35);
  color: rgba(245, 245, 245, 0.82);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.9;
  backdrop-filter: blur(2px);
  transition:
    opacity 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.card__preview--dual:hover .card__preview-arrow,
.card__preview--dual:focus-within .card__preview-arrow {
  opacity: 1;
}

.card__preview-arrow--prev {
  left: 0.4rem;
}

.card__preview-arrow--next {
  right: 0.4rem;
}

.card__preview-arrow:hover {
  background: rgba(40, 40, 40, 0.48);
  border-color: rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.95);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  animation: rise 0.2s ease both;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: min(90vh, 100%);
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.lightbox__sides {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.lightbox__sides[hidden] {
  display: none !important;
}

.lightbox__sides .preview-format-badge {
  cursor: pointer;
}

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(57, 255, 154, 0.12);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.lightbox__tools {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.55rem;
  pointer-events: none;
  box-sizing: border-box;
}

.lightbox__tools[hidden] {
  display: none !important;
}

.lightbox__tool {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.88;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lightbox__tool:hover,
.lightbox__tool.is-active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
}

.lightbox__tool svg {
  display: block;
}

.lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.2vw, 1.25rem);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lightbox__flip {
  flex: 0 0 auto;
  z-index: 6;
  width: 2.85rem;
  height: 2.85rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(232, 232, 232, 0.28);
  border-radius: 999px;
  background: rgba(220, 220, 220, 0.45);
  color: #e8e8e8;
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  box-shadow: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.lightbox__flip-glyph {
  display: grid;
  place-items: center;
  line-height: 0;
  font: inherit;
}

.lightbox__flip--prev .lightbox__flip-glyph {
  transform: translate(0.06em, -0.1em);
}

.lightbox__flip--next .lightbox__flip-glyph {
  transform: translate(-0.06em, -0.1em);
}

.lightbox__flip:hover {
  background: rgba(232, 232, 232, 0.62);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}

.lightbox__flip[hidden] {
  display: none !important;
}

@media (min-width: 800px) {
  .lightbox__flip {
    width: 3.15rem;
    height: 3.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    animation: none;
  }

  .lightbox__flip {
    transition: none;
  }
}

.lightbox__stage {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  width: max-content;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}

.lightbox__viewport {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.lightbox__zoom {
  position: relative;
  display: grid;
  place-items: center;
  transform-origin: center center;
  will-change: transform;
}

.lightbox--live-preview .lightbox__img,
.lightbox.is-paid-unlocked .lightbox__img {
  pointer-events: auto;
  cursor: zoom-in;
}

.lightbox--live-preview.lightbox--loupe .lightbox__img,
.lightbox.is-paid-unlocked.lightbox--loupe .lightbox__img {
  cursor: none;
}

.lightbox--live-preview .lightbox__viewport,
.lightbox.is-paid-unlocked .lightbox__viewport {
  cursor: grab;
}

.lightbox--live-preview .lightbox__viewport:active,
.lightbox.is-paid-unlocked .lightbox__viewport:active {
  cursor: grabbing;
}

.lightbox__wm {
  display: none;
}

.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__wm {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 2.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(16, 20, 26, 0.22);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
  background-image: repeating-linear-gradient(
    -28deg,
    transparent 0 72px,
    rgba(16, 20, 26, 0.04) 72px 73px
  );
  overflow: hidden;
}

.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__wm::before,
.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__wm::after {
  content: "Document-X.to  Document-X.to  Document-X.to  Document-X.to  Document-X.to  Document-X.to  Document-X.to  Document-X.to";
  position: absolute;
  inset: -40%;
  display: flex;
  flex-wrap: wrap;
  align-content: space-around;
  justify-content: space-around;
  gap: 2.4rem 3.2rem;
  transform: rotate(-24deg);
  opacity: 0.55;
  pointer-events: none;
}

.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__wm::after {
  transform: rotate(-24deg) translate(12%, 18%);
  opacity: 0.32;
}

.lightbox__loupe {
  position: absolute;
  z-index: 5;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  border: 2px solid rgba(57, 255, 154, 0.65);
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(57, 255, 154, 0.28);
  background-repeat: no-repeat;
  background-color: #000;
  pointer-events: none;
}

.lightbox__loupe[hidden] {
  display: none !important;
}

.lightbox:fullscreen {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox:fullscreen .lightbox__img {
  max-height: min(86vh, 1400px);
}

.lightbox--guest .lightbox__figure {
  max-width: min(640px, 100%);
}

.lightbox--guest .lightbox__img {
  max-height: min(62vh, 560px);
}

.lightbox__caption {
  color: var(--green-soft);
  font-family: var(--font-sans);
  font-weight: 600;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(184, 255, 212, 0.25);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lightbox__close:hover {
  border-color: var(--line-strong);
  box-shadow: var(--neon-glow);
}

.card__preview--empty {
  display: grid;
  place-items: center;
  color: rgba(22, 50, 38, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

.card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem 0.95rem;
  overflow: visible;
  background: linear-gradient(180deg, rgba(14, 16, 15, 0.98) 0%, rgba(6, 8, 7, 0.99) 100%);
}

.card__body > h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0 0 auto;
  min-height: calc(1.12rem * 1.3 * 2 + 0.45rem);
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
}

.card__details {
  margin: 0.35rem 0 0;
}

.card__details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.22rem 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neon);
  user-select: none;
}

.card__details-toggle::-webkit-details-marker {
  display: none;
}

.card__details-toggle::marker {
  content: "";
  display: none;
}

.card__details-toggle:hover,
.card__details-toggle:focus-visible {
  color: var(--neon);
  outline: none;
}

.card__details-toggle-label {
  min-width: 0;
}

.card__details-chevron {
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.18rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease, margin-top 0.18s ease;
}

.card__details[open] .card__details-toggle {
  color: var(--neon);
}

.card__details[open] .card__details-chevron {
  margin-top: 0.12rem;
  transform: rotate(-135deg);
}

.card__details-body {
  padding: 0.15rem 0 0.1rem;
}

.card p {
  margin: 0.2rem 0 0;
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow: visible;
}

.card__meta {
  margin-top: 0.65rem;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35rem;
}

.card .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--neon);
  background: transparent;
  border: 1px solid var(--neon);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.card .pill::after {
  content: "";
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.card__cta {
  display: grid;
  grid-template-rows: 0fr;
  max-height: 0;
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    grid-template-rows 0.22s ease,
    max-height 0.22s ease,
    margin-top 0.22s ease,
    opacity 0.18s ease;
}

.card:hover .card__cta,
.card:focus-within .card__cta,
.card:has(.card__details[open]) .card__cta {
  grid-template-rows: 1fr;
  max-height: 4rem;
  margin-top: 0.55rem;
  opacity: 1;
}

.card__cta > * {
  min-height: 0;
  overflow: hidden;
}

.card__select-btn {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.card:hover .card__select-btn,
.card:focus-within .card__select-btn,
.card:has(.card__details[open]) .card__select-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.card__select-btn:hover,
.card__select-btn:focus-visible {
  color: var(--neon-hot);
  border-color: var(--neon-hot);
  background: rgba(57, 255, 154, 0.06);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.card__select-btn:active {
  color: var(--neon);
  border-color: var(--neon);
  background: transparent;
  box-shadow: none;
}

@media (hover: none) {
  .card__cta {
    grid-template-rows: 1fr;
    max-height: 4rem;
    margin-top: 0.55rem;
    opacity: 1;
  }

  .card__select-btn {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.doc-price {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: var(--white-dim);
  white-space: nowrap;
}

.doc-price[hidden] {
  display: none !important;
}

.doc-price strong,
.doc-price .download-counter {
  color: var(--neon);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.3);
}

.doc-price--downloads {
  color: var(--neon);
}

.form-presets {
  margin: 0.75rem 0 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.form-presets__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.form-presets:not(.is-open) .form-presets__head {
  margin-bottom: 0;
}

.form-presets:has(.form-presets__limit-banner:not([hidden])) .form-presets__head {
  margin-bottom: 0.45rem;
}

.form-presets__title {
  justify-self: start;
  min-width: 0;
}

.form-presets__toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  max-width: 4.5rem;
  min-height: 1.55rem;
  margin: 0;
  padding: 0.2rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--neon);
  cursor: pointer;
  font: inherit;
}

.form-presets__toggle[hidden] {
  display: none !important;
}

.form-presets__toggle:hover,
.form-presets__toggle:focus-visible {
  background: rgba(57, 255, 154, 0.08);
  outline: none;
}

.form-presets__count {
  justify-self: end;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--neon);
  white-space: nowrap;
}

.form-presets__count[hidden] {
  display: none !important;
}

.form-presets__chevron {
  flex-shrink: 0;
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2.5px solid var(--neon);
  border-bottom: 2.5px solid var(--neon);
  transform: rotate(45deg);
  margin-top: -0.28rem;
  transition: transform 0.15s ease;
}

.form-presets.is-open .form-presets__chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.form-presets__body {
  display: grid;
  gap: 0.35rem;
}

.form-presets:not(.is-open) .form-presets__body {
  display: none;
}

.form-presets__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.form-presets__list--grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem 0.35rem;
  justify-items: center;
}

.form-presets__list--melde {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: stretch;
}

.form-presets__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  width: 100%;
  max-width: 5.6rem;
  min-width: 0;
  padding: 0.1rem 0.15rem 0.2rem;
  border: 0;
  background: transparent;
}

.form-presets__item {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.15rem 0.1rem;
  border: 0;
  background: transparent;
}

.form-presets__item--melde {
  height: 100%;
  padding: 0.35rem 0.3rem 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.form-presets__item--melde .form-presets__pick {
  gap: 0.12rem;
  height: 100%;
  padding: 0.1rem 1.15rem 0.1rem 0.2rem;
  align-content: start;
  min-width: 0;
}

.form-presets__item--melde .form-presets__name {
  width: 100%;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.form-presets__item--melde .form-presets__summary {
  width: 100%;
  min-width: 0;
  gap: 0.06rem;
  font-size: 0.66rem;
  line-height: 1.3;
}

.form-presets__item--melde .form-presets__summary-line {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.form-presets__item--melde > .form-presets__remove {
  top: 0.15rem;
  right: 0.15rem;
}

.form-presets__pick {
  appearance: none;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 0.2rem 1.4rem 0.2rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  justify-items: start;
  border-radius: 8px;
}

.form-presets__pick:hover,
.form-presets__pick:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.form-presets__person {
  font-size: 0.68rem;
  font-weight: 650;
  color: var(--white);
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.form-presets__birth {
  font-size: 0.62rem;
  color: var(--white-soft);
  line-height: 1.15;
  text-align: center;
}

.form-presets__avatar-slot {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0.15rem;
}

.form-presets__avatar-btn {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(57, 255, 154, 0.35);
  border-radius: 50%;
  overflow: hidden;
  background: rgba(5, 10, 8, 0.85);
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.12);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.form-presets__avatar-btn:hover,
.form-presets__avatar-btn:focus-visible {
  border-color: rgba(57, 255, 154, 0.75);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.28);
  outline: none;
}

.form-presets__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.form-presets__avatar.is-missing {
  display: none;
}

.form-presets__avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.03em;
  pointer-events: none;
}

.form-presets__avatar:not(.is-missing) + .form-presets__avatar-fallback {
  display: none;
}

.form-presets__name {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-presets__summary {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
  font-size: 0.78rem;
  color: var(--white-soft);
  line-height: 1.3;
}

.form-presets__summary-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-presets__remove {
  appearance: none;
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  z-index: 2;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 12, 10, 0.85);
  color: rgba(244, 255, 248, 0.55);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.form-presets__item > .form-presets__remove {
  top: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
}

.form-presets__remove:hover,
.form-presets__remove:focus-visible {
  color: #ff6b7a;
  background: rgba(255, 0, 60, 0.2);
  outline: none;
}

@media (max-width: 720px) {
  .form-presets__list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-presets__list--melde {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .form-presets__list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-presets__list--melde {
    grid-template-columns: 1fr;
  }
}

.form-presets__empty {
  margin: 0.15rem 0 0;
}

.form-presets__empty[hidden] {
  display: none !important;
}

.form-presets-save {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.form-presets-save[hidden] {
  display: none !important;
}

.form-presets-usage {
  display: grid;
  gap: 0.48rem;
  padding: 0;
  width: 50%;
  max-width: none;
  min-width: 0;
  justify-self: start;
}

.form-presets-usage__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
}

.form-presets-usage__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(244, 255, 248, 0.58);
  line-height: 1.1;
}

.form-presets-usage__frac {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.form-presets-usage__track {
  position: relative;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.form-presets-usage__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep) 0%, var(--neon) 55%, var(--neon-hot) 100%);
  box-shadow: 0 0 8px rgba(57, 255, 154, 0.22);
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.form-presets-usage.is-near-limit .form-presets-usage__fill {
  background: linear-gradient(90deg, #d4a017, #f0c14a);
  box-shadow: 0 0 8px rgba(240, 193, 74, 0.28);
}

.form-presets-usage.is-at-limit .form-presets-usage__frac {
  color: #ff8f8f;
}

.form-presets-usage.is-at-limit .form-presets-usage__fill {
  background: linear-gradient(90deg, #c44, #e66);
  box-shadow: 0 0 8px rgba(228, 102, 102, 0.28);
}

.form-presets-save .btn--ghost,
.form-presets-save .btn--preset-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.78rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.22);
  background:
    linear-gradient(180deg, rgba(57, 255, 154, 0.07) 0%, rgba(5, 10, 8, 0.55) 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-shadow: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease,
    color 0.2s ease,
    opacity 0.15s ease;
}

.form-presets-save__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--neon);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-presets-save__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.form-presets-save__label {
  line-height: 1.2;
}

.form-presets-save .btn--ghost:hover:not(:disabled),
.form-presets-save .btn--ghost:focus-visible:not(:disabled),
.form-presets-save .btn--preset-save:hover:not(:disabled),
.form-presets-save .btn--preset-save:focus-visible:not(:disabled) {
  border-color: rgba(57, 255, 154, 0.55);
  background:
    linear-gradient(180deg, rgba(57, 255, 154, 0.14) 0%, rgba(5, 10, 8, 0.62) 100%);
  color: var(--white);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.28);
  filter: none;
  transform: translateY(-1px);
}

.form-presets-save .btn--ghost:hover:not(:disabled) .form-presets-save__icon,
.form-presets-save .btn--ghost:focus-visible:not(:disabled) .form-presets-save__icon,
.form-presets-save .btn--preset-save:hover:not(:disabled) .form-presets-save__icon,
.form-presets-save .btn--preset-save:focus-visible:not(:disabled) .form-presets-save__icon {
  opacity: 1;
  transform: scale(1.06);
}

.form-presets-save .btn--ghost:active:not(:disabled),
.form-presets-save .btn--preset-save:active:not(:disabled) {
  transform: translateY(0);
}

.form-presets-save .btn--ghost:disabled,
.form-presets-save .btn--preset-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-presets__limit-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(57, 255, 154, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(57, 255, 154, 0.08);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--white-dim);
}

.form-presets__limit-banner[hidden] {
  display: none !important;
}

.form-presets__limit-banner-lock {
  display: inline-flex;
  align-items: center;
  color: var(--neon);
  line-height: 0;
}

.form-presets__limit-banner-lock svg {
  display: block;
}

.form-presets__limit-banner-text {
  font-weight: 650;
  color: var(--white);
}

.form-presets__limit-banner a {
  margin-left: auto;
  color: var(--neon);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-presets__limit-banner a:hover {
  color: var(--white);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 10, 8, 0.55);
  color: var(--white);
  box-shadow: none;
  text-shadow: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(57, 255, 154, 0.5);
  background: rgba(57, 255, 154, 0.1);
  color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.muted {
  color: var(--white-soft);
  font-size: 0.92rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.78fr);
  gap: 2.4rem;
  align-items: start;
}

.layout:has(.choice--passbild):has(.block--unterschrift) {
  align-items: stretch;
}

form.layout {
  margin: 0;
  width: 100%;
}

.block {
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
}

.block legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.25);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
  overflow: visible;
}

.grid > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.grid > label > span:not(.field-error):not(.field-hint) {
  min-height: 2.6em;
  line-height: 1.3;
  display: flex;
  align-items: flex-end;
}

.span-2 {
  grid-column: span 2;
}

.plz-ort-row {
  display: grid;
  grid-template-columns: minmax(6.75rem, 8.5rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
  min-width: 0;
  overflow: visible;
}

.plz-ort-row > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.plz-ort-row > label > span:not(.field-error):not(.field-hint) {
  min-height: 2.6em;
  line-height: 1.3;
  display: flex;
  align-items: flex-end;
}

.geburts-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  min-width: 0;
  overflow: visible;
}

.geburts-row > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.geburts-row > label > span:not(.field-error):not(.field-hint) {
  min-height: 2.6em;
  line-height: 1.3;
  display: flex;
  align-items: flex-end;
}

.anmelde-ausstell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  min-width: 0;
}

.anmelde-ausstell > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.anmelde-ausstell > label > span:not(.field-error):not(.field-hint) {
  min-height: 2.6em;
  line-height: 1.3;
  display: flex;
  align-items: flex-end;
}

.anmelde-ausstell__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.32rem;
  min-width: 0;
}

.grid .anmelde-ausstell:not(.is-open) label.toggle.anmelde-ausstell__toggle {
  margin-top: calc(2.028rem + 0.32rem);
  min-height: 3rem;
  align-items: center;
}

.grid .anmelde-ausstell.is-open label.toggle.anmelde-ausstell__toggle {
  margin-top: 0;
  min-height: 2.028rem;
  align-items: flex-end;
}

.anmelde-ausstell__body {
  width: 100%;
  min-width: 0;
}

.anmelde-ausstell__body[hidden] {
  display: none !important;
}

.anmelde-ausstell__body > label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.anmelde-ausstell__body > label > span:not(.field-error):not(.field-hint) {
  display: none;
}

.nationality-optional {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.nationality-optional__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.nationality-optional__head > .nationality-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.nationality-optional__head > .nationality-field > span:not(.field-error):not(.field-hint) {
  min-height: 2.6em;
  line-height: 1.3;
  display: flex;
  align-items: flex-end;
}

.grid label.toggle.nationality-optional__toggle,
.nationality-optional__toggle {
  white-space: nowrap;
  margin-top: calc(2.028rem + 0.32rem);
  min-height: 3rem;
  align-self: start;
  align-items: center;
}

.choice__row--mitarbeiter {
  align-items: center;
}

.chip--btn {
  appearance: none;
  font: inherit;
  background: rgba(5, 10, 8, 0.65);
}

.chip--btn.is-active {
  border-color: var(--line-strong);
  background: rgba(57, 255, 154, 0.12);
  color: var(--white);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
}

.chip--btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.chip-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.5rem 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.65);
  color: var(--white-dim);
}

.chip-count.is-active {
  border-color: var(--line-strong);
  background: rgba(57, 255, 154, 0.12);
  color: var(--white);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
}

.chip-count__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.count-stepper--sm input {
  width: 2.55rem;
}

.count-stepper--sm .count-stepper__btn {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1rem;
}

.options {
  display: grid;
  gap: 0.95rem;
}

.choice__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.choice--fs-classes {
  display: grid;
  gap: 0.7rem;
  font-family: var(--font-sans);
}

.fs-class-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fs-class-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.78rem 0.4rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.fs-class-chip input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 0.28rem;
  background: rgba(5, 10, 8, 0.7);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.fs-class-chip input:checked {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 20%, rgba(5, 10, 8, 0.85));
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.18);
}

.fs-class-chip input:checked::after {
  content: "";
  width: 0.26rem;
  height: 0.48rem;
  border: solid var(--neon);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.4px, -1px);
}

.fs-class-chip:has(input:checked) {
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  background: color-mix(in srgb, var(--green) 14%, var(--bg-2));
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.08);
}

.fs-class-chip--included {
  opacity: 0.78;
}

.fs-class-chip--included small {
  margin-left: 0.28rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.fs-kreis-auto input,
.fs-kreis-auto input[readonly] {
  cursor: default;
  font: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.fs-kreis-auto__hint {
  margin-left: 0.28rem;
  font-size: 0.92em;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.fs-class-detail {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.fs-class-dates {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 38rem;
  font-family: var(--font-sans);
}

.fs-class-dates[hidden] {
  display: none !important;
}

.fs-class-dates strong {
  flex: 0 0 auto;
  min-width: 4.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.fs-class-dates__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.fs-class-dates__toggle input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--neon);
  cursor: pointer;
}

.fs-class-dates__toggle span {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.fs-class-dates input[data-kind="date"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--white);
  outline: none;
  font-family: inherit;
  font-size: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.fs-class-dates input[data-kind="date"]:focus {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.95);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

@media (max-width: 720px) {
  .fs-class-dates {
    max-width: none;
  }
}

.choice--unterschrift {
  display: grid;
  gap: 0.65rem;
}

.unterschrift-text-toggle {
  margin: 0;
}

.unterschrift-text-field {
  display: grid;
  gap: 0.32rem;
}

.unterschrift-text-field[hidden] {
  display: none !important;
}

.unterschrift-text-field > span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.unterschrift-text-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.unterschrift-text-field input::placeholder {
  color: rgba(244, 255, 248, 0.28);
}

.unterschrift-text-field input:focus {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.95);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.unterschrift-text-field .hint,
.unterschrift-auto-hint {
  margin: 0;
  font-size: 0.82rem;
}

.unterschrift-auto-hint[hidden] {
  display: none !important;
}

.unterschrift-font-picker {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.unterschrift-weight {
  display: grid;
  gap: 0.35rem;
}

.unterschrift-weight[hidden] {
  display: none !important;
}

.unterschrift-weight__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #a8b5ae);
}

.unterschrift-weight__track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.unterschrift-weight__opt {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.15rem;
  margin: 0;
  cursor: pointer;
  border-radius: 999px;
  user-select: none;
}

.unterschrift-weight__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.unterschrift-weight__opt span {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: rgba(232, 238, 236, 0.62);
  transition: color 160ms ease, transform 160ms ease;
}

.unterschrift-weight__opt:has(input:checked) span {
  color: #f4f7f5;
  font-weight: 700;
  transform: translateY(-0.5px);
}

.unterschrift-weight__opt:has(input:checked)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.unterschrift-font-preview__text.is-fett {
  font-weight: 700;
  -webkit-text-stroke: 0.4px currentColor;
}

.unterschrift-font-picker__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted, #a8b5ae);
}

.unterschrift-font-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.unterschrift-font-tile {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.unterschrift-font-tile:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.unterschrift-font-tile:has(input:checked) {
  border-color: rgba(120, 220, 170, 0.65);
  background: rgba(40, 90, 65, 0.35);
}

.unterschrift-font-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.unterschrift-font-tile__name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #a8b5ae);
}

.unterschrift-font-tile--placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

.unterschrift-font-tile--placeholder .unterschrift-font-tile__sample {
  font-style: italic;
  opacity: 0.72;
}

.unterschrift-font-tile__sample {
  font-size: 1.35rem;
  line-height: 1.25;
  color: #f2f5f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.5em;
}

.unterschrift-font-tile__media {
  display: flex;
  align-items: center;
  min-height: 1.7em;
}

.unterschrift-font-tile__media img,
.unterschrift-font-preview__img {
  display: block;
  width: 100%;
  max-height: 2.4rem;
  object-fit: contain;
  object-position: left center;
  filter: invert(1);
}

.unterschrift-font-preview__img {
  max-height: 3.1rem;
}

.unterschrift-font-preview__text[hidden],
.unterschrift-font-preview__img[hidden] {
  display: none;
}

.unterschrift-font-preview {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.unterschrift-font-preview__caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #a8b5ae);
}

.unterschrift-font-preview__text {
  font-size: 1.85rem;
  line-height: 1.3;
  color: #f7faf8;
  min-height: 1.4em;
  word-break: break-word;
}

.choice--amt-sig {
  display: grid;
  gap: 0.45rem;
}

.amt-sig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.45rem;
}

.amt-sig-tile {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.amt-sig-tile:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.amt-sig-tile:has(input:checked) {
  border-color: rgba(120, 220, 170, 0.65);
  background: rgba(40, 90, 65, 0.35);
}

.amt-sig-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amt-sig-tile__name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted, #a8b5ae);
}

.amt-sig-tile__media {
  display: flex;
  align-items: center;
  min-height: 1.5em;
  overflow: hidden;
}

.amt-sig-tile__media img,
.amt-sig-preview__img {
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.amt-sig-tile__media img {
  max-height: 1.55rem;
}

.amt-sig-preview {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.amt-sig-preview__caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #a8b5ae);
}

.amt-sig-preview__img {
  width: auto;
  max-height: 2.15rem;
  object-position: left center;
}

.choice--passbild {
  scroll-margin-top: 1.25rem;
}

.passbild-scroller {
  position: relative;
  margin-top: 0.55rem;
}

.passbild-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.55rem;
  max-height: 28.5rem;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 0.15rem 0.7rem 3.15rem 0.15rem;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #39ff9a rgba(12, 28, 20, 0.98);
}

/* Ausweis: 5 Spalten, zunächst 2 Reihen (= 10 Passbilder) sichtbar */
.choice--passbild-grid-only .passbild-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: calc(2 * (88px + 2.6rem) + 0.55rem + 3.4rem);
}

.choice--passbild-grid-only .passbild-scroller {
  overflow: hidden;
  border-radius: 12px;
}

.passbild-grid::-webkit-scrollbar {
  width: 14px;
}

.passbild-grid::-webkit-scrollbar-track {
  background: rgba(12, 28, 20, 0.98);
  border: 1px solid rgba(57, 255, 154, 0.42);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(57, 255, 154, 0.12);
}

.passbild-grid::-webkit-scrollbar-thumb {
  background: #39ff9a;
  border: 2px solid rgba(8, 18, 14, 0.85);
  border-radius: 999px;
  min-height: 2.6rem;
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.45);
}

.passbild-grid::-webkit-scrollbar-thumb:hover {
  background: #9effd4;
}

.passbild-scroller__fade,
.passbild-scroller__hint {
  position: absolute;
  left: 0;
  right: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.passbild-scroller[data-can-scroll="down"] .passbild-scroller__fade,
.passbild-scroller[data-can-scroll="both"] .passbild-scroller__fade {
  opacity: 1;
}

.passbild-scroller[data-can-scroll="down"] .passbild-scroller__hint,
.passbild-scroller[data-can-scroll="both"] .passbild-scroller__hint,
.passbild-scroller[data-mode="top"] .passbild-scroller__hint {
  opacity: 1;
  pointer-events: auto;
}

.passbild-scroller__fade {
  bottom: 0;
  height: 2.85rem;
  background: linear-gradient(180deg, rgba(7, 12, 10, 0) 0%, rgba(7, 12, 10, 0.72) 58%, rgba(7, 12, 10, 0.96) 100%);
}

.passbild-scroller__hint {
  appearance: none;
  -webkit-appearance: none;
  bottom: 0.4rem;
  left: 50%;
  right: auto;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 154, 0.45);
  background: rgba(8, 22, 16, 0.92);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: #9effd4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.passbild-scroller__hint:hover {
  border-color: rgba(57, 255, 154, 0.75);
  background: rgba(8, 28, 18, 0.96);
}

.passbild-scroller__hint:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.passbild-scroller__hint--top {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  gap: 0;
  display: grid;
  place-items: center;
  line-height: 0;
  box-sizing: border-box;
}

.passbild-scroller__hint--top:hover,
.passbild-scroller__hint--top:active,
.passbild-scroller__hint--top:focus-visible {
  padding: 0;
  transform: translateX(-50%);
}

.passbild-scroller__hint--top .passbild-scroller__hint-text {
  display: none;
}

.passbild-scroller__chevron-wrap {
  display: grid;
  place-items: center;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex: none;
}

.passbild-scroller__chevron {
  display: block;
  box-sizing: border-box;
  width: 0.48rem;
  height: 0.48rem;
  margin: 0;
  padding: 0;
  border: none;
  border-right: 2px solid #9effd4;
  border-bottom: 2px solid #9effd4;
  transform: translateY(-1px) rotate(45deg);
  transform-origin: center center;
}

.passbild-scroller__hint--top .passbild-scroller__chevron {
  transform: translateY(2px) rotate(-135deg);
}

.passbild-card {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.passbild-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.passbild-card:hover,
.passbild-card:has(input:checked) {
  border-color: rgba(57, 255, 154, 0.55);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
  background: rgba(57, 255, 154, 0.08);
}

.passbild-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  display: grid;
  place-items: center;
}

.passbild-card--custom .passbild-card__media {
  background: #111;
}

.passbild-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.passbild-card__wm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: clamp(0.38rem, 1.8vw, 0.52rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.42);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.85);
  transform: rotate(-24deg);
  user-select: none;
}

.choice--passbild-fs .passbild-card__media img {
  transform: rotate(6deg) scale(1.18);
  transform-origin: center 42%;
}

.passbild-card__media img.is-missing {
  display: none;
}

.passbild-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green-soft);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 0;
}

.passbild-card__media img:not(.is-missing) ~ .passbild-card__fallback {
  display: none;
}

.passbild-card--custom .passbild-card__wm {
  display: none;
}

.passbild-card__meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.passbild-card__meta strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passbild-card__eye {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--neon);
  text-transform: none;
}

.passbild-upload {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.2rem;
}

.passbild-upload__zone {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(57, 255, 154, 0.46);
  background:
    linear-gradient(180deg, rgba(57, 255, 154, 0.1), rgba(5, 10, 8, 0.62));
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 154, 0.06);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.passbild-upload__zone:hover,
.passbild-upload__zone:focus-visible,
.passbild-upload.is-dragover .passbild-upload__zone {
  border-style: solid;
  border-color: rgba(57, 255, 154, 0.82);
  background:
    linear-gradient(180deg, rgba(57, 255, 154, 0.16), rgba(8, 18, 14, 0.72));
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 22px rgba(57, 255, 154, 0.14);
}

.passbild-upload__zone:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.passbild-upload__zone:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.passbild-upload__icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 154, 0.38);
  background: rgba(57, 255, 154, 0.12);
  color: var(--neon);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.16);
}

.passbild-upload__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.passbild-upload__copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.passbild-upload__copy span {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted, #a8b5ae);
}

.passbild-upload__status {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted, #a8b5ae);
}

.passbild-upload__status[data-tone="error"] {
  color: #ff8b8b;
}

.passbild-upload__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.8rem;
  min-height: 2.7rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background:
    linear-gradient(90deg, rgba(57, 255, 154, 0.08), rgba(0, 0, 0, 0.28));
}

.passbild-upload__meta[hidden] {
  display: none;
}

.passbild-upload__meta-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.passbild-upload__meta:not(.passbild-upload__meta--chips) .passbild-upload__meta-kicker:not([hidden])::after {
  content: "·";
  margin-left: 0.42rem;
  color: var(--muted, #a8b5ae);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.passbild-upload__meta-eye {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--white);
}

.passbild-upload__meta-eye[hidden] {
  display: none;
}

.passbild-upload__meta-eye-prefix {
  display: none;
}

.passbild-upload__meta-eye-name,
.passbild-upload__meta [data-passbild-eye-text] {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--passbild-eye-ink, var(--passbild-eye, var(--white)));
}

.passbild-upload__meta-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.passbild-upload__meta[data-eye="grün"] {
  --passbild-eye: #39ff9a;
  --passbild-eye-ink: #39ff9a;
}

.passbild-upload__meta[data-eye="blau"] {
  --passbild-eye: #4da3ff;
  --passbild-eye-ink: #4da3ff;
}

.passbild-upload__meta[data-eye="braun"] {
  --passbild-eye: #c48a5a;
  --passbild-eye-ink: #c48a5a;
}

.passbild-upload__meta[data-eye="grau"] {
  --passbild-eye: #9aa3ab;
  --passbild-eye-ink: #9aa3ab;
}

.passbild-upload__meta[data-eye="schwarz"] {
  --passbild-eye: #f2f2f2;
  --passbild-eye-ink: #141414;
}

.passbild-upload__meta[data-eye] .passbild-upload__meta-dot {
  color: var(--passbild-eye, var(--neon));
  background: var(--passbild-eye, var(--neon));
}

.passbild-upload__meta[data-eye="schwarz"] .passbild-upload__meta-dot {
  background: #111;
  box-shadow: 0 0 0 1.5px #f2f2f2;
}

.passbild-upload__meta[data-eye="schwarz"] .passbild-upload__meta-eye-name,
.passbild-upload__meta[data-eye="schwarz"] [data-passbild-eye-text] {
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.28);
}

.passbild-upload__meta--chips {
  gap: 0.4rem 0.45rem;
}

.passbild-upload__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.passbild-upload__chips[hidden] {
  display: none;
}

.passbild-upload__chip {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin: 0;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.22);
  background: rgba(5, 10, 8, 0.55);
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.passbild-upload__chip:hover,
.passbild-upload__chip:focus-visible {
  border-color: rgba(57, 255, 154, 0.55);
}

.passbild-upload__chip:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.passbild-upload__chip[aria-pressed="true"] {
  border-color: rgba(57, 255, 154, 0.7);
  background: rgba(57, 255, 154, 0.12);
}

.passbild-upload__chip[data-eye="grün"] {
  --passbild-eye: #39ff9a;
  --passbild-eye-ink: #39ff9a;
}

.passbild-upload__chip[data-eye="blau"] {
  --passbild-eye: #4da3ff;
  --passbild-eye-ink: #4da3ff;
}

.passbild-upload__chip[data-eye="braun"] {
  --passbild-eye: #c48a5a;
  --passbild-eye-ink: #c48a5a;
}

.passbild-upload__chip[data-eye="grau"] {
  --passbild-eye: #9aa3ab;
  --passbild-eye-ink: #9aa3ab;
}

.passbild-upload__chip[data-eye="schwarz"] {
  --passbild-eye: #f2f2f2;
  --passbild-eye-ink: #f2f2f2;
}

.passbild-upload__chip .passbild-upload__meta-dot {
  color: var(--passbild-eye, var(--neon));
  background: var(--passbild-eye, var(--neon));
}

.passbild-upload__chip[data-eye="schwarz"] .passbild-upload__meta-dot {
  background: #111;
  box-shadow: 0 0 0 1.5px #f2f2f2;
}

.passbild-upload__chip span:last-child {
  font-family: var(--font-sans);
  color: var(--passbild-eye-ink, var(--white));
}

.passbild-card--custom {
  border-color: rgba(57, 255, 154, 0.42);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.65);
  color: var(--white-dim);
  cursor: pointer;
  font-family: var(--font-sans);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.chip:has(input:checked) {
  border-color: var(--line-strong);
  background: rgba(57, 255, 154, 0.12);
  color: var(--white);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
}

.chip input[type="checkbox"]:not(.ui-switch),
.chip input[type="radio"]:not(.ui-switch) {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1.5px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 50%;
  background: rgba(5, 10, 8, 0.7);
  display: grid;
  place-items: center;
  accent-color: var(--neon);
  cursor: pointer;
  box-shadow: none;
}

.chip input[type="checkbox"]:not(.ui-switch):checked,
.chip input[type="radio"]:not(.ui-switch):checked {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 20%, rgba(5, 10, 8, 0.85));
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.18);
}

.chip input[type="checkbox"]:not(.ui-switch):checked::after,
.chip input[type="radio"]:not(.ui-switch):checked::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(57, 255, 154, 0.55);
}

.chip input[type="checkbox"]:not(.ui-switch):focus,
.chip input[type="radio"]:not(.ui-switch):focus {
  outline: none;
  box-shadow: none;
}

.chip input[type="checkbox"]:not(.ui-switch):focus-visible,
.chip input[type="radio"]:not(.ui-switch):focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.chip.unterschrift-text-toggle {
  gap: 0.7rem;
  padding: 0.42rem 0.5rem 0.42rem 0.9rem;
}

.choice--hintergrund {
  font-family: var(--font-sans);
  min-width: 0;
  max-width: 100%;
}

.hintergrund-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.75rem), 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.hintergrund-chip {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: stretch;
  min-width: 0;
  width: 100%;
  gap: 0.42rem;
  margin: 0;
  padding: 0.42rem 0.42rem 0.52rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.65);
  color: var(--white-dim);
  cursor: pointer;
  font-family: var(--font-sans);
  -webkit-user-select: none;
  user-select: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.hintergrund-chip:hover {
  border-color: rgba(57, 255, 154, 0.42);
}

.hintergrund-chip:has(input:checked) {
  border-color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  color: var(--white);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.22);
}

.hintergrund-chip:has(input:focus-visible) {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.hintergrund-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
}

.hintergrund-chip__swatch {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 85.6 / 54;
  min-height: 6.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 212, 0.18);
  background:
    radial-gradient(120% 90% at 28% 38%, rgba(255, 248, 240, 0.55) 0%, transparent 52%),
    radial-gradient(90% 80% at 72% 58%, rgba(196, 168, 148, 0.45) 0%, transparent 58%),
    linear-gradient(135deg, #ead7c8 0%, #d4bfae 42%, #c4b09f 100%);
}

.hintergrund-chip:has(input:checked) .hintergrund-chip__swatch {
  border-color: rgba(57, 255, 154, 0.5);
}

.hintergrund-chip__swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(
      circle at 18% 40%,
      transparent 0 11px,
      rgba(120, 88, 64, 0.045) 12px 13px
    ),
    repeating-linear-gradient(
      118deg,
      transparent 0 9px,
      rgba(255, 255, 255, 0.07) 9px 10px
    );
  opacity: 0.7;
}

.hintergrund-chip__swatch:has(img)::after {
  display: none;
}

.hintergrund-chip__swatch[data-bg="warm"] {
  background:
    radial-gradient(110% 85% at 46% 48%, rgba(210, 176, 148, 0.35) 0%, transparent 62%),
    linear-gradient(135deg, #edd6c0 0%, #d9b79a 100%);
}

.hintergrund-chip__swatch[data-bg="kalt"] {
  background:
    radial-gradient(110% 85% at 46% 48%, rgba(176, 184, 196, 0.4) 0%, transparent 62%),
    linear-gradient(135deg, #d7cfc8 0%, #b9b6b8 100%);
}

.hintergrund-chip__swatch[data-bg="guilloche"] {
  background:
    radial-gradient(90% 80% at 70% 42%, rgba(180, 150, 128, 0.35) 0%, transparent 58%),
    linear-gradient(135deg, #e6cfc0 0%, #c9a48e 100%);
}

.hintergrund-chip__swatch[data-bg="patina"] {
  background:
    radial-gradient(90% 80% at 40% 55%, rgba(150, 120, 96, 0.38) 0%, transparent 60%),
    linear-gradient(135deg, #d8c4b2 0%, #b79a86 100%);
}

.choice--hintergrund:has(+ *) .hintergrund-chip--current .hintergrund-chip__swatch,
.hintergrund-chip--current .hintergrund-chip__swatch {
  background:
    radial-gradient(120% 90% at 28% 38%, rgba(255, 248, 240, 0.55) 0%, transparent 52%),
    radial-gradient(90% 80% at 72% 58%, rgba(196, 168, 148, 0.45) 0%, transparent 58%),
    linear-gradient(135deg, #ead7c8 0%, #d4bfae 42%, #c4b09f 100%);
}

.choice--hintergrund[data-template="FS_DE"] .hintergrund-chip--current .hintergrund-chip__swatch {
  background:
    radial-gradient(90% 80% at 30% 40%, rgba(180, 210, 230, 0.45) 0%, transparent 58%),
    radial-gradient(90% 80% at 72% 55%, rgba(214, 176, 210, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, #d9c6e0 0%, #cbb6d4 42%, #9eb6d6 100%);
}

.choice--hintergrund[data-template="FS_DE"] .hintergrund-chip__swatch[data-bg="warm"] {
  background:
    radial-gradient(90% 80% at 50% 45%, rgba(220, 160, 190, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #e4c2d4 0%, #d7a8c0 100%);
}

.choice--hintergrund[data-template="FS_DE"] .hintergrund-chip__swatch[data-bg="kalt"] {
  background:
    radial-gradient(90% 80% at 50% 45%, rgba(150, 180, 220, 0.42) 0%, transparent 60%),
    linear-gradient(135deg, #c8c2d6 0%, #9eb4d2 100%);
}

.hintergrund-chip__swatch img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hintergrund-chip--current .hintergrund-chip__swatch img {
  object-position: 50% 48%;
}

.hintergrund-chip__name {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.2;
  text-align: center;
  padding: 0 0.15rem;
}

@media (max-width: 560px) {
  .hintergrund-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  }

  .hintergrund-chip__swatch {
    min-height: 5.6rem;
  }
}

.nationality-field {
  position: relative;
}

.nationality-combo {
  position: relative;
  width: 100%;
}

.nationality-combo__trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.nationality-combo__trigger:hover:not(:disabled),
.nationality-combo__trigger:focus-visible {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.95);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.nationality-combo__trigger:disabled {
  opacity: 0.55;
  cursor: default;
}

.grid label.nationality-field .nationality-combo__value {
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nationality-combo__chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg);
  margin-top: -0.25rem;
  transition: transform 0.15s ease;
}

.nationality-combo.is-open .nationality-combo__chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.nationality-combo__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 1px solid rgba(57, 255, 154, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(8, 16, 13, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nationality-combo__panel[hidden] {
  display: none !important;
}

.grid label.nationality-field .nationality-combo__search {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.9);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
}

.grid label.nationality-field .nationality-combo__search:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.nationality-combo__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 14rem;
  overflow: auto;
  display: grid;
  gap: 0.1rem;
}

.nationality-combo__option {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--white-dim);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.grid label.nationality-field .nationality-combo__option {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white-dim);
}

.nationality-combo__option:hover,
.nationality-combo__option.is-active {
  background: rgba(57, 255, 154, 0.1);
  color: var(--neon-hot);
}

.nationality-combo__option.is-selected {
  color: var(--neon);
  background: rgba(57, 255, 154, 0.12);
}

.nationality-combo__empty {
  padding: 0.65rem 0.55rem;
  color: var(--white-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.grid label.nationality-field.is-invalid .nationality-combo__trigger {
  border-color: rgba(255, 107, 122, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.18);
}

.grid label.taetigkeit-field {
  position: relative;
  overflow: visible;
  z-index: auto;
}

.grid label.taetigkeit-field:focus-within,
.grid label.taetigkeit-field.is-combo-open {
  z-index: 32;
}

.taetigkeit-combo {
  position: relative;
  width: 100%;
}

.grid label.taetigkeit-field .taetigkeit-combo input {
  padding-right: 2.6rem;
}

.taetigkeit-combo__trigger {
  appearance: none;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0.15rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.taetigkeit-combo__trigger:disabled {
  opacity: 0.45;
  cursor: default;
}

.taetigkeit-combo__chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.15s ease;
}

.taetigkeit-combo.is-open .taetigkeit-combo__chevron {
  transform: rotate(-135deg);
  margin-top: 0.12rem;
}

.taetigkeit-combo__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: auto;
  width: max(100%, min(32rem, 90vw));
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  display: grid;
  gap: 0.1rem;
  max-height: 16rem;
  overflow: auto;
  border: 1px solid rgba(57, 255, 154, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(8, 16, 13, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.taetigkeit-combo__list[hidden] {
  display: none !important;
}

.taetigkeit-combo__option {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--white-dim);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.taetigkeit-combo__option:hover,
.taetigkeit-combo__option.is-active {
  background: rgba(57, 255, 154, 0.1);
  color: var(--neon-hot);
}

.taetigkeit-combo__option.is-selected {
  color: var(--neon);
  background: rgba(57, 255, 154, 0.12);
}

.taetigkeit-combo__empty {
  padding: 0.65rem 0.55rem;
  color: var(--white-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.grid label.taetigkeit-field.is-invalid .taetigkeit-combo input {
  border-color: rgba(255, 107, 122, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.18);
}

.amt-sig-none-icon {
  width: 1.45rem;
  height: 1.45rem;
  color: #fff;
  display: block;
}

.amt-sig-tile--none .amt-sig-tile__media {
  min-height: 1.55rem;
}

.amt-sig-preview__none {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white-dim);
  font-size: 0.88rem;
  font-weight: 500;
}

.amt-sig-preview__none[hidden],
.amt-sig-preview__img[hidden] {
  display: none !important;
}

.amt-sig-preview__none .amt-sig-none-icon {
  width: 1.7rem;
  height: 1.7rem;
}

.grid label.address-suggest {
  position: relative;
  overflow: visible;
  z-index: auto;
}

.grid label.address-suggest:focus-within,
.grid label.address-suggest.is-suggest-open {
  z-index: 30;
}

.address-suggest__list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.28rem);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: grid;
  gap: 0.08rem;
  border: 1px solid rgba(57, 255, 154, 0.32);
  border-radius: var(--radius-sm);
  background: #0b1410;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: min(16rem, calc(var(--suggest-rows, 5) * 2.85rem + 0.8rem));
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
}

.address-suggest__list--wide,
label[data-field="plz"] .address-suggest__list {
  right: auto;
  width: max(100%, min(22.5rem, 72vw));
  min-width: 18rem;
}

.address-suggest__list--wide .address-suggest__option,
.address-suggest__list--wide .address-suggest__option-meta,
label[data-field="plz"] .address-suggest__option,
label[data-field="plz"] .address-suggest__option-meta {
  white-space: normal;
}

.address-suggest__list[hidden] {
  display: none !important;
}

.address-suggest__option {
  margin: 0;
  padding: 0.48rem 0.65rem;
  border-radius: 8px;
  color: var(--white-dim);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
}

.address-suggest__option:hover,
.address-suggest__option.is-active {
  background: rgba(57, 255, 154, 0.1);
  color: var(--neon-hot);
}

.address-suggest__option-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: var(--green-soft);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.ausweis-number-field {
  display: grid;
  gap: 0.55rem;
}

.ausweis-number-field__toggles {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.ausweis-number-field__toggle-col {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  min-width: 0;
}

.ausweis-number-field__toggle-col:not(.ausweis-number-field__toggle-col--random) {
  min-width: max-content;
}

.ausweis-number-field__toggle-col--random {
  grid-column: 2;
}

.ausweis-number-field__holo {
  margin-left: 0;
}

.ausweis-number-field__holo--soon {
  opacity: 0.48;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.ausweis-number-field__holo--soon input {
  pointer-events: none;
}

.ausweis-number-field__holo-soon-hint {
  margin: 0.15rem 0 0;
  max-width: 18rem;
}

.ausweis-number-field__l-note {
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 168, 255, 0.28);
  background: rgba(70, 120, 210, 0.14);
  color: #d7e6ff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.ausweis-number-field__l-note[hidden] {
  display: none !important;
}

.ausweis-number-field__l-note.is-fixed {
  border-color: rgba(255, 196, 92, 0.42);
  background: rgba(180, 120, 30, 0.18);
  color: #ffe7b8;
}

.passbild-upload__eye-field {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.35rem;
}

.passbild-upload__eye-field-label {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #6b7280);
}

.passbild-upload__eye-field input[data-passbild-augenfarbe] {
  width: 100%;
  max-width: 16rem;
  min-height: 2.1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 0.4rem;
  background: color-mix(in srgb, canvas 92%, transparent);
  font: inherit;
}

.passbild-upload__eye-hint {
  margin: 0.2rem 0 0.35rem;
  max-width: 22rem;
}

/* Ausweis: Ausweisnummer / Zufallsdaten unter Unterschrift (rechte Spalte) */
.ausweis-side-passbild {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.4rem;
  width: 100%;
  max-width: var(--preview-stack-width, min(100%, 26.5rem));
  box-sizing: border-box;
}

.ausweis-side-passbild--top {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.ausweis-side-passbild--form-top {
  margin-top: 0;
  margin-bottom: 1.15rem;
  max-width: none;
  width: 100%;
}

.panel--form .ausweis-side-passbild--form-top .block--optionen-ausweis {
  margin: 0;
}

.ausweis-side-passbild .choice--passbild {
  margin: 0;
}

.panel--preview .block--optionen-ausweis {
  margin: 0;
  display: grid;
  gap: 1.05rem;
}

.block--optionen-ausweis .passbild-upload {
  margin: 0;
}

.ausweis-eye {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background:
    linear-gradient(90deg, rgba(57, 255, 154, 0.08), rgba(0, 0, 0, 0.28));
  overflow: hidden;
}

.ausweis-eye[hidden] {
  display: none !important;
}

.ausweis-eye__toggle {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ausweis-eye__toggle:hover,
.ausweis-eye__toggle:focus-visible {
  background: rgba(57, 255, 154, 0.06);
  outline: none;
}

.ausweis-eye__toggle:focus-visible {
  box-shadow: inset 0 0 0 2px var(--neon);
}

.ausweis-eye__title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.ausweis-eye__selected {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--passbild-eye-ink, var(--white));
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ausweis-eye__chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--neon);
  border-bottom: 2px solid var(--neon);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.15s ease;
}

.ausweis-eye__toggle[aria-expanded="true"] .ausweis-eye__chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.ausweis-eye__body {
  display: grid;
  gap: 0.65rem;
  padding: 0 0.9rem 0.85rem;
}

.ausweis-eye__body[hidden] {
  display: none !important;
}

.ausweis-eye .passbild-upload__chips {
  margin: 0;
}

.ausweis-eye__field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.ausweis-eye__field > span {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-soft);
}

.ausweis-eye__field input[data-passbild-augenfarbe] {
  width: 100%;
  max-width: none;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  color: var(--white);
  outline: none;
  font: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.ausweis-eye__field input[data-passbild-augenfarbe]::placeholder {
  color: rgba(244, 255, 248, 0.28);
}

.ausweis-eye__field input[data-passbild-augenfarbe]:focus {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.95);
  box-shadow: 0 0 0 3px var(--neon-dim), 0 0 20px rgba(57, 255, 154, 0.12);
}

.ausweis-eye .passbild-upload__eye-hint {
  margin: 0;
  max-width: none;
}

.ausweis-eye[data-eye="unknown"] {
  --passbild-eye: #a8b5ae;
  --passbild-eye-ink: #c5d0ca;
}

.ausweis-eye .passbild-upload__chip[data-eye="unknown"] {
  --passbild-eye: #a8b5ae;
}

.ausweis-number-field__toggles .random-fill-btn {
  margin: 0;
}

.grid .ausweis-number-field__toggles .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.grid .ausweis-number-field__toggles label.chip > span:not(.field-error):not(.field-hint) {
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  min-height: 0;
  display: inline;
  align-items: unset;
}

.grid .ausweis-number-field__toggles .chip input,
.grid .ausweis-number-field__toggles .chip input:focus {
  appearance: none;
  -webkit-appearance: none;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 50%;
  background: rgba(5, 10, 8, 0.7);
  box-shadow: none;
  accent-color: var(--neon);
  display: grid;
  place-items: center;
}

.grid .ausweis-number-field__toggles .chip input:checked,
.grid .ausweis-number-field__toggles .chip input:checked:focus {
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 20%, rgba(5, 10, 8, 0.85));
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.18);
}

.ausweis-number-field__input[hidden] {
  display: none !important;
}

.grid label.ausweis-number-field__toggle,
.grid label.mrz-field-block__toggle,
.grid label.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.grid label.ausweis-number-field__toggle > span,
.grid label.mrz-field-block__toggle > span,
.grid label.toggle > span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-soft);
  line-height: 1.2;
}

.grid label.ausweis-number-field__toggle > input,
.grid label.mrz-field-block__toggle > input,
.grid label.toggle > input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex-shrink: 0;
}

.ausweis-number-field__hint,
.random-fill-btn__hint,
.mrz-field-block__hint {
  margin: 0;
  font-size: 0.82rem;
}

.ausweis-number-field__hint {
  white-space: nowrap;
}

.mrz-field-block {
  display: grid;
  gap: 0.55rem;
}

.mrz-field-block__fields {
  display: grid;
  gap: 0.75rem;
}

.mrz-field-block__fields[hidden] {
  display: none !important;
}

input[data-auto-mrz][readonly],
input[data-auto-ausweis][readonly] {
  opacity: 0.85;
  cursor: default;
}

input.is-date-auto,
input.is-date-auto[readonly] {
  opacity: 0.55;
  color: var(--white-dim);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.35);
}

.is-date-auto-field > span::after {
  content: " · auto";
  font-weight: 500;
  opacity: 0.65;
  font-size: 0.78em;
}

input.is-date-auto:hover {
  opacity: 0.75;
  outline: 1px solid rgba(57, 255, 154, 0.35);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--white-dim);
  cursor: pointer;
}

.toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--neon);
}

.optional-fields,
.optional-field {
  display: grid;
  gap: 0.65rem;
}

.optional-fields__body,
.optional-field__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
}

.optional-fields__body > label,
.optional-field__body > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.32rem;
  min-width: 0;
  width: 100%;
}

.optional-fields__body[hidden],
.optional-field__body[hidden] {
  display: none !important;
}

.field-hint {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  min-height: 0;
  color: var(--green-soft);
  opacity: 0.85;
}

.count-field {
  max-width: 14rem;
}

.count-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.count-stepper input {
  width: 3.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.count-stepper__btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(57, 255, 154, 0.28);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.count-stepper__btn:hover {
  border-color: rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.1);
}

.render-sides {
  margin: 0 0 0.15rem;
}

.render-sides legend {
  font-family: var(--font-sans);
  margin-bottom: 0.5rem;
}

.render-sides__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.render-sides__opt {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.65);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.render-sides__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.render-sides__name {
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.3;
  text-align: left;
}

.render-sides__price {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--neon);
  text-align: right;
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.28);
}

.render-sides__opt:hover {
  border-color: rgba(57, 255, 154, 0.42);
}

.render-sides__opt.is-active {
  border-color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.18);
}

#render-form.is-locked .render-sides__opt {
  cursor: default;
  opacity: 0.72;
}

.actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.actions--form:has(> :only-child[hidden]) {
  display: none;
}

.preview-generate {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.65rem;
  width: 100%;
}

.preview-generate:empty {
  display: none;
}

.preview-generate .render-sides,
.preview-generate .actions {
  margin: 0;
}

.preview-generate .actions--preview {
  width: 100%;
  max-width: none;
}

/* Gemeinsame Aktionszeile: Save unter dem Formular */
.panel--form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.layout:has(.editor-actions-row) {
  align-items: stretch;
}

.layout:has(.editor-actions-row) .panel--form .block--optionen {
  margin-top: auto;
}

.layout:has(.editor-actions-row) .panel--preview .preview-generate {
  margin-top: 0.65rem;
  margin-bottom: auto;
}

.editor-actions-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.78fr);
  gap: 2.4rem;
  align-items: start;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
}

.editor-actions-row__left,
.editor-actions-row__right {
  min-width: 0;
}

.editor-actions-row__right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editor-actions-row__right .actions--preview {
  width: 100%;
  max-width: var(--preview-stack-width, min(100%, 26.5rem));
  margin: 0;
}

.editor-actions-row .form-presets-save {
  position: relative;
  margin: 0;
  padding: 2.55rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
}

.editor-actions-row .form-presets-usage {
  position: absolute;
  left: 0;
  top: 0;
  bottom: auto;
  width: 50%;
  max-width: none;
  min-width: 0;
}

.editor-actions-row .form-presets-save .btn--ghost,
.editor-actions-row .form-presets-save .btn--preset-save,
.editor-actions-row #submit-btn {
  min-height: 3.2rem;
}

.actions--preview #submit-btn {
  width: 100%;
}

.btn--preview-submit {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: 4.55rem;
  padding: 0.55rem 1rem;
  line-height: 1.15;
}

.btn--preview-submit .btn__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  text-align: center;
  line-height: 1.15;
}

.btn--preview-submit .btn__label-line {
  display: block;
}

.btn--preview-submit .btn__icon--arrow {
  flex-shrink: 0;
  display: block;
  margin-top: 0.05rem;
  transition: transform 0.22s ease, filter 0.22s ease;
  filter: drop-shadow(0 0 6px rgba(57, 255, 154, 0.35));
}

.btn--preview-submit:hover:not(:disabled) .btn__icon--arrow {
  transform: translateY(0.22rem);
  filter: drop-shadow(0 0 10px rgba(57, 255, 154, 0.55));
}

.btn--preview-submit:active:not(:disabled) .btn__icon--arrow {
  transform: translateY(0.38rem);
  transition-duration: 0.08s;
}

.btn--preview-submit:has(.btn__label[hidden]) .btn__icon--arrow {
  display: none;
}

.btn--preview-submit.is-busy .btn__icon--arrow,
.btn--preview-submit:disabled .btn__icon--arrow {
  opacity: 0.55;
}

.block--unterschrift {
  margin-top: 1rem;
  margin-bottom: 0;
  font-family: var(--font-sans);
}

.panel--preview .block--unterschrift {
  margin-top: 0.85rem;
}

.block--unterschrift .choice__row {
  margin-top: 0;
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
}

.choice--unterschrift .choice__row-end {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.panel--preview .unterschrift-font-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel--preview .unterschrift-font-picker__label,
.panel--preview .unterschrift-font-preview__caption,
.panel--preview .unterschrift-text-field > span:first-child {
  font-family: var(--font-sans);
}

.download {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.35);
}

.download:hover {
  color: var(--neon-hot);
}

.preview-buy {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  width: 100%;
  max-width: var(--preview-stack-width, min(100%, 26.5rem));
  box-sizing: border-box;
}

.preview-buy__storage {
  margin: 0;
  justify-self: center;
  width: 100%;
}

.preview-buy__storage-card {
  display: grid;
  gap: 0.32rem;
  width: 100%;
  padding: 0.42rem 0.15rem 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  text-align: left;
  transition: opacity 0.15s ease;
}

.preview-buy__storage-card:hover,
.preview-buy__storage-card:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
  opacity: 0.92;
}

.preview-buy__storage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  font-family: var(--font-sans);
}

.preview-buy__storage-docs {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--white);
}

.preview-buy__storage-docs strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.35);
}

.preview-buy__storage-max {
  color: var(--white-dim);
  font-weight: 600;
}

.preview-buy__storage-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white-dim);
}

.preview-buy__storage-pct {
  font-size: inherit;
  font-weight: 700;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.preview-buy__storage-track {
  display: block;
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(57, 255, 154, 0.12);
  box-shadow: none;
}

.preview-buy__storage-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(57, 255, 154, 0.55);
  transition: width 0.35s ease;
}

.preview-buy__storage-free {
  margin: 0;
  font-family: var(--font-sans);
  font-size: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white-dim);
}

.preview-buy__storage-free::before {
  content: "·";
  margin-right: 0.4rem;
  color: rgba(244, 255, 248, 0.28);
}

.preview-buy__storage[hidden],
.preview-buy__lock-reason[hidden] {
  display: none !important;
}

.preview-buy__lock-reason {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #ff9ab0;
}

.preview-buy[hidden] {
  display: none !important;
}

.preview-buy #buy-status {
  text-align: center;
  white-space: pre-line;
  line-height: 1.45;
}

.preview-buy__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  vertical-align: middle;
  transform-origin: center;
}

.preview-buy__check-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(57, 255, 154, 0.55));
}

.preview-buy__check-circle,
.preview-buy__check-mark {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.preview-buy__check.is-animating .preview-buy__check-circle {
  stroke-dashoffset: 100;
  animation: preview-check-draw 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.preview-buy__check.is-animating .preview-buy__check-mark {
  stroke-dashoffset: 100;
  animation: preview-check-draw 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.preview-buy__check.is-animating {
  animation: preview-check-pop 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.preview-buy__check.is-animating .preview-buy__check-svg {
  animation: preview-check-glow 0.9s ease-out both;
}

@keyframes preview-check-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes preview-check-pop {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  45% {
    transform: scale(1.25);
    opacity: 1;
  }
  70% {
    transform: scale(0.92);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes preview-check-glow {
  0%,
  40% {
    filter: drop-shadow(0 0 4px rgba(57, 255, 154, 0.35));
  }
  65% {
    filter: drop-shadow(0 0 16px rgba(57, 255, 154, 0.95))
      drop-shadow(0 0 28px rgba(57, 255, 154, 0.55));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(57, 255, 154, 0.55));
  }
}

.btn--neon,
.btn--buy {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  text-shadow: none;
  filter: none;
}

.btn--neon.btn--compact {
  width: auto;
  min-height: 0;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.btn--neon:hover:not(:disabled),
.btn--buy:hover:not(:disabled) {
  filter: none;
  transform: none;
  color: var(--neon-hot);
  border-color: var(--neon-hot);
  background: rgba(57, 255, 154, 0.06);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.btn--neon:active:not(:disabled),
.btn--buy:active:not(:disabled) {
  transform: none;
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  box-shadow: none;
}

.btn--neon:disabled,
.btn--buy:disabled {
  opacity: 0.55;
}

.btn--buy[hidden],
#buy-btn[hidden] {
  display: none !important;
}

.btn--result-action {
  width: 100%;
  justify-content: center;
  min-height: 3.1rem;
  gap: 0.5rem;
}

.btn--edit-data,
.btn--correct-data,
.btn--docs-storage {
  min-height: 2.6rem;
}

.btn--result-action .btn__icon {
  flex-shrink: 0;
  display: block;
}

.btn--edit-data:disabled,
.btn--edit-data.is-busy,
.btn--correct-data:disabled,
.btn--correct-data.is-busy,
.btn--docs-storage:disabled,
.btn--docs-storage.is-busy,
.btn--buy.btn--edit-data:disabled,
.btn--buy.btn--correct-data:disabled,
.btn--buy.btn--docs-storage:disabled,
.btn--buy.btn--result-action:disabled {
  opacity: 0.38;
  color: rgba(244, 255, 248, 0.35);
  border-color: rgba(184, 255, 212, 0.14);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.35);
}

.btn--edit-data[hidden],
.btn--correct-data[hidden],
.btn--docs-storage[hidden] {
  display: none !important;
}

.preview-buy #buy-status.hint[data-tone="ok"],
.preview-buy #buy-status[data-tone="ok"] {
  color: var(--neon);
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.35);
}

.preview-buy #buy-status:empty {
  display: none;
}

.btn--preview-cancel {
  width: 100%;
  justify-content: center;
  min-height: 2.7rem;
}

.btn--preview-cancel[hidden] {
  display: none !important;
}

.preview-buy .btn--edit-data.btn--buy,
.preview-buy .btn--edit-data.btn--buy:hover:not(:disabled),
.preview-buy .btn--edit-data.btn--buy:focus-visible:not(:disabled),
.preview-buy .btn--edit-data.btn--buy:active:not(:disabled),
.preview-buy .btn--edit-data.btn--buy:disabled,
.preview-buy .btn--edit-data.btn--buy.is-busy {
  color: #ffffff;
  border-color: #ffffff;
  text-shadow: none;
  box-shadow: none;
}

.preview-buy .btn--edit-data.btn--buy:hover:not(:disabled),
.preview-buy .btn--edit-data.btn--buy:focus-visible:not(:disabled) {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.preview-buy .btn--edit-data.btn--buy:active:not(:disabled) {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.preview-buy .btn--correct-data.btn--buy,
.preview-buy .btn--correct-data.btn--buy:hover:not(:disabled),
.preview-buy .btn--correct-data.btn--buy:focus-visible:not(:disabled),
.preview-buy .btn--correct-data.btn--buy:active:not(:disabled),
.preview-buy .btn--correct-data.btn--buy:disabled,
.preview-buy .btn--correct-data.btn--buy.is-busy {
  color: #ffffff;
  border-color: #ffffff;
  text-shadow: none;
  box-shadow: none;
}

.preview-buy .btn--correct-data.btn--buy .btn__icon {
  color: inherit;
  stroke: currentColor;
}

.preview-buy .btn--correct-data.btn--buy:hover:not(:disabled),
.preview-buy .btn--correct-data.btn--buy:focus-visible:not(:disabled) {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.preview-buy .btn--correct-data.btn--buy:active:not(:disabled) {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.preview-buy .btn--docs-storage.btn--buy,
.preview-buy .btn--docs-storage.btn--buy:hover:not(:disabled),
.preview-buy .btn--docs-storage.btn--buy:focus-visible:not(:disabled),
.preview-buy .btn--docs-storage.btn--buy:active:not(:disabled),
.preview-buy .btn--docs-storage.btn--buy:disabled,
.preview-buy .btn--docs-storage.btn--buy.is-busy {
  color: #9fd4ff;
  border-color: #6eb8ea;
  text-shadow: none;
  box-shadow: none;
}

.preview-buy .btn--docs-storage.btn--buy .btn__icon {
  color: inherit;
  stroke: currentColor;
}

.preview-buy .btn--docs-storage.btn--buy:hover:not(:disabled),
.preview-buy .btn--docs-storage.btn--buy:focus-visible:not(:disabled) {
  color: #c5e7ff;
  border-color: #9fd4ff;
  background: rgba(110, 184, 234, 0.08);
  box-shadow: 0 0 0 3px rgba(110, 184, 234, 0.18);
}

.preview-buy .btn--docs-storage.btn--buy:active:not(:disabled) {
  color: #9fd4ff;
  border-color: #6eb8ea;
  background: rgba(110, 184, 234, 0.12);
  box-shadow: none;
}

.preview-buy #download-pdf-btn.btn--buy,
.preview-buy #download-png-btn.btn--buy {
  color: #ffffff;
  border-color: var(--neon);
  text-shadow: none;
}

.preview-buy #download-pdf-btn.btn--buy:hover:not(:disabled),
.preview-buy #download-pdf-btn.btn--buy:focus-visible:not(:disabled),
.preview-buy #download-png-btn.btn--buy:hover:not(:disabled),
.preview-buy #download-png-btn.btn--buy:focus-visible:not(:disabled) {
  color: #ffffff;
  border-color: var(--neon-hot);
  background: rgba(57, 255, 154, 0.06);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.preview-buy #download-pdf-btn.btn--buy:active:not(:disabled),
.preview-buy #download-png-btn.btn--buy:active:not(:disabled) {
  color: #ffffff;
  border-color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  box-shadow: none;
}

.app-toast-root {
  position: absolute;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 1.25rem;
}

body > .app-toast-root {
  position: fixed;
}

.app-toast {
  max-width: min(28rem, 92vw);
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57, 255, 154, 0.45);
  background: rgba(10, 18, 14, 0.92);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: pre-line;
  line-height: 1.45;
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(57, 255, 154, 0.18);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.app-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
}

.app-toast--ok {
  color: var(--neon-hot);
}

.app-toast--info {
  color: #9ec5ff;
}

.preview-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.preview-downloads--single {
  grid-template-columns: 1fr;
}

.preview-downloads[hidden] {
  display: none !important;
}

.btn--download-png {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-height: 3.1rem;
  white-space: nowrap;
}

#render-form.is-locked fieldset.block {
  opacity: 0.55;
  filter: grayscale(0.15);

  pointer-events: none;
}

#render-form.is-locked .actions--preview {
  opacity: 0.55;
}

.btn--neon .btn__wait,
.btn--buy .btn__wait {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--neon);
}

.btn--neon .btn__wait[hidden],
.btn--buy .btn__wait[hidden] {
  display: none !important;
}

.btn-spinner {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid rgba(4, 20, 12, 0.25);
  border-top-color: #04140c;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.btn--neon .btn-spinner,
.btn--buy .btn-spinner {
  border-color: rgba(57, 255, 154, 0.25);
  border-top-color: var(--neon);
}

.panel--preview {
  --preview-stack-width: min(100%, 26.5rem);
  --preview-stage-height: min(68vh, 36rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel--preview:has(.preview-stage--fuehrerschein) {
  --preview-stack-width: min(100%, 38rem);
  --preview-stage-height: min(46vh, 22.5rem);
}

.panel--preview:has(.preview-stage--ausweis) {
  --preview-stack-width: min(100%, 36rem);
  --preview-stage-height: min(46vh, 22.75rem);
}

.panel--preview:has(.preview-stage--melde) {
  --preview-stack-width: min(100%, 26.5rem);
  --preview-stage-height: min(68vh, 36rem);
}

.panel--preview .panel__head,
.panel--preview .preview-stage-wrap,
.panel--preview .preview-back-status,
.panel--preview .preview-buy,
.panel--preview .preview-generate,
.panel--preview .block--unterschrift {
  width: 100%;
  max-width: var(--preview-stack-width);
  box-sizing: border-box;
}

.preview-stage-wrap {
  position: relative;
  overflow: visible;
  box-sizing: border-box;
}

.preview-stage-wrap .preview-stage {
  max-width: none;
  margin-inline: 0;
}

.preview-stage {
  position: relative;
  width: 100%;
  height: var(--preview-stage-height, min(68vh, 36rem));
  min-height: var(--preview-stage-height, min(68vh, 36rem));
  max-height: var(--preview-stage-height, min(68vh, 36rem));
  max-width: var(--preview-stack-width, min(100%, 26.5rem));
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
  border-radius: 16px;
  background: #050807;
  border: 1px solid rgba(57, 255, 154, 0.22);
  box-shadow: none;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.preview-stage.is-generating {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.preview-back-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.1rem;
  margin: 0.65rem 0 0;
  padding: 0.35rem 0.75rem;
  box-sizing: border-box;
  color: var(--neon);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.35);
}

.preview-back-status[hidden] {
  display: none !important;
}

.preview-back-status__spin {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgba(57, 255, 154, 0.25);
  border-top-color: var(--neon);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
  display: block;
}

.preview-back-status__text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.panel--preview .panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.5rem;
}

.panel--preview .panel__head > h2 {
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 0 1 auto;
  min-width: 0;
}

.panel--preview .preview-formats {
  flex: 1 1 11rem;
  justify-content: center;
  min-width: 0;
}

.buy-window-timer-slot {
  flex: 0 0 auto;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 2.85rem;
  min-height: 2.85rem;
}

.preview-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.preview-format-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
  background: rgba(4, 14, 10, 0.9);
  border: 1px solid rgba(57, 255, 154, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  box-shadow: 0 0 12px rgba(57, 255, 154, 0.18);
  font-family: inherit;
  cursor: default;
}

.preview-format-badge--meta {
  letter-spacing: 0.03em;
}

button.preview-format-badge {
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

button.preview-format-badge:hover:not(:disabled) {
  background: rgba(57, 255, 154, 0.14);
}

button.preview-format-badge.is-active {
  color: #04140c;
  background: var(--neon);
  border-color: var(--neon);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.35);
}

button.preview-format-badge:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button.preview-format-badge.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 1;
  cursor: pointer;
  color: var(--neon);
  background: rgba(4, 14, 10, 0.92);
  border-color: rgba(57, 255, 154, 0.55);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.2);
}

button.preview-format-badge.is-loading.is-active {
  color: #04140c;
  background: var(--neon);
  border-color: var(--neon);
}

button.preview-format-badge.is-loading.is-active .preview-format-badge__spin {
  border-color: rgba(4, 20, 12, 0.25);
  border-top-color: #04140c;
}

button.preview-format-badge.is-loading.is-active .preview-format-badge__pct {
  color: #04140c;
}

.preview-format-badge__load {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.preview-format-badge__load[hidden] {
  display: none !important;
}

.preview-format-badge__spin {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1.5px solid rgba(57, 255, 154, 0.28);
  border-top-color: var(--neon);
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.preview-format-badge__pct {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 1.7em;
}

.preview-empty {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0;
  color: var(--white-dim);
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.preview-empty .muted,
.preview-loading .muted {
  color: var(--white-soft);
}

.preview-empty__text {
  padding: 2rem;
}

.preview-sample {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.preview-sample[hidden] {
  display: none !important;
}

.preview-sample img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
}

.preview-sample__caption {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 255, 248, 0.92);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(57, 255, 154, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  pointer-events: none;
  white-space: nowrap;
}

.preview-empty[hidden],
.preview-loading[hidden],
.preview-zoom[hidden] {
  display: none !important;
}

.preview-loading {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  justify-self: stretch;
  align-self: stretch;
  z-index: 3;
  display: block;
  overflow: hidden;
  background: transparent;
}

.preview-loading__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  display: block;
  pointer-events: none;
  background: transparent;
}

.preview-loading .pulse {
  display: none !important;
}

.preview-loading--with-preview {
  background: transparent;
}

.preview-loading[hidden] {
  display: none !important;
}

.preview-loading__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.preview-loading__pct {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  margin: 0;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 255, 248, 0.16);
  background: rgba(8, 10, 9, 0.72);
  color: rgba(236, 255, 246, 0.88);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: none;
  text-shadow: none;
}

.preview-loading__eta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.15rem;
  z-index: 2;
  margin: 0;
  padding: 0 0.85rem;
  box-sizing: border-box;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}

.pulse {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  border: 3px solid rgba(57, 255, 154, 0.18);
  border-top-color: var(--neon);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.35);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.preview-zoom {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  display: grid;
  place-items: center;
}

.preview-zoom__hint {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 255, 248, 0.92);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(57, 255, 154, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.preview-zoom:hover .preview-zoom__hint,
.preview-zoom:focus-visible .preview-zoom__hint {
  opacity: 1;
}

#preview-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  display: block;
  background: transparent;
  pointer-events: none;
  animation: previewIn 0.45s ease both;
}

@keyframes previewIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.preview-stage--ausweis .preview-empty,
.preview-stage--ausweis .preview-sample,
.preview-stage--ausweis .preview-zoom {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.preview-stage--ausweis .preview-zoom {
  display: grid;
  place-items: center;
}

.preview-stage--ausweis .preview-sample img,
.preview-stage--ausweis #preview-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1);
  transform-origin: center center;
  animation: previewInAusweis 0.45s ease both;
}

.preview-stage--ausweis[data-preview-side="back"] .preview-sample img,
.preview-stage--ausweis[data-preview-side="back"] #preview-image {
  object-position: center 38%;
}

.preview-stage--fuehrerschein .preview-empty,
.preview-stage--fuehrerschein .preview-sample,
.preview-stage--fuehrerschein .preview-zoom {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.preview-stage--fuehrerschein .preview-zoom {
  display: grid;
  place-items: center;
}

.preview-stage--fuehrerschein .preview-sample img,
.preview-stage--fuehrerschein #preview-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  transform: scale(1);
  transform-origin: center center;
  animation: previewInAusweis 0.45s ease both;
}

@keyframes previewInAusweis {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-stage--melde .preview-empty,
.preview-stage--melde .preview-sample,
.preview-stage--melde .preview-zoom {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.preview-stage--melde .preview-zoom {
  display: grid;
  place-items: center;
}

.preview-stage--melde .preview-sample img,
.preview-stage--melde #preview-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transform-origin: center center;
  animation: previewInMelde 0.45s ease both;
}

@keyframes previewInMelde {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-stage--gewa .preview-empty,
.preview-stage--gewa .preview-sample,
.preview-stage--gewa .preview-zoom {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.preview-stage--gewa .preview-zoom {
  display: grid;
  place-items: center;
}

.preview-stage--gewa .preview-sample img,
.preview-stage--gewa #preview-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center 8%;
  transform: scale(1);
  transform-origin: center center;
  animation: previewInMelde 0.45s ease both;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.docs-page-intro {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 4rem 0 0.85rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.docs-page-intro__main {
  flex: 1 1 auto;
  min-width: 0;
}

.docs-page {
  padding-bottom: 1.5rem;
  gap: 0.85rem;
}

#documents-root.home {
  gap: 0;
}

.docs-page .docs-page-intro {
  margin-top: 4rem;
  margin-bottom: 0.15rem;
}

.docs-page__count {
  text-align: left;
  margin: 0;
}

.docs-filters[hidden] {
  display: none !important;
}

.docs-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 0.35rem;
}

.docs-storage-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  flex: 0 0 auto;
  width: min(100%, 22.5rem);
  align-self: flex-end;
}

.docs-storage-settings {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
  white-space: nowrap;
}

.docs-storage-settings:hover,
.docs-storage-settings:focus-visible {
  color: var(--white);
  outline: none;
}

.docs-panel__title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.docs-storage {
  --docs-storage-accent: var(--neon);
  --docs-storage-accent-soft: rgba(57, 255, 154, 0.16);
  --docs-storage-accent-glow: rgba(57, 255, 154, 0.22);
  --docs-storage-accent-hot: var(--neon-hot);
  --docs-storage-rgb: 57, 255, 154;

  display: flex;
  flex-direction: column;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  padding: 0.72rem 0.95rem 0.62rem;
  border: 1px solid rgba(var(--docs-storage-rgb), 0.55);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(165deg, rgba(var(--docs-storage-rgb), 0.14), transparent 55%),
    rgba(5, 12, 9, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px rgba(var(--docs-storage-rgb), 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.docs-storage__hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.docs-storage__hit:focus-visible {
  outline: 2px solid var(--docs-storage-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.docs-storage:hover,
.docs-storage:has(.docs-storage__hit:focus-visible) {
  border-color: rgba(var(--docs-storage-rgb), 0.72);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 32px rgba(var(--docs-storage-rgb), 0.26);
}

.docs-storage:hover .docs-storage__title,
.docs-storage:has(.docs-storage__hit:focus-visible) .docs-storage__title {
  color: var(--docs-storage-accent-hot);
}

@media (max-width: 860px) {
  .docs-page-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .docs-storage-wrap,
  .docs-storage {
    width: 100%;
  }

  .docs-storage-wrap {
    align-self: stretch;
    order: -1;
  }
}

.docs-storage[hidden] {
  display: none !important;
}

.docs-storage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.48rem;
}

.docs-storage__title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-storage-accent);
  text-shadow: 0 0 14px var(--docs-storage-accent-glow);
}

.docs-storage__pct {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.docs-storage__track {
  position: relative;
  height: 0.32rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(244, 255, 248, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.docs-storage__fill {
  --docs-storage-fill: var(--neon);
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--docs-storage-fill);
  box-shadow: 0 0 8px color-mix(in srgb, var(--docs-storage-fill) 55%, transparent);
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s ease,
    box-shadow 0.45s ease;
}

.docs-storage__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.42rem;
}

.docs-storage__bytes {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--white-dim);
  font-variant-numeric: tabular-nums;
}

.docs-storage--starter {
  --docs-storage-accent: #5ce1e6;
  --docs-storage-accent-soft: rgba(92, 225, 230, 0.22);
  --docs-storage-accent-glow: rgba(92, 225, 230, 0.28);
  --docs-storage-accent-hot: #9cf4f7;
  --docs-storage-rgb: 92, 225, 230;
}

.docs-storage--plus {
  --docs-storage-accent: #ffd166;
  --docs-storage-accent-soft: rgba(255, 209, 102, 0.22);
  --docs-storage-accent-glow: rgba(255, 209, 102, 0.28);
  --docs-storage-accent-hot: #ffe29a;
  --docs-storage-rgb: 255, 209, 102;
}

.docs-storage--pro {
  --docs-storage-accent: #6db3ff;
  --docs-storage-accent-soft: rgba(109, 179, 255, 0.22);
  --docs-storage-accent-glow: rgba(109, 179, 255, 0.28);
  --docs-storage-accent-hot: #9dccff;
  --docs-storage-rgb: 109, 179, 255;
}

.docs-storage--ultra {
  --docs-storage-accent: #c59bff;
  --docs-storage-accent-soft: rgba(197, 155, 255, 0.22);
  --docs-storage-accent-glow: rgba(197, 155, 255, 0.28);
  --docs-storage-accent-hot: #ddc4ff;
  --docs-storage-rgb: 197, 155, 255;
}

.docs-storage--high {
  --docs-storage-accent: #ffd166;
  --docs-storage-accent-soft: rgba(255, 209, 102, 0.22);
  --docs-storage-accent-glow: rgba(255, 209, 102, 0.35);
  --docs-storage-accent-hot: #ffe29a;
  --docs-storage-rgb: 255, 209, 102;
}

.docs-storage--high .docs-storage__fill {
  background: var(--docs-storage-fill);
}

.docs-storage--full {
  --docs-storage-accent: #ff6b88;
  --docs-storage-accent-soft: rgba(255, 0, 60, 0.2);
  --docs-storage-accent-glow: rgba(255, 0, 60, 0.4);
  --docs-storage-accent-hot: #ff9ab0;
  --docs-storage-rgb: 255, 107, 136;
}

.docs-storage--full .docs-storage__fill {
  background: var(--docs-storage-fill);
}

.faq-page {
  padding-bottom: 1.5rem;
  gap: 0.85rem;
}

#faq-root.home {
  gap: 0;
}

.faq-page-intro {
  position: relative;
  z-index: 1;
  margin: 4rem 0 0.15rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.faq-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.faq-page__lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.7rem;
  margin: 2.2rem 0 0;
  padding: 1rem 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--white-soft);
}

.site-legal a {
  color: var(--white-soft);
  text-decoration: none;
}

.site-legal a:hover {
  color: var(--neon);
}

.legal-page__body {
  max-width: 42rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--white-soft);
}

.legal-page__body h2 {
  margin: 1.6rem 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--white);
}

.legal-page__body ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.legal-page__body a {
  color: var(--neon);
}

.storage-page {
  padding-bottom: 1.5rem;
  gap: 0;
}

#storage-root.home {
  gap: 0;
}

.storage-panel__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 4rem 0 2.25rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.storage-panel__intro {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.5rem;
}

.storage-panel__top .docs-storage-wrap {
  align-self: center;
  margin: 0 0 0 auto;
}

.storage-panel__head {
  margin-bottom: 0.35rem;
}

.storage-panel__head .storage-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.storage-panel__lead {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .storage-panel__top {
    flex-direction: column;
    align-items: stretch;
  }

  .storage-panel__top .docs-storage-wrap {
    width: 100%;
    align-self: stretch;
    margin: 0;
    order: 0;
  }

  .storage-panel__lead {
    margin-bottom: 0;
  }
}

.storage-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  overflow: visible;
}

.storage-plan {
  --plan: var(--neon);
  --plan-rgb: 57, 255, 154;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1.15rem 1.1rem 1.2rem;
  overflow: visible;
  border: 1px solid rgba(var(--plan-rgb), 0.28);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(165deg, rgba(var(--plan-rgb), 0.08), transparent 50%),
    rgba(5, 12, 9, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.storage-plan--starter {
  --plan: #5ce1e6;
  --plan-rgb: 92, 225, 230;
}

.storage-plan--plus {
  --plan: #ffd166;
  --plan-rgb: 255, 209, 102;
}

.storage-plan--pro {
  --plan: #6db3ff;
  --plan-rgb: 109, 179, 255;
}

.storage-plan--ultra {
  --plan: #c59bff;
  --plan-rgb: 197, 155, 255;
}

.storage-plan--featured,
.storage-plan--current {
  border-color: rgba(var(--plan-rgb), 0.55);
  background:
    linear-gradient(165deg, rgba(var(--plan-rgb), 0.14), transparent 55%),
    rgba(5, 12, 9, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 28px rgba(var(--plan-rgb), 0.18);
}

.storage-plan__ribbon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.65);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.28), rgba(230, 162, 60, 0.12) 60%),
    rgba(28, 20, 8, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 230, 170, 0.08) inset,
    0 0 16px rgba(255, 209, 102, 0.28),
    0 0 28px rgba(230, 162, 60, 0.12);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffe29a;
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.45);
}

.storage-plan__name {
  margin: 0 1.5rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.storage-plan__storage {
  margin: 0.35rem 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--plan);
  text-shadow: 0 0 16px rgba(var(--plan-rgb), 0.28);
}

.storage-plan__docs,
.storage-plan__presets {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-dim);
}

.storage-plan__presets {
  margin-top: 0.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.storage-plan__persist {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 1.35em;
  color: rgba(255, 255, 255, 0.62);
}

.storage-plan__persist--spacer {
  visibility: hidden;
}

.storage-plan__price {
  margin: auto 0 0;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  gap: 0.3rem 0.4rem;
  text-align: center;
  color: var(--white-dim);
}

.storage-plan__price strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.storage-plan__ribbon--current {
  border-color: rgba(57, 255, 154, 0.7);
  background:
    linear-gradient(145deg, rgba(57, 255, 154, 0.28), rgba(20, 80, 48, 0.18) 60%),
    rgba(8, 22, 14, 0.9);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.12) inset,
    0 0 16px rgba(57, 255, 154, 0.28);
  color: var(--neon);
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.4);
}

.storage-plan.is-menu-open {
  z-index: 5;
}

.storage-plan__buy {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 0.85rem;
  border: 1px solid var(--plan);
  border-radius: var(--radius-sm);
  background: transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.storage-plan__cta {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0;
  justify-content: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.storage-plan__cta-toggle {
  flex: 0 0 2.6rem;
  width: 2.6rem;
  min-width: 2.6rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.storage-plan .storage-plan__cta.btn--buy,
.storage-plan .storage-plan__cta-toggle.btn--buy {
  border: 0;
  color: var(--plan);
  box-shadow: none;
}

.storage-plan__buy:hover:not(:has(:disabled)),
.storage-plan__buy.is-open,
.storage-plan__buy:has(:focus-visible) {
  border-color: var(--plan);
  background: rgba(var(--plan-rgb), 0.08);
  box-shadow: 0 0 0 3px rgba(var(--plan-rgb), 0.18);
}

.storage-plan .storage-plan__cta.btn--buy:hover:not(:disabled),
.storage-plan .storage-plan__cta-toggle.btn--buy:hover:not(:disabled),
.storage-plan__buy.is-open .storage-plan__cta-toggle.btn--buy {
  color: var(--plan);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.storage-plan .storage-plan__cta.btn--buy:active:not(:disabled),
.storage-plan .storage-plan__cta-toggle.btn--buy:active:not(:disabled) {
  color: var(--plan);
  border: 0;
  background: rgba(var(--plan-rgb), 0.12);
  box-shadow: none;
}

.storage-plan__buy:active:not(:has(:disabled)) {
  background: rgba(var(--plan-rgb), 0.12);
  box-shadow: none;
}

.storage-plan .storage-plan__cta.btn--buy:focus-visible,
.storage-plan .storage-plan__cta-toggle.btn--buy:focus-visible {
  outline-color: var(--plan);
  z-index: 1;
}

.storage-plan__cta:disabled,
.storage-plan__cta-toggle:disabled {
  opacity: 0.72;
  cursor: default;
}

.storage-plan__chevron {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.25rem;
  transition: transform 0.15s ease, margin-top 0.15s ease;
}

.storage-plan__buy.is-open .storage-plan__chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.storage-plan__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  bottom: auto;
  z-index: 8;
  display: none;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--plan-rgb), 0.28);
  background: rgba(12, 16, 18, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.storage-plan__buy.is-open .storage-plan__menu {
  display: grid;
}

.storage-plan__menu[hidden] {
  display: none !important;
}

.storage-plan__menu-item {
  appearance: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.62rem 0.75rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.storage-plan__menu-item:hover {
  background: rgba(var(--plan-rgb), 0.12);
  color: #fff;
}

.storage-plan__menu-item.is-active {
  background: rgba(var(--plan-rgb), 0.16);
  color: var(--plan);
}

.storage-plan__menu-days {
  font-weight: 700;
}

.storage-plan__menu-save {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white-soft);
}

.storage-plan__menu-item.is-active .storage-plan__menu-save {
  color: var(--plan);
}

@media (max-width: 1100px) {
  .storage-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .storage-plans {
    grid-template-columns: 1fr;
  }
}

.storage-usage {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(244, 255, 248, 0.1);
}

.storage-usage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 0.75rem;
}

.storage-usage__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.storage-usage__meta {
  margin: 0;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}

.storage-usage__pct {
  color: var(--neon);
}

.storage-usage__track,
.storage-usage__segments {
  display: flex;
  width: 100%;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(244, 255, 248, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.storage-usage__track[hidden],
.storage-usage__segments[hidden] {
  display: none !important;
}

.storage-usage__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 224, 122, 0.8), var(--neon) 60%, var(--neon-hot));
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.25);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.storage-usage__seg {
  display: block;
  height: 100%;
  min-width: 0;
  flex: 0 0 auto;
}

.storage-usage__legend {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.storage-usage__legend + .docs-pager {
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.storage-usage__legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(244, 255, 248, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 14, 0.45);
}

.storage-usage__swatch {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.storage-usage__legend-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.storage-usage__legend-copy strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

.storage-usage__legend-copy .muted {
  font-size: 0.78rem;
}

.storage-usage__legend-bytes {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.storage-usage__legend-bytes small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--white-dim);
}

.storage-usage__legend-empty {
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.storage-usage__docs {
  margin-top: 1.25rem;
}

.storage-usage__docs .docs-pager {
  justify-content: flex-start;
  margin-top: 0.85rem;
}

.storage-usage__docs-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white-dim);
}

.storage-usage__empty {
  margin: 0;
  font-size: 0.9rem;
}

.storage-usage__table {
  display: grid;
  gap: 0.35rem;
}

.storage-usage__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 6.25rem;
  gap: 0.65rem 1rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(244, 255, 248, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 14, 0.35);
}

.storage-usage__row--head {
  background: transparent;
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.storage-usage__row span {
  min-width: 0;
}

.storage-usage__tpl {
  justify-self: start;
  text-align: left;
  font-family: var(--font-sans);
}

.storage-usage__row strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.storage-usage__row small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.75rem;
}

.storage-usage__row-bytes,
.storage-usage__row--head > :last-child {
  text-align: right;
}

.storage-usage__row-bytes {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--neon);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .storage-usage__row,
  .storage-usage__row--head {
    grid-template-columns: 1fr auto;
  }

  .storage-usage__row > :nth-child(2),
  .storage-usage__row--head > :nth-child(2) {
    display: none;
  }
}

.docs-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 0.4rem;
  min-height: 1.25rem;
}

.docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 0 0 0.75rem;
}

.docs-page > .docs-toolbar:has(> .docs-selection[hidden]) {
  display: none;
  margin: 0;
}

.docs-page > .docs-toolbar .docs-selection {
  margin-left: 0;
}

.docs-page-intro .docs-search {
  display: block;
  flex: none;
  max-width: 32rem;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.docs-search {
  flex: 0 1 32rem;
  max-width: 32rem;
  min-width: 0;
  width: 100%;
  margin: 0;
}

.docs-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 12, 9, 0.65);
  color: var(--white);
  padding: 0.7rem 0.9rem;
  outline: none;
}

.docs-search input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.docs-count {
  margin: 0;
  font-size: 0.92rem;
  white-space: nowrap;
}

.docs-selection {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-left: auto;
}

.docs-selection[hidden] {
  display: none !important;
}

.docs-selection__count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-soft);
  white-space: nowrap;
}

.docs-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  margin: 0;
}

.docs-page .docs-filters .gallery-filters {
  margin: 0;
}

.docs-filters__select-all {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  border-radius: 7px;
  border: 1px solid rgba(184, 255, 212, 0.28);
  background: rgba(5, 12, 9, 0.65);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.docs-filters__select-all:hover {
  border-color: rgba(57, 255, 154, 0.55);
  box-shadow: 0 0 12px rgba(57, 255, 154, 0.14);
}

.docs-filters__select-all:has(input:checked),
.docs-filters__select-all:has(input:indeterminate) {
  border-color: rgba(57, 255, 154, 0.65);
  background: rgba(8, 22, 14, 0.9);
  box-shadow: 0 0 12px rgba(57, 255, 154, 0.18);
}

.docs-filters__select-all input {
  appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  border-radius: 3px;
  border: 1.5px solid rgba(184, 255, 212, 0.45);
  background: transparent;
  cursor: pointer;
}

.docs-filters__select-all input:checked {
  border-color: var(--neon);
  background: var(--neon);
  box-shadow: inset 0 0 0 2px rgba(4, 10, 7, 0.85);
}

.docs-filters__select-all input:indeterminate {
  border-color: var(--neon);
  background: linear-gradient(
    180deg,
    transparent 38%,
    var(--neon) 38%,
    var(--neon) 62%,
    transparent 62%
  );
}

.docs-filters__select-all input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.docs-filters__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.docs-filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 12, 9, 0.55);
  color: var(--white-soft);
  padding: 0.38rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.docs-filter-chip:hover {
  border-color: rgba(57, 255, 154, 0.4);
  color: var(--white);
}

.docs-filter-chip.is-active {
  border-color: rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.14);
  color: var(--neon);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.12);
}

.docs-view-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 0 0 0.95rem;
  padding: 0.15rem 0 0.1rem;
}

.docs-view-controls__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.docs-view-controls__label {
  margin-right: 0.15rem;
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.docs-card {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 16, 15, 0.98) 0%, rgba(6, 8, 7, 0.99) 100%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: visible;
  min-width: 0;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.docs-card:hover {
  z-index: 4;
  border-color: rgba(57, 255, 154, 0.38);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(57, 255, 154, 0.14);
  transform: translateY(-3px);
}

.docs-card:hover .docs-card__thumb img {
  transform: scale(1.03);
}

.docs-card.is-selected {
  border-color: var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.15),
    0 14px 32px rgba(0, 0, 0, 0.4);
}

.docs-card.is-target {
  z-index: 5;
  border-color: rgba(57, 255, 154, 0.72);
  box-shadow:
    0 0 0 2px rgba(57, 255, 154, 0.28),
    0 18px 44px rgba(0, 0, 0, 0.48);
  animation: docs-card-target 1.2s ease-out 1;
}

@keyframes docs-card-target {
  0% {
    box-shadow:
      0 0 0 0 rgba(57, 255, 154, 0.45),
      0 18px 44px rgba(0, 0, 0, 0.48);
  }
  100% {
    box-shadow:
      0 0 0 2px rgba(57, 255, 154, 0.28),
      0 18px 44px rgba(0, 0, 0, 0.48);
  }
}

.docs-card.is-menu-open {
  z-index: 20;
}

.docs-card.is-menu-open:not(.is-dl-open) .docs-card__media {
  z-index: 3;
}

.docs-card.is-dl-open .docs-card__body {
  z-index: 3;
}

.docs-card.is-dl-open .docs-card__media {
  z-index: 1;
}

.docs-card__media {
  position: relative;
  overflow: visible;
  border-radius: 16px 16px 0 0;
}

.docs-card__check {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.docs-card__check:hover,
.docs-card.is-selected .docs-card__check {
  border-color: rgba(170, 190, 255, 0.55);
  background: rgba(18, 20, 26, 0.92);
  box-shadow: 0 0 12px rgba(170, 190, 255, 0.14);
}

.docs-card__check input {
  appearance: none;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
}

.docs-card__check input:checked {
  border-color: #c4d0ff;
  background: #c4d0ff;
  box-shadow: inset 0 0 0 2px rgba(10, 12, 16, 0.85);
}

.docs-card__menu {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 6;
}

.docs-card__menu-btn {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(10, 12, 16, 0.82);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.docs-card__menu-btn:hover,
.docs-card__menu.is-open .docs-card__menu-btn {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(22, 24, 30, 0.94);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}

.docs-card__menu-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 7;
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  display: none;
}

.docs-card__menu.is-open .docs-card__menu-dropdown {
  display: grid;
}

.docs-card__menu-dropdown[hidden] {
  display: none !important;
}

.docs-card__menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white-dim);
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.docs-card__menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.docs-card__menu-item--danger {
  color: var(--danger);
  background: rgba(255, 107, 122, 0.1);
}

.docs-card__menu-item--danger:hover {
  background: rgba(255, 107, 122, 0.2);
  color: #ff8a95;
}

.docs-card__menu-label {
  margin: 0;
  padding: 0.35rem 0.75rem 0.2rem;
  color: var(--white-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-card__menu-sep {
  height: 1px;
  margin: 0.3rem 0.45rem;
  background: rgba(255, 255, 255, 0.1);
}

.docs-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #eef8f1 0%, #d5e8dc 100%);
  cursor: zoom-in;
  overflow: hidden;
}

.docs-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: auto;
  -webkit-user-select: none;
  transition: transform 0.35s ease;
}

.docs-card__thumb--ausweis img {
  object-position: center 55%;
}

.docs-card__thumb--melde img {
  object-position: top center;
}

.docs-card__thumb:hover img {
  transform: scale(1.03);
}

.docs-card__thumb.is-paid-unlocked img {
  visibility: visible !important;
  filter: none !important;
}

.docs-card__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--white-soft);
  font-size: 0.88rem;
  cursor: default;
}

.docs-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
  min-width: 0;
  border-radius: 0 0 16px 16px;
  background: linear-gradient(180deg, rgba(14, 16, 15, 0.98) 0%, rgba(6, 8, 7, 0.99) 100%);
}

.docs-card__body h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--white);
  overflow: visible;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-bottom: 0.12em;
}

.docs-card__meta {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  color: rgba(244, 255, 248, 0.85);
  font-size: 0.88rem;
  line-height: 1.35;
}

.docs-card__meta time {
  display: block;
}

.docs-card__expiry {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--neon);
}

.docs-card__expiry-until {
  font-weight: 500;
  color: var(--white-soft);
}

.docs-card__expiry--warn {
  color: var(--amber-hot);
}

.docs-card__expiry--critical {
  color: var(--danger-hot);
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.35);
}

.docs-card__expiry--never {
  color: var(--white-dim);
  font-weight: 600;
}

.docs-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.15rem;
  min-height: 2.15rem;
}

.docs-card__person {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--green-soft);
  font-size: 0.86rem;
  line-height: 1.3;
  word-break: break-word;
}

.docs-card__footer .docs-card__actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.docs-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.docs-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(57, 255, 154, 0.08);
  color: var(--green-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.docs-badge--warn {
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.1);
  color: #ffb3bb;
}

.docs-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.docs-card__dl {
  position: relative;
  z-index: 5;
}

.docs-card__dl-btn {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(57, 255, 154, 0.65);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.22);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.docs-card__dl-btn:hover,
.docs-card__dl.is-open .docs-card__dl-btn {
  border-color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  color: #fff;
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.4), 0 0 28px rgba(57, 255, 154, 0.16);
}

.docs-card__dl-icon {
  display: block;
}

.docs-card__dl-dropdown {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  min-width: 9.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 22, 0.98);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  display: none;
}

.docs-card__dl.is-open .docs-card__dl-dropdown {
  display: grid;
}

.docs-card__dl-dropdown[hidden] {
  display: none !important;
}

.docs-card__dl-empty {
  font-size: 0.86rem;
}

.btn--sm {
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
}

.btn--soft {
  border: 1px solid rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--neon);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 20px rgba(57, 255, 154, 0.22);
  text-shadow: 0 0 10px rgba(57, 255, 154, 0.35);
}

.btn--soft:hover,
.btn--soft:focus-visible {
  border-color: rgba(57, 255, 154, 0.85);
  background: rgba(57, 255, 154, 0.18);
  color: var(--neon-hot);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 26px rgba(57, 255, 154, 0.35);
}

.btn--danger {
  border: 1px solid rgba(255, 0, 60, 0.7);
  background: rgba(255, 0, 60, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 24px rgba(255, 0, 60, 0.35);
  text-shadow: 0 0 12px rgba(255, 0, 60, 0.45);
}

.btn--danger:hover,
.btn--danger:focus-visible {
  border-color: var(--danger-hot);
  background: rgba(255, 0, 60, 0.28);
  box-shadow: var(--danger-glow);
  color: #fff;
}

.docs-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 12rem;
  padding: 2.5rem 1rem 2.75rem;
  text-align: center;
}

.docs-empty p {
  margin: 0;
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 500;
}

.docs-empty__cta.btn--neon {
  width: auto;
  min-width: 12.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.docs-empty__cta .btn__icon {
  display: block;
  width: 1.05em;
  height: 1.05em;
}

.docs-empty-inline {
  grid-column: 1 / -1;
  margin: 0.75rem 0;
}

.docs-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  min-height: 16.5rem;
  padding: 2.5rem 1rem 2.75rem;
  text-align: center;
}

.docs-loading__rings {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  filter: drop-shadow(0 0 12px rgba(57, 255, 154, 0.35));
}

.docs-loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.docs-loading__ring--outer {
  border: 2.5px solid rgba(57, 255, 154, 0.16);
  border-top-color: var(--neon);
  border-right-color: var(--neon-hot);
  animation: docs-loading-spin 0.95s linear infinite;
}

.docs-loading__ring--inner {
  inset: 0.55rem;
  border: 2px solid rgba(109, 255, 176, 0.12);
  border-bottom-color: var(--green);
  border-left-color: var(--green-soft);
  animation: docs-loading-spin-rev 1.35s linear infinite;
}

.docs-loading__core {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow:
    0 0 10px rgba(57, 255, 154, 0.85),
    0 0 22px rgba(57, 255, 154, 0.35);
  animation: docs-loading-core 1.4s ease-in-out infinite;
}

.docs-loading__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white-dim);
}

@keyframes docs-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes docs-loading-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes docs-loading-core {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-loading__ring--outer,
  .docs-loading__ring--inner {
    animation: none;
    border-color: rgba(57, 255, 154, 0.38);
  }

  .docs-loading__core {
    animation: docs-loading-core 2.4s ease-in-out infinite;
  }
}

.docs-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin: 1.35rem 0 0.25rem;
}

.docs-pager[hidden] {
  display: none !important;
}

.docs-pager__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.docs-pager__nav,
.docs-pager__page {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 12, 9, 0.65);
  color: var(--white-dim);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.docs-pager__page {
  min-width: 2.25rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.docs-pager__nav:hover:not(:disabled),
.docs-pager__page:hover:not(.is-active) {
  border-color: var(--line-strong);
  color: var(--white);
}

.docs-pager__page.is-active {
  border-color: rgba(57, 255, 154, 0.75);
  background: rgba(57, 255, 154, 0.14);
  color: var(--neon);
}

.docs-pager__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn--buy.is-storage-full {
  opacity: 0.55;
  cursor: not-allowed;
}

.account-panel {
  position: relative;
  overflow: hidden;
}

.account-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0 0 1.4rem;
  padding: 1.05rem 1.35rem 1.05rem 1.2rem;
  min-height: 7.75rem;
  border-radius: 18px;
  border: 1px solid rgba(184, 255, 212, 0.12);
  background:
    linear-gradient(135deg, rgba(57, 255, 154, 0.08), transparent 55%),
    linear-gradient(250deg, rgba(57, 255, 154, 0.03), transparent 38%),
    rgba(5, 10, 8, 0.55);
  overflow: hidden;
}

.account-hero__glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(57, 255, 154, 0.18), transparent 70%);
  pointer-events: none;
}

.account-hero__glow--right {
  inset: -35% -8% auto auto;
  width: 48%;
  height: 160%;
  background: radial-gradient(circle at 70% 45%, rgba(57, 255, 154, 0.1), transparent 68%);
  opacity: 0.45;
}

.account-hero__avatar-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.account-hero__avatar-btn {
  position: relative;
  appearance: none;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.account-hero__avatar-btn:hover,
.account-hero__avatar-btn:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 0 22px rgba(57, 255, 154, 0.28);
  outline: none;
}

.account-hero__avatar-btn:hover .account-hero__avatar-badge,
.account-hero__avatar-btn:focus-visible .account-hero__avatar-badge {
  background: var(--neon);
  color: #04110a;
  border-color: var(--neon);
}

.account-hero__avatar-badge {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  color: var(--neon);
  background: #0a1410;
  border: 1.5px solid rgba(57, 255, 154, 0.55);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.account-hero__avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  max-width: 8.5rem;
}

.account-hero__avatar-hint,
.account-hero__avatar-remove {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
  line-height: 1.2;
}

.account-hero__avatar-hint {
  color: var(--neon);
}

.account-hero__avatar-hint:hover {
  color: var(--neon-hot);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-hero__avatar-remove {
  color: rgba(255, 138, 149, 0.92);
}

.account-hero__avatar-remove:hover {
  color: #ffb0b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 0.5rem;
}

.account-hero__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon);
}

.account-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--white);
}

.account-hero__sub {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--white-dim);
}

.account-hero__brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
  max-width: min(38%, 18.5rem);
  padding: 0.4rem;
  pointer-events: none;
  user-select: none;
}

.account-hero__logo {
  display: block;
  width: clamp(5.75rem, 17vw, 8rem);
  height: auto;
  max-height: 8rem;
  object-fit: contain;
  object-position: right center;

  mix-blend-mode: lighten;
  opacity: 0.95;
  filter:
    brightness(1.08)
    drop-shadow(0 0 2px rgba(57, 255, 154, 0.9))
    drop-shadow(0 0 8px rgba(57, 255, 154, 0.5))
    drop-shadow(0 0 18px rgba(57, 255, 154, 0.28))
    drop-shadow(0 0 36px rgba(57, 255, 154, 0.12));
  transform: translateZ(0);
  animation: account-hero-logo-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes account-hero-logo-in {
  from {
    opacity: 0;
    transform: translateX(14px) scale(0.97);
  }
  to {
    opacity: 0.95;
    transform: translateZ(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-hero__logo {
    animation: none;
  }
}

.account-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.35rem;
}

.account-meta__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 255, 212, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 60%),
    rgba(5, 10, 8, 0.6);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.account-meta__item:hover {
  border-color: rgba(57, 255, 154, 0.28);
  transform: translateY(-1px);
}

a.account-meta__item--link {
  position: relative;
  padding-right: 1.7rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.account-meta__item--link:focus-visible {
  outline: 2px solid rgba(57, 255, 154, 0.55);
  outline-offset: 2px;
}

.account-meta__go {
  position: absolute;
  top: 0.48rem;
  right: 0.48rem;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--neon);
  opacity: 0.62;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.account-meta__go svg {
  display: block;
  width: 0.82rem;
  height: 0.82rem;
}

a.account-meta__item--link:hover .account-meta__go,
a.account-meta__item--link:focus-visible .account-meta__go {
  opacity: 1;
  transform: translate(1px, -1px);
}

.account-meta__item.is-live {
  border-color: rgba(57, 255, 154, 0.45);
  box-shadow: 0 0 24px rgba(57, 255, 154, 0.12);
}

.account-meta__icon {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  border: 1px solid rgba(57, 255, 154, 0.22);
}

.account-meta__icon--anon svg,
.account-meta__icon--storage svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.account-meta__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.account-meta__item strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.account-meta__status.is-on {
  color: var(--neon);
  text-shadow: 0 0 14px rgba(57, 255, 154, 0.45);
}

.account-meta__item--anon {
  justify-content: space-between;
  gap: 0.85rem;
}

.account-meta__anon-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ui-switch,
.account-meta__switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 2.85rem;
  height: 1.55rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ui-switch {
  border: 1px solid rgba(120, 140, 130, 0.28);
  background: linear-gradient(180deg, #1c2420, #0a0e0c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.account-meta__switch {
  border: 1px solid rgba(255, 92, 108, 0.55);
  background: linear-gradient(180deg, rgba(255, 72, 92, 0.55), rgba(180, 24, 48, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 14px rgba(255, 72, 92, 0.28);
}

.ui-switch::after,
.account-meta__switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.ui-switch:checked,
.account-meta__switch:checked {
  border-color: rgba(57, 255, 154, 0.7);
  background: linear-gradient(180deg, rgba(57, 255, 154, 0.55), rgba(18, 140, 80, 0.78));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(57, 255, 154, 0.35);
}

.ui-switch:checked::after,
.account-meta__switch:checked::after {
  transform: translateX(1.25rem);
  background: #fff;
}

.ui-switch:focus-visible,
.account-meta__switch:focus-visible {
  outline: 2px solid rgba(57, 255, 154, 0.55);
  outline-offset: 2px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.15rem;
  align-items: stretch;
}

.account-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.account-col > .account-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
}

.account-col > .account-privacy {
  flex: 1 1 auto;
  min-height: 100%;
}

.account-card {
  position: relative;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid rgba(184, 255, 212, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(8, 14, 12, 0.78);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.account-card:hover {
  border-color: rgba(184, 255, 212, 0.2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.account-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  overflow: visible;
}

.account-privacy > .account-card__head {
  align-items: center;
  margin-bottom: 0.7rem;
}

.account-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.55;
  color: var(--white);
  overflow: visible;
}

.account-card__badge {
  display: inline-flex;
  align-items: center;
  margin-top: 0.2rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.account-card__badge--neon {
  color: var(--neon);
  border-color: rgba(57, 255, 154, 0.4);
  background: rgba(57, 255, 154, 0.1);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.15);
}

.account-card__badge--hot {
  color: #fff;
  border-color: rgba(255, 0, 60, 0.75);
  background: rgba(255, 0, 60, 0.22);
  box-shadow: 0 0 16px rgba(255, 0, 60, 0.45);
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.55);
  animation: dangerBadgePulse 1.8s ease-in-out infinite;
}

@keyframes dangerBadgePulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 0, 60, 0.35), 0 0 0 0 rgba(255, 0, 60, 0.35);
  }
  50% {
    opacity: 0.82;
    box-shadow: 0 0 22px rgba(255, 0, 60, 0.7), 0 0 0 6px rgba(255, 0, 60, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-card__badge--hot {
    animation: none;
  }
}

.account-card__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.45;
}

.account-stats {
  margin-bottom: 1.35rem;
  overflow: hidden;
}

.account-stats.is-locked {
  border-color: rgba(255, 0, 60, 0.22);
}

.account-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.account-stats__cell {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 5.4rem;
  padding: 0.95rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.12);
  background:
    linear-gradient(160deg, rgba(57, 255, 154, 0.06), transparent 55%),
    rgba(5, 10, 8, 0.45);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.account-stats__cell:hover {
  border-color: rgba(57, 255, 154, 0.32);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.account-stats__cell--referrals {
  padding-right: 2.35rem;
}

.account-stats__eye {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(57, 255, 154, 0.28);
  background: rgba(57, 255, 154, 0.08);
  color: var(--neon);
  cursor: pointer;
  line-height: 0;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.account-stats__eye:hover {
  border-color: rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.16);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.18);
  transform: translateY(-1px);
}

.account-stats__eye:focus-visible {
  outline: 2px solid rgba(57, 255, 154, 0.55);
  outline-offset: 2px;
}

.account-stats__eye svg {
  display: block;
}

.account-stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  border: 1px solid rgba(57, 255, 154, 0.22);
  line-height: 0;
}

.account-stats__icon svg {
  display: block;
}

.account-stats__meta {
  min-width: 0;
}

.account-stats__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.account-stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--neon);
  line-height: 1.15;
  word-break: break-word;
}

.account-stats__hint {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--white-soft);
}

.account-stats__loading {
  padding: 1.4rem 0.4rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--white-soft);
}

.account-stats__loading--error {
  color: #ff8a95;
}

.account-stats__locked {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.15rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 0, 60, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 0, 60, 0.08), transparent 60%),
    rgba(12, 6, 8, 0.55);
}

.account-stats__locked-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 12px;
  color: #ff6b7d;
  background: rgba(255, 0, 60, 0.1);
  border: 1px solid rgba(255, 0, 60, 0.28);
  line-height: 0;
}

.account-stats__locked strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--white);
}

.account-stats__locked p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--white-dim);
}

.account-input--locked {
  opacity: 0.72;
  cursor: not-allowed;
  letter-spacing: 0.04em;
}

.account-card__action {
  justify-self: center;
  margin-inline: auto;
  width: fit-content;
  min-height: 2.65rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

.account-card__action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.account-card__action:active:not(:disabled) {
  transform: translateY(0);
}

.account-card__action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
  box-shadow: none;
}

.account-privacy__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1 1 auto;
}

.account-privacy .hint {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.account-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: 1 1 0;
  min-height: 4.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 255, 212, 0.1);
  border-radius: 14px;
  background: rgba(5, 10, 8, 0.45);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.privacy-score {
  --privacy-score-color: rgba(184, 255, 212, 0.35);
  position: relative;
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  flex-shrink: 0;
  margin-top: -0.15rem;
}

.privacy-score__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.privacy-score__track,
.privacy-score__arc {
  fill: none;
  stroke-width: 2.6;
}

.privacy-score__track {
  stroke: rgba(184, 255, 212, 0.12);
}

.privacy-score__arc {
  stroke: var(--privacy-score-color);
  stroke-linecap: round;
  stroke-dashoffset: var(--privacy-score-offset, 100);
  transition:
    stroke-dashoffset 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    stroke 0.35s ease,
    filter 0.35s ease;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--privacy-score-color) 45%, transparent));
}

.privacy-score__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.05em;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  pointer-events: none;
  white-space: nowrap;
}

.privacy-score__value small {
  display: inline;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.8;
  line-height: 1;
}

.privacy-score--none {
  --privacy-score-color: rgba(184, 255, 212, 0.28);
}

.privacy-score--low {
  --privacy-score-color: #ff8a95;
}

.privacy-score--mid {
  --privacy-score-color: #c8f06a;
}

.privacy-score--high {
  --privacy-score-color: var(--neon);
}

.privacy-score--high .privacy-score__value {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(57, 255, 154, 0.22);
}

.buy-window-timer {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  background: rgba(5, 10, 8, 0.72);
  box-shadow:
    0 0 0 1px rgba(57, 255, 154, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.buy-window-timer[hidden] {
  display: none !important;
}

.buy-window-timer__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.buy-window-timer__track,
.buy-window-timer__arc {
  fill: none;
  stroke-width: 2.6;
}

.buy-window-timer__track {
  stroke: rgba(184, 255, 212, 0.12);
}

.buy-window-timer__arc {
  stroke: var(--neon);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(57, 255, 154, 0.4));
  transition: stroke-dashoffset 0.2s linear;
}

.buy-window-timer__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--neon);
  pointer-events: none;
  white-space: nowrap;
}

.buy-window-timer__value small {
  font-size: 0.72em;
  font-weight: 500;
  opacity: 0.8;
}

.buy-window-timer--warn {
  box-shadow:
    0 0 0 1px rgba(232, 184, 109, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.buy-window-timer--warn .buy-window-timer__arc {
  stroke: var(--amber);
  filter: drop-shadow(0 0 6px rgba(232, 184, 109, 0.45));
}

.buy-window-timer--warn .buy-window-timer__value {
  color: var(--amber-hot);
}

.buy-window-modal {
  z-index: 260;
}

.buy-window-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 7, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: accountModalFade 0.2s ease both;
}

.buy-window-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  margin: auto;
  padding: 1.45rem 1.35rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(16, 26, 22, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  overflow: visible;
  text-align: center;
  animation: accountModalIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.buy-window-modal__mark {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  color: var(--amber-hot);
  background: rgba(232, 184, 109, 0.1);
  border: 1px solid rgba(232, 184, 109, 0.32);
}

.buy-window-modal--warn .buy-window-modal__mark {
  animation: buyWindowMarkPulse 1s ease-in-out infinite;
}

.buy-window-modal--warn.buy-window-modal--urgent .buy-window-modal__mark {
  animation-duration: 0.45s;
  box-shadow: 0 0 18px rgba(232, 184, 109, 0.28);
}

.buy-window-modal__clock {
  display: block;
  overflow: visible;
}

.buy-window-modal__clock-hour,
.buy-window-modal__clock-second {
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.buy-window-modal--warn .buy-window-modal__clock-hour {
  animation: buyWindowClockHour 12s linear infinite;
}

.buy-window-modal--warn .buy-window-modal__clock-second {
  transition: transform 0.32s cubic-bezier(0.22, 1.45, 0.36, 1);
}

.buy-window-modal--expired .buy-window-modal__clock-hour,
.buy-window-modal--expired .buy-window-modal__clock-second {
  animation: none;
}

.buy-window-modal--expired .buy-window-modal__mark {
  color: var(--danger-hot);
  background: rgba(255, 0, 60, 0.1);
  border-color: rgba(255, 42, 85, 0.32);
  animation: none;
  box-shadow: 0 0 18px rgba(255, 0, 60, 0.28);
}

.buy-window-modal__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.buy-window-modal--expired .buy-window-modal__eyebrow {
  color: var(--white-soft);
}

.buy-window-modal__dialog h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow: visible;
  color: var(--white);
}

#buy-window-warn-secs {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  color: var(--amber-hot);
  transform-origin: 50% 70%;
}

#buy-window-warn-secs.is-tick {
  animation: buyWindowSecTick 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.buy-window-modal__lead {
  margin: 0 auto 1.05rem;
  max-width: 36ch;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--white-dim);
}

.buy-window-modal__steps {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  padding: 0;
  text-align: left;
}

.buy-window-modal__steps li {
  display: grid;
  gap: 0.12rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(184, 255, 212, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.buy-window-modal__steps strong {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

.buy-window-modal__steps span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--white-soft);
}

.buy-window-modal__btn {
  width: 100%;
}

.buy-window-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.65rem;
  margin-top: 0.1rem;
}

.buy-window-modal__actions .btn {
  width: 100%;
  min-height: 2.7rem;
}

@keyframes buyWindowMarkPulse {
  0%,
  100% {
    background: rgba(232, 184, 109, 0.1);
    border-color: rgba(232, 184, 109, 0.32);
    box-shadow: 0 0 0 0 rgba(232, 184, 109, 0.12);
  }
  50% {
    background: rgba(232, 184, 109, 0.2);
    border-color: rgba(232, 184, 109, 0.72);
    box-shadow: 0 0 22px rgba(232, 184, 109, 0.38);
  }
}

@keyframes buyWindowMarkPulseDanger {
  0%,
  100% {
    background: rgba(255, 0, 60, 0.1);
    border-color: rgba(255, 42, 85, 0.32);
    box-shadow: 0 0 0 0 rgba(255, 0, 60, 0.16);
  }
  50% {
    background: rgba(255, 0, 60, 0.22);
    border-color: rgba(255, 42, 85, 0.78);
    box-shadow: 0 0 22px rgba(255, 0, 60, 0.48);
  }
}

@keyframes buyWindowClockHour {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes buyWindowSecTick {
  0% {
    transform: scale(1.22);
    color: #fff6e4;
  }
  100% {
    transform: scale(1);
    color: var(--amber-hot);
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-window-modal__backdrop,
  .buy-window-modal__dialog,
  .buy-window-modal--warn .buy-window-modal__mark,
  .buy-window-modal--expired .buy-window-modal__mark,
  .buy-window-modal--warn .buy-window-modal__clock-hour,
  .buy-window-modal--expired .buy-window-modal__clock-hour,
  .buy-window-modal--expired .buy-window-modal__clock-second,
  #buy-window-warn-secs.is-tick {
    animation: none;
  }

  .buy-window-modal--warn .buy-window-modal__clock-second {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-score__arc {
    transition: none;
  }
}

.account-check:hover {
  border-color: rgba(57, 255, 154, 0.35);
  background: rgba(57, 255, 154, 0.05);
  transform: translateY(-1px);
}

.account-check:has(input:checked) {
  border-color: rgba(57, 255, 154, 0.5);
  background: rgba(57, 255, 154, 0.07);
  box-shadow: 0 0 0 1px rgba(57, 255, 154, 0.1), 0 0 24px rgba(57, 255, 154, 0.1);
}

.account-check input {
  appearance: none;
  position: relative;
  width: 2.55rem;
  height: 1.4rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.25);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.account-check input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--white-dim);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

.account-check input:checked {
  border-color: rgba(57, 255, 154, 0.7);
  background: rgba(57, 255, 154, 0.28);
  box-shadow: 0 0 14px rgba(57, 255, 154, 0.35);
}

.account-check input:checked::after {
  transform: translateX(1.1rem);
  background: var(--neon);
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.55);
}

.account-check__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.account-check__body strong {
  color: var(--white);
  font-size: 0.95rem;
}

.account-check__body span {
  font-size: 0.84rem;
  color: var(--white-dim);
  line-height: 1.4;
}

.account-danger {
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 0, 60, 0.75);
  background: rgba(8, 10, 12, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.08), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.account-danger--standalone {
  position: relative;
  z-index: 0;
  margin-top: 1.15rem;
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 0, 60, 0.8);
  background: rgba(8, 10, 12, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.1), 0 10px 28px rgba(0, 0, 0, 0.4);
}

.account-danger__form {
  max-width: 36rem;
  width: 100%;
  margin: 0.35rem auto 0;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.account-danger__field {
  display: grid;
  gap: 0.7rem;
  width: min(100%, 32rem);
  justify-items: stretch;
  text-align: left;
}

.account-danger__row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
  width: 100%;
}

.account-danger__row input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 2.85rem;
}

.account-danger__row .btn--danger {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 2.85rem;
  padding: 0.72rem 1.05rem;
}

.account-danger:hover,
.account-danger--standalone:hover {
  border-color: rgba(255, 0, 60, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.16), 0 12px 30px rgba(0, 0, 0, 0.45);
}

.account-danger .account-card__title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--white);
  text-shadow: none;
  filter: none;
  padding: 0;
}

.account-danger .account-card__lead {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--white-dim);
}

.account-danger .account-danger__form label span,
.account-danger .account-danger__field > span {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--white);
  text-align: left;
  justify-self: start;
}

.account-danger input {
  box-sizing: border-box;
  border-radius: 12px;
  border-color: rgba(255, 0, 60, 0.55);
  background: #1a1f1d;
  color: var(--white);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: none;
}

.account-danger input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.account-danger input:focus {
  border-color: rgba(255, 0, 60, 0.95);
  background: #1a1f1d;
  color: var(--white);
  box-shadow:
    0 0 0 3px rgba(255, 0, 60, 0.14),
    0 0 18px rgba(255, 0, 60, 0.18);
}

.account-affiliate {
  position: relative;
  z-index: 1;
  margin-top: 1.15rem;
  border-color: rgba(57, 255, 154, 0.28);
  background:
    linear-gradient(145deg, rgba(57, 255, 154, 0.1) 0%, rgba(12, 18, 15, 0.96) 50%, rgba(57, 255, 154, 0.06) 100%),
    rgba(8, 12, 10, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 28px rgba(57, 255, 154, 0.1);
  isolation: isolate;
}

.account-affiliate__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 11rem));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-affiliate__stat {
  position: relative;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(5, 10, 8, 0.35);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.account-affiliate__stat--with-eye {
  padding-right: 2.35rem;
}

.account-affiliate__stat--with-eye:hover {
  border-color: rgba(57, 255, 154, 0.32);
  background: rgba(57, 255, 154, 0.06);
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.1);
}

.account-affiliate__stat span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.account-affiliate__stat strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--neon);
}

.account-affiliate__stat .account-stats__eye:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.account-modal__dialog--refs {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  padding-top: 1.7rem;
}

.account-modal__dialog--refs .affiliate-refs-list {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
}

.account-modal__dialog--refs .account-modal__top {
  padding-inline: 1.6rem;
}

.affiliate-refs-list {
  position: relative;
  display: grid;
  gap: 0.55rem;
  max-height: min(52vh, 22rem);
  overflow: auto;
  margin: 0 0 1rem;
  padding-right: 0.15rem;
}

.affiliate-refs-empty {
  margin: 0.25rem 0 0.5rem;
  text-align: center;
  color: var(--white-dim);
  font-size: 0.92rem;
}

.affiliate-ref {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.affiliate-ref__meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.affiliate-ref__meta strong {
  font-size: 0.95rem;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.affiliate-ref__status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-dim);
}

.affiliate-ref__status.is-online {
  color: var(--neon);
}

.affiliate-ref__status.is-online::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(57, 255, 154, 0.7);
  vertical-align: middle;
}

.affiliate-ref__status.is-hidden {
  color: var(--white-soft);
  font-weight: 500;
}

.affiliate-ref__bonus {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  flex-shrink: 0;
  text-align: right;
}

.affiliate-ref__bonus-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.affiliate-ref__bonus strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--neon);
  white-space: nowrap;
}

.account-affiliate__share {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 0.35rem;
}

.account-affiliate__chip {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.7rem 0.75rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: rgba(5, 10, 8, 0.35);
  box-shadow: none;
}

.account-affiliate__chip--code,
.account-affiliate__chip--link {
  width: auto;
  max-width: none;
  flex: none;
  min-width: 0;
}

.account-affiliate__chip-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.account-affiliate__chip-body {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.account-affiliate__value,
.account-affiliate__value--link {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.4rem 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 10px;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: var(--white-dim);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  box-shadow: none;
}

.account-affiliate__copy {
  appearance: none;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 154, 0.4);
  background: rgba(57, 255, 154, 0.12);
  color: var(--neon);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.account-affiliate__copy:hover {
  background: rgba(57, 255, 154, 0.22);
  border-color: rgba(57, 255, 154, 0.7);
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.28);
  transform: translateY(-1px);
}

.account-affiliate__copy:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .account-affiliate__grid,
  .account-affiliate__share {
    grid-template-columns: 1fr;
  }

  .account-affiliate__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.account-modal[hidden] {
  display: none !important;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  place-content: center;
  padding: 1.25rem;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
}

.account-modal.buy-window-modal {
  z-index: 260;
}

.account-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 5, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: accountModalFade 0.22s ease both;
}

.account-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(85dvh, 40rem);
  margin: auto;
  padding: 1.55rem 1.45rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(184, 255, 212, 0.12);
  background:
    linear-gradient(165deg, rgba(18, 28, 24, 0.98) 0%, rgba(8, 12, 10, 0.98) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 60px rgba(57, 255, 154, 0.06);
  overflow: hidden;
  animation: accountModalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(5, 10, 8, 0.65);
  color: var(--white-dim);
  cursor: pointer;
  line-height: 0;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.account-modal__close:hover {
  color: var(--neon);
  border-color: rgba(57, 255, 154, 0.45);
  background: rgba(57, 255, 154, 0.1);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.16);
  transform: translateY(-1px);
}

.account-modal__close:focus-visible {
  outline: 2px solid rgba(57, 255, 154, 0.55);
  outline-offset: 2px;
}

.account-modal__close svg {
  display: block;
}

.account-modal__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 140%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(57, 255, 154, 0.14), transparent 68%);
  pointer-events: none;
}

.account-modal__top {
  position: relative;
  text-align: center;
  margin-bottom: 1.15rem;
}

.account-modal__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  border: 1px solid rgba(57, 255, 154, 0.28);
  box-shadow: 0 0 28px rgba(57, 255, 154, 0.18);
}

.account-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
}

.account-modal__dialog h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.buy-window-modal__dialog h3 {
  font-family: var(--font-sans);
  line-height: 1.35;
  overflow: visible;
}

.account-modal__lead {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--white-dim);
}

.account-modal__points {
  position: relative;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.account-modal__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(184, 255, 212, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.account-modal__point > .account-modal__point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.05rem;
  border-radius: 8px;
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
  border: 1px solid rgba(57, 255, 154, 0.2);
  flex-shrink: 0;
  line-height: 0;
  font-size: 0;
}

.account-modal__point > .account-modal__point-icon svg {
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.account-modal__point strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.9rem;
  color: var(--white);
}

.account-modal__point > div > span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--white-soft);
}

.account-modal__warn {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0 0 1.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 0, 60, 0.45);
  background: linear-gradient(135deg, rgba(255, 0, 60, 0.16), rgba(255, 0, 60, 0.04));
  box-shadow: 0 0 24px rgba(255, 0, 60, 0.12);
}

.account-modal__warn-icon {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #12040a;
  background: var(--danger);
  box-shadow: var(--danger-glow);
}

.account-modal__warn p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #ffc2d0;
}

.account-modal__actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.65rem;
}

.render-queue-modal .account-modal__dialog {
  text-align: center;
  padding-bottom: 1.55rem;
}

.render-queue-modal .account-modal__dialog h3 {
  font-family: var(--font-sans);
}

.render-queue-modal .account-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
}

.render-queue-modal [data-queue-cancel] {
  width: auto;
  min-width: 10.5rem;
  border-radius: 999px;
}

.render-queue-modal [data-queue-cancel]:hover,
.render-queue-modal [data-queue-cancel]:focus-visible {
  border-color: var(--danger-hot);
  background: rgba(255, 0, 60, 0.28);
  color: #fff;
  box-shadow: var(--danger-glow);
}

.render-queue-status {
  margin: 0.35rem 0 0;
  color: var(--white-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.render-queue-wait {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  margin: 1.15rem 0 0.85rem;
}

.render-queue-wait__spinner {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 3px solid rgba(57, 255, 154, 0.18);
  border-top-color: var(--neon);
  box-shadow: 0 0 16px rgba(57, 255, 154, 0.35);
  animation: spin 0.8s linear infinite;
}

.render-queue-wait__word {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(57, 255, 154, 0.35);
  animation: render-queue-wait-pulse 1.4s ease-in-out infinite;
}

.render-queue-wait__dots {
  display: inline-flex;
  gap: 0.22rem;
  margin-left: 0.18rem;
  vertical-align: 0.12em;
}

.render-queue-wait__dots span {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(57, 255, 154, 0.45);
  animation: render-queue-wait-dot 1.05s ease-in-out infinite;
}

.render-queue-wait__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.render-queue-wait__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.render-queue-wait__kicker {
  margin: 0.55rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.render-queue-wait__num,
.render-queue-place__num {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(57, 255, 154, 0.35);
}

.render-queue-wait__num.is-tick {
  animation: render-queue-place-tick 0.35s ease;
}

.render-queue-place {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin: 1.15rem 0 0.85rem;
}

.render-queue-place__label {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.render-queue-hint {
  margin: 0 0 1rem;
}

.render-queue-modal .account-modal__lead {
  margin-bottom: 0.65rem;
}

@keyframes render-queue-wait-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes render-queue-wait-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-0.22rem);
  }
}

@keyframes render-queue-place-tick {
  0% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}

.account-modal__btn-cancel {
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.account-modal__btn-ok {
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

.purchase-review-modal .account-modal__backdrop,
.storage-plan-notice-modal .account-modal__backdrop {
  background: rgba(2, 6, 5, 0.52);
}

.storage-plan-confirm-modal .account-modal__backdrop {
  background: rgba(2, 6, 5, 0.48);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.purchase-review-modal .account-modal__dialog,
.storage-plan-notice-modal .account-modal__dialog {
  background:
    linear-gradient(165deg, rgba(18, 28, 24, 0.72) 0%, rgba(8, 12, 10, 0.78) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.storage-plan-confirm-modal .account-modal__dialog {
  background:
    linear-gradient(165deg, rgba(28, 42, 38, 0.48) 0%, rgba(8, 14, 12, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 40px rgba(57, 255, 154, 0.08);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.storage-plan-confirm-modal .account-modal__dialog h3 {
  font-family: var(--font-sans);
}

.purchase-review-modal .account-modal__actions,
.storage-plan-notice-modal .account-modal__actions,
.storage-plan-confirm-modal .account-modal__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.purchase-review-modal .account-modal__btn-cancel,
.purchase-review-modal .account-modal__btn-ok,
.storage-plan-notice-modal .account-modal__btn-cancel,
.storage-plan-notice-modal .account-modal__btn-ok,
.storage-plan-confirm-modal .account-modal__btn-cancel,
.storage-plan-confirm-modal .account-modal__btn-ok {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0.5rem 1.05rem;
  font-size: 0.86rem;
  border-radius: 999px;
}

@keyframes accountModalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes accountModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-modal__backdrop,
  .account-modal__dialog {
    animation: none;
  }
}

@media (max-width: 980px) {
  .account-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .account-meta {
    grid-template-columns: 1fr;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-hero {
    min-height: 0;
    padding: 1rem 1.05rem;
    gap: 0.9rem;
  }

  .account-hero__brand {
    max-width: 11rem;
  }

  .account-hero__logo {
    width: 5.75rem;
    max-height: 5.75rem;
  }
}

@media (max-width: 560px) {
  .account-hero__brand {
    max-width: 7.4rem;
  }

  .account-hero__logo {
    width: 4.5rem;
    max-height: 4.5rem;
    opacity: 1;
  }

  .account-hero__glow--right {
    opacity: 0.3;
  }
}

@media (max-width: 520px) {
  .account-stats__grid {
    grid-template-columns: 1fr;
  }

  .account-stats__locked {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .account-modal__actions,
  .buy-window-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .layout:has(.choice--passbild):has(.block--unterschrift) {
    align-items: start;
  }

  .editor-actions-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1rem;
  }

  .editor-actions-row__right {
    align-items: stretch;
  }

  .editor-actions-row__right .actions--preview {
    max-width: none;
  }

  .layout:has(.editor-actions-row) .panel--form .block--optionen,
  .layout:has(.editor-actions-row) .panel--preview .preview-generate {
    margin-top: 0.75rem;
    margin-bottom: auto;
  }

  .panel--preview .block--unterschrift {
    margin-top: 1.15rem;
  }

  .panel--preview {
    --preview-stage-height: min(56vh, 28rem);
  }

  .panel--preview:has(.preview-stage--fuehrerschein) {
    --preview-stack-width: min(100%, 34rem);
    --preview-stage-height: min(38vh, 18rem);
  }

  .panel--preview:has(.preview-stage--ausweis) {
    --preview-stack-width: min(100%, 34rem);
    --preview-stage-height: min(40vh, 20rem);
  }

  .panel--preview:has(.preview-stage--melde) {
    --preview-stack-width: min(100%, 26.5rem);
    --preview-stage-height: min(62vh, 32rem);
  }
}

@media (max-width: 560px) {
  .shell,
  .shell:has(.topbar--with-nav) {
    width: min(100% - 1.25rem, 1180px);
    padding-top: 1.25rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .ausweis-number-field__toggles {
    grid-template-columns: 1fr;
  }

  .ausweis-number-field__toggle-col:not(.ausweis-number-field__toggle-col--random) {
    min-width: 0;
  }

  .ausweis-number-field__hint {
    white-space: normal;
  }

  .ausweis-number-field__toggles .random-fill-btn,
  .ausweis-number-field__toggle-col--random {
    grid-column: auto;
  }

  .optional-fields__body,
  .optional-field__body,
  .geburts-row,
  .anmelde-ausstell,
  .nationality-optional__head {
    grid-template-columns: 1fr;
  }

  .anmelde-ausstell:not(.is-open) .anmelde-ausstell__toggle,
  .grid label.toggle.nationality-optional__toggle,
  .nationality-optional__toggle {
    margin-top: 0;
    min-height: 0;
  }

  .span-2 {
    grid-column: auto;
  }

  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0;
    gap: 0.65rem 0.75rem;
    min-height: 0;
  }

  .topbar--with-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 0.75rem;
  }

  .topbar--with-nav .brand {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  .topbar--with-nav.topbar--storage .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .topbar--with-nav.topbar--storage .userbar {
    margin-left: auto;
  }

  .topbar--with-nav.topbar--storage > .nav-toggle {
    flex: 0 0 auto;
  }

  .topbar--with-nav .userbar {
    justify-self: end;
    margin-left: 0;
  }

  .shell--editor.shell--home .layout {
    gap: 1.75rem;
  }

  .topbar .brand__logo,
  .brand__logo {
    height: 3.35rem;
  }

  .home-hero {
    margin-top: 0.15rem;
  }

  .home-hero::before {
    top: -0.15rem;
    height: 4.25rem;
  }

  .home-steps__list,
  .home-highlights__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__cta .btn,
  .home-close .btn,
  .home-section__cta .btn {
    min-width: 0;
    flex: 0 0 auto;
  }

  .home-hero__meta li {
    min-width: 4.75rem;
  }

  .home-hero__meta-item--wide {
    min-width: 8.5rem;
  }
}

@media (max-width: 1280px) {
  body.nav-open {
    overflow: hidden;
  }

  .topbar--with-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 40;
    column-gap: 0.65rem;
  }

  .topbar--with-nav .brand {
    flex: 0 1 auto;
    min-width: 0;
    transform: none;
  }

  .topbar--with-nav.topbar--storage .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .topbar--with-nav.topbar--storage .userbar {
    margin-left: auto;
  }

  .topbar--with-nav.topbar--storage > .nav-toggle {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .topbar--with-nav .userbar {
    flex: 0 0 auto;
    gap: 0.45rem;
    margin-left: 0;
  }

  .topbar--with-nav .app-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    margin: 0;
    justify-content: stretch;
    z-index: 50;
    animation: none;
  }

  body.nav-open .topbar--with-nav .app-nav {
    display: block;
  }

  body.nav-open .topbar--with-nav .app-nav::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: -1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .app-nav__track {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: min(70vh, 28rem);
    overflow: auto;
    gap: 0.2rem;
    padding: 0.45rem;
    border-radius: 16px;
    background: rgba(8, 14, 12, 0.96);
    transform: none;
    box-shadow: none;
  }

  .app-nav__thumb {
    display: none;
  }

  .app-nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 0.95rem;
    font-size: 1rem;
    border-radius: 12px;
    white-space: normal;
  }

  .app-nav__link.is-active {
    background: var(--neon);
  }

  .app-nav__badge {
    margin-left: auto;
  }

  .userbar__balance {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
}

body:not(.is-preview-admin) .is-capture-guarded,
body:not(.is-preview-admin) .is-capture-guarded img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

body:not(.is-preview-admin) .is-paid-unlocked,
body:not(.is-preview-admin) .is-paid-unlocked img {
  -webkit-user-select: auto;
  user-select: auto;
  -webkit-user-drag: auto;
  -webkit-touch-callout: default;
}

.preview-stage.is-paid-unlocked #preview-image,
.lightbox.is-paid-unlocked .lightbox__img {
  pointer-events: auto;
}

body.preview-shield:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked) img,
body.preview-shield:not(.is-preview-admin) .passbild-card__media img,
body.preview-shield:not(.is-preview-admin) .stempel-card__media img,
body.preview-shield:not(.is-preview-admin) .stempel-picker__trigger-media img,
body.preview-shield:not(.is-preview-admin) .preview-stage.has-live-preview:not(.is-paid-unlocked) #preview-image,
body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__img {
  visibility: hidden !important;
  filter: blur(40px) brightness(0) !important;
}

body.preview-shield:not(.is-preview-admin) .docs-card__thumb.is-paid-unlocked img,
.lightbox.is-paid-unlocked .lightbox__img {
  visibility: visible !important;
  filter: none !important;
}

body.preview-shield:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked) {
  position: relative;
}

body.preview-shield:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked)::after,
body.preview-shield:not(.is-preview-admin) .passbild-card__media::after,
body.preview-shield:not(.is-preview-admin) .stempel-card__media::after,
body.preview-shield:not(.is-preview-admin) .stempel-picker__trigger-media::after,
body.preview-shield:not(.is-preview-admin) .preview-stage.has-live-preview:not(.is-paid-unlocked)::after,
body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #000;
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
}

body.preview-shield:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked)::before,
body.preview-shield:not(.is-preview-admin) .passbild-card__media::before,
body.preview-shield:not(.is-preview-admin) .stempel-card__media::before,
body.preview-shield:not(.is-preview-admin) .stempel-picker__trigger-media::before,
body.preview-shield:not(.is-preview-admin) .preview-stage.has-live-preview:not(.is-paid-unlocked)::before,
body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(50% - 1.35rem);
  z-index: 41;
  width: 1.85rem;
  height: 1.85rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background-color: var(--neon);
  opacity: 0.92;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 10-8 0v2H7a2 2 0 00-2 2v9a2 2 0 002 2h10a2 2 0 002-2v-9a2 2 0 00-2-2zm-6-2a2 2 0 114 0v2h-4V6zm3 10.7a1.5 1.5 0 11-2 0V15a1 1 0 112 0v1.7z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 8h-1V6a4 4 0 10-8 0v2H7a2 2 0 00-2 2v9a2 2 0 002 2h10a2 2 0 002-2v-9a2 2 0 00-2-2zm-6-2a2 2 0 114 0v2h-4V6zm3 10.7a1.5 1.5 0 11-2 0V15a1 1 0 112 0v1.7z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(57, 255, 154, 0.45));
}

body.preview-shield:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked)::after,
body.preview-shield:not(.is-preview-admin) .passbild-card__media::after,
body.preview-shield:not(.is-preview-admin) .stempel-card__media::after,
body.preview-shield:not(.is-preview-admin) .stempel-picker__trigger-media::after,
body.preview-shield:not(.is-preview-admin) .preview-stage.has-live-preview:not(.is-paid-unlocked)::after,
body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked)::after {
  content: "Bildaufnahme Blockiert";
  padding-top: 2.4rem;
  text-shadow: 0 0 12px rgba(57, 255, 154, 0.35);
}

body.preview-shield:not(.is-preview-admin) .passbild-card__media::after,
body.preview-shield:not(.is-preview-admin) .stempel-card__media::after {
  font-size: 0.52rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding-top: 1.55rem;
  padding-inline: 0.2rem;
  gap: 0.3rem;
}

body.preview-shield:not(.is-preview-admin) .stempel-picker__trigger-media::after {
  font-size: 0;
  padding: 0;
}

body.preview-shield:not(.is-preview-admin) .passbild-card__media::before,
body.preview-shield:not(.is-preview-admin) .stempel-card__media::before {
  width: 1.1rem;
  height: 1.1rem;
  top: calc(50% - 0.85rem);
}

body.preview-shield:not(.is-preview-admin) .stempel-picker__trigger-media::before {
  width: 0.85rem;
  height: 0.85rem;
  top: 50%;
}

body.preview-shield:not(.is-preview-admin) .stempel-card__wm,
body.preview-shield:not(.is-preview-admin) .passbild-card__wm,
body.preview-shield:not(.is-preview-admin) .lightbox--live-preview:not(.is-paid-unlocked) .lightbox__wm,
body.preview-shield:not(.is-preview-admin) .lightbox--live-preview:not(.is-paid-unlocked) .lightbox__loupe,
body.preview-shield:not(.is-preview-admin) .lightbox--live-preview:not(.is-paid-unlocked) .lightbox__tools {
  visibility: hidden;
}

body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked)::after {
  z-index: 1200;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked)::before {
  z-index: 1201;
}

body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__figure,
body.preview-shield:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__close {
  visibility: hidden;
}

@media print {
  body:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked) img,
  body:not(.is-preview-admin) .passbild-card__media img,
  body:not(.is-preview-admin) .stempel-card__media img,
  body:not(.is-preview-admin) .stempel-picker__trigger-media img,
  body:not(.is-preview-admin) .preview-stage.has-live-preview:not(.is-paid-unlocked) #preview-image,
  body:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked) .lightbox__img {
    visibility: hidden !important;
  }

  body:not(.is-preview-admin) .docs-card__thumb:not(.is-paid-unlocked),
  body:not(.is-preview-admin) .passbild-card__media,
  body:not(.is-preview-admin) .stempel-card__media,
  body:not(.is-preview-admin) .stempel-picker__trigger-media,
  body:not(.is-preview-admin) .preview-stage.has-live-preview:not(.is-paid-unlocked),
  body:not(.is-preview-admin) .lightbox.lightbox--live-preview:not(.is-paid-unlocked) {
    background: #000 !important;
  }
}

.admin-panel__lead {
  margin: 0 0 1.1rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
}

.admin-tabs__link {
  appearance: none;
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
}

.admin-tabs__link:hover:not(.is-active) {
  border-color: rgba(184, 255, 212, 0.35);
  color: var(--white);
}

.admin-tabs__link.is-active {
  border-color: rgba(57, 255, 154, 0.55);
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
}

.admin-stats--compact {
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.55rem;
}

.admin-stats__cell {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.admin-stats--compact .admin-stats__cell {
  padding: 0.7rem 0.8rem;
}

.admin-stats__cell dt {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.admin-stats__cell dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.admin-stats--compact .admin-stats__cell dd {
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.admin-stats__cell dd .admin-kpi__delta {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  vertical-align: 0.12em;
}

#admin-stats-status[hidden] {
  display: none !important;
}

.admin-dash {
  display: grid;
  gap: 1.35rem;
}

.admin-panel-card {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(184, 255, 212, 0.12);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.admin-panel-card--btn {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-panel-card--btn:hover,
.admin-panel-card--btn:focus-visible {
  border-color: rgba(57, 255, 154, 0.4);
  background: rgba(57, 255, 154, 0.06);
  outline: none;
}

.admin-panel-card--btn:active {
  transform: translateY(1px);
}

.admin-panel-card > .admin-section-title {
  margin-bottom: 0.7rem;
}

.admin-panel-card__sub {
  margin-left: 0.45rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.admin-panel-card__chev {
  margin-left: 0.35rem;
  color: var(--neon);
  font-weight: 700;
  opacity: 0.7;
}

.admin-panel-card--btn:hover .admin-panel-card__chev {
  opacity: 1;
}

.admin-panel-card .admin-table-wrap {
  border: none;
  background: transparent;
  border-radius: 0;
  margin: 0 -0.15rem;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-kpi {
  appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: linear-gradient(165deg, rgba(57, 255, 154, 0.07), rgba(0, 0, 0, 0.34) 55%);
  font: inherit;
  font-family: var(--font-sans);
  color: inherit;
  text-align: left;
  min-width: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.admin-kpi:hover,
.admin-kpi:focus-visible {
  border-color: rgba(57, 255, 154, 0.5);
  background: linear-gradient(165deg, rgba(57, 255, 154, 0.12), rgba(0, 0, 0, 0.38) 55%);
  outline: none;
}

.admin-kpi:active {
  transform: translateY(1px);
}

.admin-kpi__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.admin-kpi__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-soft);
  font-weight: 650;
}

.admin-kpi__pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 0 rgba(57, 255, 154, 0.55);
  animation: admin-kpi-pulse 1.8s ease-out infinite;
}

@keyframes admin-kpi-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 154, 0.5);
  }
  70% {
    box-shadow: 0 0 0 0.45rem rgba(57, 255, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 154, 0);
  }
}

.admin-kpi__delta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.admin-kpi__delta--up {
  color: var(--neon);
  border-color: rgba(57, 255, 154, 0.35);
  background: rgba(57, 255, 154, 0.1);
}

.admin-kpi__delta--down {
  color: #ff8a9a;
  border-color: rgba(255, 138, 154, 0.35);
  background: rgba(255, 138, 154, 0.1);
}

.admin-kpi__delta--flat {
  color: var(--white-soft);
  border-color: rgba(184, 255, 212, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.admin-kpi__value-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
}

.admin-kpi__value {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.admin-kpi__hint {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--white-dim);
  line-height: 1.35;
}

.admin-sparkline {
  flex: 0 0 auto;
  opacity: 0.95;
  margin-bottom: 0.1rem;
}

.admin-chart-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-chart {
  margin: 0;
  padding: 0.95rem 1rem 0.55rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(0, 0, 0, 0.28);
  min-width: 0;
}

.admin-chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.1rem;
}

.admin-chart__hint {
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--white-dim);
}

.admin-chart__plot {
  position: relative;
  cursor: crosshair;
  touch-action: none;
}

.admin-chart__plot.is-hovering .admin-chart__dot {
  opacity: 0.35;
}

.admin-chart__tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  min-width: 5.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(57, 255, 154, 0.45);
  background: rgba(6, 16, 12, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-family: var(--font-sans);
  color: var(--white);
  display: grid;
  gap: 0.15rem;
}

.admin-chart__tip[hidden] {
  display: none !important;
}

.admin-chart__tip strong {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.admin-chart__tip span {
  font-size: 0.72rem;
  color: var(--white-soft);
}

.admin-chart__cursor {
  stroke: rgba(57, 255, 154, 0.55);
  stroke-width: 1.25;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.admin-chart__hover-dot {
  fill: var(--neon);
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 1.75;
  pointer-events: none;
}

.admin-chart__head .admin-section-title {
  margin: 0;
}

.admin-chart__sum {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.admin-chart__sum-unit {
  font-weight: 650;
  color: var(--white-soft);
  font-size: 0.78rem;
}

.admin-chart__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 11.5rem;
}

.admin-chart__grid {
  stroke: rgba(184, 255, 212, 0.09);
  stroke-width: 1;
}

.admin-chart__area {
  fill: rgba(57, 255, 154, 0.13);
}

.admin-chart__line {
  stroke: var(--neon);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-chart__dot {
  fill: var(--neon);
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 1.5;
}

.admin-chart__label,
.admin-chart__ylabel {
  fill: rgba(184, 255, 212, 0.55);
  font-size: 10px;
  font-family: var(--font-sans);
}

.admin-chart__ylabel {
  fill: rgba(184, 255, 212, 0.42);
}

.admin-chart__empty {
  display: grid;
  place-items: center;
  min-height: 10.5rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--white-dim);
}

.admin-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-group .admin-section-title {
  margin-bottom: 0.55rem;
}

.admin-group .admin-stats__cell {
  background: rgba(0, 0, 0, 0.28);
}

.admin-dash__split {
  margin-top: 0;
}

.admin-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.admin-rank > li {
  margin: 0;
}

.admin-rank__empty {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.admin-rank__item {
  margin: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.admin-rank__item--btn {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-rank__item--btn:hover,
.admin-rank__item--btn:focus-visible {
  border-color: rgba(57, 255, 154, 0.35);
  background: rgba(57, 255, 154, 0.07);
  outline: none;
}

.admin-rank__item--btn:hover .admin-rank__label {
  color: var(--neon);
}

.admin-rank__head {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.32rem;
  font-family: var(--font-sans);
}

.admin-rank__pos {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.admin-rank__label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rank__meta {
  font-size: 0.78rem;
  color: var(--white-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.admin-rank__track {
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(184, 255, 212, 0.1);
  overflow: hidden;
}

.admin-rank__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(57, 255, 154, 0.45), var(--neon));
  transition: width 0.35s ease;
}

.admin-recent__table {
  font-size: 0.84rem;
}

.admin-recent__table td {
  white-space: nowrap;
}

.admin-recent__table td:nth-child(2) {
  white-space: normal;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-recent__row.is-clickable {
  cursor: pointer;
  transition: background 0.12s ease;
}

.admin-recent__row.is-clickable:hover,
.admin-recent__row.is-clickable:focus-visible {
  background: rgba(57, 255, 154, 0.08);
  outline: none;
}

.admin-recent__row.is-clickable:hover td:first-child {
  color: var(--neon);
}

.admin-recent__date {
  color: var(--white-soft);
  font-variant-numeric: tabular-nums;
}

.admin-recent__table .admin-chip {
  margin-left: 0.35rem;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .admin-kpi-grid,
  .admin-chart-row,
  .admin-group-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 700px) and (max-width: 980px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-kpi__pulse {
    animation: none;
  }

  .admin-rank__fill {
    transition: none;
  }
}

.admin-form {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.admin-form--inline {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)) auto;
  align-items: end;
}

.admin-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

.admin-form__field {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--white-soft);
}

.admin-form__field--grow {
  grid-column: span 2;
}

.admin-form__field input,
.admin-form__field select,
.admin-form__field textarea {
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(184, 255, 212, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
  font: inherit;
}

.admin-form__field textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.45;
}

.admin-form__field select {
  cursor: pointer;
}

.admin-form__field select option {
  background: #0c1210;
  color: var(--white);
}

.admin-form--users {
  grid-template-columns: minmax(12rem, 1.6fr) repeat(2, minmax(8rem, 0.8fr)) auto;
  align-items: end;
}

.admin-form--users .admin-form__field--grow {
  grid-column: auto;
}

.admin-form--users .admin-form__submit {
  width: auto;
  justify-self: start;
  align-self: end;
  white-space: nowrap;
}

.admin-form--stack {
  margin: 0;
}

.admin-form--stack .admin-form__submit {
  width: auto;
  justify-self: start;
  white-space: nowrap;
}

.admin-form--stack + .admin-section-title {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.admin-users {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

body.admin-user-modal-open {
  overflow: hidden;
}

.admin-user-modal[hidden] {
  display: none !important;
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  width: 100vw;
  height: 100dvh;
  box-sizing: border-box;
}

.admin-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 5, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: accountModalFade 0.22s ease both;
}

.admin-user-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(54rem, 94vw);
  max-height: min(88vh, 56rem);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(57, 255, 154, 0.1), transparent 48%),
    radial-gradient(90% 60% at 100% 0%, rgba(184, 255, 212, 0.05), transparent 42%),
    linear-gradient(165deg, rgba(16, 26, 22, 0.99) 0%, rgba(5, 10, 8, 0.99) 100%);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 70px rgba(57, 255, 154, 0.07);
  animation: accountModalIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-user-modal__glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(57, 255, 154, 0.75),
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

.admin-user-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(184, 255, 212, 0.22);
  border-radius: 10px;
  background: rgba(5, 10, 8, 0.82);
  color: var(--white-dim);
  font-size: 1.35rem;
  line-height: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.admin-user-modal__close:hover,
.admin-user-modal__close:focus-visible {
  color: var(--neon);
  border-color: rgba(57, 255, 154, 0.5);
  background: rgba(57, 255, 154, 0.12);
  box-shadow: 0 0 18px rgba(57, 255, 154, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.admin-user-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.35rem 1.45rem 1.5rem;
  scrollbar-gutter: stable;
}

.admin-user-modal__dialog .admin-user-detail__head {
  padding-right: 2.8rem;
}

.admin-users__list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.admin-users__status {
  margin: 0;
}

.admin-users__pager {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  font-family: var(--font-sans);
}

.admin-users__pager[hidden] {
  display: none !important;
}

.admin-users__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.admin-users__page {
  appearance: none;
  min-width: 2.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.admin-users__page:hover:not(.is-active) {
  border-color: rgba(184, 255, 212, 0.35);
  color: var(--white);
}

.admin-users__page.is-active {
  border-color: rgba(57, 255, 154, 0.55);
  background: rgba(57, 255, 154, 0.12);
  color: var(--neon);
}

.admin-users__row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.admin-users__row:hover,
.admin-users__row:focus-visible {
  background: rgba(57, 255, 154, 0.07);
  outline: none;
}

.admin-users__row.is-active {
  background: rgba(57, 255, 154, 0.12);
}

.admin-users__row.is-active td:first-child {
  color: var(--neon);
  font-weight: 700;
}

.admin-users__name {
  white-space: nowrap;
}

.admin-users__name-text {
  margin-right: 0.35rem;
}

.admin-users__name .admin-chip {
  vertical-align: middle;
  margin-left: 0;
}

.admin-users__balance {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--white);
}

.admin-users__balance--pos {
  color: var(--neon);
  font-weight: 650;
}

.admin-users__table th:nth-child(4),
.admin-users__table td.admin-users__balance {
  text-align: right;
}

.admin-chip--status {
  margin-left: 0;
}

.admin-chip.admin-chip--online {
  border-color: rgba(57, 255, 154, 0.4);
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
}

.admin-chip.admin-chip--offline {
  border-color: rgba(255, 80, 100, 0.55);
  color: #ff8a9a;
  background: rgba(255, 80, 100, 0.1);
}

.admin-user-detail__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  clear: both;
}

.admin-user-detail__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 0 24px rgba(57, 255, 154, 0.18);
}

.admin-user-detail__meta {
  margin: 0.4rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--white-soft);
  line-height: 1.45;
}

.admin-user-detail__kpis {
  margin-bottom: 1.15rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-user-detail__kpis .admin-stats__cell {
  border-color: rgba(184, 255, 212, 0.12);
  background:
    linear-gradient(165deg, rgba(57, 255, 154, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.32);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-user-detail__kpis .admin-stats__cell:hover {
  border-color: rgba(57, 255, 154, 0.28);
}

@media (max-width: 900px) {
  .admin-user-detail__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-user-detail__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.admin-user-detail__actions .admin-form--stack {
  border-color: rgba(184, 255, 212, 0.14);
  background:
    linear-gradient(165deg, rgba(57, 255, 154, 0.04), transparent 50%),
    rgba(0, 0, 0, 0.28);
}

.admin-user-detail__actions .admin-form--storage {
  grid-column: 1 / -1;
}

.admin-storage-timing {
  display: grid;
  gap: 0.65rem;
}

.admin-storage-timing[hidden] {
  display: none;
}

.admin-storage-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-storage-mode__choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--white-soft);
}

.admin-storage-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-storage-preset {
  appearance: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(184, 255, 212, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
}

.admin-storage-preset:hover {
  border-color: rgba(57, 255, 154, 0.45);
}

@media (max-width: 720px) {
  .admin-user-detail__actions {
    grid-template-columns: 1fr;
  }
}

.admin-user-detail__form-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
}

.admin-user-detail__sections {
  display: grid;
  gap: 0.75rem;
}

.admin-user-detail__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-user-detail__tab {
  appearance: none;
  border: 1px solid rgba(184, 255, 212, 0.18);
  background: rgba(0, 0, 0, 0.28);
  color: var(--white-soft);
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm, 8px);
  cursor: pointer;
}

.admin-user-detail__tab:hover:not(.is-active) {
  border-color: rgba(184, 255, 212, 0.35);
  color: var(--white);
}

.admin-user-detail__tab.is-active {
  border-color: rgba(57, 255, 154, 0.5);
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
}

.admin-user-detail__panel .admin-table-wrap {
  border: none;
  background: transparent;
  border-radius: 0;
}

@media (max-width: 980px) {
  .admin-user-modal__dialog {
    width: min(96vw, 54rem);
    max-height: 92vh;
  }

  .admin-user-modal__scroll {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .admin-form--users {
    grid-template-columns: 1fr 1fr;
  }

  .admin-form--users .admin-form__field:first-child {
    grid-column: 1 / -1;
  }

  .admin-form--users .admin-form__submit {
    grid-column: 1 / -1;
  }
}

.admin-section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.admin-news-list {
  display: grid;
  gap: 1rem;
}

.admin-news-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem 1.25rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: rgba(0, 0, 0, 0.32);
}

.admin-news-card--withdrawn {
  opacity: 0.78;
  border-color: rgba(184, 255, 212, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.admin-news-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-news-card__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
}

.admin-news-card__status {
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.22);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.admin-news-card__status--sent {
  border-color: rgba(57, 255, 154, 0.45);
  color: var(--neon);
  background: rgba(57, 255, 154, 0.08);
}

.admin-news-card__status--withdrawn {
  border-color: rgba(184, 255, 212, 0.16);
  color: var(--white-dim);
  background: rgba(255, 255, 255, 0.04);
}

.admin-news-card__body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--white-soft);
  white-space: pre-wrap;
}

.admin-news-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(184, 255, 212, 0.08);
}

.admin-news-card__meta {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--white-dim);
}

.admin-news-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.admin-news-card__actions .btn--ghost:disabled {
  opacity: 0.55;
  cursor: default;
  color: var(--white-dim);
  border-color: rgba(184, 255, 212, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.25rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 255, 212, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(184, 255, 212, 0.1);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-soft);
  font-weight: 700;
}

.admin-table td {
  color: var(--white-dim);
}

.admin-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-chip {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 154, 0.4);
  color: var(--neon);
  font-size: 0.7rem;
  font-weight: 700;
}

.admin-chip--danger {
  border-color: rgba(255, 80, 100, 0.55);
  color: #ff8a9a;
}

.admin-bans__lead {
  margin: 0 0 1.1rem;
}

.admin-bans__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.admin-bans__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-bans__filters .btn.is-active {
  border-color: rgba(57, 255, 154, 0.55);
  color: var(--neon);
  background: rgba(57, 255, 154, 0.1);
}

.admin-bans__status {
  margin: 0;
  min-height: 0;
}

.admin-bans__list {
  display: grid;
  gap: 0.85rem;
}

.admin-bans__empty {
  margin: 0.5rem 0 0;
}

.admin-ban-card {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: rgba(0, 0, 0, 0.32);
}

.admin-ban-card.is-inactive {
  opacity: 0.72;
}

.admin-ban-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.admin-ban-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
}

.admin-ban-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--white);
}

.admin-ban-card__badge {
  flex-shrink: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 212, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white-soft);
}

.admin-ban-card__badge--active {
  border-color: rgba(255, 80, 100, 0.55);
  color: #ff8a9a;
  background: rgba(255, 0, 60, 0.08);
}

.admin-ban-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1rem;
  margin: 0;
}

.admin-ban-card__meta dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white-soft);
}

.admin-ban-card__meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--white-dim);
  word-break: break-word;
}

.admin-ban-card__meta code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--neon);
}

.admin-ban-card__ua {
  grid-column: 1 / -1;
}

.admin-ban-card__actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .admin-ban-card__meta {
    grid-template-columns: 1fr;
  }
}

.settings-panel {
  display: grid;
  gap: 1.1rem;
}

.settings-panel > .account-hero {
  margin-bottom: 0;
}

.settings-panel .account-card__lead {
  margin-bottom: 1rem;
}

.settings-locked {
  position: relative;
}

.settings-locked__body {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.settings-locked__banner {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(57, 255, 154, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(57, 255, 154, 0.08);
  color: var(--neon);
  font-size: 0.92rem;
  line-height: 1.4;
}

.settings-locked__banner a {
  color: var(--neon);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.settings-retention {
  display: grid;
  gap: 0.85rem;
}

.settings-retention__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.settings-retention__row label {
  min-width: 10rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.settings-retention__row input[type="number"] {
  width: 5.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 12, 9, 0.65);
  color: var(--white);
  font: inherit;
}

.settings-retention__row input[type="number"]:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim);
  outline: none;
}

.settings-retention__hint {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(244, 255, 248, 0.72);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.user-menu__trigger .user-avatar {
  position: relative;
  z-index: 1;
}

.support-desk-page {
  min-width: 0;
}

.support-desk {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 0;
  height: min(72vh, 44rem);
  min-height: 28rem;
  border: 1px solid rgba(184, 255, 212, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(5, 10, 8, 0.55);
}

.support-desk__inbox {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid rgba(184, 255, 212, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.support-desk__toolbar {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.8rem 0.7rem;
  border-bottom: 1px solid rgba(184, 255, 212, 0.08);
}

.support-desk__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.support-desk__chip {
  appearance: none;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: transparent;
  color: var(--white-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.support-desk__chip:hover {
  color: var(--white);
  border-color: rgba(57, 255, 154, 0.35);
}

.support-desk__chip.is-active {
  color: #04140c;
  background: var(--neon);
  border-color: var(--neon);
}

.support-desk__search input,
.support-desk__topic select,
.support-desk__canned select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(5, 10, 8, 0.75);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
}

.support-desk__search input:focus,
.support-desk__topic select:focus,
.support-desk__canned select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--neon-dim);
}

.support-desk__list {
  overflow: auto;
  min-height: 0;
}

.support-desk__item {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-bottom: 1px solid rgba(184, 255, 212, 0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
}

.support-desk__item:hover {
  background: rgba(57, 255, 154, 0.06);
}

.support-desk__item.is-active {
  background: rgba(57, 255, 154, 0.12);
}

.support-desk__item-top,
.support-desk__item-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.support-desk__item-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-desk__item-time {
  flex: 0 0 auto;
  color: rgba(184, 255, 212, 0.62);
  font-size: 0.72rem;
}

.support-desk__item-topic,
.support-desk__item-no {
  color: var(--white-soft);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-desk__item-preview {
  color: rgba(244, 255, 248, 0.62);
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-desk__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(57, 255, 154, 0.7);
  flex: 0 0 auto;
}

.support-desk__status {
  margin: 0;
  padding: 0.45rem 0.85rem 0.7rem;
  min-height: 1.4rem;
}

.support-desk__empty-list,
.support-desk__empty {
  margin: 0;
  padding: 1.4rem 1rem;
  color: var(--white-soft);
  text-align: center;
}

.support-desk__thread:has(.support-desk__empty) {
  grid-template-rows: 1fr;
  place-items: center;
}

.support-desk__thread {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background: rgba(4, 9, 7, 0.55);
}

.support-desk__thread-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  background: rgba(8, 16, 12, 0.65);
  font-family: var(--font-sans);
}

.support-desk__thread-start {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.support-desk__thread-titles {
  min-width: 0;
}

.support-desk__thread-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.support-desk__thread-sub {
  margin: 0.12rem 0 0;
  color: var(--white-soft);
  font-size: 0.78rem;
}

.support-desk__thread-head .support-chat-thread__number {
  grid-column: 2;
  justify-self: center;
}

.support-desk__thread-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}

.support-desk__item-meta .support-chat-thread__status.is-closed {
  color: var(--danger);
  background: rgba(255, 0, 60, 0.1);
  border-color: rgba(255, 0, 60, 0.38);
}

.support-desk__thread-actions {
  display: flex;
  gap: 0.3rem;
}

.support-desk__back {
  display: none;
  appearance: none;
  border: 1px solid rgba(184, 255, 212, 0.16);
  background: transparent;
  color: var(--white-soft);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.support-desk__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  padding: 0.45rem 1rem 0.55rem;
  color: var(--white-soft);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(184, 255, 212, 0.06);
}

.support-desk__user-link {
  color: var(--neon);
  text-decoration: none;
  font-weight: 600;
}

.support-desk__user-link:hover {
  text-decoration: underline;
}

.support-desk__thread .support-chat-thread__log {
  overflow: auto;
  min-height: 0;
}

.support-desk__compose {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.support-desk__canned {
  grid-column: 1 / -1;
}

.support-desk__closed-hint {
  margin: 0.7rem auto 0.85rem;
  justify-self: center;
}

@media (max-width: 860px) {
  .support-desk {
    grid-template-columns: 1fr;
    height: min(78vh, 46rem);
  }

  .support-desk__inbox {
    border-right: 0;
  }

  .support-desk:not(.is-thread) .support-desk__thread {
    display: none;
  }

  .support-desk.is-thread .support-desk__inbox {
    display: none;
  }

  .support-desk__back {
    display: inline-flex;
  }

  .support-desk__compose {
    grid-template-columns: 1fr;
  }
}

