:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #667085;
  --line: #dfe5ec;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --night: #111827;
  --panel: #ffffff;
  --panel-strong: #f7fafc;
  --brand: #4565ad;
  --brand-2: #7b8fea;
  --blue: #4565ad;
  --danger: #e04462;
  --button-text: #ffffff;
  --sidebar-bg: #101820;
  --topbar-bg: #0c131a;
  --footer-bg: #0c131a;
  --logo-width: 180px;
  --logo-height: 42px;
  --sidebar-logo-width: 190px;
  --sidebar-logo-height: 46px;
  --auth-logo-width: 220px;
  --auth-logo-height: 64px;
  --shadow: 0 22px 60px rgba(19, 25, 37, .11);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.theme-dark {
  color-scheme: dark;
  --brand: #4565ad;
  --brand-2: #9aa8ff;
  --blue: #9aa8ff;
  --danger: #ff5c79;
  --ink: #f7fbff;
  --muted: #aab6c7;
  --line: #303947;
  --paper: #141a22;
  --soft: #080d13;
  --night: #f7fbff;
  --panel: #161d26;
  --panel-strong: #202936;
  --button-text: #071014;
  --sidebar-bg: #080d13;
  --topbar-bg: #070b10;
  --footer-bg: #070b10;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

@media (prefers-color-scheme: dark) {
  .theme-auto {
    color-scheme: dark;
    --brand: #4565ad;
    --brand-2: #9aa8ff;
    --blue: #9aa8ff;
    --danger: #ff5c79;
    --ink: #f7fbff;
    --muted: #aab6c7;
    --line: #303947;
    --paper: #141a22;
    --soft: #080d13;
    --night: #f7fbff;
    --panel: #161d26;
    --panel-strong: #202936;
    --button-text: #071014;
    --sidebar-bg: #080d13;
    --topbar-bg: #070b10;
    --footer-bg: #070b10;
    --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  }
}

* {
  box-sizing: border-box;
}

@keyframes surfaceIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softGlow {
  0%, 100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.25);
  }
}

@keyframes photoLoadingShimmer {
  0% {
    background-position: 180% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes qrAmbientOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate3d(8vw, 5vh, 0) scale(1.08) rotate(16deg);
  }
}

@keyframes qrAmbientTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  100% {
    transform: translate3d(-7vw, -6vh, 0) scale(1.06) rotate(-14deg);
  }
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(69, 101, 173, .16), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, var(--soft) 100%);
}

.theme-dark.app-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(69, 101, 173, .2), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(123, 143, 234, .12), transparent 26rem),
    linear-gradient(180deg, var(--soft) 0%, color-mix(in srgb, var(--soft) 82%, var(--brand) 18%) 100%);
}

@media (prefers-color-scheme: dark) {
  .theme-auto.app-shell {
    background:
      radial-gradient(circle at 12% 0%, rgba(69, 101, 173, .2), transparent 28rem),
      radial-gradient(circle at 88% 0%, rgba(123, 143, 234, .12), transparent 26rem),
      linear-gradient(180deg, var(--soft) 0%, color-mix(in srgb, var(--soft) 82%, var(--brand) 18%) 100%);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(229, 232, 239, .8);
  backdrop-filter: blur(22px);
}

.theme-dark .topbar {
  background: rgba(15, 18, 26, .78);
  border-bottom-color: rgba(255, 255, 255, .1);
}

@media (prefers-color-scheme: dark) {
  .theme-auto .topbar {
    background: rgba(15, 18, 26, .78);
    border-bottom-color: rgba(255, 255, 255, .1);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand.big {
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-block;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--brand), var(--blue) 54%, var(--brand-2));
  box-shadow: 0 10px 24px rgba(70, 118, 255, .25);
  animation: softGlow 7s ease-in-out infinite;
}

.brand-logo {
  max-width: var(--logo-width);
  max-height: var(--logo-height);
  object-fit: contain;
}

.auth-brand-logo {
  max-width: var(--auth-logo-width);
  max-height: var(--auth-logo-height);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  color: #343946;
}

.theme-dark .nav {
  color: #d7deea;
}

@media (prefers-color-scheme: dark) {
  .theme-auto .nav {
    color: #d7deea;
  }
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 80px;
}

.app-with-sidebar {
  padding-left: 292px;
  transition: padding-left .26s ease;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: 292px;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 18% 0%, rgba(69, 101, 173, .18), transparent 16rem),
    linear-gradient(180deg, color-mix(in srgb, var(--sidebar-bg) 92%, var(--brand) 8%), var(--sidebar-bg));
  box-shadow: 18px 0 54px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px) saturate(1.2);
  transition: width .26s ease, transform .26s ease;
}

.sidebar-brand {
  min-height: 54px;
  padding: 0 10px 18px;
  color: #fff;
}

.sidebar-brand .brand-logo {
  max-width: var(--sidebar-logo-width);
  max-height: var(--sidebar-logo-height);
}

.brand-logo-compact {
  display: none;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 8px;
}

.sidebar-nav a,
.sidebar-logout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(246, 248, 252, .82);
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-badge {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--ui-brand, var(--brand));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ui-brand, var(--brand)) 14%, transparent);
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
}

.sidebar-collapsed .nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.sidebar-nav a:hover,
.sidebar-logout:hover,
.sidebar-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  transform: translateX(2px);
}

.sidebar-primary {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(69, 101, 173, .96), rgba(70, 118, 255, .72));
  box-shadow: 0 16px 36px rgba(69, 101, 173, .2);
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.fa-icon {
  display: block;
  width: 1em;
  height: 1em;
}

.nav-icon .fa-icon {
  width: 14px;
  height: 14px;
}

.sidebar-bottom {
  display: grid;
  gap: 10px;
  align-self: end;
  margin-top: auto;
  padding-top: 18px;
}

.sidebar-discovery {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar-community-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 9rem),
    rgba(255, 255, 255, .07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.sidebar-community-card span {
  color: color-mix(in srgb, var(--brand) 78%, white);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sidebar-community-card strong {
  color: #fff;
  font-size: .98rem;
  line-height: 1.1;
}

.sidebar-community-card p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.35;
}

.sidebar-suggestion-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 9rem),
    rgba(255, 255, 255, .07);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.sidebar-suggestion-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 50%, rgba(255, 255, 255, .18));
  box-shadow: 0 22px 60px color-mix(in srgb, var(--brand) 20%, rgba(0, 0, 0, .2));
}

.sidebar-suggestion-profile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sidebar-suggestion-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: rgba(255, 255, 255, .88);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 78%, #141922), #111722);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  font-size: 1.5rem;
  font-weight: 950;
}

.sidebar-suggestion-media::after {
  display: none;
}

.sidebar-suggestion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) brightness(.98);
  transition: transform .5s ease, filter .5s ease;
}

.sidebar-suggestion-card:hover .sidebar-suggestion-media img {
  transform: scale(1.06);
  filter: saturate(1.08) brightness(1.03);
}

.sidebar-suggestion-label {
  position: relative;
  width: fit-content;
  padding: 0;
  border: 0;
  color: color-mix(in srgb, var(--brand) 72%, white);
  background: transparent;
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sidebar-suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sidebar-suggestion-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: .98rem;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-suggestion-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, .74);
  font-size: .76rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-suggestion-card form {
  margin: 0;
}

.sidebar-follow-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--brand) 52%, rgba(255, 255, 255, .16));
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, white), var(--brand));
  cursor: pointer;
  font-weight: 950;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}

.sidebar-follow-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.sidebar-follow-button.is-following {
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
}

.sidebar-community-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #fff;
  background: color-mix(in srgb, var(--brand) 32%, rgba(255, 255, 255, .08));
  font-weight: 900;
}

.sidebar-community-link:hover {
  border-color: rgba(255, 255, 255, .28);
  background: color-mix(in srgb, var(--brand) 42%, rgba(255, 255, 255, .1));
}

.sidebar-search {
  position: relative;
  margin: 0;
}

.sidebar-search span {
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .7);
  transform: translateY(-50%);
}

.sidebar-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 38px;
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.sidebar-search input::placeholder {
  color: rgba(255, 255, 255, .48);
}

.sidebar-notifications {
  display: grid;
  gap: 6px;
}

.sidebar-notification-head,
.sidebar-notifications > a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(246, 248, 252, .76);
  background: rgba(255, 255, 255, .045);
  font-size: .82rem;
  font-weight: 850;
}

.sidebar-notification-head {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.sidebar-notification-head em {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 999px;
  color: #071312;
  background: var(--ui-brand, var(--brand));
  font-style: normal;
  font-size: .75rem;
}

.sidebar-notifications > a.is-unread {
  color: #fff;
  background: color-mix(in srgb, var(--ui-brand, var(--brand)) 20%, transparent);
}

.theme-toggle-form {
  margin: 0;
}

.theme-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 92px;
  min-height: 38px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(246, 248, 252, .78);
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  font-weight: 850;
  overflow: hidden;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.theme-switch i {
  position: absolute;
  left: 6px;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  transition: left .34s cubic-bezier(.2, .8, .2, 1), transform .34s cubic-bezier(.2, .8, .2, 1), background .22s ease;
}

.theme-switch:hover {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
}

.theme-switch.is-dark i {
  left: calc(100% - 32px);
  background: #10141d;
}

.theme-switch.is-switching i {
  animation: themeKnobPulse .34s ease both;
}

.theme-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: color .24s ease, transform .24s ease, opacity .24s ease;
}

.theme-icon .fa-icon {
  width: 13px;
  height: 13px;
}

.theme-icon-sun {
  color: #f59e0b;
}

.theme-icon-moon {
  color: #d7deea;
}

.theme-switch.is-dark .theme-icon-moon {
  color: #fff;
  transform: scale(1.08);
}

.theme-switch:not(.is-dark) .theme-icon-sun {
  color: #f59e0b;
  transform: scale(1.08);
}

.theme-switch:not(.is-dark) .theme-icon-moon,
.theme-switch.is-dark .theme-icon-sun {
  opacity: .7;
}

.app-notification-hub {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 36;
}

.app-message-hub {
  position: fixed;
  top: 22px;
  right: 82px;
  z-index: 36;
  text-decoration: none;
}

.app-notification-hub summary,
.app-message-hub {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 17, 24, .72);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
  cursor: pointer;
  list-style: none;
}

.app-notification-hub summary {
  position: relative;
}

.app-message-hub:hover,
.app-notification-hub summary:hover {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(69, 101, 173, .82);
  transform: translateY(-1px);
}

.app-notification-hub summary::-webkit-details-marker {
  display: none;
}

.app-notification-hub summary .fa-icon,
.app-message-hub .fa-icon {
  width: 17px;
  height: 17px;
}

.app-notification-hub summary em,
.app-message-hub em {
  position: absolute;
  top: -5px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #071312;
  background: var(--ui-brand, var(--brand));
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
}

.app-message-hub.has-unread {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 46%, rgba(255, 255, 255, .14));
  box-shadow: 0 16px 44px rgba(0, 0, 0, .22), 0 0 0 4px color-mix(in srgb, var(--ui-brand, var(--brand)) 12%, transparent);
}

.app-notification-menu {
  position: absolute;
  top: 58px;
  right: 0;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  backdrop-filter: blur(20px);
}

.app-notification-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 8px;
}

.app-notification-menu-head a {
  color: var(--blue);
  font-weight: 900;
}

.app-notification-menu p {
  margin: 0;
  padding: 8px 4px;
  color: var(--muted);
  font-weight: 800;
}

.app-notification-menu > a {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
}

.app-notification-menu > a.is-unread {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 52%, var(--line));
  box-shadow: inset 3px 0 0 var(--ui-brand, var(--brand));
}

.app-notification-menu > a span {
  color: var(--muted);
  font-weight: 750;
}

.notification-menu-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
}

.notification-menu-item.is-unread {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 52%, var(--line));
}

.notification-menu-item.is-removing {
  opacity: 0;
  transform: translateX(10px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}

.notification-menu-item > a {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--ink);
}

.notification-menu-item strong,
.notification-menu-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-menu-item > a span {
  color: var(--muted);
  font-weight: 750;
}

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ui-brand, var(--brand));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ui-brand, var(--brand)) 14%, transparent);
}

.notification-menu-item form {
  margin: 0;
}

.notification-menu-item button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 900;
}

.notification-menu-item button:hover {
  border-color: var(--ui-brand, var(--brand));
}

.sidebar-toggle {
  position: fixed;
  left: 292px;
  top: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 20, 29, .78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: left .26s ease, transform .22s ease, background .22s ease, border-color .22s ease;
}

.sidebar-toggle:hover {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(69, 101, 173, .92);
  transform: translateX(-50%) scale(1.04);
}

.sidebar-toggle .fa-icon {
  width: 16px;
  height: 16px;
}

.sidebar-collapsed.app-with-sidebar {
  padding-left: 90px;
}

.sidebar-collapsed .sidebar {
  width: 90px;
  padding-inline: 14px;
}

.sidebar-collapsed .sidebar-toggle {
  left: 90px;
}

.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-discovery,
.sidebar-collapsed .sidebar-brand .brand-logo {
  display: none;
}

.sidebar-collapsed .sidebar-brand .brand-logo-compact {
  display: block;
}

.sidebar-collapsed .sidebar-brand.has-compact-logo .brand-mark {
  display: none;
}

.sidebar-collapsed .sidebar-brand,
.sidebar-collapsed .sidebar-nav a,
.sidebar-collapsed .sidebar-logout {
  justify-content: center;
  padding-inline: 8px;
}

.sidebar-collapsed .theme-switch {
  width: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}

.sidebar-collapsed .theme-switch i {
  display: none;
}

.sidebar-collapsed .theme-switch .theme-icon {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  color: #f59e0b;
}

.sidebar-collapsed .theme-switch .theme-icon .fa-icon {
  width: 17px;
  height: 17px;
}

.sidebar-collapsed .theme-switch:not(.is-dark) .theme-icon-moon,
.sidebar-collapsed .theme-switch.is-dark .theme-icon-sun {
  opacity: 0;
  transform: scale(.7);
}

.sidebar-collapsed .theme-switch.is-dark .theme-icon-moon {
  color: #fff;
  opacity: 1;
  transform: scale(1);
}

.sidebar-collapsed .theme-switch i {
  left: 50%;
  transform: translateX(-50%);
}

.sidebar-collapsed .theme-switch.is-dark i {
  left: 50%;
  transform: translateX(-50%);
}

@keyframes themeKnobPulse {
  0% {
    scale: 1;
  }
  50% {
    scale: 1.18;
  }
  100% {
    scale: 1;
  }
}

.button,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.button:hover,
.pill:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: var(--button-text);
  background: var(--night);
  box-shadow: 0 12px 30px rgba(16, 18, 25, .22);
}

.button-light {
  color: var(--night);
  background: var(--paper);
}

.button.full,
.full {
  width: 100%;
}

.danger {
  color: var(--button-text);
  background: var(--danger);
}

.flash {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 99;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: #1a8754;
  box-shadow: var(--shadow);
  font-weight: 800;
  overflow-wrap: anywhere;
  transition: opacity .32s ease, transform .32s ease;
}

.flash.error {
  background: var(--danger);
}

.flash.is-hiding {
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
}

.hero-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 18, 25, .96), rgba(25, 32, 48, .95)),
    linear-gradient(45deg, var(--brand), var(--brand-2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.35);
  animation: surfaceIn .5s ease both;
}

.hero-band h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .96;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 22px 0 34px;
}

.app-main > :not([hidden]) + :not([hidden]) {
  margin-top: 24px;
}

.app-main > .metrics {
  margin-top: 0;
  margin-bottom: 0;
}

.metrics div,
.panel,
.side-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--panel) 82%, transparent), color-mix(in srgb, var(--panel) 58%, transparent));
  box-shadow: 0 18px 54px rgba(19, 25, 37, .09);
  backdrop-filter: blur(26px) saturate(1.35);
  animation: surfaceIn .42s ease both;
}

.metrics div {
  padding: 20px;
}

.metrics strong {
  display: block;
  font-size: 2rem;
}

.metrics span,
.muted,
.gallery-card p,
.photo-admin span {
  color: var(--muted);
}

.super-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.super-hero {
  align-items: center;
  background:
    radial-gradient(circle at 14% 10%, rgba(69, 101, 173, .26), transparent 22rem),
    radial-gradient(circle at 92% 8%, rgba(123, 143, 234, .14), transparent 22rem),
    linear-gradient(135deg, rgba(15, 20, 29, .98), rgba(8, 11, 16, .94));
  border: 1px solid rgba(255, 255, 255, .1);
}

.super-hero h1 {
  max-width: 880px;
  font-size: clamp(2.5rem, 6vw, 6rem);
}

.super-hero .button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
}

.super-hero .button:hover {
  background: rgba(255, 255, 255, .16);
}

.super-metrics div {
  min-height: 112px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .58)),
    radial-gradient(circle at 100% 0%, rgba(69, 101, 173, .16), transparent 12rem);
}

.no-padding {
  padding: 0;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) .55fr .55fr auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  overflow: hidden;
}

.superadmin-invite-panel {
  display: grid;
  gap: 18px;
}

.invite-create-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.invite-create-card {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 0;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, .08), transparent 15rem),
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)),
    color-mix(in srgb, var(--panel-strong) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 40px rgba(0, 0, 0, .1);
}

.invite-create-card.is-manual {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025)),
    color-mix(in srgb, var(--panel-strong) 88%, transparent);
}

.invite-create-head strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.invite-create-head p {
  margin: 8px 0 0;
  max-width: 28rem;
  line-height: 1.35;
}

.invite-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.invite-field-grid label:last-child:nth-child(odd) {
  grid-column: auto;
}

.invite-field-grid label {
  gap: 7px;
  font-size: .88rem;
}

.invite-field-grid input {
  min-height: 46px;
  padding: 11px 13px;
}

.invite-create-actions {
  align-self: end;
  justify-content: flex-end;
  margin: 0;
}

.invite-create-actions .button {
  min-height: 46px;
  white-space: nowrap;
}

.invite-list {
  display: grid;
  gap: 12px;
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr);
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    color-mix(in srgb, var(--panel-strong) 88%, transparent);
}

.invite-row-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.invite-row-main strong {
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.invite-row-main span,
.invite-row-main small {
  color: var(--muted);
  font-weight: 780;
  overflow-wrap: anywhere;
}

.invite-link-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.invite-link-copy input {
  min-height: 44px;
  font-size: .82rem;
}

.invite-link-missing {
  margin: 0;
}

.invite-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.superadmin-user-directory {
  display: grid;
  gap: 12px;
}

.user-directory-head,
.user-directory-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) 118px 118px minmax(250px, .9fr) minmax(300px, auto);
  gap: 14px;
  align-items: center;
}

.user-directory-head {
  padding: 0 16px 2px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.user-directory-row {
  min-height: 112px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
    color-mix(in srgb, var(--panel-strong) 88%, rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 34px rgba(0, 0, 0, .08);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.user-directory-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background:
    radial-gradient(circle at 100% 50%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)),
    color-mix(in srgb, var(--panel-strong) 88%, rgba(255, 255, 255, .02));
}

.user-card-person {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.user-card-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 70%, var(--brand)));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--brand) 18%, transparent);
  font-size: 1.25rem;
  font-weight: 950;
}

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

.user-card-copy {
  display: grid !important;
  gap: 4px;
  min-width: 0;
}

.user-card-copy strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}

.user-card-copy small {
  color: var(--muted);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.user-card-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px !important;
}

.user-card-meta em,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.status-pill.is-active {
  border-color: color-mix(in srgb, var(--success) 44%, var(--line));
  color: color-mix(in srgb, var(--success) 76%, var(--ink));
  background: color-mix(in srgb, var(--success) 13%, transparent);
}

.status-pill.is-danger {
  border-color: color-mix(in srgb, var(--danger) 48%, var(--line));
  color: color-mix(in srgb, var(--danger) 82%, #fff);
  background: color-mix(in srgb, var(--danger) 15%, transparent);
}

.user-card-stats {
  display: block;
}

.user-card-stats span {
  display: grid !important;
  gap: 2px;
  min-height: 54px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.user-card-stats strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

.user-card-stats small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.user-role-cell {
  min-width: 0;
}

.user-role-title {
  display: none;
  margin: 0 0 8px;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.user-role-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
}

.user-role-form label {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.user-role-form select {
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border-radius: 12px;
  font-size: .92rem;
}

.user-role-form .button,
.user-card-actions .button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.user-role-form .inline-status {
  grid-column: 1 / -1;
}

.role-badge {
  display: inline-flex !important;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 999px;
  color: var(--brand) !important;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  font-size: .78rem;
  font-weight: 950 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.user-card-actions {
  align-self: stretch;
  align-content: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.user-card-actions form {
  display: contents;
}

@media (max-width: 1320px) {
  .invite-create-grid,
  .invite-create-card,
  .invite-row,
  .invite-field-grid,
  .invite-row-actions,
  .invite-link-copy {
    grid-template-columns: 1fr;
  }

  .user-directory-head {
    display: none;
  }

  .user-directory-row {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(104px, .25fr));
  }

  .user-role-cell,
  .user-card-actions {
    grid-column: 1 / -1;
  }

  .user-role-title {
    display: block;
  }

  .user-card-actions {
    justify-content: flex-start;
  }
}

.panel:not(.form-grid) {
  padding: 24px;
}

.super-grid .panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.super-grid .panel h2 {
  margin: 0 0 14px;
}

.super-grid .panel .form-actions {
  justify-content: flex-start;
  margin-top: 18px;
}

.super-security-panel {
  grid-column: 1 / -1;
  justify-content: flex-start !important;
  gap: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 22rem),
    radial-gradient(circle at 96% 18%, color-mix(in srgb, var(--brand-2) 12%, transparent), transparent 24rem),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--paper) 70%, transparent));
}

.super-security-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.super-security-title {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.super-security-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--brand) 44%, var(--line));
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, .32), transparent 34%),
    linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--brand) 28%, transparent);
  font-size: .95rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.super-security-layout {
  display: grid;
  grid-template-columns: minmax(280px, .84fr) minmax(360px, 1.16fr);
  gap: 18px;
  align-items: stretch;
}

.super-security-flow,
.super-security-console {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.super-security-status-card,
.super-security-empty,
.super-security-qr,
.super-security-save {
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.super-security-status-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--danger) 16%, transparent), transparent 16rem),
    color-mix(in srgb, var(--paper) 78%, transparent);
}

.super-security-status-card.is-on {
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 16rem),
    color-mix(in srgb, var(--paper) 78%, transparent);
}

.super-security-status-card span,
.super-security-qr span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.super-security-status-card strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: .98;
}

.super-security-steps {
  display: grid;
  gap: 10px;
}

.super-security-steps > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
}

.super-security-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--paper));
  font-size: .8rem;
  font-weight: 950;
}

.super-security-steps strong,
.super-security-empty strong,
.super-security-qr strong {
  color: var(--ink);
}

.super-security-steps p,
.super-security-empty p,
.super-security-qr p {
  margin: 0;
  color: var(--muted);
}

.super-security-qr {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.super-security-qr img {
  width: 220px;
  height: 220px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .16);
}

.super-security-qr > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.super-security-qr code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--soft) 82%, transparent);
  font-weight: 900;
}

.super-security-empty {
  display: grid;
  gap: 8px;
  min-height: 180px;
  align-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 14rem),
    color-mix(in srgb, var(--paper) 72%, transparent);
}

.super-security-generate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.super-security-save {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, .8fr) minmax(220px, .8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
}

.super-security-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.super-security-methods label {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.super-security-methods label:hover,
.super-security-methods label.is-selected,
.super-security-methods label:has(input:checked) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  background: color-mix(in srgb, var(--brand) 13%, var(--paper));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 12%, transparent);
}

.super-security-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.super-security-methods span {
  color: var(--brand);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.super-security-methods strong {
  color: var(--ink);
  font-size: 1rem;
}

.super-security-save .button {
  min-height: 58px;
}

.panel > .section-head.compact:first-child {
  margin-bottom: 20px;
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.user-admin-row .user-card-avatar {
  display: grid;
  color: #fff;
  font-weight: 950;
}

.user-admin-row .user-card-copy,
.user-admin-row .user-card-meta {
  display: flex;
}

.user-admin-row .user-card-copy {
  display: grid;
}

.user-admin-row .user-card-meta em,
.user-admin-row .status-pill,
.user-admin-row .user-card-avatar,
.user-admin-row .user-card-stats span {
  margin-top: 0;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.row-actions form {
  margin: 0;
}

.button-danger {
  border-color: rgba(215, 61, 84, .42);
  color: #fff;
  background: var(--danger);
}

.profile-editor {
  align-items: start;
}

.profile-avatar-tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 18rem),
    var(--panel-strong);
}

.profile-avatar-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff;
  font-size: 3rem;
  font-weight: 950;
  box-shadow: 0 20px 54px rgba(19, 25, 37, .16);
  cursor: crosshair;
  user-select: none;
  touch-action: none;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.profile-avatar-marker {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(7, 11, 18, .14), 0 10px 28px rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}

.profile-avatar-preview:hover .profile-avatar-marker,
.profile-avatar-tool.has-avatar-preview .profile-avatar-marker {
  opacity: 1;
}

.profile-avatar-copy {
  display: grid;
  gap: 10px;
}

.profile-avatar-copy label {
  margin: 0;
}

.profile-link-field {
  display: grid;
  gap: 8px;
}

.profile-slug-input-shell {
  position: relative;
  display: block;
}

.profile-slug-input-shell input {
  width: 100%;
  padding-right: 54px;
}

.profile-slug-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%) scale(.92);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease, color .2s ease, background .2s ease;
}

.profile-slug-input-shell.is-ok .profile-slug-icon,
.profile-slug-input-shell.is-error .profile-slug-icon,
.profile-slug-input-shell.is-pending .profile-slug-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.profile-slug-input-shell.is-ok .profile-slug-icon {
  color: #fff;
  background: #18a36f;
  box-shadow: 0 10px 24px rgba(24, 163, 111, .24);
}

.profile-slug-input-shell.is-error .profile-slug-icon {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--danger) 28%, transparent);
}

.profile-slug-input-shell.is-pending .profile-slug-icon {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
}

.field-hint {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.35;
}

.field-hint strong {
  color: var(--brand);
  overflow-wrap: anywhere;
}

.field-hint.is-warning {
  color: var(--danger);
}

.profile-slug-status {
  min-height: 1.2em;
}

.profile-slug-status:empty {
  display: none;
}

.profile-slug-status.is-ok {
  color: var(--brand);
}

.profile-slug-status.is-error {
  color: var(--danger);
}

.profile-slug-status.is-pending {
  color: var(--muted);
}

@media (max-width: 720px) {
  .profile-avatar-tool {
    grid-template-columns: 1fr;
  }

  .profile-avatar-preview {
    width: 164px;
    height: 164px;
  }
}

.profile-upload-panel {
  margin-top: 0;
}

.profile-settings-tabs {
  margin-bottom: 22px;
}

.profile-settings-photo-panel,
.compliance-log-panel {
  display: grid;
  gap: 22px;
}

.notification-preferences {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.notification-preferences h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.two-factor-box {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 16rem),
    color-mix(in srgb, var(--panel-strong) 78%, transparent);
}

.two-factor-box h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.two-factor-head {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.security-status {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  font-size: .78rem;
  font-weight: 950;
}

.security-status.is-on {
  border-color: color-mix(in srgb, var(--brand) 36%, transparent);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--paper));
}

.two-factor-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.two-factor-steps > div,
.two-factor-hint {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
}

.two-factor-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: .78rem;
  font-weight: 950;
}

.two-factor-steps strong,
.two-factor-hint strong {
  color: var(--ink);
}

.two-factor-steps p,
.two-factor-hint p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.two-factor-app-setup {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
}

.two-factor-app-setup img {
  width: 260px;
  height: 260px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.two-factor-app-setup code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--soft) 86%, transparent);
  font-weight: 900;
}

.two-factor-app-name {
  width: fit-content;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
  font-weight: 850;
}

.two-factor-app-name strong {
  color: var(--brand);
}

.two-factor-generate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.two-factor-save {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.notification-preference-list {
  display: grid;
  gap: 8px;
}

.notification-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}

.notification-preference-row.is-head {
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 850;
}

.mini-check input {
  width: auto;
}

.following-panel {
  margin-top: 18px;
}

.following-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.following-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}

.following-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--ui-brand, var(--brand)), var(--blue));
  font-weight: 950;
}

.following-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.following-card strong,
.following-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.following-card small {
  color: var(--muted);
  font-weight: 800;
}

.profile-photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.profile-photo-admin-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 16px 42px rgba(19, 25, 37, .08);
}

.profile-photo-admin-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
}

.profile-photo-admin-card span {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 18px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
}

.section-head.compact {
  margin-top: 0;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .66));
  box-shadow: 0 18px 48px rgba(19, 25, 37, .1);
  backdrop-filter: blur(22px) saturate(1.25);
  animation: surfaceIn .42s ease both;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 118, 255, .28);
  box-shadow: 0 24px 70px rgba(19, 25, 37, .14);
}

.gallery-card.is-coop {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 64%, var(--line));
  background:
    linear-gradient(90deg, var(--ui-brand, var(--brand)) 0 6px, transparent 6px),
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--ui-brand, var(--brand)) 22%, transparent), transparent 12rem),
    linear-gradient(145deg, color-mix(in srgb, var(--paper) 94%, var(--ui-brand, var(--brand))), rgba(255, 255, 255, .62));
  box-shadow: 0 22px 62px rgba(19, 25, 37, .16), inset 0 0 0 1px color-mix(in srgb, var(--ui-brand, var(--brand)) 26%, transparent);
}

.coop-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--ui-brand, var(--brand)) 65%, white);
  border-radius: 999px;
  color: #061817;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ui-brand, var(--brand)) 88%, white), var(--ui-brand, var(--brand)));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ui-brand, var(--brand)) 24%, transparent);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.coop-invite-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.coop-invite-panel h2 {
  margin: 0;
}

.coop-invite-list {
  display: grid;
  gap: 10px;
}

.coop-invite-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
}

.coop-invite-list strong,
.coop-invite-list span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coop-invite-list span {
  color: var(--muted);
  font-weight: 800;
}

.cover {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: var(--muted);
  background: #dfe5ed;
  font-weight: 800;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-body {
  padding: 18px;
}

.gallery-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.card-actions {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 800;
}

.empty-state {
  padding: 46px;
  text-align: center;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  font-weight: 800;
}

input,
textarea,
select,
.share-input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 94%, var(--brand) 6%);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, .06);
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 76%, var(--ink));
  opacity: .9;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--brand) 22%);
  border-radius: 8px;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  background: color-mix(in srgb, var(--panel) 90%, var(--brand) 10%);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 8%, transparent);
}

.checkline input {
  width: auto;
  accent-color: var(--brand);
}

.checkline:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--panel) 78%, var(--brand) 22%);
}

.checkline:has(input:disabled) {
  opacity: .55;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.form-status {
  min-height: 20px;
  color: var(--muted);
  font-weight: 800;
}

.form-status.is-ok {
  color: #168f63;
}

.form-status.is-error {
  color: var(--danger);
}

.side-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
}

.side-panel h2 {
  margin-top: 0;
}

.status-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.status-list span {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 800;
}

.coop-side-panel {
  align-content: start;
}

.coop-upload-intro {
  margin-bottom: 18px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px);
}

.admin-tabs button,
.admin-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button.active,
.admin-tabs label.active {
  color: #fff;
  background: #202735;
  box-shadow: 0 10px 24px rgba(18, 22, 31, .18);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

form.admin-tab-panel.active,
.admin-tab-panel.active.form-grid {
  display: grid;
}

.admin-tab-panel.active.profile-settings-photo-panel,
.admin-tab-panel.active.compliance-log-panel {
  display: grid;
}

.admin-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.system-tab-panel {
  display: none !important;
}

#system-tab-general:checked ~ .system-tabs label[for="system-tab-general"],
#system-tab-email:checked ~ .system-tabs label[for="system-tab-email"],
#system-tab-seo:checked ~ .system-tabs label[for="system-tab-seo"],
#system-tab-marketing:checked ~ .system-tabs label[for="system-tab-marketing"],
#system-tab-tools:checked ~ .system-tabs label[for="system-tab-tools"] {
  color: #fff;
  background: #202735;
  box-shadow: 0 10px 24px rgba(18, 22, 31, .18);
}

#system-tab-general:checked ~ .system-tab-general-panel,
#system-tab-seo:checked ~ .system-tab-seo-panel,
#system-tab-marketing:checked ~ .system-tab-marketing-panel,
#system-tab-tools:checked ~ .system-tab-tools-panel {
  display: grid !important;
}

#system-tab-email:checked ~ .system-tab-email-panel {
  display: block !important;
}

.cover-panel {
  margin-bottom: 22px;
}

.cover-focus-tool {
  display: grid;
  gap: 10px;
}

.cover-focus-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 18, 26, .08);
  cursor: crosshair;
}

.cover-focus-tool.is-saving .cover-focus-preview {
  opacity: .76;
}

.cover-focus-preview img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.cover-focus-preview p {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, .42);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.cover-focus-marker {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cover-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #07130f;
  background: var(--brand);
  font-size: .72rem;
  font-weight: 900;
}

.flag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 16px;
}

.flag-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 28px rgba(19, 25, 37, .06);
  backdrop-filter: blur(18px) saturate(1.2);
  color: var(--ink);
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.flag-filter a:hover,
.flag-filter a.active {
  transform: translateY(-1px);
  border-color: rgba(70, 118, 255, .32);
  background: rgba(255, 255, 255, .86);
}

.flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 22px;
  margin-top: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: #111;
  font-size: .76rem;
  font-weight: 900;
}

.flag-badge svg {
  width: 12px;
  height: 14px;
}

.flag-actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.flag-actions form,
.photo-actions form {
  display: inline-flex;
}

.flag-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .58;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.flag-dot svg {
  width: 15px;
  height: 17px;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, .28));
}

.flag-dot:hover,
.flag-dot.active {
  opacity: 1;
  transform: scale(1.12);
}

.flag-red {
  color: #ff4d5e;
}

.flag-yellow {
  color: #ffd84d;
}

.flag-green {
  color: #30d979;
}

.public-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: transparent;
  background: rgba(10, 12, 18, .54);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
  backdrop-filter: blur(14px);
}

.public-flag svg {
  width: 15px;
  height: 17px;
}

.upload-zone {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 30px;
  border: 2px dashed #bcc7d7;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .48));
  box-shadow: 0 18px 50px rgba(19, 25, 37, .08);
  backdrop-filter: blur(24px) saturate(1.3);
  text-align: center;
  transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease;
}

.upload-zone.is-dragging {
  border-color: var(--brand);
  background: rgba(69, 101, 173, .12);
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(69, 101, 173, .18);
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone label {
  cursor: pointer;
}

.upload-zone strong {
  font-size: 1.35rem;
}

.upload-zone span {
  color: var(--muted);
}

.photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px 20px;
  align-items: start;
  padding: 18px 0 6px;
}

.photo-admin {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  transition: opacity .24s ease;
  animation: none;
}

.photo-admin.is-new-upload {
  animation: photo-admin-arrive .65s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes photo-admin-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
    filter: saturate(.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.photo-admin:hover {
  transform: none;
}

.photo-admin[draggable="true"] {
  cursor: grab;
}

.photo-admin.is-dragging {
  opacity: .55;
  cursor: grabbing;
  transform: scale(.98);
}

.photo-admin.is-removing {
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}

.photo-admin.is-rotating {
  pointer-events: none;
}

.admin-photo-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(19, 25, 37, .1);
  border-radius: 8px;
  background: #f7f8fb;
  box-shadow: 0 10px 24px rgba(19, 25, 37, .07);
  cursor: zoom-in;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.admin-photo-thumb:hover,
.photo-admin:focus-within .admin-photo-thumb {
  border-color: rgba(69, 101, 173, .5);
  box-shadow: 0 16px 34px rgba(19, 25, 37, .13);
}

.admin-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .18s ease, transform .18s ease, opacity .18s ease;
}

.photo-admin.is-rotating .admin-photo-thumb img {
  filter: blur(2px) saturate(.8);
  opacity: .72;
  transform: scale(1.02);
}

.photo-admin.is-rotating .admin-photo-thumb::after {
  position: absolute;
  inset: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 11, 16, .58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  content: "Foto wird gedreht ...";
  font-size: .82rem;
  font-weight: 950;
}

.admin-photo-actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, .34));
  transition: opacity .18s ease;
}

.admin-photo-thumb:hover .admin-photo-actions,
.admin-photo-thumb:focus-visible .admin-photo-actions {
  opacity: 1;
}

.admin-photo-action {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 10, 14, .48);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
  backdrop-filter: blur(12px);
  font-size: .82rem;
  font-weight: 850;
}

.photo-admin .admin-photo-action {
  color: #fff;
}

.admin-photo-quick-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  gap: 7px;
  margin: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.photo-admin:hover .admin-photo-quick-tools,
.photo-admin:focus-within .admin-photo-quick-tools {
  opacity: 1;
  transform: translateY(0);
}

.admin-photo-quick-tools form {
  margin: 0;
}

.admin-photo-quick-tools button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 11, 16, .58);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.admin-photo-quick-tools button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.admin-photo-quick-tools .fa-icon {
  width: 16px;
  height: 16px;
}

.admin-photo-quick-tools button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 74%, white);
  color: #fff;
  background: color-mix(in srgb, var(--brand) 72%, rgba(8, 11, 16, .76));
}

.admin-photo-quick-tools form.is-busy button,
.photo-rotate-actions form.is-busy button {
  cursor: wait;
  opacity: .7;
}

.admin-photo-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.admin-photo-flag svg {
  width: 12px;
  height: 14px;
}

.admin-photo-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-comments {
  display: grid;
  gap: 10px;
}

.admin-comments p {
  margin: 0;
  color: var(--muted);
}

.admin-comments form {
  display: grid;
  gap: 8px;
}

.admin-comments input,
.admin-comments textarea {
  min-height: 36px;
  padding: 9px 10px;
}

.modal-open {
  overflow: hidden;
}

.admin-photo-modal[hidden] {
  display: none;
}

.admin-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
}

.admin-photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 7, .88);
  backdrop-filter: blur(10px);
}

.admin-photo-modal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.admin-photo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow: auto;
  padding: 18px 18px 24px;
  color: #111722;
  background: rgba(255, 255, 255, .96);
}

.admin-photo-sidebar h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.admin-modal-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e1e6ef;
}

.admin-modal-tabs button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #3f4858;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.admin-modal-tabs button.active {
  color: #486cff;
  border-color: #486cff;
}

.admin-modal-panel {
  display: grid;
  gap: 16px;
}

.admin-modal-panel[hidden] {
  display: none !important;
}

.photo-info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.photo-info-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f6;
}

.photo-info-list dt {
  color: #717b8b;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.photo-info-list dd {
  margin: 0;
  color: #111722;
  font-weight: 850;
}

.modal-flag-actions {
  display: grid;
  gap: 8px;
}

.modal-flag-actions .flag-dot {
  display: inline-flex;
  width: 100%;
  height: auto;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fff;
}

.modal-flag-actions .flag-dot span {
  color: #111722;
  font-weight: 850;
}

.modal-clear-flag {
  color: #111722;
  border: 1px solid #d7dde8;
  background: #fff;
  box-shadow: none;
}

.modal-clear-flag:hover {
  border-color: #486cff;
  background: #f4f7ff;
}

.admin-photo-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 44px 74px;
}

.admin-photo-stage img {
  max-width: 100%;
  max-height: calc(100vh - 88px);
  object-fit: contain;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .42);
}

.admin-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.workflow-panel {
  margin-top: 24px;
  padding: 20px;
}

.workflow-panel[data-tab-panel="workflow"] {
  min-height: min(760px, calc(100vh - 140px));
}

.workflow-head {
  margin-bottom: 14px;
}

.workflow-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.workflow-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .54);
}

.collaboration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.collaborator-list,
.discussion-list {
  display: grid;
  gap: 10px;
}

.collaborator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
}

.collaborator-row strong,
.collaborator-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaborator-row span {
  color: var(--muted);
  font-weight: 750;
}

.collaborator-row em {
  align-self: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--ui-brand, var(--brand)) 18%, var(--paper));
  font-style: normal;
  font-size: .8rem;
  font-weight: 950;
}

.coop-accept-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.discussion-list {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.discussion-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
}

.discussion-list time {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.discussion-list p {
  margin: 0;
  color: var(--ink);
}

.sketch-admin-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.sketch-admin-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
}

.sketch-admin-item a {
  display: block;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(0, 0, 0, .08);
}

.sketch-admin-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .2s ease;
}

.sketch-admin-item a:hover img {
  transform: scale(1.04);
}

.sketch-admin-item strong,
.sketch-admin-item span,
.sketch-admin-item time {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sketch-admin-item span,
.sketch-admin-item time {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.sketch-admin-item form {
  margin-top: 8px;
}

.button.compact {
  min-height: 34px;
  padding: 8px 11px;
  font-size: .82rem;
}

.collaborator-row em.accepted {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.sketch-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(4, 7, 12, .82);
  backdrop-filter: blur(22px) saturate(1.15);
}

.sketch-lightbox img {
  display: block;
  max-width: min(1180px, 94vw);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48);
}

.sketch-lightbox button {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.workflow-grid h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.download-packages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.download-packages .pill {
  min-height: 30px;
  padding: 0 10px;
  color: #fff;
  border-color: rgba(18, 22, 31, .18);
  background: #202735;
  box-shadow: none;
  font-size: .8rem;
}

.workflow-panel[data-tab-panel="workflow"] {
  min-height: auto;
  padding: clamp(18px, 2.8vw, 34px);
  background:
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--ui-brand, var(--brand)) 16%, transparent), transparent 22rem),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel-strong) 72%, transparent));
}

.workflow-panel[data-tab-panel="workflow"] .workflow-head {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.workflow-panel[data-tab-panel="workflow"] .workflow-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
}

.workflow-panel[data-tab-panel="workflow"] .workflow-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.workflow-panel[data-tab-panel="workflow"] .workflow-card {
  grid-column: span 4;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 210px;
  padding: 20px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--panel-strong) 70%, transparent));
}

.workflow-panel[data-tab-panel="workflow"] .workflow-card:nth-child(4n) {
  grid-column: span 6;
}

.workflow-panel[data-tab-panel="workflow"] .workflow-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.workflow-panel[data-tab-panel="workflow"] .workflow-card > .muted {
  margin: 0;
}

.download-packages {
  gap: 9px;
}

.download-packages .pill {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 22%, var(--line));
  background: color-mix(in srgb, var(--panel-strong) 76%, var(--ui-brand, var(--brand)) 10%);
}

.download-packages .pill svg {
  width: 14px;
  height: 14px;
}

.download-packages .flag-red svg {
  color: #df3f5c;
}

.download-packages .flag-yellow svg {
  color: #d1a92e;
}

.download-packages .flag-green svg {
  color: #27a86c;
}

.feedback-item,
.activity-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.activity-item time {
  color: var(--ui-brand, var(--brand));
  font-weight: 950;
}

.inline-status {
  display: block;
  min-height: 1.2em;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease;
}

.inline-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.report-box {
  max-width: 460px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--ui-brand, var(--brand)) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.report-box summary::-webkit-details-marker {
  display: none;
}

.report-box summary::marker {
  content: "";
}

.report-box summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.report-box form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.report-box textarea {
  min-height: 72px;
  resize: vertical;
}

.public-report-box {
  margin-top: 18px;
  color: #fff;
  background: rgba(8, 11, 16, .44);
  backdrop-filter: blur(18px);
}

.public-report-box summary {
  color: #fff;
}

.report-box-compact {
  max-width: 240px;
  padding: 0;
  border: 0;
  background: transparent;
}

.report-box-compact summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  background: rgba(8, 11, 16, .46);
  font-size: .78rem;
}

.report-box-compact[open] {
  position: relative;
  z-index: 8;
}

.report-box-compact form {
  position: absolute;
  right: 0;
  bottom: 42px;
  width: min(260px, 74vw);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
}

.profile-public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
}

.profile-public-actions form,
.profile-public-actions details {
  margin: 0;
}

.profile-public-actions form {
  display: inline-flex;
  align-items: flex-start;
}

.profile-public-actions .button {
  min-height: 44px;
  padding: 0 18px;
  line-height: 1;
}

.profile-report-menu {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}

.profile-report-menu summary {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(8, 11, 16, .42);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

.profile-report-menu summary:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .1);
}

.profile-report-menu summary svg {
  width: 15px;
  height: 15px;
}

.profile-report-menu form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
}

.photo-report-menu summary {
  justify-content: center;
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 0;
}

.photo-report-menu summary svg {
  width: 13px;
  height: 13px;
}

.moderation-hero h1 {
  max-width: 980px;
}

.moderation-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.moderation-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.moderation-list {
  display: grid;
  gap: 10px;
}

.moderation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.moderation-row.is-open {
  border-color: color-mix(in srgb, #ff5b7c 42%, var(--line));
}

.moderation-row strong,
.moderation-row p,
.moderation-row small {
  display: block;
  min-width: 0;
}

.moderation-row p {
  margin: 6px 0;
  color: var(--muted);
}

.moderation-row small {
  color: var(--muted);
  font-weight: 750;
}

.moderation-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, #ff5b7c 72%, var(--ui-brand, var(--brand)));
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.moderation-row-actions,
.moderation-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.moderation-action-form input[name="reason"] {
  width: min(220px, 100%);
  min-height: 38px;
  padding: 0 12px;
  font-size: .86rem;
}

.button-danger {
  color: #fff;
  background: #df3f5c;
  box-shadow: 0 14px 28px rgba(223, 63, 92, .22);
}

.moderation-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.moderation-photo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.moderation-photo-card.is-suspended {
  border-color: rgba(223, 63, 92, .54);
}

.moderation-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(0, 0, 0, .12);
}

.moderation-photo-card > div {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.moderation-photo-card small {
  color: var(--muted);
  font-weight: 750;
}

.moderation-photo-card .moderation-action-form {
  justify-content: flex-start;
}

.gallery-moderation-card,
.photo-moderation-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--ui-brand, var(--brand)) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 84%, transparent);
}

.gallery-moderation-card strong,
.photo-moderation-card strong {
  color: var(--ink);
  font-weight: 950;
}

.photo-moderation-card .muted {
  margin: 0;
  font-size: .86rem;
}

.inline-moderation-form {
  justify-content: flex-start;
}

.admin-moderation-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: #fff;
  background: rgba(223, 63, 92, .82);
  box-shadow: 0 12px 34px rgba(223, 63, 92, .24);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.moderation-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .workflow-panel[data-tab-panel="workflow"] .workflow-grid,
  .moderation-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-panel[data-tab-panel="workflow"] .workflow-card,
  .workflow-panel[data-tab-panel="workflow"] .workflow-card:nth-child(4n) {
    grid-column: auto;
  }

  .moderation-row,
  .moderation-mini-row {
    grid-template-columns: 1fr;
  }

  .moderation-row-actions,
  .moderation-action-form {
    justify-content: flex-start;
  }
}

.send-gallery-form {
  display: grid;
  gap: 8px;
}

.send-gallery-form input,
.send-gallery-form textarea {
  min-height: 38px;
  padding: 10px 11px;
}

.marketing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 16px;
}

.template-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.template-list button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .68);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.template-list button:hover {
  border-color: rgba(70, 118, 255, .32);
  background: rgba(255, 255, 255, .9);
}

.template-editor {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 12px 32px rgba(19, 25, 37, .06);
}

.template-editor + .template-editor {
  margin-top: 4px;
}

.template-editor.new-template {
  border-style: dashed;
  background: rgba(69, 101, 173, .08);
}

.template-editor label {
  min-width: 0;
}

.field-hint {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, var(--brand) 32%);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 88%, var(--brand) 12%);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.35;
}

.field-divider {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.gallery-design-settings {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 22rem),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 92%, var(--brand) 8%), var(--panel));
}

.gallery-design-settings h2 {
  margin: 0;
}

.gallery-design-settings fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gallery-design-settings legend {
  color: var(--ink);
  font-weight: 950;
}

.design-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.design-choice-card {
  appearance: none;
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 92%, var(--brand) 8%);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.design-choice-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background: color-mix(in srgb, var(--panel) 88%, var(--brand) 12%);
}

.design-choice-card.is-current {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 68%, var(--line));
  background: color-mix(in srgb, var(--panel) 82%, var(--brand) 18%);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--brand) 20%, transparent);
}

.design-choice-card.is-current::after {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent);
  content: "✓";
  font-size: .82rem;
  font-weight: 950;
  animation: optionPop .24s ease both;
}

.segmented-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.design-choice-card strong,
.design-choice-card small {
  display: block;
}

.design-choice-card small {
  color: var(--muted);
  line-height: 1.35;
}

.design-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  overflow: hidden;
}

.design-preview i {
  display: block;
  min-width: 0;
  max-width: 100%;
  border-radius: 5px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .22)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, white), var(--brand-2));
}

.preview-masonry i:nth-child(1),
.preview-story i {
  grid-row: span 2;
}

.preview-square i {
  aspect-ratio: 1;
}

.preview-editorial i:nth-child(1) {
  grid-column: span 2;
}

.gallery-design-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.segmented-options {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 58px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--soft) 70%, transparent);
  isolation: isolate;
}

.segmented-options::before {
  position: absolute;
  left: var(--active-left, 6px);
  top: var(--active-top, 6px);
  z-index: 0;
  width: var(--active-width, 0px);
  height: var(--active-height, 44px);
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--liquid-shine-x, 26%) 18%, rgba(255, 255, 255, .42), transparent 22%),
    radial-gradient(circle at calc(var(--liquid-shine-x, 26%) + 18%) 86%, rgba(255, 255, 255, .12), transparent 24%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, white), var(--brand));
  box-shadow:
    0 18px 46px color-mix(in srgb, var(--brand) 28%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 -14px 22px rgba(0, 0, 0, .14);
  content: "";
  opacity: 0;
  transform: translateZ(0) scaleX(var(--liquid-stretch, 1)) scaleY(var(--liquid-squish, 1));
  transform-origin: var(--liquid-origin, center);
  transition:
    left .36s cubic-bezier(.2, .85, .18, 1),
    top .36s cubic-bezier(.2, .85, .18, 1),
    width .36s cubic-bezier(.2, .85, .18, 1),
    height .36s cubic-bezier(.2, .85, .18, 1),
    border-radius .36s ease,
    transform .46s cubic-bezier(.16, 1, .22, 1),
    opacity .18s ease;
}

.segmented-options.has-active::before {
  opacity: 1;
}

.segmented-options::after {
  position: absolute;
  left: calc(var(--active-left, 6px) + var(--active-width, 0px) * .18);
  top: calc(var(--active-top, 6px) + var(--active-height, 44px) * .18);
  z-index: 0;
  width: calc(var(--active-width, 0px) * .62);
  height: calc(var(--active-height, 44px) * .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  content: "";
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transform: translateX(var(--liquid-tail, 0px)) scaleX(var(--liquid-stretch, 1));
  transition:
    left .38s cubic-bezier(.2, .85, .18, 1),
    top .38s cubic-bezier(.2, .85, .18, 1),
    width .38s cubic-bezier(.2, .85, .18, 1),
    transform .48s cubic-bezier(.16, 1, .22, 1),
    opacity .2s ease;
}

.segmented-options.is-liquid-moving::after {
  opacity: .9;
}

.segmented-options label,
.segmented-options button {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 92px;
  min-height: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font: inherit;
  color: var(--muted);
  font-weight: 950;
  line-height: 1;
  background: transparent;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
  white-space: nowrap;
  flex: 1 1 0;
}

.segmented-options input[data-choice-input] {
  display: none;
}

.segmented-options label span,
.segmented-options button span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.segmented-options label.is-current,
.segmented-options button.is-current {
  color: #fff;
}

.segmented-options:not(.has-active) label.is-current,
.segmented-options:not(.has-active) button.is-current {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, .38), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 88%, white), var(--brand));
  box-shadow: 0 18px 46px color-mix(in srgb, var(--brand) 24%, transparent);
}

.segmented-options label.is-current span,
.segmented-options button.is-current span {
  animation: none;
}

@keyframes optionPop {
  from {
    transform: scale(.96);
  }

  to {
    transform: scale(1);
  }
}

.marketing-history {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.marketing-history h3 {
  margin: 0;
}

.history-row {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
}

.history-row span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.landing-message {
  padding-left: 14px;
  border-left: 3px solid var(--brand);
}

.qr-marketing-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 41, 51, .98), rgba(11, 18, 28, .92)),
    radial-gradient(circle at 18% 18%, rgba(69, 101, 173, .38), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(82, 124, 255, .18), transparent 24rem),
    var(--framedock-dark, #1F2933);
  color: #111722;
}

.qr-marketing-page::before,
.qr-marketing-page::after {
  position: absolute;
  width: min(62vw, 760px);
  height: min(62vw, 760px);
  border-radius: 50%;
  filter: blur(18px);
  opacity: .72;
  content: "";
  pointer-events: none;
}

.qr-marketing-page::before {
  left: -18vw;
  top: -16vw;
  background:
    radial-gradient(circle, rgba(69, 101, 173, .42), transparent 62%),
    conic-gradient(from 80deg, rgba(69, 101, 173, .46), rgba(255, 255, 255, .08), rgba(31, 41, 51, 0), rgba(69, 101, 173, .46));
  animation: qrAmbientOne 18s ease-in-out infinite alternate;
}

.qr-marketing-page::after {
  right: -20vw;
  bottom: -22vw;
  background:
    radial-gradient(circle, rgba(69, 101, 173, .2), transparent 64%),
    conic-gradient(from 220deg, rgba(255, 255, 255, .1), rgba(69, 101, 173, .35), rgba(31, 41, 51, 0), rgba(255, 255, 255, .08));
  animation: qrAmbientTwo 22s ease-in-out infinite alternate;
}

.qr-marketing-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: 34px;
  align-items: center;
  width: min(980px, 100%);
  min-height: 560px;
  padding: 46px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9)),
    linear-gradient(135deg, rgba(69, 101, 173, .2), transparent 44%),
    linear-gradient(315deg, rgba(17, 23, 34, .1), transparent 40%);
  box-shadow: 0 42px 130px rgba(0, 0, 0, .42);
}

.qr-marketing-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2, #7b8fea));
  content: "";
}

.qr-marketing-card::after {
  position: absolute;
  right: -76px;
  bottom: -86px;
  width: 320px;
  height: 320px;
  border: 28px solid rgba(17, 23, 34, .06);
  border-radius: 50%;
  content: "";
}

.qr-marketing-card h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.qr-marketing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.qr-marketing-copy p:not(.eyebrow) {
  max-width: 540px;
  color: #4d5868;
  font-size: 1.12rem;
  line-height: 1.55;
}

.qr-marketing-badge {
  justify-self: start;
  padding: 10px 14px;
  border: 1px solid rgba(17, 23, 34, .12);
  border-radius: 999px;
  color: #111722;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 14px 34px rgba(19, 25, 37, .08);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.qr-marketing-code {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--brand), rgba(17, 23, 34, .22)) border-box;
  box-shadow: 0 24px 64px rgba(19, 25, 37, .18);
  justify-self: end;
}

.qr-marketing-code > img {
  width: min(320px, 72vw);
  display: block;
}

.qr-logo {
  position: absolute;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 10px solid #fff;
  border-radius: 0;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 28px rgba(19, 25, 37, .18);
  font-weight: 950;
}

.qr-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: #fff;
}

.qr-marketing-footer {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 23, 34, .1);
}

.qr-marketing-card strong {
  color: #111722;
  overflow-wrap: anywhere;
}

.qr-marketing-footer span {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-item,
.activity-item {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.activity-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  line-height: 1.25;
}

.activity-item time {
  color: var(--ink);
  font-size: .84rem;
  font-weight: 900;
}

.activity-item span {
  overflow-wrap: anywhere;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--danger);
  cursor: pointer;
  font-size: 1.2rem;
}

.subgallery-panel {
  margin-top: 24px;
  padding: 22px;
}

.section-head.compact {
  margin-bottom: 16px;
}

.section-head.compact h2 {
  margin: 0;
  font-size: 1.35rem;
}

.subgallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.subgallery-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 12px 34px rgba(19, 25, 37, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.subgallery-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subgallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(70, 118, 255, .28);
  box-shadow: 0 18px 50px rgba(19, 25, 37, .12);
}

.subgallery-card span {
  color: var(--muted);
  font-weight: 800;
}

.subgallery-thumb {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px;
  color: var(--muted);
  background: rgba(16, 20, 29, .08);
  font-size: .76rem;
  font-style: normal;
  font-weight: 850;
}

.subgallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subgallery-card small {
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 850;
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb strong {
  color: var(--ink);
}

.public-breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .58);
}

.public-breadcrumb strong {
  color: rgba(255, 255, 255, .9);
}

.detail-breadcrumb {
  margin: 0 0 18px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  padding: clamp(18px, 4vw, 44px);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--brand) 38%, transparent), transparent 30rem),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 28rem),
    radial-gradient(circle at 55% 95%, rgba(255, 255, 255, .10), transparent 24rem),
    linear-gradient(145deg, color-mix(in srgb, var(--topbar-bg) 94%, #111827), color-mix(in srgb, var(--night) 82%, var(--brand) 18%)),
    var(--topbar-bg);
  background-size: cover;
  color: var(--paper);
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-card.slim {
  width: min(440px, 100%);
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 2.1rem;
}

.auth-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.auth-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.auth-status {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.auth-experience {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .95fr) minmax(380px, 520px);
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 60px));
}

.auth-experience-single {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.auth-reset-form {
  min-height: 0;
}

.auth-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045)),
    radial-gradient(circle at 22% 18%, color-mix(in srgb, var(--brand) 54%, transparent), transparent 16rem),
    radial-gradient(circle at 72% 72%, color-mix(in srgb, var(--brand-2) 36%, transparent), transparent 17rem),
    rgba(12, 19, 28, .72);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .35);
  isolation: isolate;
}

.auth-visual::before {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent, color-mix(in srgb, var(--brand) 36%, transparent), transparent, color-mix(in srgb, var(--brand-2) 28%, transparent), transparent);
  filter: blur(26px);
  animation: authAura 16s ease-in-out infinite alternate;
  content: "";
}

.auth-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 16, .78));
  content: "";
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.auth-orbit-one {
  width: 520px;
  height: 520px;
  right: -150px;
  top: 70px;
  animation: authFloat 9s ease-in-out infinite;
}

.auth-orbit-two {
  width: 320px;
  height: 320px;
  left: -90px;
  bottom: 54px;
  animation: authFloat 11s ease-in-out infinite reverse;
}

.auth-preview-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  background: rgba(10, 15, 24, .66);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
  backdrop-filter: blur(22px) saturate(1.16);
}

.auth-preview-main {
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 6vw, 72px);
  top: 92px;
  min-height: 310px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .05)),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 34%, transparent), rgba(10, 15, 24, .7));
  animation: authCardLift .72s ease both;
}

.auth-preview-main span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.auth-preview-main strong {
  display: block;
  margin-top: 78px;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: .92;
}

.auth-preview-main em,
.auth-preview-note em {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-style: normal;
  font-weight: 850;
}

.auth-preview-note {
  left: clamp(20px, 5vw, 58px);
  bottom: 86px;
  width: min(310px, 56%);
  padding: 18px 20px;
  transform: rotate(-2deg);
  animation: authCardLift .72s .12s ease both;
}

.auth-preview-note strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.auth-preview-pill {
  right: clamp(20px, 5vw, 58px);
  bottom: 122px;
  padding: 16px 20px;
  color: #fff;
  font-weight: 950;
  animation: authCardLift .72s .22s ease both;
}

.auth-panel {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055)),
    rgba(12, 18, 28, .74);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .38);
  backdrop-filter: blur(28px) saturate(1.15);
}

.auth-panel-head {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-brand {
  justify-content: flex-start;
  margin: 0;
}

.auth-panel-head p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-weight: 760;
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(4, 8, 14, .46);
}

.auth-tabs button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: rgba(255, 255, 255, .62);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  transition: color .24s ease, background .24s ease, transform .24s ease;
}

.auth-tabs button:hover,
.auth-tabs button.active {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 82%, white 18%);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--brand) 22%, transparent);
}

.auth-tabs button:hover {
  transform: translateY(-1px);
}

.auth-forms {
  position: relative;
  min-height: 455px;
  margin-top: 22px;
  perspective: 1400px;
  transform-style: preserve-3d;
  contain: layout paint;
}

.auth-form {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px) scale(.98);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: opacity .32s ease, transform .36s cubic-bezier(.2, .8, .2, 1), visibility .32s ease;
}

.auth-form.active {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.auth-form[data-auth-panel="register"],
.auth-form[data-auth-panel="forgot"] {
  transform: rotateY(-180deg) scale(.98);
}

.auth-form[data-auth-panel="register"].active,
.auth-form[data-auth-panel="forgot"].active {
  transform: rotateY(0deg) scale(1);
  transition-duration: .52s;
}

.auth-experience[data-auth-mode="register"] .auth-form[data-auth-panel="login"]:not(.active),
.auth-experience[data-auth-mode="forgot"] .auth-form[data-auth-panel="login"]:not(.active),
.auth-experience[data-auth-mode="forgot"] .auth-form[data-auth-panel="register"]:not(.active) {
  transform: rotateY(180deg) scale(.98);
  transition-duration: .52s;
}

.auth-experience[data-auth-mode="login"] .auth-form[data-auth-panel="register"]:not(.active),
.auth-experience[data-auth-mode="login"] .auth-form[data-auth-panel="forgot"]:not(.active) {
  transform: rotateY(-180deg) scale(.98);
  transition-duration: .52s;
}

.auth-experience[data-auth-mode="forgot"] .auth-tabs {
  opacity: .72;
}

.auth-form-title {
  display: grid;
  gap: 7px;
  margin-bottom: 2px;
}

.auth-form-title span {
  color: var(--brand-2);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-form-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: .95;
}

.auth-form-title p {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-weight: 760;
}

.auth-form label:not(.auth-check):not(.checkline) {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-weight: 900;
}

.auth-form input:not([type="checkbox"]) {
  min-height: 54px;
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(6, 10, 16, .48);
}

.auth-form input:not([type="checkbox"]):focus {
  border-color: color-mix(in srgb, var(--brand) 70%, white);
  background: rgba(8, 13, 21, .76);
}

.auth-form .button.full {
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 20px 54px color-mix(in srgb, var(--brand) 28%, transparent);
}

.auth-switch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.as-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.auth-form .subtle-link {
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  text-align: center;
}

.auth-form .subtle-link:hover {
  color: #fff;
}

.auth-legal-line {
  width: 100%;
  align-items: flex-start;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .07);
}

.auth-legal-line a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-2) 80%, transparent);
  text-underline-offset: 3px;
}

.auth-code-form {
  min-height: 0;
}

.auth-code-input {
  text-align: center;
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 950;
  letter-spacing: .26em;
  font-variant-numeric: tabular-nums;
}

.auth-code-input::placeholder {
  color: rgba(255, 255, 255, .22);
}

.auth-two-factor .auth-panel {
  overflow: hidden;
}

.auth-two-factor .auth-panel::before {
  position: absolute;
  right: -90px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 24%, transparent);
  filter: blur(2px);
  content: "";
}

.auth-two-factor .auth-panel::after {
  position: absolute;
  right: 34px;
  top: 38px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  content: "••";
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -.22em;
  backdrop-filter: blur(16px);
}

@keyframes authAura {
  0% { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) rotate(18deg) scale(1.07); }
}

@keyframes authFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-18deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(-10deg); }
}

@keyframes authCardLift {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .auth-experience {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-visual {
    min-height: 260px;
  }

  .auth-preview-main {
    top: 32px;
    min-height: 190px;
    padding: 24px;
  }

  .auth-preview-main strong {
    margin-top: 42px;
    font-size: clamp(2.4rem, 10vw, 4rem);
  }

  .auth-preview-note,
  .auth-preview-pill {
    display: none;
  }
}

@media (max-width: 620px) {
  .auth-shell {
    align-items: start;
    padding: 12px;
  }

  .auth-experience {
    gap: 12px;
  }

  .auth-visual {
    min-height: 170px;
    border-radius: 22px;
  }

  .auth-preview-main {
    inset: 18px;
    min-height: auto;
    padding: 18px;
  }

  .auth-preview-main strong {
    margin-top: 24px;
    font-size: 2rem;
  }

  .auth-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .auth-tabs {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }

  .auth-tabs button,
  .auth-form .button.full {
    min-height: 50px;
  }

  .auth-forms {
    min-height: 0;
  }

  .auth-form {
    gap: 12px;
  }

  .auth-form-title h1 {
    font-size: 2.2rem;
  }
}

.public-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(69, 101, 173, .26), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(123, 143, 234, .18), transparent 26rem),
    linear-gradient(180deg, var(--topbar-bg) 0%, color-mix(in srgb, var(--topbar-bg) 82%, var(--brand) 18%) 42%, var(--footer-bg) 100%);
  color: var(--paper);
}

.public-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: color-mix(in srgb, var(--topbar-bg) 78%, transparent);
  backdrop-filter: blur(22px) saturate(1.25);
}

.product-landing {
  padding: 120px clamp(18px, 4vw, 58px) 86px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: 72vh;
}

.landing-hero-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: .88;
  letter-spacing: 0;
}

.landing-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-preview {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 20%, rgba(69, 101, 173, .34), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(123, 143, 234, .24), transparent 19rem),
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: 0 34px 110px rgba(0, 0, 0, .3);
  backdrop-filter: blur(22px);
}

.landing-window {
  display: flex;
  gap: 7px;
  padding: 18px;
}

.landing-window span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
}

.landing-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 18px;
}

.landing-photo-grid i {
  min-height: 190px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)),
    linear-gradient(135deg, rgba(69, 101, 173, .62), rgba(70, 118, 255, .4), rgba(123, 143, 234, .48));
}

.landing-photo-grid i:nth-child(2) {
  transform: translateY(28px);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)),
    linear-gradient(135deg, rgba(80, 126, 255, .62), rgba(13, 18, 28, .72));
}

.landing-photo-grid i:nth-child(3) {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)),
    linear-gradient(135deg, rgba(123, 143, 234, .58), rgba(69, 101, 173, .38));
}

.landing-photo-grid i:nth-child(4) {
  transform: translateY(28px);
}

.landing-feedback-card {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(8, 11, 16, .72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.landing-feedback-card strong {
  font-size: 1.35rem;
}

.landing-feedback-card span {
  color: rgba(255, 255, 255, .68);
  font-weight: 800;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-feature-grid article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px);
}

.landing-feature-grid h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.landing-feature-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.55;
}

@keyframes landingFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(.8deg);
  }
}

@keyframes landingGlow {
  0%, 100% {
    transform: translate3d(-4%, -2%, 0) scale(1);
    opacity: .82;
  }
  50% {
    transform: translate3d(5%, 3%, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes landingCardIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0%, 58%, 100% {
    transform: translateX(-82%);
  }
  76% {
    transform: translateX(82%);
  }
}

.product-landing {
  position: relative;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 76px) 96px;
}

.product-landing::before,
.product-landing::after {
  position: absolute;
  z-index: 0;
  width: 44vw;
  height: 44vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .38;
  content: "";
  pointer-events: none;
  animation: landingGlow 12s ease-in-out infinite;
}

.product-landing::before {
  top: 5vh;
  left: -14vw;
  background: #4565AD;
}

.product-landing::after {
  right: -18vw;
  top: 22vh;
  background: #4676ff;
  animation-delay: -5s;
}

.landing-hero,
.landing-showcase,
.landing-feature-grid {
  position: relative;
  z-index: 1;
}

.landing-hero {
  min-height: 82vh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
}

.landing-ambient {
  position: absolute;
  inset: 8% 10% auto auto;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .12), transparent 58%),
    conic-gradient(from 180deg, rgba(69, 101, 173, .2), transparent, rgba(123, 143, 234, .18), transparent);
  filter: blur(.2px);
  opacity: .78;
  animation: landingFloat 9s ease-in-out infinite;
}

.landing-hero-copy {
  animation: landingCardIn .68s ease both;
}

.landing-hero-copy h1 {
  max-width: 1040px;
  background: linear-gradient(135deg, #fff 8%, #dbe6ee 42%, #92fff5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.landing-actions .button {
  min-height: 50px;
  padding-inline: 24px;
}

.landing-device {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)),
    radial-gradient(circle at 18% 22%, rgba(69, 101, 173, .34), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(123, 143, 234, .24), transparent 20rem),
    rgba(10, 13, 19, .72);
  box-shadow: 0 42px 130px rgba(0, 0, 0, .42);
  backdrop-filter: blur(26px) saturate(1.35);
  animation: landingCardIn .72s .12s ease both, landingFloat 8s 1.2s ease-in-out infinite;
}

.landing-device::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, .12) 44%, transparent 54% 100%);
  transform: translateX(-80%);
  animation: shimmer 7s ease-in-out infinite;
  content: "";
  pointer-events: none;
}

.landing-device-bar {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.landing-device-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .34);
}

.landing-device-hero {
  display: grid;
  gap: 8px;
  padding: 28px 24px;
}

.landing-device-hero strong {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .95;
}

.landing-device-hero small {
  color: rgba(255, 255, 255, .65);
  font-size: 1rem;
  font-weight: 850;
}

.landing-stream {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 24px 24px;
}

.landing-stream i {
  min-height: 150px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)),
    linear-gradient(135deg, rgba(69, 101, 173, .72), rgba(70, 118, 255, .44), rgba(123, 143, 234, .4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 38px rgba(0, 0, 0, .2);
}

.landing-stream i:nth-child(2),
.landing-stream i:nth-child(5) {
  transform: translateY(28px);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)),
    linear-gradient(135deg, rgba(63, 91, 178, .8), rgba(17, 23, 34, .78));
}

.landing-stream i:nth-child(3),
.landing-stream i:nth-child(4) {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .34)),
    linear-gradient(135deg, rgba(123, 143, 234, .62), rgba(69, 101, 173, .42));
}

.landing-floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(8, 11, 16, .74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  backdrop-filter: blur(18px);
  animation: landingCardIn .7s .36s ease both, landingFloat 7s 1.4s ease-in-out infinite;
}

.landing-floating-card strong {
  color: #fff;
}

.landing-floating-card span {
  color: rgba(255, 255, 255, .68);
  font-weight: 800;
}

.card-one {
  left: 26px;
  bottom: 32px;
}

.card-two {
  right: 26px;
  bottom: 104px;
  animation-delay: .55s, 2s;
}

.landing-showcase {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 26px 0 18px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(22px);
}

.landing-showcase h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: .94;
  text-wrap: balance;
}

.landing-steps {
  display: grid;
  gap: 12px;
}

.landing-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
}

.landing-steps span {
  grid-row: span 2;
  color: var(--brand);
  font-weight: 950;
}

.landing-steps strong {
  color: #fff;
  font-size: 1.05rem;
}

.landing-steps p {
  margin: 0;
  color: rgba(255, 255, 255, .62);
}

.landing-feature-grid article {
  min-height: 230px;
  transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.landing-feature-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(69, 101, 173, .32);
  background: rgba(255, 255, 255, .09);
}

@keyframes landingV2Drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
}

@keyframes landingV2Rise {
  from {
    opacity: 0;
    transform: translateY(34px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes landingV2Float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-.3deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(.5deg);
  }
}

@keyframes landingV2Scan {
  0%, 56%, 100% {
    transform: translateX(-115%);
    opacity: 0;
  }
  68% {
    opacity: 1;
  }
  82% {
    transform: translateX(115%);
    opacity: 0;
  }
}

.landing-v2 {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(34px, 6vw, 84px);
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 78px) 110px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 12% 5%, rgba(69, 101, 173, .42), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(121, 142, 236, .2), transparent 26rem),
    linear-gradient(180deg, #080d13 0%, #101927 46%, #071017 100%);
}

.landing-v2::before,
.landing-v2::after {
  position: absolute;
  z-index: -1;
  width: 48vw;
  height: 48vw;
  border-radius: 999px;
  filter: blur(72px);
  opacity: .5;
  content: "";
  pointer-events: none;
  animation: landingV2Drift 16s ease-in-out infinite;
}

.landing-v2::before {
  top: 2vh;
  left: -18vw;
  background: #4565ad;
}

.landing-v2::after {
  right: -18vw;
  top: 42vh;
  background: #7b8fea;
  animation-delay: -7s;
}

.landing-v2-hero,
.landing-v2-section,
.landing-v2-split,
.landing-v2-feature-wall,
.landing-v2-community,
.landing-v2-security,
.landing-v2-final {
  position: relative;
  z-index: 1;
  width: min(1640px, 100%);
  margin-inline: auto;
}

.landing-v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  min-height: min(880px, calc(100vh - 128px));
  min-height: min(880px, calc(100svh - 128px));
}

.landing-v2-orbit {
  position: absolute;
  inset: 12% 2% auto auto;
  width: min(520px, 46vw);
  height: min(520px, 46vw);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .12), transparent 60%),
    conic-gradient(from 210deg, rgba(69, 101, 173, .36), transparent, rgba(123, 143, 234, .2), transparent);
  opacity: .82;
  animation: landingV2Float 12s ease-in-out infinite;
}

.landing-v2-copy {
  animation: landingV2Rise .7s ease both;
}

.landing-v2-copy h1,
.landing-v2-section-head h2,
.landing-v2-split h2,
.landing-v2-community h2,
.landing-v2-security h2,
.landing-v2-final h2 {
  margin: 0;
  max-width: 1100px;
  color: #fff;
  font-size: clamp(3.3rem, 7.5vw, 8.4rem);
  line-height: .88;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-v2-copy h1 {
  background: linear-gradient(135deg, #fff 8%, #dbe6ff 48%, #8ea7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-v2-copy > p:not(.eyebrow),
.landing-v2-section-head > p,
.landing-v2-split > div > p,
.landing-v2-community-card p,
.landing-v2-final p {
  max-width: 760px;
  color: rgba(241, 246, 255, .7);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.55;
}

.landing-v2-actions,
.landing-v2-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-v2-actions .button {
  min-height: 52px;
  padding-inline: 26px;
}

.landing-v2-proof span,
.landing-v2-strip span,
.landing-v2-toolbar span,
.landing-v2-community-grid span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .065);
  font-size: .82rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.landing-v2-product {
  position: relative;
  min-height: 640px;
  animation: landingV2Rise .72s .1s ease both, landingV2Float 9s 1.2s ease-in-out infinite;
}

.landing-v2-window {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 0%, rgba(69, 101, 173, .34), transparent 24rem),
    radial-gradient(circle at 86% 14%, rgba(123, 143, 234, .22), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .045));
  box-shadow: 0 42px 130px rgba(0, 0, 0, .45);
  backdrop-filter: blur(28px) saturate(1.3);
}

.landing-v2-window::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, .14) 46%, transparent 58% 100%);
  content: "";
  pointer-events: none;
  animation: landingV2Scan 6.8s ease-in-out infinite;
}

.landing-v2-window-bar {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.landing-v2-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
}

.landing-v2-gallery-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.landing-v2-gallery-preview > div {
  grid-column: span 6;
  display: grid;
  gap: 7px;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .42)),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, .18), transparent 18rem),
    linear-gradient(135deg, rgba(69, 101, 173, .72), rgba(14, 19, 30, .88));
}

.landing-v2-gallery-preview small,
.landing-v2-gallery-preview span {
  color: rgba(255, 255, 255, .7);
  font-weight: 850;
}

.landing-v2-gallery-preview strong {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: .95;
}

.landing-v2-gallery-preview i {
  display: block;
  min-height: 136px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .44)),
    linear-gradient(135deg, rgba(69, 101, 173, .72), rgba(123, 143, 234, .42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 42px rgba(0, 0, 0, .22);
}

.landing-v2-gallery-preview i:nth-of-type(1),
.landing-v2-gallery-preview i:nth-of-type(4) {
  grid-column: span 2;
  min-height: 210px;
}

.landing-v2-gallery-preview i:nth-of-type(2),
.landing-v2-gallery-preview i:nth-of-type(3),
.landing-v2-gallery-preview i:nth-of-type(5) {
  grid-column: span 2;
}

.landing-v2-gallery-preview i:nth-of-type(2) {
  transform: translateY(24px);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .44)),
    linear-gradient(135deg, rgba(139, 159, 255, .62), rgba(13, 17, 27, .86));
}

.landing-v2-gallery-preview i:nth-of-type(3) {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .44)),
    linear-gradient(135deg, rgba(94, 123, 210, .72), rgba(35, 45, 66, .76));
}

.landing-v2-toolbar {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: min(460px, calc(100% - 44px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(6, 10, 17, .72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .3);
  backdrop-filter: blur(18px);
}

.landing-v2-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 11, 18, .76);
  box-shadow: 0 26px 76px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
}

.landing-v2-card span {
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
}

.landing-v2-card-a {
  left: -24px;
  bottom: 98px;
  animation: landingV2Float 8s ease-in-out infinite;
}

.landing-v2-card-b {
  right: -18px;
  top: 112px;
  animation: landingV2Float 9s -3s ease-in-out infinite;
}

.landing-v2-strip {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1640px, 100%);
  margin: -22px auto 0;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(22px);
}

.landing-v2-strip span {
  flex: 1 0 max-content;
  justify-content: center;
}

.landing-v2-section,
.landing-v2-split,
.landing-v2-community,
.landing-v2-security,
.landing-v2-final {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(69, 101, 173, .18), transparent 26rem),
    rgba(255, 255, 255, .052);
  box-shadow: 0 28px 96px rgba(0, 0, 0, .22);
  backdrop-filter: blur(24px) saturate(1.18);
}

.landing-v2-section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.landing-v2-section-head h2,
.landing-v2-split h2,
.landing-v2-community h2,
.landing-v2-security h2,
.landing-v2-final h2 {
  font-size: clamp(2.35rem, 5.2vw, 5.8rem);
}

.landing-v2-layout-cards,
.landing-v2-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-v2-layout-cards article,
.landing-v2-feature-wall article,
.landing-v2-security-grid article {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.landing-v2-layout-cards article:hover,
.landing-v2-feature-wall article:hover,
.landing-v2-security-grid article:hover {
  transform: translateY(-7px);
  border-color: rgba(123, 143, 234, .36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055));
}

.landing-v2-layout-cards article > span {
  display: block;
  width: 100%;
  height: 120px;
  margin-bottom: 22px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .36)),
    linear-gradient(135deg, rgba(69, 101, 173, .78), rgba(123, 143, 234, .44));
}

.landing-v2-layout-cards h3,
.landing-v2-feature-wall h3,
.landing-v2-security-grid strong {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.08;
}

.landing-v2-layout-cards p,
.landing-v2-feature-wall p,
.landing-v2-security-grid span {
  margin: 0;
  color: rgba(241, 246, 255, .66);
  line-height: 1.48;
}

.landing-v2-split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.landing-v2-flow {
  display: grid;
  gap: 12px;
}

.landing-v2-flow article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .052);
}

.landing-v2-flow span {
  grid-row: span 2;
  color: #8ea7ff;
  font-weight: 950;
  letter-spacing: .08em;
}

.landing-v2-flow strong {
  color: #fff;
  font-size: 1.08rem;
}

.landing-v2-flow p {
  margin: 0;
  color: rgba(255, 255, 255, .64);
}

.landing-v2-feature-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-v2-feature-wall .is-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 496px;
  background:
    radial-gradient(circle at 12% 8%, rgba(69, 101, 173, .38), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
}

.landing-v2-feature-wall .is-large h2 {
  max-width: 600px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .92;
}

.landing-v2-community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr);
  gap: 24px;
  align-items: stretch;
}

.landing-v2-community-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.landing-v2-avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .24), transparent 32%),
    linear-gradient(135deg, #4565ad, #7b8fea);
  box-shadow: 0 24px 80px rgba(69, 101, 173, .28);
  font-size: 2.4rem;
  font-weight: 950;
}

.landing-v2-community-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.landing-v2-security-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.landing-v2-security-grid article {
  grid-column: span 2;
  min-height: 170px;
}

.landing-v2-security-grid strong {
  display: block;
  font-size: 1.55rem;
}

.landing-v2-final {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  background:
    radial-gradient(circle at 12% 0%, rgba(69, 101, 173, .32), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
}

.landing-v2-final .button {
  flex: 0 0 auto;
  min-height: 56px;
  padding-inline: 30px;
}

.landing-v2-reveal {
  animation: landingV2Rise .8s ease both;
}

@supports (animation-timeline: view()) {
  .landing-v2-reveal {
    opacity: 0;
    transform: translateY(42px);
    animation: landingV2Rise both;
    animation-timeline: view();
    animation-range: entry 12% cover 34%;
  }
}

.public-brand,
.public-topbar nav,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(14px);
}

.public-nav a:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
}

.customer-gallery-auth-nav {
  margin-left: auto;
  justify-content: flex-end;
}

.customer-gallery-auth-nav a {
  min-height: 42px;
  padding-inline: 18px;
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  background: rgba(11, 15, 23, .52);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

.customer-gallery-auth-nav .public-nav-register {
  border-color: color-mix(in srgb, var(--brand) 70%, rgba(255, 255, 255, .22));
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 68%, var(--brand)));
  color: #fff;
}

.public-brand {
  color: #fff;
  font-weight: 950;
}

.public-brand-logo {
  max-width: var(--logo-width);
  max-height: var(--logo-height);
  object-fit: contain;
}

.public-footer-logo {
  max-width: var(--logo-width);
  max-height: var(--logo-height);
  object-fit: contain;
}

.public-topbar nav a,
.public-footer a {
  color: rgba(255, 255, 255, .76);
  font-weight: 850;
}

.public-topbar nav a:hover,
.public-footer a:hover {
  color: #fff;
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 52px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: color-mix(in srgb, var(--footer-bg) 92%, transparent);
}

.public-footer div {
  display: grid;
  gap: 5px;
}

.public-footer span {
  color: rgba(255, 255, 255, .56);
  font-weight: 750;
}

.public-page {
  min-height: 80vh;
  padding: 130px 18px 70px;
}

.public-page-card {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 68px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 32px 98px rgba(0, 0, 0, .24);
  backdrop-filter: blur(20px);
}

.public-page-card h1 {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.public-page-content {
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
  line-height: 1.8;
}

.public-page-content h2,
.public-page-content h3,
.public-page-content h4 {
  margin: 1.45em 0 .45em;
  color: #fff;
  line-height: 1.12;
}

.public-page-content p,
.public-page-content ul,
.public-page-content ol,
.public-page-content blockquote {
  margin: 0 0 1em;
}

.public-page-content a {
  color: #fff;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.public-hero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(135deg, #171a22, #0b0d12 62%),
    linear-gradient(45deg, rgba(69, 101, 173, .38), rgba(123, 143, 234, .28));
}

.public-hero.no-cover {
  min-height: 48vh;
}

.public-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .08) 0%, rgba(8, 11, 16, .26) 44%, rgba(8, 11, 16, .86) 86%, #0b0d12 100%),
    linear-gradient(90deg, rgba(8, 11, 16, .76), rgba(8, 11, 16, .16) 58%, rgba(8, 11, 16, .5));
}

.public-hero::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 260px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(11, 13, 18, .72) 54%, #0b0d12);
  pointer-events: none;
}

.public-hero > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .72) 74%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, .72) 74%, transparent 100%);
}

.public-hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(116px, 14vh, 170px) 0 clamp(74px, 10vh, 118px);
}

.public-hero h1 {
  max-width: 960px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 8vw, 7.6rem);
  line-height: .9;
  letter-spacing: 0;
  text-shadow: 0 22px 72px rgba(0, 0, 0, .62);
}

.public-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.05rem;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .42);
}

.public-hero .eyebrow,
.public-breadcrumb,
.public-breadcrumb a,
.public-breadcrumb strong {
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 10px 28px rgba(0, 0, 0, .42);
}

.public-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .86);
}

.public-stats span {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-weight: 800;
}

.public-stats span + span::before {
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  content: "";
}

.public-stats strong {
  color: #fff;
  font-size: 1.05rem;
}

.public-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.profile-tabs {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 76px;
  color: rgba(255, 255, 255, .86);
}

.profile-tabs .section-head h2,
.profile-tabs h2,
.profile-tabs h3 {
  color: #fff;
}

.profile-tabs .muted,
.profile-tabs p {
  color: rgba(255, 255, 255, .72);
}

.profile-tab-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-tab-nav {
  --profile-tab-index: 0;
  position: sticky;
  top: 82px;
  z-index: 6;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 0;
  margin-bottom: 28px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(11, 15, 22, .72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.profile-tab-nav::before,
.profile-tab-nav::after {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 7px;
  width: calc((100% - 14px) / 3);
  border-radius: 999px;
  content: "";
  pointer-events: none;
  transform: translateX(calc(var(--profile-tab-index) * 100%));
  transition:
    transform .58s cubic-bezier(.19, 1, .22, 1),
    filter .42s ease,
    opacity .28s ease;
}

.profile-tab-nav::before {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, .38), transparent 28%),
    linear-gradient(135deg, var(--ui-brand, var(--brand)), var(--brand-2));
  box-shadow:
    0 16px 34px rgba(69, 101, 173, .34),
    inset 0 1px 0 rgba(255, 255, 255, .36);
}

.profile-tab-nav::after {
  opacity: .42;
  background:
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, .42), transparent 26%),
    radial-gradient(circle at 12% 50%, rgba(255, 255, 255, .22), transparent 34%);
  filter: blur(6px);
}

.profile-tab-nav.has-active::before,
.profile-tab-nav.has-active::after {
  top: var(--active-top, 7px);
  bottom: auto;
  left: var(--active-left, 7px);
  width: var(--active-width, calc((100% - 14px) / 3));
  height: var(--active-height, calc(100% - 14px));
  transform:
    translateX(var(--liquid-tail, 0))
    scaleX(var(--liquid-stretch, 1))
    scaleY(var(--liquid-squish, 1));
  transform-origin: var(--liquid-origin, center);
}

.profile-tab-nav.is-liquid-moving::after {
  opacity: .78;
  filter: blur(9px);
}

#profile-tab-galleries:checked ~ .profile-tab-nav {
  --profile-tab-index: 1;
}

#profile-tab-following:checked ~ .profile-tab-nav {
  --profile-tab-index: 2;
}

.profile-tab-nav label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  font-weight: 950;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.profile-tab-nav label:hover {
  transform: translateY(-1px);
  color: #fff;
}

#profile-tab-portfolio:checked ~ .profile-tab-nav label[for="profile-tab-portfolio"],
#profile-tab-galleries:checked ~ .profile-tab-nav label[for="profile-tab-galleries"],
#profile-tab-following:checked ~ .profile-tab-nav label[for="profile-tab-following"] {
  color: #071312;
  background: transparent;
  box-shadow: none;
}

.profile-tab-panel {
  display: none;
  animation: none;
  transform: none;
}

#profile-tab-portfolio:checked ~ .profile-tab-portfolio,
#profile-tab-galleries:checked ~ .profile-tab-galleries,
#profile-tab-following:checked ~ .profile-tab-following {
  display: block;
}

@keyframes tabIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.profile-public-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(118px, 15vh, 190px) 0 clamp(44px, 7vh, 88px);
  background:
    radial-gradient(circle at 18% 18%, rgba(69, 101, 173, .32), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(70, 118, 255, .22), transparent 26rem),
    linear-gradient(135deg, #1f2933, #080b10);
}

.profile-public-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .1), rgba(8, 11, 16, .2) 42%, rgba(8, 11, 16, .78) 100%),
    linear-gradient(90deg, rgba(8, 11, 16, .46), rgba(8, 11, 16, .12) 58%, rgba(8, 11, 16, .28));
  content: "";
}

.profile-public-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.08) contrast(1.04);
}

.profile-public-hero .public-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: end;
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-public-avatar {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  font-size: 3.2rem;
  font-weight: 950;
}

.profile-public-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: .95;
  text-shadow: 0 18px 58px rgba(0, 0, 0, .58);
}

.profile-public-hero .eyebrow,
.profile-public-hero .muted,
.profile-public-hero p {
  color: rgba(255, 255, 255, .84);
}

.profile-public-hero .profile-public-copy {
  width: min(780px, 100%);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(69, 101, 173, .18), transparent 18rem),
    linear-gradient(135deg, rgba(8, 11, 16, .64), rgba(8, 11, 16, .3));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}

.profile-location {
  color: rgba(255, 255, 255, .72);
  font-weight: 850;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-socials a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.profile-public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.profile-photo-public-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .26);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease;
}

.profile-photo-public-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 34px 88px rgba(0, 0, 0, .38);
}

.profile-photo-enlarge,
.profile-photo-public-card > img {
  display: block;
  height: 100%;
}

.profile-photo-enlarge > img,
.profile-photo-public-card > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .34s ease, filter .34s ease;
}

.profile-photo-public-card:hover .profile-photo-enlarge > img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.04);
}

.profile-photo-public-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.profile-photo-public-overlay form,
.profile-photo-public-overlay details,
.profile-photo-public-overlay button {
  pointer-events: auto;
}

.profile-photo-public-overlay form {
  display: inline-flex;
  flex: 0 0 auto;
}

.profile-photo-public-overlay > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .82);
  background: rgba(6, 9, 14, .5);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
  font-size: .78rem;
  font-weight: 900;
  backdrop-filter: blur(14px);
}

.profile-photo-count-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 11, 16, .54);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
  font-size: .88rem;
  font-weight: 950;
  line-height: 1;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.profile-photo-count-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .32);
  background: rgba(8, 11, 16, .72);
}

.profile-photo-count-badge svg {
  width: 15px;
  height: 15px;
}

.profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vh, 44px);
}

.profile-lightbox:target {
  display: grid;
}

.profile-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, .84);
  backdrop-filter: blur(18px);
}

.profile-lightbox-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 0;
  width: min(1280px, calc(100vw - 72px));
  max-height: min(86vh, 900px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(11, 15, 22, .82);
  box-shadow: 0 38px 120px rgba(0, 0, 0, .52);
  backdrop-filter: blur(20px);
}

.profile-lightbox-image {
  display: grid;
  place-items: center;
  min-height: min(74vh, 760px);
  background: rgba(0, 0, 0, .32);
}

.profile-lightbox-shell img {
  max-width: 100%;
  max-height: min(84vh, 860px);
  object-fit: contain;
}

.profile-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-size: 2rem;
  font-weight: 600;
  backdrop-filter: blur(16px);
}

.profile-lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, .74);
  font-weight: 850;
}

.profile-lightbox-side {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  max-height: min(86vh, 900px);
  padding: 28px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at top right, rgba(69, 101, 173, .12), transparent 18rem),
    rgba(255, 255, 255, .045);
}

.profile-lightbox-side h3 {
  margin: 0;
  color: #fff;
  font-size: 1.8rem;
}

.profile-lightbox-side p {
  margin: 0;
}

.page-admin-list {
  display: grid;
  gap: 18px;
}

.page-admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
}

.profile-photo-public-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.profile-like-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
  overflow: visible;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.profile-like-button.active {
  border-color: rgba(255, 255, 255, .26);
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #d90429);
  box-shadow: 0 18px 48px rgba(255, 45, 85, .22);
}

.profile-like-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
}

.profile-like-button.active:hover {
  background: linear-gradient(135deg, #ff6380, #e0183d);
}

.profile-like-button.is-compact {
  min-height: 36px;
  min-width: 66px;
  padding: 0 12px;
  font-size: .88rem;
}

.profile-like-button span {
  margin-left: 0;
}

.profile-like-icon {
  display: inline-flex;
  color: #ff4d6d;
  line-height: 1;
  transform-origin: center;
}

.profile-like-button.active .profile-like-icon {
  color: #fff;
}

.profile-like-icon .heart-icon {
  width: .82em;
  height: .82em;
  display: block;
}

.profile-like-button.liked-pop .profile-like-icon {
  animation: heart-pop .62s cubic-bezier(.18, .88, .32, 1.28);
}

@keyframes heart-pop {
  0% {
    transform: scale(.68) rotate(-8deg);
  }

  42% {
    transform: scale(1.42) rotate(6deg);
  }

  68% {
    transform: scale(.92) rotate(-2deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.profile-lightbox-report {
  width: fit-content;
}

.profile-lightbox-report summary {
  width: 42px;
  height: 42px;
}

.profile-lightbox-report summary svg {
  width: 15px;
  height: 15px;
}

.profile-comments {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.profile-comments p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.profile-comment-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}

.profile-comment-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--ui-brand, var(--brand)), var(--blue));
  font-size: .9rem;
  font-weight: 950;
}

.profile-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-comment-item strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
}

.profile-comment-delete-form {
  margin: 0;
}

.profile-comment-delete {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.profile-comment-delete:hover {
  color: #fff;
  background: rgba(255, 77, 109, .82);
  transform: translateY(-1px);
}

.profile-comment-form {
  display: grid;
  gap: 8px;
}

.profile-follow-form {
  margin-top: 18px;
}

.community-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  overflow: hidden;
  min-height: 430px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 16%, color-mix(in srgb, var(--brand) 44%, transparent), transparent 24rem),
    radial-gradient(circle at 82% 10%, color-mix(in srgb, var(--brand-2) 34%, transparent), transparent 24rem),
    radial-gradient(circle at 76% 100%, rgba(255, 255, 255, .08), transparent 20rem),
    linear-gradient(145deg, color-mix(in srgb, var(--topbar-bg) 96%, var(--panel)), color-mix(in srgb, var(--panel) 76%, var(--topbar-bg)));
  box-shadow: var(--shadow);
}

.community-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 42%;
  background:
    conic-gradient(from 140deg, color-mix(in srgb, var(--brand) 22%, transparent), transparent, color-mix(in srgb, var(--blue) 18%, transparent), transparent);
  content: "";
  pointer-events: none;
  animation: landingFloat 12s ease-in-out infinite;
}

.community-hero::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent, color-mix(in srgb, var(--brand-2) 15%, transparent), transparent 64%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 44px);
  content: "";
  opacity: .6;
  pointer-events: none;
}

.community-hero > * {
  position: relative;
  z-index: 1;
}

.community-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.7vw, 6rem);
  line-height: .95;
  text-wrap: balance;
}

.community-hero p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, .72);
  font-size: 1.1rem;
  line-height: 1.55;
}

.community-hero-copy {
  display: grid;
  align-content: end;
  gap: 18px;
}

.photographer-search-form,
.community-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  width: min(100%, 680px);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 24px 70px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px);
}

.community-search-form label {
  color: rgba(255, 255, 255, .76);
}

.community-search-form input {
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
  background: rgba(8, 13, 19, .62);
}

.community-stage {
  position: relative;
  display: grid;
  align-content: end;
  gap: 16px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .055)),
    radial-gradient(circle at 30% 15%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 16rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  backdrop-filter: blur(24px);
}

.community-stage::before {
  position: absolute;
  inset: 18px 18px auto auto;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, transparent), color-mix(in srgb, var(--brand-2) 80%, transparent));
  content: "";
  transform: rotate(8deg);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}

.community-stage-main {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: rgba(8, 13, 19, .48);
}

.community-stage-main span,
.community-stage-main small {
  color: rgba(255, 255, 255, .68);
  font-weight: 900;
}

.community-stage-main strong {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .9;
}

.community-stage-grid {
  position: relative;
  display: grid;
  gap: 10px;
}

.community-spotlight-list {
  position: relative;
  display: grid;
  gap: 8px;
}

.community-spotlight-list a,
.community-spotlight-list p {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .075);
  backdrop-filter: blur(14px);
}

.community-spotlight-list p {
  display: block;
}

.community-spotlight-list img,
.community-spotlight-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 950;
}

.community-spotlight-list strong {
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-stage-grid span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: rgba(255, 255, 255, .74);
  background: rgba(255, 255, 255, .07);
  font-weight: 850;
}

.community-stage-grid strong {
  color: #fff;
}

.community-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.community-stats span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  box-shadow: 0 12px 34px color-mix(in srgb, var(--brand) 10%, transparent);
  font-weight: 850;
}

.community-stats strong {
  color: var(--ink);
}

.notification-center {
  margin-bottom: 24px;
}

.notification-center-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-list a {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--ink);
}

.notification-list-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.notification-list-item:not(.is-unread) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.notification-list-item.is-unread {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 52%, var(--line));
  box-shadow: inset 3px 0 0 var(--ui-brand, var(--brand));
}

.notification-list-item form {
  margin: 0;
}

.notification-list span,
.notification-list time {
  color: var(--muted);
  font-weight: 750;
}

.photographer-results,
.community-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
  justify-content: start;
  gap: 20px;
  margin-top: 28px;
}

.photographer-card {
  position: relative;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 14rem),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--panel-strong) 72%, transparent));
  box-shadow: var(--shadow);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.photographer-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 28px 84px color-mix(in srgb, var(--brand) 16%, transparent);
}

.photographer-card-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ui-brand, var(--brand)) 30%, transparent), transparent 14rem),
    linear-gradient(135deg, var(--sidebar-bg), var(--topbar-bg));
}

.photographer-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.98) contrast(1.02) brightness(.86);
  transition: transform .5s ease, filter .5s ease;
}

.photographer-card:hover .photographer-card-media img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.04) brightness(.9);
}

.photographer-media-glow {
  position: absolute;
  inset: 0;
  height: auto;
  background:
    linear-gradient(180deg, rgba(3, 7, 12, .1), rgba(3, 7, 12, .24) 34%, rgba(3, 7, 12, .92)),
    radial-gradient(circle at 14% 86%, color-mix(in srgb, var(--brand) 50%, transparent), transparent 12rem);
  pointer-events: none;
}

.photographer-card-open {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 13, 19, .54);
  backdrop-filter: blur(16px);
  font-size: .78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .22s ease, transform .22s ease;
}

.photographer-card:hover .photographer-card-open {
  opacity: 1;
  transform: translateY(0);
}

.photographer-placeholder {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, transparent);
  border-radius: 50%;
  color: var(--button-text);
  background: linear-gradient(135deg, var(--brand), var(--blue));
  font-size: 2.8rem;
  font-weight: 950;
}

.photographer-card-body {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 9px;
  min-height: 310px;
  padding: 15px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

.photographer-card-body::before {
  position: absolute;
  inset: auto 10px 10px;
  min-height: 188px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 22, 30, .78), rgba(8, 13, 19, .9));
  box-shadow: 0 20px 56px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
  content: "";
}

.photographer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.photographer-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 2px solid color-mix(in srgb, var(--panel) 90%, transparent);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.photographer-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 950;
}

.photographer-card-body h2 {
  margin: 0;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.05;
}

.photographer-card-body p:not(.eyebrow) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: .84rem;
  line-height: 1.35;
}

.photographer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photographer-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
  font-size: .73rem;
  font-weight: 850;
}

.photographer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.photographer-actions .button {
  min-height: 32px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
  font-size: .78rem;
}

.photographer-actions .button-dark {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.photographer-actions form {
  margin: 0;
}

.public-subgallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.public-subgallery-card {
  position: relative;
  min-height: 240px;
  display: grid;
  align-content: end;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.public-subgallery-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 12%, rgba(4, 6, 10, .2) 42%, rgba(4, 6, 10, .86));
  content: "";
}

.public-subgallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-subgallery-card span,
.public-subgallery-card strong {
  position: relative;
  z-index: 2;
}

.public-subgallery-card span {
  color: rgba(255, 255, 255, .72);
  font-weight: 850;
}

.public-subgallery-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.profile-gallery-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  color: inherit;
}

.profile-gallery-card-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 12%, rgba(4, 6, 10, .2) 42%, rgba(4, 6, 10, .86));
  content: "";
}

.profile-gallery-card-link img {
  z-index: 0;
}

.profile-gallery-like-form {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  margin: 0;
}

.profile-gallery-card .profile-like-button {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.public-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  margin-top: 18px;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.public-downloads.is-empty {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-3px);
  pointer-events: none;
}

.public-downloads a,
.pill,
.zip-select {
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.public-downloads a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  font-size: .9rem;
  font-weight: 850;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.public-downloads a[hidden] {
  display: none;
}

.public-downloads a svg {
  width: 14px;
  height: 14px;
}

.public-downloads a.flag-red {
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  background: linear-gradient(135deg, #d9415c, #a9253e);
  box-shadow: 0 14px 36px rgba(217, 65, 92, .24);
}

.public-downloads a.flag-yellow {
  border-color: rgba(255, 255, 255, .22);
  color: #151922;
  background: linear-gradient(135deg, #ffd86a, #d6a936);
  box-shadow: 0 14px 36px rgba(255, 216, 106, .2);
}

.public-downloads a.flag-green {
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  background: linear-gradient(135deg, #27b978, #128657);
  box-shadow: 0 14px 36px rgba(39, 185, 120, .2);
}

.public-downloads a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .36);
  filter: brightness(1.06);
}

.public-main {
  width: 100vw;
  margin: 0 auto 80px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-inline: clamp(6px, .6vw, 12px);
  padding-top: clamp(18px, 2vw, 34px);
  position: relative;
  z-index: 3;
}

.public-main.gallery-theme-light,
.photo-detail-page.gallery-theme-light {
  --public-bg: #f6f8fb;
  --public-card: rgba(255, 255, 255, .94);
  --public-card-border: rgba(17, 24, 39, .12);
  --public-text: #111827;
  --public-muted: #5d6878;
  color: var(--public-text);
  background: var(--public-bg);
  box-shadow: 0 0 0 100vmax var(--public-bg);
  clip-path: inset(0 -100vmax);
}

.public-main.gallery-theme-light {
  margin-top: 0;
  padding-top: 34px;
}

.public-main.gallery-theme-dark {
  margin-top: 0;
  padding-top: 34px;
}

.public-main.gallery-theme-brand {
  margin-top: 0;
  padding-top: 34px;
}

.public-main.gallery-theme-dark,
.photo-detail-page.gallery-theme-dark {
  --public-bg: #0b111b;
  --public-card: rgba(20, 27, 40, .9);
  --public-card-border: rgba(255, 255, 255, .12);
  --public-text: #f8fbff;
  --public-muted: rgba(255, 255, 255, .68);
  color: var(--public-text);
  background: var(--public-bg);
  box-shadow: 0 0 0 100vmax var(--public-bg);
  clip-path: inset(0 -100vmax);
}

.public-main.gallery-theme-brand,
.photo-detail-page.gallery-theme-brand {
  --public-bg: #142037;
  --public-card: rgba(24, 35, 55, .9);
  --public-card-border: rgba(130, 157, 226, .24);
  --public-text: #fff;
  --public-muted: rgba(225, 233, 250, .76);
  color: var(--public-text);
  background: var(--public-bg);
  box-shadow: 0 0 0 100vmax var(--public-bg);
  clip-path: inset(0 -100vmax);
}

.public-hero-gallery.gallery-theme-light {
  background:
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 28rem),
    linear-gradient(180deg, #eef3fb, #f6f8fb);
}

.public-hero-gallery.gallery-theme-light::after {
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .04), rgba(8, 11, 16, .14) 48%, rgba(246, 248, 251, .92) 100%),
    linear-gradient(90deg, rgba(8, 11, 16, .48), rgba(8, 11, 16, .08) 56%, rgba(8, 11, 16, .28));
}

.public-hero-gallery.gallery-theme-light::before {
  height: 190px;
  background: linear-gradient(180deg, transparent, rgba(246, 248, 251, .62) 64%, #f6f8fb);
}

.public-hero-gallery.gallery-theme-light h1,
.public-hero-gallery.gallery-theme-light p,
.public-hero-gallery.gallery-theme-light .eyebrow,
.public-hero-gallery.gallery-theme-light .public-breadcrumb,
.public-hero-gallery.gallery-theme-light .public-breadcrumb a,
.public-hero-gallery.gallery-theme-light .public-breadcrumb strong,
.public-hero-gallery.gallery-theme-light .public-stats {
  color: #fff;
  text-shadow: 0 18px 52px rgba(0, 0, 0, .66);
}

.public-hero-gallery.gallery-theme-light.no-cover h1,
.public-hero-gallery.gallery-theme-light.no-cover p,
.public-hero-gallery.gallery-theme-light.no-cover .eyebrow,
.public-hero-gallery.gallery-theme-light.no-cover .public-breadcrumb,
.public-hero-gallery.gallery-theme-light.no-cover .public-breadcrumb a,
.public-hero-gallery.gallery-theme-light.no-cover .public-breadcrumb strong,
.public-hero-gallery.gallery-theme-light.no-cover .public-stats {
  color: #111827;
  text-shadow: 0 14px 38px rgba(255, 255, 255, .62);
}

.public-hero-gallery.gallery-theme-dark {
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 30rem),
    linear-gradient(180deg, #080a0f, #070a10);
}

.public-hero-gallery.gallery-theme-brand {
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 101, 173, .42), transparent 30rem),
    radial-gradient(circle at 82% 0%, rgba(123, 143, 234, .24), transparent 26rem),
    linear-gradient(180deg, #1a2840, #142037);
}

.public-hero-gallery.gallery-theme-brand::after {
  background:
    linear-gradient(180deg, rgba(8, 11, 16, .05) 0%, rgba(11, 16, 26, .22) 42%, rgba(20, 32, 55, .72) 84%, #142037 100%),
    linear-gradient(90deg, rgba(8, 11, 16, .68), rgba(8, 11, 16, .12) 58%, rgba(8, 11, 16, .42));
}

.public-hero-gallery.gallery-theme-brand::before {
  height: 280px;
  background: linear-gradient(180deg, transparent, rgba(20, 32, 55, .64) 58%, #142037);
}

.gallery-spacing-small {
  --gallery-gap: 6px;
}

.gallery-spacing-medium {
  --gallery-gap: clamp(12px, 1.6vw, 22px);
}

.gallery-spacing-large {
  --gallery-gap: clamp(22px, 3vw, 42px);
}

.gallery-corners-rounded {
  --gallery-radius: 8px;
  --gallery-inner-radius: 6px;
}

.gallery-corners-square {
  --gallery-radius: 0;
  --gallery-inner-radius: 0;
}

.public-subgalleries {
  margin-bottom: 34px;
}

.public-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.public-section-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.subgallery-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.subgallery-public-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 170px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(28, 33, 43, .94), rgba(11, 13, 18, .88)),
    linear-gradient(45deg, rgba(69, 101, 173, .22), rgba(123, 143, 234, .16));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .25);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.subgallery-public-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 26px 76px rgba(0, 0, 0, .34);
}

.subgallery-public-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 28%, rgba(7, 9, 13, .84));
}

.subgallery-public-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subgallery-public-card strong,
.subgallery-public-card span {
  position: relative;
  z-index: 1;
}

.subgallery-public-card strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

.subgallery-public-card span {
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 900;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.public-gallery-grid {
  align-items: start;
  gap: var(--gallery-gap, clamp(12px, 1.6vw, 22px));
}

.public-gallery-layout-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  gap: var(--gallery-gap, clamp(12px, 1.6vw, 22px));
}

.public-gallery-layout-masonry .public-photo {
  display: block;
  width: auto;
  min-width: 0;
  margin: 0;
  grid-row-end: span var(--masonry-span, 36);
  align-self: start;
}

.public-gallery-layout-square {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.public-gallery-layout-classic {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.public-gallery-layout-editorial {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.public-gallery-layout-editorial .public-photo {
  grid-column: span 4;
}

.public-gallery-layout-editorial .public-photo:nth-child(7n + 1),
.public-gallery-layout-editorial .public-photo:nth-child(9n + 6) {
  grid-column: span 6;
}

.public-gallery-layout-story {
  width: min(1040px, 100%);
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: var(--gallery-gap, clamp(22px, 3vw, 38px));
}

.customer-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  margin: 0 0 28px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--gallery-radius, 8px);
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
  box-shadow: 0 26px 90px rgba(0, 0, 0, .28);
  backdrop-filter: blur(22px) saturate(1.1);
}

.customer-upload-copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.customer-upload-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .95;
}

.customer-upload-copy p:last-child {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-weight: 750;
}

.customer-upload-zone {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--gallery-radius, 8px);
  background: rgba(8, 12, 19, .46);
}

.customer-upload-zone label:not(.customer-drop-label) {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  font-weight: 850;
}

.customer-upload-zone input[name="uploader_name"] {
  width: 100%;
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.customer-upload-zone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.customer-drop-label {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: var(--gallery-radius, 8px);
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.customer-upload-zone.is-dragging .customer-drop-label,
.customer-drop-label:hover {
  border-color: color-mix(in srgb, var(--brand) 72%, white);
  background: color-mix(in srgb, var(--brand) 18%, rgba(255, 255, 255, .08));
  transform: translateY(-2px);
}

.customer-upload-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #071313;
  background: var(--brand);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--brand) 34%, transparent);
  font-size: 2rem;
  font-weight: 950;
}

.customer-upload-zone .upload-status {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.public-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .11));
  border-radius: var(--gallery-radius, 8px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--public-card, rgba(10, 13, 19, .86)) 82%, rgba(255, 255, 255, .08)), var(--public-card, rgba(10, 13, 19, .86)));
  box-shadow: 0 22px 62px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
  animation: surfaceIn .38s ease both;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
  transform: translateZ(0);
}

.public-photo::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(6, 8, 12, .68));
  content: "";
  opacity: .78;
  pointer-events: none;
  transition: opacity .22s ease;
}

.public-photo:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 28px 78px rgba(0, 0, 0, .34);
}

.public-photo:hover::after {
  opacity: 1;
}

.customer-photo-badge,
.admin-customer-photo-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #071313;
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--brand) 52%, white));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.customer-photo-badge {
  left: 12px;
  top: 54px;
  bottom: auto;
}

.admin-customer-photo-badge {
  right: 10px;
  bottom: 10px;
}

.customer-photo-badge.detail-badge {
  position: static;
  margin: 2px 0 8px;
}

.public-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, .06);
  opacity: 1;
  transition: opacity .42s ease, transform .34s ease, filter .34s ease;
}

.gallery-corners-square .public-photo,
.gallery-corners-square .public-photo img,
.gallery-corners-square .public-photo-link img,
.gallery-corners-square .photo-stage,
.gallery-corners-square .photo-stage img,
.gallery-corners-square .photo-detail-panel,
.gallery-corners-square.customer-upload-panel,
.gallery-corners-square .customer-upload-panel,
.gallery-corners-square .gallery-feedback,
.gallery-corners-square .public-empty,
.gallery-corners-square .customer-upload-zone,
.gallery-corners-square .customer-drop-label {
  border-radius: 0;
}

.public-gallery-layout-masonry .public-photo img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.public-gallery-layout-masonry .public-photo-link {
  aspect-ratio: var(--photo-ratio, 4 / 3);
}

.public-gallery-layout-square .public-photo img {
  aspect-ratio: 1 / 1;
}

.public-gallery-layout-square .public-photo-link {
  aspect-ratio: 1 / 1;
}

.public-gallery-layout-classic .public-photo img {
  aspect-ratio: 4 / 3;
}

.public-gallery-layout-classic .public-photo-link {
  aspect-ratio: 4 / 3;
}

.public-gallery-layout-editorial .public-photo img {
  aspect-ratio: 4 / 3;
}

.public-gallery-layout-editorial .public-photo-link {
  aspect-ratio: 4 / 3;
}

.public-gallery-layout-editorial .public-photo:nth-child(7n + 1) img,
.public-gallery-layout-editorial .public-photo:nth-child(9n + 6) img {
  aspect-ratio: 16 / 10;
}

.public-gallery-layout-editorial .public-photo:nth-child(7n + 1) .public-photo-link,
.public-gallery-layout-editorial .public-photo:nth-child(9n + 6) .public-photo-link {
  aspect-ratio: 16 / 10;
}

.public-gallery-layout-story .public-photo img {
  aspect-ratio: 16 / 10;
}

.public-gallery-layout-story .public-photo-link {
  aspect-ratio: 16 / 10;
}

.public-photo-link {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--photo-ratio, 4 / 3);
  color: inherit;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  background-size: 220% 100%;
  animation: photoLoadingShimmer 1.8s ease-in-out infinite;
}

.public-photo-link img {
  display: block;
}

.public-photo-link:has(img.is-loaded),
.public-photo-link.is-loaded {
  animation: none;
}

.public-photo-link:hover img {
  transform: scale(1.025);
  filter: brightness(1.05);
}

.zip-toggle-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: rgba(255, 255, 255, .9);
  background: rgba(13, 17, 24, .48);
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
  transition: transform .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}

.zip-check {
  font-weight: 950;
  opacity: .7;
}

.zip-toggle-button:hover {
  transform: scale(1.05);
  background: rgba(13, 17, 24, .72);
}

.public-photo.zip-picked .zip-toggle-button {
  color: #0c1718;
  background: var(--brand);
}

.public-photo.zip-picked .zip-check {
  opacity: 1;
}

.zip-toggle-button[aria-pressed="true"] {
  color: #0c1718;
  background: var(--brand);
}

.zip-toggle-button[aria-pressed="true"] .zip-check {
  opacity: 1;
  transform: scale(1);
}

.public-photo.zip-picked {
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

.photo-open-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  color: #fff;
  background: rgba(13, 17, 24, .5);
  backdrop-filter: blur(16px);
  opacity: .84;
  transform: translateY(0);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.photo-open-icon svg,
.icon-pill svg {
  width: 15px;
  height: 15px;
}

.public-photo:hover .photo-open-icon,
.photo-open-icon:focus-visible {
  opacity: 1;
}

.photo-open-icon:hover {
  background: rgba(13, 17, 24, .72);
}

.image-fallback {
  display: none;
  padding: 18px;
  color: rgba(255, 255, 255, .76);
  overflow-wrap: anywhere;
}

.public-photo img:not([src]),
.public-photo img[src=""],
.public-photo img.is-broken {
  display: none;
}

.public-photo img:not([src]) + .image-fallback,
.public-photo img[src=""] + .image-fallback,
.public-photo img.is-broken + .image-fallback {
  display: block;
}

.photo-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 0;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}

.photo-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.public-photo:hover .photo-actions,
.public-photo:focus-within .photo-actions {
  opacity: 1;
}

.zip-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .86);
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.zip-select:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .14);
}

.zip-select input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
}

.photo-count-links {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.photo-count-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  background: rgba(13, 17, 24, .54);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  font-size: .78rem;
  font-weight: 850;
  text-shadow: 0 8px 18px rgba(0, 0, 0, .44);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  pointer-events: auto;
}

.photo-count-link svg {
  width: 14px;
  height: 14px;
}

.photo-count-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .32);
  background: rgba(13, 17, 24, .74);
}

.public-photo:has(.photo-count-links) .public-flag {
  top: 58px;
}

.sketch-count-link {
  color: #f8fbff;
  background: rgba(69, 101, 173, .58);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 850;
}

.icon-pill {
  width: 36px;
  padding: 0;
}

.public-gallery-layout-square .photo-actions {
  gap: 5px;
}

.public-gallery-layout-square .pill,
.public-gallery-layout-square .flag-dot {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.public-gallery-layout-square .icon-pill {
  width: 32px;
}

.public-gallery-layout-square .photo-count-link {
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 8px;
}

.public-gallery-layout-square .flag-dot svg,
.public-gallery-layout-square .icon-pill svg,
.public-gallery-layout-square .photo-count-link svg {
  width: 14px;
  height: 14px;
}

.favorite-toggle svg {
  width: 14px;
  height: 14px;
}

.favorite-toggle.active {
  color: #071312;
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 72%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ui-brand, var(--brand)) 92%, white), var(--ui-brand, var(--brand)));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ui-brand, var(--brand)) 28%, transparent);
}

.pill.active {
  color: #0c1718;
  background: var(--brand);
}

.photo-detail-page .detail-actions .pill.active {
  color: #071312;
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 72%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ui-brand, var(--brand)) 92%, white), var(--ui-brand, var(--brand)));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ui-brand, var(--brand)) 32%, transparent);
}

.comments {
  padding: 0 10px 12px;
  color: rgba(255, 255, 255, .82);
}

.comments summary {
  cursor: pointer;
  font-weight: 800;
}

.comments form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.comments input,
.comments textarea {
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.gallery-feedback {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-color: var(--public-card-border, rgba(255, 255, 255, .11));
  border-radius: var(--gallery-radius, 8px);
  background: var(--public-card, rgba(255, 255, 255, .07));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.gallery-feedback h2 {
  margin: 0;
  color: var(--public-text, #fff);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.gallery-feedback form {
  display: grid;
  gap: 10px;
}

.gallery-feedback input,
.gallery-feedback textarea {
  color: var(--public-text, #fff);
  border-color: var(--public-card-border, rgba(255, 255, 255, .14));
  background: color-mix(in srgb, var(--public-card, rgba(255, 255, 255, .08)) 72%, transparent);
}

.public-empty {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .11));
  border-radius: var(--gallery-radius, 8px);
  background: var(--public-card, rgba(255, 255, 255, .08));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
  backdrop-filter: blur(22px);
  text-align: center;
}

.public-empty h2 {
  margin: 0 0 12px;
  color: var(--public-text, #fff);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.public-empty p:last-child {
  margin: 0;
  color: var(--public-muted, rgba(255, 255, 255, .72));
}

.public-main.gallery-theme-light .customer-upload-copy h2,
.public-main.gallery-theme-light .gallery-feedback h2,
.public-main.gallery-theme-light .public-section-head h2,
.public-main.gallery-theme-light .public-empty h2 {
  color: #111827;
}

.public-main.gallery-theme-light .customer-upload-copy p:last-child,
.public-main.gallery-theme-light .customer-upload-zone .upload-status,
.public-main.gallery-theme-light .public-empty p:last-child {
  color: var(--public-muted);
}

.public-main.gallery-theme-light .customer-upload-zone label:not(.customer-drop-label),
.public-main.gallery-theme-light .gallery-feedback input,
.public-main.gallery-theme-light .gallery-feedback textarea {
  color: #111827;
}

.photo-detail-page.gallery-theme-light .back-link,
.photo-detail-page.gallery-theme-light .detail-breadcrumb,
.photo-detail-page.gallery-theme-light .detail-breadcrumb a,
.photo-detail-page.gallery-theme-light .detail-breadcrumb strong {
  color: #1c2735;
  text-shadow: none;
}

.photo-detail-page.gallery-theme-light .pill {
  border-color: rgba(17, 24, 39, .16);
  color: #1c2735;
  background: rgba(255, 255, 255, .72);
}

.photo-detail-page.gallery-theme-light .detail-comments input,
.photo-detail-page.gallery-theme-light .detail-comments textarea {
  color: #111827;
  border-color: rgba(17, 24, 39, .14);
  background: rgba(255, 255, 255, .78);
}

.photo-detail-page.gallery-theme-light .photo-detail-panel .muted,
.photo-detail-page.gallery-theme-light .detail-comments .muted,
.photo-detail-page.gallery-theme-light .detail-sketches .muted {
  color: var(--public-muted);
}

.photo-detail-page {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  padding: 116px 0 80px;
}

.back-link {
  display: inline-flex;
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}

.detail-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.photo-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.photo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(78vh, 820px);
  padding: 18px;
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .1));
  border-radius: var(--gallery-radius, 8px);
  background: var(--public-card, rgba(255, 255, 255, .07));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  overflow: visible;
}

.photo-stage img {
  max-width: 100%;
  max-height: min(74vh, 780px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--gallery-inner-radius, 6px);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.photo-stage.is-zoomed img {
  max-height: none;
  width: min(140%, 1600px);
  cursor: zoom-out;
}

.photo-stage-tools {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-stage-tools .icon-pill {
  min-width: 36px;
}

.photo-stage-tools .icon-pill.active {
  color: #071312;
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 74%, white);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ui-brand, var(--brand)) 92%, white), var(--ui-brand, var(--brand)));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ui-brand, var(--brand)) 28%, transparent);
}

.photo-stage canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  cursor: crosshair;
  touch-action: none;
  transform: translate(-50%, -50%);
}

.photo-stage.is-sketching img {
  filter: brightness(.82);
}

.sketch-toolbar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--gallery-radius, 8px);
  background: rgba(10, 13, 19, .82);
  backdrop-filter: blur(18px);
}

.photo-magnifier {
  position: absolute;
  z-index: 6;
  width: 140px;
  height: 140px;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .38);
  transform: translate(-50%, -50%);
}

.photo-detail-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .11));
  border-radius: var(--gallery-radius, 8px);
  background: var(--public-card, rgba(23, 26, 34, .9));
  box-shadow: 0 18px 54px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}

.photo-detail-panel h1 {
  margin: 0;
  color: var(--public-text, #fff);
  overflow-wrap: anywhere;
  text-shadow: 0 12px 32px rgba(0, 0, 0, .2);
}

.photo-detail-panel .eyebrow {
  color: var(--ui-brand, var(--brand));
}

.photo-credit {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: var(--public-muted, rgba(255, 255, 255, .7));
  background: color-mix(in srgb, var(--public-card, rgba(255, 255, 255, .06)) 74%, transparent);
  font-size: .86rem;
  font-weight: 800;
}

.photo-credit strong {
  color: var(--public-text, #fff);
}

.detail-actions {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 8px;
  opacity: 1;
  transform: none;
}

.detail-actions form {
  margin: 0;
}

.detail-actions .pill,
.detail-actions .flag-dot {
  flex: 0 0 auto;
}

.detail-actions .flag-dot {
  width: 36px;
  height: 36px;
  min-height: 36px;
}

.detail-actions .flag-dot svg {
  width: 16px;
  height: 16px;
}

.detail-comments {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--public-card-border, rgba(255, 255, 255, .1));
}

.detail-comments h2 {
  margin: 0;
  color: var(--public-text, #fff);
}

.detail-comments p {
  margin: 0;
  color: var(--public-text, rgba(255, 255, 255, .82));
}

.detail-comments form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.detail-comments input,
.detail-comments textarea {
  color: var(--public-text, #fff);
  border-color: var(--public-card-border, rgba(255, 255, 255, .14));
  background: color-mix(in srgb, var(--public-card, rgba(255, 255, 255, .08)) 72%, transparent);
}

.detail-sketches {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--public-card-border, rgba(255, 255, 255, .1));
}

.detail-sketches h2 {
  margin: 0;
  color: var(--public-text, #fff);
}

.detail-sketches article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .12));
  border-radius: 8px;
  background: color-mix(in srgb, var(--public-card, rgba(255, 255, 255, .08)) 86%, transparent);
}

.detail-sketches img {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.detail-sketches a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.detail-sketches a img {
  display: block;
  transition: transform .2s ease, filter .2s ease;
}

.detail-sketches a:hover img {
  filter: brightness(1.08);
  transform: scale(1.04);
}

.detail-sketches strong,
.detail-sketches time {
  display: block;
}

.detail-sketches strong {
  color: var(--public-text, #fff);
}

.detail-sketches time {
  color: var(--public-muted, rgba(255, 255, 255, .62));
  font-size: .8rem;
  font-weight: 800;
}

.qr-card {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-card-code {
  position: relative;
  display: block;
}

.qr-card-code > img {
  width: 100%;
  border-radius: 8px;
}

.qr-card-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 1;
  padding: 0;
  border: 10px solid #fff;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.qr-card-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.photo-rotate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.photo-rotate-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.photo-rotate-button .fa-icon {
  width: 16px;
  height: 16px;
}

.upload-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 18, 25, .1);
}

.upload-progress[aria-hidden="true"] {
  display: none;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--blue), var(--brand-2));
  transition: width .18s ease;
}

.upload-status {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.subtle-link {
  justify-self: center;
  color: var(--blue);
  font-weight: 800;
}

.settings-layout {
  display: grid;
  gap: 24px;
  max-width: 860px;
}

.settings-layout + .settings-layout {
  margin-top: 24px;
}

.settings-layout h2 {
  margin: 0 0 8px;
}

.logo-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.logo-size-grid label {
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.theme-dark .metrics div,
.theme-dark .panel,
.theme-dark .side-panel,
.theme-dark .empty-state,
.theme-dark .gallery-card,
.theme-dark .photo-admin,
.theme-dark .auth-card,
.theme-dark .qr-card,
.theme-dark .upload-zone {
  border-color: var(--line);
  background: rgba(23, 27, 37, .88);
  box-shadow: var(--shadow);
}

.theme-dark .gallery-card,
.theme-dark .photo-admin,
.theme-dark .admin-comments,
.theme-dark .workflow-card,
.theme-dark .qr-card {
  background: var(--paper);
}

.theme-dark .admin-row,
.theme-dark .profile-photo-admin-card {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.theme-dark .admin-row strong {
  color: #f6f8fc;
}

.theme-dark label {
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
}

.theme-dark input,
.theme-dark textarea,
.theme-dark select,
.theme-dark .share-input {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
  background: color-mix(in srgb, #10141d 92%, var(--brand) 8%);
}

.theme-dark input::placeholder,
.theme-dark textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 88%, white);
}

.theme-dark .checkline {
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  background: color-mix(in srgb, var(--panel) 88%, var(--brand) 12%);
}

.theme-dark .field-hint {
  color: color-mix(in srgb, var(--muted) 86%, white);
}

.theme-dark .status-list span,
.theme-dark .cover,
.theme-dark .admin-tabs {
  background: #10141d;
}

.theme-dark .button-dark {
  color: #101219;
  background: #f4f7fb;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.theme-dark .button-light {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.theme-dark .photo-admin,
.theme-dark .admin-comments {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.theme-dark .admin-photo-thumb {
  border-color: rgba(255, 255, 255, .12);
  background: #171b25;
}

.theme-dark .admin-photo-name {
  color: var(--muted);
}

.theme-dark .admin-photo-sidebar .admin-comments {
  color: #111722;
}

.theme-dark .subgallery-card {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.theme-dark .subgallery-card strong {
  color: #f6f8fc;
}

.theme-dark .subgallery-card small {
  color: rgba(246, 248, 252, .72);
}

.theme-dark .subgallery-thumb {
  background: rgba(255, 255, 255, .08);
}

.theme-dark .template-list button {
  color: #f6f8fc;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
}

.theme-dark .template-editor {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.theme-dark.auth-shell {
  background:
    linear-gradient(145deg, rgba(8, 10, 14, .9), rgba(8, 10, 14, .55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%23080a0e'/%3E%3Cpath fill='%234565ad' opacity='.24' d='M0 650 260 540l270 70 260-210 220 130 390-300v670H0z'/%3E%3Cpath fill='%237b8fea' opacity='.18' d='M0 780 330 610l300 70 220-120 260 70 290-160v430H0z'/%3E%3C/svg%3E");
  background-size: cover;
}

@media (prefers-color-scheme: dark) {
  .theme-auto .metrics div,
  .theme-auto .panel,
  .theme-auto .side-panel,
  .theme-auto .empty-state,
  .theme-auto .gallery-card,
  .theme-auto .photo-admin,
  .theme-auto .auth-card,
  .theme-auto .qr-card,
  .theme-auto .upload-zone {
    border-color: var(--line);
    background: rgba(23, 27, 37, .88);
    box-shadow: var(--shadow);
  }

  .theme-auto .gallery-card,
  .theme-auto .photo-admin,
  .theme-auto .admin-comments,
  .theme-auto .workflow-card,
  .theme-auto .qr-card {
    background: var(--paper);
  }

  .theme-auto label {
    color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  }

  .theme-auto input,
  .theme-auto textarea,
  .theme-auto select,
  .theme-auto .share-input {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--line) 82%, var(--brand) 18%);
    background: color-mix(in srgb, #10141d 92%, var(--brand) 8%);
  }

  .theme-auto input::placeholder,
  .theme-auto textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 88%, white);
  }

  .theme-auto .checkline {
    color: color-mix(in srgb, var(--ink) 82%, var(--muted));
    background: color-mix(in srgb, var(--panel) 88%, var(--brand) 12%);
  }

  .theme-auto .field-hint {
    color: color-mix(in srgb, var(--muted) 86%, white);
  }

  .theme-auto .status-list span,
  .theme-auto .cover,
  .theme-auto .admin-tabs {
    background: #10141d;
  }

  .theme-auto .button-dark {
    color: #101219;
    background: #f4f7fb;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  }

  .theme-auto .button-light {
    color: #fff;
    background: rgba(255, 255, 255, .12);
  }

  .theme-auto .photo-admin,
  .theme-auto .admin-comments {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .theme-auto .admin-photo-thumb {
    border-color: rgba(255, 255, 255, .12);
    background: #171b25;
  }

  .theme-auto .admin-photo-name {
    color: var(--muted);
  }

  .theme-auto .admin-photo-sidebar .admin-comments {
    color: #111722;
  }

  .theme-auto .subgallery-card {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  }

  .theme-auto .subgallery-card strong {
    color: #f6f8fc;
  }

  .theme-auto .subgallery-card small {
    color: rgba(246, 248, 252, .72);
  }

  .theme-auto .subgallery-thumb {
    background: rgba(255, 255, 255, .08);
  }

  .theme-auto .template-list button {
    color: #f6f8fc;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
  }

  .theme-auto .template-editor {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
  }

  .theme-auto .admin-row,
  .theme-auto .profile-photo-admin-card {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
  }

  .theme-auto .admin-row strong {
    color: #f6f8fc;
  }

  .theme-auto.auth-shell {
    background:
      linear-gradient(145deg, rgba(8, 10, 14, .9), rgba(8, 10, 14, .55)),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%23080a0e'/%3E%3Cpath fill='%234565ad' opacity='.24' d='M0 650 260 540l270 70 260-210 220 130 390-300v670H0z'/%3E%3Cpath fill='%237b8fea' opacity='.18' d='M0 780 330 610l300 70 220-120 260 70 290-160v430H0z'/%3E%3C/svg%3E");
    background-size: cover;
  }
}

@media (max-width: 900px) {
  .app-with-sidebar,
  .sidebar-collapsed.app-with-sidebar {
    padding-left: 0;
  }

  .sidebar {
    inset: 0 auto auto 0;
    width: min(340px, calc(100vw - 28px));
    height: 100vh;
    height: 100svh;
    max-height: 100svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-105%);
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-open.app-with-sidebar::after {
    position: fixed;
    inset: 0;
    z-index: 28;
    background: rgba(3, 7, 13, .62);
    backdrop-filter: blur(4px);
    content: "";
    pointer-events: none;
  }

  .sidebar-toggle {
    left: 18px;
    right: auto;
    top: calc(18px + env(safe-area-inset-top, 0px));
    width: 46px;
    height: 46px;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(69, 101, 173, .9);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
    transform: none;
  }

  .sidebar-toggle .fa-icon {
    width: 18px;
    height: 18px;
  }

  .sidebar-toggle:hover {
    transform: scale(1.04);
  }

  .sidebar-open .sidebar-toggle {
    background: linear-gradient(135deg, rgba(69, 101, 173, .96), rgba(91, 122, 201, .9));
  }

  .app-notification-hub {
    top: calc(18px + env(safe-area-inset-top, 0px));
    right: 16px;
  }

  .app-message-hub {
    top: calc(18px + env(safe-area-inset-top, 0px));
    right: 76px;
  }

  .sidebar-open .app-notification-hub,
  .sidebar-open .app-message-hub {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .sidebar-collapsed .sidebar {
    width: min(340px, calc(100vw - 28px));
    padding: calc(78px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-brand .brand-logo {
    display: inline;
  }

  .sidebar-collapsed .theme-switch .theme-icon {
    display: grid;
  }

  .sidebar-open.sidebar-collapsed .sidebar-discovery {
    display: grid;
  }

  .sidebar-collapsed .sidebar-brand,
  .sidebar-collapsed .sidebar-nav a,
  .sidebar-collapsed .sidebar-logout {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  .sidebar-collapsed .theme-switch {
    width: 92px;
    padding: 0 6px;
    justify-content: space-between;
  }

  .sidebar-collapsed .theme-switch i {
    left: 6px;
    transform: none;
  }

  .sidebar-collapsed .theme-switch.is-dark i {
    left: calc(100% - 32px);
    transform: none;
  }

  .page.app-main {
    margin-top: calc(84px + env(safe-area-inset-top, 0px));
  }

  .topbar,
  .hero-band,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .metrics,
  .gallery-list,
  .editor-grid,
  .photo-detail-layout,
  .workflow-grid,
  .gallery-feedback,
  .community-hero,
  .photographer-card,
  .photographer-search-form,
  .community-search-form,
  .landing-hero,
  .landing-showcase,
  .landing-feature-grid,
  .customer-upload-panel,
  .collaboration-grid,
  .inline-form,
  .sketch-toolbar {
    grid-template-columns: 1fr;
  }

  .photo-stage-tools {
    position: static;
    justify-content: center;
    margin-bottom: 10px;
  }

  .photo-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 12px;
  }

  .photo-stage img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 760px);
    max-height: min(72svh, 760px);
    height: auto;
    object-fit: contain;
  }

  .photo-stage .sketch-toolbar {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .community-hero {
    min-height: auto;
  }

  .community-search-form {
    grid-template-columns: 1fr;
  }

  .community-stage {
    min-height: 320px;
  }

  .two-factor-app-setup,
  .two-factor-generate,
  .two-factor-steps {
    grid-template-columns: 1fr;
  }

  .two-factor-head {
    display: grid;
  }

  .two-factor-app-setup img {
    width: min(260px, 100%);
    height: auto;
  }

  .notification-center-head {
    display: grid;
    align-items: stretch;
  }

  .product-landing {
    padding-top: 104px;
  }

  .landing-preview {
    min-height: 420px;
  }

  .landing-device {
    min-height: 520px;
  }

  .landing-stream {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-floating-card {
    position: relative;
    inset: auto;
    margin: 12px 18px 0;
  }

  .landing-showcase {
    margin-top: 18px;
  }

  .landing-photo-grid i {
    min-height: 150px;
  }

  .public-gallery-layout-editorial {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .public-gallery-layout-editorial .public-photo,
  .public-gallery-layout-editorial .public-photo:nth-child(7n + 1),
  .public-gallery-layout-editorial .public-photo:nth-child(9n + 6) {
    grid-column: span 3;
  }

  .public-hero-content {
    padding-top: 122px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-design-row {
    grid-template-columns: 1fr;
  }

  .notification-preference-row,
  .notification-preference-row.is-head {
    grid-template-columns: 1fr;
  }

  .notification-preference-row.is-head {
    display: none;
  }

  .marketing-layout {
    grid-template-columns: 1fr;
  }

  .super-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .user-directory-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .user-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-role-form {
    grid-template-columns: 1fr;
  }

  .user-card-actions {
    justify-content: stretch;
  }

  .user-card-actions .button,
  .user-card-actions form,
  .user-card-actions form .button {
    width: 100%;
  }

  .profile-public-hero .public-hero-content {
    grid-template-columns: 1fr;
  }

  .profile-public-avatar {
    width: 118px;
    height: 118px;
    font-size: 3rem;
  }

  .profile-tabs {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .profile-tab-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    border-radius: 8px;
  }

  .profile-tab-nav label {
    border-radius: 8px;
  }

  .profile-photo-wall {
    grid-template-columns: 1fr;
  }

  .profile-lightbox {
    padding: 12px;
  }

  .profile-lightbox-shell {
    grid-template-columns: 1fr;
    width: calc(100vw - 24px);
    max-height: 92vh;
    overflow: auto;
  }

  .profile-lightbox-image {
    min-height: 48vh;
  }

  .profile-lightbox-side {
    max-height: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-left: 0;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .template-editor {
    grid-template-columns: 1fr;
  }

  .qr-marketing-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px;
  }

  .qr-marketing-code {
    justify-self: stretch;
  }

  .side-panel {
    position: static;
  }

  .photo-detail-panel {
    position: static;
  }

  .public-hero {
    min-height: 66vh;
  }

  .admin-photo-modal-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .admin-photo-sidebar {
    order: 2;
    max-height: 42vh;
  }

  .admin-photo-stage {
    order: 1;
    padding: 58px 18px 20px;
  }

  .admin-photo-stage img {
    max-height: 50vh;
  }
}

@media (max-width: 560px) {
  .public-topbar {
    padding-inline: 14px;
  }

  .public-topbar .customer-gallery-auth-nav {
    gap: 8px;
    margin-left: 0;
  }

  .customer-gallery-auth-nav a {
    min-height: 36px;
    padding-inline: 12px;
    font-size: .84rem;
  }

  .public-hero-content,
  .profile-tabs,
  .profile-public-hero .public-hero-content {
    width: min(100% - 24px, 1120px);
  }

  .public-main {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
  }

  .public-hero h1 {
    font-size: clamp(2.4rem, 16vw, 4.4rem);
  }

  .public-gallery-layout-editorial,
  .public-gallery-layout-square,
  .public-gallery-layout-classic {
    grid-template-columns: 1fr;
  }

  .public-gallery-layout-editorial .public-photo,
  .public-gallery-layout-editorial .public-photo:nth-child(7n + 1),
  .public-gallery-layout-editorial .public-photo:nth-child(9n + 6) {
    grid-column: auto;
  }

  .page {
    width: min(100% - 20px, 1180px);
    margin-top: 18px;
  }

  .logo-size-grid {
    grid-template-columns: 1fr;
  }

  .hero-band {
    padding: 24px;
  }

  .photo-admin-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 22px 14px;
  }

  .admin-photo-sidebar {
    padding: 16px;
  }

  .admin-modal-tabs {
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qr-marketing-page::before,
  .qr-marketing-page::after {
    animation: none;
  }
}

.danger-zone {
  margin-top: 0;
  padding: clamp(28px, 4vw, 46px);
  border-color: rgba(224, 60, 93, .45);
  background:
    linear-gradient(135deg, rgba(224, 60, 93, .12), transparent 34%),
    var(--panel);
}

.danger-zone h2 {
  margin-top: 0;
}

.danger-zone .muted {
  max-width: 980px;
  line-height: 1.55;
}

.danger-zone form {
  margin-top: 8px;
}

.danger-zone .eyebrow {
  color: #ff6b86;
}

.danger-zone input[name="confirm_phrase"] {
  letter-spacing: .04em;
  text-transform: uppercase;
}

.billing-hero {
  align-items: end;
}

.billing-grid,
.package-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.billing-card,
.package-admin-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: hidden;
}

.billing-card.current {
  border-color: color-mix(in srgb, var(--brand) 62%, transparent);
  box-shadow: 0 24px 90px color-mix(in srgb, var(--brand) 18%, transparent);
}

.billing-card.recommended {
  border-color: color-mix(in srgb, var(--accent) 64%, transparent);
  box-shadow: 0 22px 80px color-mix(in srgb, var(--accent) 14%, transparent);
}

.billing-card.current::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 20%, transparent), transparent 42%);
}

.recommended-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 90%, white);
  background: color-mix(in srgb, var(--panel) 82%, var(--accent) 18%);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.billing-price {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  font-weight: 950;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.billing-limits {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 800;
}

.billing-features,
.package-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.billing-features span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  font-size: .86rem;
  font-weight: 850;
}

.billing-features span.enabled {
  color: color-mix(in srgb, var(--brand) 88%, white);
  border-color: color-mix(in srgb, var(--brand) 44%, transparent);
}

.paypal-package-button,
.paypal-addon-button {
  min-height: 46px;
}

.addon-shop-panel {
  margin-top: 28px;
}

.addon-grid {
  margin-top: 18px;
}

.addon-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.addon-price {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
}

.addon-admin-grid {
  margin-top: 18px;
}

.addon-admin-card {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 14%, transparent), transparent 20rem),
    color-mix(in srgb, var(--panel) 92%, var(--brand) 8%);
}

.public-live-wall-link {
  display: flex;
  justify-content: flex-start;
  margin-top: 18px;
}

.public-live-wall-link > a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 30px;
  width: min(100%, 380px);
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  color: #fff;
  background: rgba(7, 11, 20, .48);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: transform .28s ease, border-color .28s ease, background-color .28s ease;
}

.public-live-wall-link > a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 70%, white);
  background: rgba(7, 11, 20, .68);
}

.public-live-wall-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: color-mix(in srgb, var(--brand) 82%, #10141d);
}

.public-live-wall-icon svg {
  width: 22px;
  height: 22px;
}

.public-live-wall-copy {
  display: grid;
  gap: 2px;
}

.public-live-wall-copy small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .68);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-live-wall-copy small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31d784;
  box-shadow: 0 0 0 5px rgba(49, 215, 132, .13);
  animation: eventWallPulse 1.8s ease-in-out infinite;
}

.public-live-wall-copy strong {
  font-size: 1rem;
}

.public-live-wall-arrow {
  font-size: 1.4rem;
  transition: transform .28s ease;
}

.public-live-wall-link > a:hover .public-live-wall-arrow {
  transform: translateX(4px);
}

.event-wall-shell {
  min-width: 320px;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #05070d;
}

.event-wall-page {
  --wall-accent: var(--brand);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  min-height: 0;
  padding: clamp(16px, 2.3vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, color-mix(in srgb, var(--wall-accent) 22%, transparent), transparent 34rem),
    radial-gradient(circle at 90% 5%, rgba(106, 126, 255, .13), transparent 32rem),
    linear-gradient(135deg, #05070d, #0d1420 52%, #060811);
  color: #fff;
}

.event-wall-page::before {
  position: fixed;
  inset: -35%;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 140deg at 50% 50%, color-mix(in srgb, var(--wall-accent) 25%, transparent), transparent 28%, rgba(255, 255, 255, .06), transparent 70%, color-mix(in srgb, var(--wall-accent) 20%, transparent));
  content: "";
  filter: blur(90px);
  opacity: .54;
  animation: eventWallAura 22s ease-in-out infinite alternate;
}

.event-wall-page > * {
  position: relative;
  z-index: 1;
}

.event-wall-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 1920px);
  margin: 0 auto;
  padding: 0 2px clamp(16px, 2vw, 28px);
}

.event-wall-top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.event-wall-fullscreen {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.event-wall-fullscreen:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.event-wall-fullscreen:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wall-accent) 72%, white);
  outline-offset: 3px;
}

.event-wall-fullscreen svg {
  width: 17px;
  height: 17px;
}

.event-wall-fullscreen .event-wall-compress-icon {
  display: none;
}

.event-wall-fullscreen.is-active .event-wall-expand-icon {
  display: none;
}

.event-wall-fullscreen.is-active .event-wall-compress-icon {
  display: block;
}

.event-wall-page:fullscreen,
.event-wall-page:-webkit-full-screen,
.event-wall-page.is-pseudo-fullscreen {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  max-width: none;
}

.event-wall-page.is-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

body.event-wall-fullscreen-open {
  overflow: hidden;
}

.event-wall-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.event-wall-brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 7px;
}

.event-wall-brand-mark::after {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border: 3px solid #070b12;
  border-radius: 4px;
  background: var(--wall-accent);
  content: "";
}

.event-wall-brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.event-wall-brand small {
  color: rgba(255, 255, 255, .56);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-wall-brand strong {
  max-width: min(48vw, 760px);
  overflow: hidden;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-wall-status {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .055);
  font-size: .82rem;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.event-wall-status strong {
  color: #fff;
}

.event-wall-status time {
  min-width: 42px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.event-wall-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31d784;
  box-shadow: 0 0 0 5px rgba(49, 215, 132, .12);
  animation: eventWallPulse 1.8s ease-in-out infinite;
}

.event-wall-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .34fr);
  min-height: 0;
  gap: clamp(12px, 1.5vw, 24px);
  width: min(100%, 1920px);
  margin: 0 auto;
  overflow: hidden;
}

.event-wall-spotlight,
.event-wall-feed-wrap {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(24px);
}

.event-wall-spotlight {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #03050a;
}

.event-wall-spotlight > img:not(.event-wall-overlay-logo) {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.event-wall-spotlight > .event-wall-overlay-logo {
  position: absolute;
  z-index: 5;
  right: clamp(22px, 2vw, 42px);
  bottom: clamp(92px, 9vh, 126px);
  width: auto;
  max-width: min(18vw, 210px);
  max-height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / .42));
  pointer-events: none;
}

.event-wall-backdrop {
  position: absolute;
  inset: -32px;
  background-position: center;
  background-size: cover;
  filter: blur(28px) brightness(.42) saturate(.82);
  opacity: .72;
  transform: scale(1.08);
  animation: eventWallBackdrop 14s ease-in-out infinite alternate;
}

.event-wall-spotlight::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(3, 6, 12, .74));
  content: "";
  z-index: 2;
}

.event-wall-caption {
  position: absolute;
  right: clamp(18px, 2.5vw, 36px);
  bottom: clamp(18px, 2.5vw, 36px);
  left: clamp(18px, 2.5vw, 36px);
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.event-wall-caption span {
  font-size: clamp(1.2rem, 2.6vw, 2.8rem);
  font-weight: 950;
  line-height: 1;
}

.event-wall-caption strong {
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

.event-wall-spotlight.is-swapping > img:not(.event-wall-overlay-logo) {
  animation: eventWallReveal .52s ease both;
}

.event-wall-like-count,
.event-wall-tile-likes {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ff4d68;
  font-variant-numeric: tabular-nums;
}

.event-wall-like-count.is-empty,
.event-wall-tile-likes.is-empty {
  opacity: 0;
}

.event-wall-like-count svg {
  width: 24px;
  height: 24px;
}

.event-wall-like-count b,
.event-wall-tile-likes b {
  color: #fff;
  font-size: .85rem;
}

.event-wall-empty {
  display: grid;
  place-content: center;
  min-height: inherit;
  padding: 32px;
  color: #fff;
  text-align: center;
}

.event-wall-empty-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 22px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-size: 2rem;
  font-weight: 300;
}

.event-wall-empty strong {
  font-size: clamp(2rem, 5vw, 5rem);
}

.event-wall-empty > span:last-child {
  max-width: 540px;
  margin-top: 12px;
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
}

.event-wall-feed-wrap {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.event-wall-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}

.event-wall-feed-head span {
  font-weight: 950;
}

.event-wall-feed-head small {
  color: rgba(255, 255, 255, .48);
  font-weight: 800;
}

.event-wall-qr {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 14px 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  background: rgba(3, 7, 14, .48);
}

.event-wall-qr img {
  display: block;
  width: 210px;
  height: 210px;
  padding: 8px;
  border-radius: 5px;
  background: #fff;
}

.event-wall-qr > span {
  display: grid;
  gap: 4px;
}

.event-wall-qr strong {
  color: #fff;
  font-size: 1rem;
}

.event-wall-qr small {
  color: rgba(255, 255, 255, .56);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

.event-wall-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 7px;
  min-height: 0;
  padding: 7px;
  overflow: hidden;
}

.event-wall-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
}

.event-wall-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-wall-tile span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  color: #fff;
  background: color-mix(in srgb, var(--wall-accent) 76%, black);
  font-size: .7rem;
  font-weight: 950;
}

.event-wall-tile-likes {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(12px);
}

.event-wall-tile-likes svg {
  width: 13px;
  height: 13px;
}

.event-wall-tile.is-new {
  animation: eventWallTileIn .5s cubic-bezier(.16, 1, .3, 1) both;
}

.event-wall-new-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: #fff;
  background: rgba(10, 15, 25, .84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
  font-size: .86rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  backdrop-filter: blur(20px);
  transition: opacity .32s ease, transform .32s ease;
}

.event-wall-new-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes eventWallPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .6;
    transform: scale(.78);
  }
}

@keyframes eventWallAura {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(16deg) scale(1.08);
  }
}

@keyframes eventWallKenBurns {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.09) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes eventWallBackdrop {
  from {
    transform: scale(1.08) translate3d(-.6%, -.5%, 0);
  }

  to {
    transform: scale(1.14) translate3d(.8%, .6%, 0);
  }
}

@keyframes eventWallReveal {
  from {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes eventWallTileIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1280px) {
  .event-wall-stage {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .38fr);
  }

  .event-wall-qr {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .event-wall-qr img {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 980px) {
  .event-wall-page {
    height: auto;
    min-height: 100svh;
    overflow: auto;
    padding: 16px 12px;
  }

  .event-wall-stage {
    grid-template-columns: 1fr;
  }

  .event-wall-stage {
    grid-template-rows: minmax(58svh, 1fr) auto;
  }

  .event-wall-spotlight {
    min-height: 58svh;
  }

  .event-wall-feed {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    overflow-x: auto;
  }

  .event-wall-qr {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .event-wall-qr img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 620px) {
  .event-wall-topbar {
    align-items: flex-start;
  }

  .event-wall-top-actions {
    gap: 6px;
  }

  .event-wall-fullscreen {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .event-wall-status {
    min-height: 36px;
    padding: 0 10px;
  }

  .event-wall-status [data-event-count] {
    display: none;
  }

  .event-wall-brand strong {
    max-width: 48vw;
  }

  .event-wall-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-wall-caption span {
    font-size: 1.35rem;
  }

  .event-wall-feed-head small {
    display: none;
  }
}

.event-mobile-page {
  width: min(100% - 28px, 1180px);
  margin: 0 auto;
  padding: clamp(118px, 12vw, 148px) 0 80px;
}

.event-mobile-hero {
  display: grid;
  max-width: 760px;
  gap: 14px;
  margin-bottom: 32px;
}

.event-mobile-hero h1 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(2.4rem, 9vw, 5.8rem);
  line-height: .94;
  text-shadow: 0 14px 42px rgba(0, 0, 0, .32);
}

.event-mobile-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.event-mobile-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, .68);
  font-weight: 850;
}

.event-mobile-summary strong {
  color: #fff;
  font-size: 1.25rem;
}

.event-mobile-summary i {
  width: 4px;
  height: 4px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--brand);
}

.event-mobile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.event-mobile-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .12);
}

.event-mobile-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.event-mobile-image-button img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.event-mobile-photo:hover .event-mobile-image-button img {
  transform: scale(1.025);
}

.event-mobile-like {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-width: 52px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 10, 17, .68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  font-weight: 900;
  backdrop-filter: blur(16px);
  transition: transform .24s ease, color .24s ease, background-color .24s ease;
}

.event-mobile-like svg {
  width: 18px;
  height: 18px;
}

.event-mobile-like.is-liked {
  color: #ff4d68;
  background: rgba(255, 255, 255, .92);
}

.event-mobile-like.is-popping svg {
  animation: eventHeartPop .62s cubic-bezier(.16, 1, .3, 1);
}

.event-mobile-like-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: clamp(72px, 18vw, 112px);
  height: clamp(72px, 18vw, 112px);
  place-items: center;
  border-radius: 50%;
  color: #ff365d;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.35);
}

.event-mobile-like-burst svg {
  width: 48%;
  height: 48%;
}

.event-mobile-photo.is-double-liked .event-mobile-like-burst {
  animation: eventMobileLikeBurst .7s cubic-bezier(.16, 1, .3, 1) both;
}

.event-mobile-empty {
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  text-align: center;
}

.event-mobile-empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.8rem;
}

@keyframes eventHeartPop {
  0% {
    transform: scale(.72);
  }
  42% {
    transform: scale(1.42) rotate(-8deg);
  }
  72% {
    transform: scale(.9) rotate(4deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes eventMobileLikeBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.35);
  }
  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.94);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@media (max-width: 760px) {
  .event-mobile-page {
    width: min(100% - 20px, 1180px);
    padding-top: 124px;
  }

  .event-mobile-hero {
    gap: 11px;
    margin-bottom: 24px;
  }

  .event-mobile-hero h1 {
    font-size: clamp(2.25rem, 13vw, 4.2rem);
    line-height: .96;
  }

  .event-mobile-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .event-mobile-photo {
    border-radius: 6px;
  }

  .event-mobile-like {
    right: 8px;
    bottom: 8px;
    min-width: 46px;
    height: 40px;
    padding: 0 11px;
  }
}

.package-admin-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.flexible-packages {
  align-items: stretch;
  margin-top: 22px;
}

.flexible-packages .package-admin-card {
  min-height: 100%;
}

.new-package-card {
  border-style: dashed;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.package-admin-card .wide,
.package-admin-card .eyebrow {
  grid-column: 1 / -1;
}

.package-admin-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  min-width: 0;
}

.package-admin-options .checkline,
.package-feature-list .checkline {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.sales-chart {
  margin-top: 24px;
}

.sales-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
  align-items: end;
  min-height: 260px;
  padding-top: 12px;
}

.sales-bars article {
  display: grid;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.sales-bars-compact {
  min-height: 190px;
}

.addon-sales-chart {
  margin-top: 22px;
}

.sales-bar-track {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 74%, transparent);
}

.sales-bar-track span {
  display: block;
  width: min(54px, 56%);
  min-height: 14px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--brand));
  box-shadow: 0 18px 44px color-mix(in srgb, var(--brand) 28%, transparent);
}

.sales-bars strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-bars em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.data-export-box {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.data-export-box h3 {
  margin: 0;
  color: var(--ink);
}

.cookie-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.cookie-service-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 76%, transparent);
}

.cookie-service-card .wide,
.cookie-service-head,
.cookie-service-options {
  grid-column: 1 / -1;
}

.cookie-service-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-service-head strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.cookie-service-head span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: 999px;
  color: color-mix(in srgb, var(--brand) 86%, white);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
}

.cookie-service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-service-options .checkline {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 74%, transparent);
}

.cookie-service-options .checkline.is-static {
  color: var(--muted);
}

.new-cookie-service {
  border-style: dashed;
}

.cookie-consent {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 260;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(560px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .26);
  backdrop-filter: blur(18px);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-consent-actions .button {
  min-height: 42px;
  padding-inline: 18px;
}

.cookie-settings-link {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 250;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 850;
}

.cookie-consent:not([hidden]) + .cookie-settings-link {
  display: none;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand) 44%, var(--line));
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 4px;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.cookie-consent-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cookie-consent-services span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-strong) 68%, transparent);
  font-size: .72rem;
  font-weight: 800;
}

.compliance-hero {
  margin-bottom: 24px;
}

.compliance-settings-form {
  margin-bottom: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pagination a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  font-weight: 900;
}

.pagination a.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.pagination span {
  display: inline-flex;
  min-width: 30px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 900;
}

.admin-row form {
  margin: 0;
}

@media (max-width: 720px) {
  .package-admin-card {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .button {
    flex: 1 1 140px;
  }

  .cookie-settings-link {
    right: 16px;
    bottom: 16px;
  }
}

.gallery-documents-panel {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.document-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.document-upload-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px dashed color-mix(in srgb, var(--brand) 48%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 18rem),
    color-mix(in srgb, var(--panel-strong) 72%, transparent);
}

.document-upload-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.document-drop-label {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  cursor: pointer;
}

.document-drop-label strong,
.document-drop-label span:not(.document-drop-icon) {
  display: block;
}

.document-drop-label span:not(.document-drop-icon) {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.document-drop-icon,
.document-item-icon,
.public-document-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 36px color-mix(in srgb, var(--brand) 24%, transparent);
}

.document-drop-icon svg,
.document-item-icon svg,
.public-document-icon svg {
  width: 18px;
  height: 18px;
}

.document-upload-form .upload-progress,
.document-upload-form .upload-status {
  grid-column: 1 / -1;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  transition: opacity .22s ease, transform .22s ease;
}

.document-item.is-removing {
  opacity: 0;
  transform: translateY(-6px);
}

.document-item strong,
.document-item span {
  display: block;
}

.document-item span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.document-item form {
  margin: 0;
}

.document-empty {
  margin: 0;
}

.public-documents-panel {
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto 28px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .14));
  border-radius: var(--gallery-radius, 8px);
  color: var(--public-text, #fff);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 18rem),
    var(--public-card, rgba(16, 21, 31, .9));
  box-shadow: 0 22px 72px rgba(0, 0, 0, .16);
}

.public-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.public-document-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--public-card-border, rgba(255, 255, 255, .14));
  border-radius: var(--gallery-inner-radius, 8px);
  color: var(--public-text, #fff);
  background: color-mix(in srgb, var(--public-card, #111827) 78%, transparent);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.public-document-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 52%, var(--public-card-border, rgba(255, 255, 255, .14)));
}

.public-document-card strong,
.public-document-card small {
  display: block;
}

.public-document-card small {
  margin-top: 2px;
  color: var(--public-muted, rgba(255, 255, 255, .68));
  font-weight: 800;
}

.messages-page {
  display: grid;
  gap: 22px;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: var(--panel-gap, 22px);
  align-items: start;
}

.messages-sidebar-panel,
.messages-conversation-panel {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 18rem),
    color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: var(--shadow);
}

.messages-sidebar-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  height: clamp(620px, calc(100vh - 220px), 760px);
  overflow: auto;
  padding: 18px;
}

.messages-sidebar-section {
  display: grid;
  gap: 10px;
}

.messages-sidebar-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.conversation-list {
  display: grid;
  gap: 8px;
}

.conversation-link,
.message-contact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.message-contact {
  grid-template-columns: 44px minmax(0, 1fr);
}

.conversation-link:hover,
.message-contact:hover,
.conversation-link.active,
.message-contact.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 54%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--panel-strong));
}

.conversation-link.is-unread {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 56%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ui-brand, var(--brand)) 18%, transparent), transparent 55%),
    color-mix(in srgb, var(--panel-strong) 78%, transparent);
  box-shadow: inset 3px 0 0 var(--ui-brand, var(--brand));
}

.conversation-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-weight: 950;
}

.conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-link strong,
.conversation-link small,
.message-contact strong,
.message-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-link small,
.message-contact small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.conversation-link em {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
}

.message-contact-list {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 3px;
}

.messages-conversation-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: clamp(620px, calc(100vh - 220px), 760px);
  overflow: hidden;
}

.message-thread-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.message-thread-title {
  min-width: 0;
  margin-right: auto;
}

.message-thread-head h2 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-profile-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  font-size: .84rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.message-profile-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, var(--paper));
}

.message-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.message-row {
  display: grid;
  grid-template-columns: 32px minmax(0, auto);
  gap: 9px;
  align-items: end;
  justify-self: start;
  width: min(760px, 88%);
  animation: chatBubbleIn .22s ease both;
}

.message-row.is-mine {
  grid-template-columns: minmax(0, auto) 32px;
  justify-self: end;
}

.message-row.is-mine .message-avatar {
  order: 2;
}

.message-row.is-mine .message-bubble {
  order: 1;
  justify-self: end;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: .76rem;
  font-weight: 950;
  box-shadow: 0 8px 22px color-mix(in srgb, #000 22%, transparent);
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.message-bubble.is-mine {
  color: #fff;
  border-color: color-mix(in srgb, var(--brand) 52%, transparent);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand-2) 74%, var(--brand)));
}

.message-bubble p,
.message-bubble time {
  display: block;
  margin: 0;
}

.message-bubble p {
  white-space: pre-wrap;
}

.message-bubble time {
  margin-top: 6px;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: .72rem;
  font-weight: 800;
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message-compose {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-strong) 64%, transparent);
}

.message-emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.message-emoji-bar button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, #000 12%, transparent);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.message-emoji-bar button:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: color-mix(in srgb, var(--brand) 56%, var(--line));
  background: color-mix(in srgb, var(--brand) 12%, var(--paper));
}

.message-compose textarea {
  min-height: 118px;
  max-height: 118px;
  resize: none;
}

.message-compose-locked {
  color: var(--ink);
}

.message-compose-locked strong,
.message-compose-locked p {
  margin: 0;
}

.message-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: 32px;
  text-align: center;
}

.message-empty-state > span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 52px color-mix(in srgb, var(--brand) 24%, transparent);
}

.message-empty-state svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 900px) {
  .document-upload-form,
  .document-item,
  .messages-shell {
    grid-template-columns: 1fr;
  }

  .document-item {
    align-items: start;
  }

  .profile-tab-nav {
    grid-template-columns: 1fr;
  }

  .profile-tab-nav::before,
  .profile-tab-nav::after {
    display: none;
  }

  #profile-tab-portfolio:checked ~ .profile-tab-nav label[for="profile-tab-portfolio"],
  #profile-tab-galleries:checked ~ .profile-tab-nav label[for="profile-tab-galleries"],
  #profile-tab-following:checked ~ .profile-tab-nav label[for="profile-tab-following"] {
    background: linear-gradient(135deg, var(--ui-brand, var(--brand)), var(--brand-2));
    box-shadow: 0 10px 28px rgba(69, 101, 173, .28);
  }

  .messages-sidebar-panel,
  .messages-conversation-panel {
    height: auto;
    min-height: 540px;
  }

  .message-thread-head {
    flex-wrap: wrap;
  }

  .message-profile-button {
    width: 100%;
  }

  .message-row {
    width: 96%;
  }

  .super-security-head,
  .super-security-title {
    display: grid;
  }

  .super-security-layout,
  .super-security-save,
  .super-security-generate,
  .super-security-qr {
    grid-template-columns: 1fr;
  }

  .super-security-methods {
    grid-template-columns: 1fr;
  }

  .super-security-qr img {
    width: min(280px, 100%);
    height: auto;
  }
}

@media (max-width: 980px) {
  .landing-v2 {
    gap: 34px;
    padding: 112px 18px 76px;
  }

  .landing-v2-hero,
  .landing-v2-split,
  .landing-v2-community,
  .landing-v2-final {
    grid-template-columns: 1fr;
  }

  .landing-v2-hero {
    min-height: auto;
  }

  .landing-v2-copy h1 {
    font-size: clamp(3.2rem, 15vw, 5.9rem);
  }

  .landing-v2-product {
    min-height: auto;
  }

  .landing-v2-window {
    min-height: 520px;
  }

  .landing-v2-gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-v2-gallery-preview > div,
  .landing-v2-gallery-preview i,
  .landing-v2-gallery-preview i:nth-of-type(1),
  .landing-v2-gallery-preview i:nth-of-type(2),
  .landing-v2-gallery-preview i:nth-of-type(3),
  .landing-v2-gallery-preview i:nth-of-type(4),
  .landing-v2-gallery-preview i:nth-of-type(5) {
    grid-column: span 1;
  }

  .landing-v2-gallery-preview > div {
    grid-column: 1 / -1;
  }

  .landing-v2-gallery-preview i {
    min-height: 150px;
  }

  .landing-v2-card {
    position: relative;
    inset: auto;
    margin-top: 12px;
  }

  .landing-v2-strip {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .landing-v2-strip::-webkit-scrollbar {
    display: none;
  }

  .landing-v2-section,
  .landing-v2-split,
  .landing-v2-community,
  .landing-v2-security,
  .landing-v2-final {
    padding: 24px;
  }

  .landing-v2-layout-cards,
  .landing-v2-security-grid,
  .landing-v2-feature-wall {
    grid-template-columns: 1fr;
  }

  .landing-v2-feature-wall .is-large,
  .landing-v2-security-grid article {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .landing-v2-community-card {
    grid-template-columns: 1fr;
  }

  .landing-v2-avatar {
    width: 92px;
    height: 92px;
    font-size: 1.8rem;
  }

  .landing-v2-final {
    display: grid;
    align-items: stretch;
  }

  .landing-v2-final .button {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .landing-v2 {
    padding-inline: 14px;
  }

  .landing-v2-copy h1 {
    font-size: clamp(2.9rem, 18vw, 4.9rem);
  }

  .landing-v2-product {
    animation: landingV2Rise .72s .1s ease both;
  }

  .landing-v2-window {
    min-height: auto;
  }

  .landing-v2-gallery-preview {
    gap: 9px;
    padding: 14px;
  }

  .landing-v2-gallery-preview > div {
    padding: 18px;
  }

  .landing-v2-gallery-preview i {
    min-height: 118px;
  }

  .landing-v2-toolbar {
    position: static;
    width: auto;
    margin: 0 14px 14px;
  }

  .landing-v2-section,
  .landing-v2-split,
  .landing-v2-community,
  .landing-v2-security,
  .landing-v2-final {
    padding: 18px;
  }

  .landing-v2-flow article {
    grid-template-columns: 1fr;
  }
}

@keyframes landingV3Drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(.8deg);
  }
}

@keyframes landingV3Marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes landingV3Scan {
  0%, 48%, 100% {
    opacity: 0;
    transform: translateX(-120%);
  }
  58% {
    opacity: .9;
  }
  72% {
    opacity: 0;
    transform: translateX(120%);
  }
}

.landing-v3 {
  --landing-blue: #4565ad;
  --landing-blue-soft: #8197ed;
  --landing-ink: #f8fbff;
  --landing-muted: rgba(235, 242, 255, .72);
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 92px;
  overflow: clip;
  min-height: 100vh;
  padding: 118px max(24px, env(safe-area-inset-left)) 112px;
  color: var(--landing-ink);
  background:
    linear-gradient(125deg, rgba(69, 101, 173, .42) 0 12%, transparent 34%),
    linear-gradient(215deg, rgba(133, 84, 128, .34) 0 10%, transparent 36%),
    linear-gradient(180deg, #070b12 0%, #0c1421 42%, #101c2d 68%, #070b12 100%);
}

.super-hero {
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.super-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.super-hero-actions .button {
  white-space: normal;
  text-align: center;
}

.super-system-panel,
.super-invite-panel {
  grid-column: 1 / -1;
}

.super-system-panel .form-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.gallery-owner {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--brand) 76%, var(--ink));
  font-size: .9rem;
  font-weight: 900;
}

.moderation-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-strong) 74%, transparent);
}

.moderation-search label {
  margin: 0;
}

.footer-social-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-social-links a {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  color: rgba(255, 255, 255, .88);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .12);
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.footer-social-links a::before {
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 72%;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  opacity: 0;
  transform: translateY(14px) scale(.84);
  transition: opacity .22s ease, transform .22s ease;
  content: "";
}

.footer-social-links a > svg {
  position: relative;
  z-index: 1;
}

.footer-social-links a:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: color-mix(in srgb, var(--brand) 52%, rgba(255, 255, 255, .24));
  color: #fff;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand) 18%, rgba(255, 255, 255, .06)), rgba(255, 255, 255, .025)),
    rgba(255, 255, 255, .04);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.footer-social-links a:hover::before {
  opacity: .34;
  transform: translateY(0) scale(1);
}

.footer-social-links svg {
  width: 16px;
  height: 16px;
}

.app-footer {
  margin-left: 0;
}

.auth-footer {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: clamp(18px, 3vw, 34px) auto 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-footer > div:first-child {
  min-width: 190px;
}

.auth-footer strong {
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  font-weight: 950;
}

.auth-footer span {
  color: rgba(255, 255, 255, .54);
  font-size: .88rem;
}

.auth-footer nav {
  justify-content: center;
}

.auth-footer nav a {
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
}

.auth-footer .footer-social-links {
  width: auto;
  justify-content: flex-end;
}

.auth-footer .footer-social-links a {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

.auth-footer .footer-social-links svg {
  width: 14px;
  height: 14px;
}

.landing-v3,
.product-landing {
  max-width: 100%;
}

.landing-v3::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 74%, transparent);
  opacity: .26;
  content: "";
  pointer-events: none;
}

.landing-v3::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 0 24%, rgba(69, 101, 173, .16) 38%, transparent 56%),
    linear-gradient(35deg, transparent 0 42%, rgba(255, 255, 255, .07) 55%, transparent 72%);
  opacity: .9;
  content: "";
  pointer-events: none;
}

.landing-v3-hero,
.landing-v3-scrollstory,
.landing-v3-cinema,
.landing-v3-feature-grid,
.landing-v3-showcase,
.landing-v3-trust,
.landing-v3-final {
  width: min(1660px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-v3-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1fr);
  gap: 76px;
  align-items: center;
  min-height: 790px;
}

.landing-v3-copy {
  max-width: 900px;
}

.landing-v3-copy h1,
.landing-v3-sticky h2,
.landing-v3-cinema h2,
.landing-v3-showcase h2,
.landing-v3-trust h2,
.landing-v3-final h2 {
  margin: 0;
  color: #fff;
  font-size: 6.25rem;
  line-height: .9;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-v3-copy h1 {
  color: transparent;
  background: linear-gradient(135deg, #fff 6%, #e7efff 42%, #aabdff 72%, #ffffff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.landing-v3-copy > p:not(.eyebrow),
.landing-v3-sticky > p:not(.eyebrow),
.landing-v3-cinema p:not(.eyebrow),
.landing-v3-showcase-copy p:not(.eyebrow),
.landing-v3-final p {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--landing-muted);
  font-size: 1.26rem;
  line-height: 1.62;
}

.landing-v3-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.landing-v3-actions .button {
  min-height: 56px;
  padding-inline: 28px;
}

.landing-v3-stage {
  position: relative;
  min-height: 650px;
  transform: translateY(calc(var(--scroll-progress, 0) * -28px));
}

.landing-v3-browser {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .045)),
    linear-gradient(135deg, rgba(69, 101, 173, .26), rgba(6, 10, 18, .72));
  box-shadow: 0 48px 140px rgba(0, 0, 0, .46);
  backdrop-filter: blur(28px) saturate(1.2);
  animation: landingV3Drift 9s ease-in-out infinite;
}

.landing-v3-browser::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 36%, rgba(255, 255, 255, .15) 47%, transparent 60% 100%);
  content: "";
  pointer-events: none;
  animation: landingV3Scan 7.4s ease-in-out infinite;
}

.landing-v3-browser-bar {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.landing-v3-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .38);
}

.landing-v3-browser-hero {
  min-height: 190px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .46)),
    linear-gradient(135deg, rgba(69, 101, 173, .8), rgba(115, 88, 142, .48));
}

.landing-v3-browser-hero span,
.landing-v3-browser-hero strong {
  display: block;
}

.landing-v3-browser-hero span {
  color: rgba(255, 255, 255, .76);
  font-weight: 900;
}

.landing-v3-browser-hero strong {
  margin-top: 10px;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.landing-v3-photo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.landing-v3-photo-wall i {
  display: block;
  grid-column: span 2;
  min-height: 168px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .42)),
    linear-gradient(135deg, rgba(126, 151, 235, .82), rgba(19, 31, 51, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 20px 52px rgba(0, 0, 0, .24);
}

.landing-v3-photo-wall i:nth-child(2),
.landing-v3-photo-wall i:nth-child(5) {
  min-height: 230px;
  transform: translateY(28px);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, .5)),
    linear-gradient(135deg, rgba(69, 101, 173, .78), rgba(89, 60, 99, .58));
}

.landing-v3-floating {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 230px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(7, 11, 19, .78);
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42);
  backdrop-filter: blur(20px);
}

.landing-v3-floating strong {
  color: #fff;
}

.landing-v3-floating span {
  color: rgba(255, 255, 255, .66);
  font-weight: 800;
}

.landing-v3-floating-a {
  right: -16px;
  bottom: 78px;
  animation: landingV3Drift 8s -2s ease-in-out infinite;
}

.landing-v3-floating-b {
  left: -18px;
  bottom: 176px;
  animation: landingV3Drift 10s -4s ease-in-out infinite;
}

.landing-v3-marquee {
  overflow: hidden;
  width: 100%;
  border-block: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(18px);
}

.landing-v3-marquee div {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 14px 0;
  animation: landingV3Marquee 28s linear infinite;
}

.landing-v3-marquee div::after {
  display: contents;
  content: "";
}

.landing-v3-marquee span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .07);
  font-size: .88rem;
  font-weight: 900;
}

.landing-v3-scrollstory {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
  gap: 52px;
  align-items: start;
  min-height: 1500px;
}

.landing-v3-sticky {
  position: sticky;
  top: 112px;
  min-height: 720px;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045)),
    linear-gradient(135deg, rgba(69, 101, 173, .18), transparent);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .28);
  backdrop-filter: blur(24px);
}

.landing-v3-sticky h2,
.landing-v3-cinema h2,
.landing-v3-showcase h2,
.landing-v3-trust h2,
.landing-v3-final h2 {
  font-size: 4.7rem;
}

.landing-v3-scroll-device {
  position: absolute;
  right: 36px;
  bottom: 34px;
  width: min(440px, calc(100% - 72px));
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    linear-gradient(135deg, rgba(69, 101, 173, .4), rgba(8, 13, 22, .8));
  transform: translateY(calc(var(--scroll-progress, 0) * -52px)) rotate(calc(var(--scroll-progress, 0) * 2deg));
}

.landing-v3-scroll-screen {
  display: grid;
  gap: 10px;
  min-height: 310px;
  place-content: end start;
  padding: 28px;
}

.landing-v3-scroll-dot {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #fff, #b8c7ff);
  box-shadow: 0 0 0 16px rgba(255, 255, 255, .08), 0 28px 78px rgba(69, 101, 173, .42);
}

.landing-v3-scroll-screen strong {
  color: #fff;
  font-size: 2.2rem;
}

.landing-v3-scroll-screen small {
  max-width: 280px;
  color: rgba(255, 255, 255, .68);
  font-weight: 800;
  line-height: 1.45;
}

.landing-v3-scroll-steps {
  display: grid;
  gap: 22px;
  padding-top: 160px;
}

.landing-v3-scroll-steps article,
.landing-v3-feature-grid article,
.landing-v3-trust,
.landing-v3-final {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px);
}

.landing-v3-scroll-steps article {
  min-height: 280px;
  padding: 28px;
}

.landing-v3-scroll-steps span,
.landing-v3-feature-grid article > span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--landing-blue-soft);
  font-size: .86rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.landing-v3-scroll-steps h3,
.landing-v3-feature-grid h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.04;
}

.landing-v3-scroll-steps p,
.landing-v3-feature-grid p {
  margin: 0;
  color: rgba(241, 246, 255, .68);
  font-size: 1.04rem;
  line-height: 1.55;
}

.landing-v3-cinema {
  display: grid;
  min-height: 760px;
  place-items: end start;
  overflow: hidden;
  padding: 64px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, .02) 0%, rgba(5, 8, 14, .88) 78%),
    linear-gradient(125deg, rgba(69, 101, 173, .78), rgba(29, 39, 62, .2) 44%, rgba(118, 72, 104, .52)),
    linear-gradient(35deg, #101b2d, #05070b);
  box-shadow: 0 40px 140px rgba(0, 0, 0, .34);
  transform: translateY(calc(var(--scroll-progress, 0) * -24px));
}

.landing-v3-cinema > div {
  max-width: 900px;
}

.landing-v3-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-v3-feature-grid article {
  min-height: 330px;
  padding: 28px;
  transition: transform .32s ease, border-color .32s ease, background .32s ease;
}

.landing-v3-feature-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(129, 151, 237, .48);
  background: rgba(255, 255, 255, .09);
}

.landing-v3-showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, .45fr);
  gap: 44px;
  align-items: center;
  min-height: 720px;
}

.landing-v3-phone {
  min-height: 620px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    #070b12;
  box-shadow: 0 40px 128px rgba(0, 0, 0, .42);
}

.landing-v3-phone > div {
  display: grid;
  min-height: 580px;
  place-content: end start;
  padding: 24px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .78) 74%),
    linear-gradient(135deg, rgba(129, 151, 237, .74), rgba(16, 26, 43, .72));
}

.landing-v3-phone span {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
}

.landing-v3-phone strong {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
}

.landing-v3-phone small {
  margin-top: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 1rem;
  font-weight: 900;
}

.landing-v3-trust {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: center;
  padding: 46px;
}

.landing-v3-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-v3-trust-list span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .07);
  font-weight: 900;
}

.landing-v3-final {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 64px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(69, 101, 173, .28), transparent 54%),
    rgba(255, 255, 255, .07);
}

.landing-v3-final h2 {
  max-width: 1100px;
}

.landing-v3-final .landing-v3-actions {
  justify-content: center;
}

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s ease, transform .75s ease;
}

[data-scroll-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .landing-v3-cinema {
    animation: landingV3Drift both;
    animation-timeline: view();
    animation-range: entry 8% cover 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-v3 *,
  .landing-v3::before,
  .landing-v3::after {
    animation: none !important;
    transition: none !important;
  }

  [data-scroll-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1180px) {
  .landing-v3 {
    gap: 62px;
    padding-top: 104px;
  }

  .landing-v3-hero,
  .landing-v3-scrollstory,
  .landing-v3-showcase,
  .landing-v3-trust {
    grid-template-columns: 1fr;
  }

  .landing-v3-copy h1,
  .landing-v3-sticky h2,
  .landing-v3-cinema h2,
  .landing-v3-showcase h2,
  .landing-v3-trust h2,
  .landing-v3-final h2 {
    font-size: 4.8rem;
  }

  .landing-v3-scrollstory {
    min-height: auto;
  }

  .landing-v3-sticky {
    position: relative;
    top: auto;
    min-height: 620px;
  }

  .landing-v3-scroll-steps {
    padding-top: 0;
  }

  .landing-v3-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .landing-v3 {
    gap: 42px;
    width: 100%;
    padding: 88px max(14px, env(safe-area-inset-left)) 72px max(14px, env(safe-area-inset-right));
    overflow-x: hidden;
  }

  .landing-v3-hero,
  .landing-v3-scrollstory,
  .landing-v3-cinema,
  .landing-v3-feature-grid,
  .landing-v3-showcase,
  .landing-v3-trust,
  .landing-v3-final {
    width: 100%;
  }

  .landing-v3-hero {
    min-height: auto;
    gap: 34px;
  }

  .landing-v3-copy h1,
  .landing-v3-sticky h2,
  .landing-v3-cinema h2,
  .landing-v3-showcase h2,
  .landing-v3-trust h2,
  .landing-v3-final h2 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    overflow-wrap: anywhere;
  }

  .landing-v3-copy > p:not(.eyebrow),
  .landing-v3-sticky > p:not(.eyebrow),
  .landing-v3-cinema p:not(.eyebrow),
  .landing-v3-showcase-copy p:not(.eyebrow),
  .landing-v3-final p {
    font-size: 1.05rem;
  }

  .landing-v3-actions .button {
    justify-content: center;
    width: 100%;
  }

  .landing-v3-stage,
  .landing-v3-browser {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .landing-v3-photo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-v3-photo-wall i,
  .landing-v3-photo-wall i:nth-child(2),
  .landing-v3-photo-wall i:nth-child(5) {
    grid-column: span 1;
    min-height: 128px;
    transform: none;
  }

  .landing-v3-browser-hero {
    min-height: 160px;
  }

  .landing-v3-browser-hero strong {
    font-size: 2.25rem;
  }

  .landing-v3-floating {
    position: relative;
    inset: auto;
    max-width: 100%;
    margin-top: 12px;
  }

  .landing-v3-marquee div {
    animation-duration: 34s;
  }

  .landing-v3-sticky,
  .landing-v3-cinema,
  .landing-v3-trust,
  .landing-v3-final {
    padding: 24px;
  }

  .landing-v3-sticky {
    min-height: auto;
  }

  .landing-v3-scroll-device {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 250px;
    margin-top: 28px;
  }

  .landing-v3-scroll-screen {
    min-height: 250px;
  }

  .landing-v3-scroll-steps article {
    min-height: auto;
    padding: 22px;
  }

  .landing-v3-cinema,
  .landing-v3-showcase,
  .landing-v3-phone {
    min-height: auto;
  }

  .landing-v3-phone > div {
    min-height: 430px;
  }

  .landing-v3-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-footer,
  .sidebar-collapsed .app-footer {
    margin-left: 0;
  }

  .super-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4.8rem);
  }

  .moderation-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .public-footer,
  .auth-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-social-links {
    width: 100%;
  }
}

.button.button-ghost {
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ui-brand, var(--brand)));
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.button.button-ghost:hover {
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 62%, white);
  transform: translateY(-2px);
}

.dashboard-studio-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(18px, 4vw, 44px);
  align-items: stretch;
  min-height: 430px;
  padding: clamp(28px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--ui-brand, var(--brand)));
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--ui-brand, var(--brand)) 34%, transparent), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(135, 154, 255, .18), transparent 24rem),
    linear-gradient(135deg, rgba(9, 13, 21, .98), rgba(18, 25, 38, .94));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
  animation: surfaceIn .48s ease both;
}

.dashboard-studio-hero::before,
.dashboard-studio-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dashboard-studio-hero::before {
  inset: 12% -8% auto auto;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 62%);
  animation: dashboardOrb 12s ease-in-out infinite alternate;
}

.dashboard-studio-hero::after {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(6, 10, 16, .72), transparent);
}

.dashboard-studio-copy,
.dashboard-status-card {
  position: relative;
  z-index: 1;
}

.dashboard-studio-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 840px;
}

.dashboard-studio-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: .92;
}

.dashboard-studio-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 750;
}

.dashboard-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.dashboard-status-card {
  align-self: end;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)),
    color-mix(in srgb, var(--ui-brand, var(--brand)) 18%, transparent);
  box-shadow: 0 28px 74px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(28px) saturate(1.4);
}

.dashboard-status-card span,
.dashboard-metric-grid span,
.dashboard-task span {
  display: block;
  color: color-mix(in srgb, var(--ui-brand, var(--brand)) 78%, white);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-status-card strong {
  display: block;
  margin-top: 20px;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: .86;
}

.dashboard-status-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .7);
  font-weight: 800;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-metric-grid article,
.dashboard-community-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--ui-brand, var(--brand)) 15%, transparent), transparent 14rem),
    linear-gradient(145deg, color-mix(in srgb, var(--panel) 88%, transparent), color-mix(in srgb, var(--panel) 68%, transparent));
  box-shadow: 0 20px 58px rgba(0, 0, 0, .14);
  backdrop-filter: blur(24px) saturate(1.3);
}

.dashboard-metric-grid article {
  padding: 22px;
  animation: surfaceIn .46s ease both;
}

.dashboard-metric-grid strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: .92;
}

.dashboard-metric-grid small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 18px;
}

.dashboard-main-column,
.dashboard-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.dashboard-focus-panel,
.dashboard-activity-panel,
.dashboard-package-panel,
.dashboard-message-panel {
  padding: clamp(22px, 3vw, 34px);
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-panel-head.compact {
  margin-bottom: 12px;
}

.dashboard-panel-head h2,
.dashboard-package-panel h2,
.dashboard-community-strip h2 {
  margin: 0;
}

.dashboard-panel-head a,
.dashboard-task a {
  color: var(--ui-brand, var(--brand));
  font-weight: 950;
}

.dashboard-task-list,
.dashboard-timeline,
.dashboard-profile-row {
  display: grid;
  gap: 12px;
}

.dashboard-task {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.dashboard-task:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 45%, var(--line));
  background: color-mix(in srgb, var(--panel) 84%, transparent);
}

.dashboard-task.is-hot {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ui-brand, var(--brand)) 22%, transparent), transparent),
    color-mix(in srgb, var(--panel) 80%, transparent);
}

.dashboard-task strong,
.dashboard-chat-row strong,
.dashboard-profile-card strong {
  display: block;
  color: var(--ink);
}

.dashboard-task small,
.dashboard-empty,
.dashboard-chat-row span,
.dashboard-profile-card small,
.dashboard-package-panel p {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-timeline a,
.dashboard-chat-row {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px 14px 22px;
  border-left: 3px solid color-mix(in srgb, var(--ui-brand, var(--brand)) 65%, transparent);
  border-radius: 0 8px 8px 0;
  background: color-mix(in srgb, var(--paper) 58%, transparent);
}

.dashboard-timeline time {
  color: var(--ui-brand, var(--brand));
  font-size: .82rem;
  font-weight: 950;
}

.dashboard-timeline span {
  color: var(--ink);
  font-weight: 900;
}

.dashboard-timeline small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-progress {
  height: 11px;
  margin: 18px 0 22px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 60%, transparent);
}

.dashboard-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ui-brand, var(--brand)), #8ea2ff);
  box-shadow: 0 0 24px color-mix(in srgb, var(--ui-brand, var(--brand)) 45%, transparent);
}

.dashboard-chat-row {
  border-left-color: color-mix(in srgb, var(--ui-brand, var(--brand)) 42%, transparent);
}

.dashboard-chat-row em {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--ui-brand, var(--brand));
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.dashboard-community-strip {
  display: grid;
  grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
}

.dashboard-profile-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
}

.dashboard-profile-card a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.dashboard-profile-avatar {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ui-brand, var(--brand)) 55%, white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ui-brand, var(--brand)), #8ea2ff);
  color: #fff;
  font-weight: 950;
}

.dashboard-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-profile-card button {
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--ui-brand, var(--brand)) 48%, var(--line));
  border-radius: 8px;
  color: #fff;
  background: var(--ui-brand, var(--brand));
  font-weight: 950;
}

@keyframes dashboardOrb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-28px, 18px, 0) scale(1.06);
  }
}

@media (max-width: 1100px) {
  .dashboard-studio-hero,
  .dashboard-grid,
  .dashboard-community-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-status-card {
    align-self: stretch;
  }

  .dashboard-metric-grid,
  .dashboard-profile-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-studio-hero {
    min-height: auto;
    padding: 28px 22px;
  }

  .dashboard-studio-copy h1 {
    font-size: clamp(2.45rem, 14vw, 4.2rem);
  }

  .dashboard-action-row .button,
  .dashboard-task {
    width: 100%;
  }

  .dashboard-metric-grid,
  .dashboard-profile-row,
  .dashboard-task {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-card {
    grid-template-columns: 1fr;
  }
}

/* Live-Wall 2026 */
.event-wall-page .event-wall-stage {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 23vw, 430px);
}

.event-wall-page .event-wall-side {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  scrollbar-width: thin;
}

.event-wall-page .event-wall-qr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: clamp(12px, 1.4vw, 20px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(5, 9, 16, .66);
  text-align: center;
  backdrop-filter: blur(22px);
}

.event-wall-page .event-wall-qr img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 10px;
}

.event-wall-page .event-wall-qr > div {
  display: grid;
  gap: 4px;
}

.event-wall-page .event-wall-qr span,
.event-wall-page .event-wall-countdown small,
.event-wall-page .event-wall-team small,
.event-wall-page .event-wall-sponsor small {
  color: rgba(255, 255, 255, .62);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
}

.event-wall-countdown,
.event-wall-team,
.event-wall-sponsor {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  background: rgba(7, 11, 19, .64);
  backdrop-filter: blur(20px);
}

.event-wall-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.event-wall-countdown strong {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-variant-numeric: tabular-nums;
}

.event-wall-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.event-wall-stats div {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  background: rgba(7, 11, 19, .64);
  text-align: center;
}

.event-wall-stats strong {
  color: #fff;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.event-wall-stats span {
  color: rgba(255, 255, 255, .58);
  font-size: .66rem;
  font-weight: 800;
}

.event-wall-team > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.event-wall-team article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.event-wall-team article img,
.event-wall-team article > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  object-fit: cover;
  background: var(--wall-accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.event-wall-team article strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-wall-sponsor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
}

.event-wall-sponsor small {
  grid-column: 1 / -1;
}

.event-wall-sponsor img {
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.event-wall-sponsor strong {
  color: #fff;
}

.event-wall-author {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(3, 6, 12, .62);
  backdrop-filter: blur(14px);
}

.event-wall-author img,
.event-wall-author > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: var(--wall-accent);
  color: #fff;
  font-size: .72rem;
}

.event-wall-page .event-wall-author strong {
  overflow: hidden;
  color: #fff;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-wall-photo-progress {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(3, 6, 12, .62);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(14px);
}

.event-wall-page .event-wall-photo-progress strong {
  color: #fff;
  font-size: .95rem;
}

.event-wall-page .event-wall-photo-progress span {
  color: rgba(255, 255, 255, .56);
  font-size: .75rem;
}

.event-wall-reactions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-wall-reactions > span {
  display: inline-flex;
  min-width: 48px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(3, 6, 12, .62);
  backdrop-filter: blur(14px);
  transition: opacity .2s ease, transform .2s ease;
}

.event-wall-reactions > span.is-empty {
  opacity: .38;
}

.event-wall-reactions i {
  font-size: 1.05rem;
  font-style: normal;
}

.event-wall-reactions b {
  color: #fff;
  font-size: .78rem;
}

.event-wall-reactions > span.is-bursting {
  animation: liveWallReactionBurst .72s cubic-bezier(.16, 1, .3, 1);
}

@keyframes liveWallReactionBurst {
  0% { transform: scale(1); filter: brightness(1); }
  38% { transform: scale(1.42) rotate(-7deg); filter: brightness(1.35); }
  68% { transform: scale(.92) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

.event-mobile-reactions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.event-mobile-reactions button {
  display: inline-flex;
  min-width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 14, .7);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.event-mobile-reactions button.active,
.event-mobile-reactions button.is-active {
  color: #101522;
  background: #fff;
  transform: translateY(-2px);
}

.event-mobile-reactions button.is-popping {
  animation: liveWallReactionBurst .65s cubic-bezier(.16, 1, .3, 1);
}

/* Gallery editor controls */
.gallery-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gallery-toggle-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 84px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 93%, var(--brand) 7%);
  cursor: pointer;
}

.gallery-toggle-card > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  transition: background .25s ease, border-color .25s ease;
}

.gallery-toggle-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), background .25s ease;
}

.gallery-toggle-card > input:checked + .gallery-toggle-switch {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 75%, #fff 25%);
}

.gallery-toggle-card > input:checked + .gallery-toggle-switch::after {
  background: #fff;
  transform: translateX(20px);
}

.gallery-toggle-card strong,
.gallery-toggle-card small {
  display: block;
}

.gallery-toggle-card strong {
  color: var(--ink);
  font-size: .92rem;
}

.gallery-toggle-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.gallery-toggle-card.compact-toggle {
  width: min(100%, 420px);
  min-height: 68px;
  padding: 11px 13px;
}

.accent-color-field {
  display: grid;
  align-content: start;
  gap: 9px;
  color: var(--ink);
  font-weight: 850;
}

.accent-color-field > div,
.accent-color-field > span {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input-bg, var(--panel-strong));
}

.accent-color-field input[type="color"] {
  width: 58px;
  height: 36px;
  padding: 2px;
  border: 0;
  border-radius: 5px;
  background: transparent;
}

.accent-color-field output {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
}

.accent-reset {
  margin-left: auto;
  color: var(--muted);
  font-size: .78rem;
}

.photo-admin[draggable="true"],
[data-photo-sort-id][draggable="true"] {
  cursor: grab;
}

.photo-admin[draggable="true"]:active,
[data-photo-sort-id][draggable="true"]:active,
.photo-admin.is-dragging {
  cursor: grabbing;
}

.photo-admin.is-dragging {
  z-index: 5;
  opacity: .56;
  transform: scale(.97);
}

/* Live-Wall admin */
.livewall-admin-panel {
  overflow: hidden;
}

.livewall-head-actions,
.livewall-savebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.livewall-settings-form {
  display: grid;
  gap: 18px;
}

.livewall-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.livewall-settings-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 96%, var(--brand) 4%);
}

.livewall-settings-card-wide {
  grid-column: 1 / -1;
}

.livewall-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.livewall-card-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.livewall-card-heading h3 {
  margin: 0;
}

.livewall-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
}

.livewall-logo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.livewall-logo-preview img {
  width: 110px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.livewall-path-field {
  padding: 12px 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
}

.livewall-team-admin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.livewall-team-admin article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.livewall-team-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.livewall-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livewall-team-admin strong,
.livewall-team-admin small {
  display: block;
}

.livewall-team-admin small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .72rem;
}

.livewall-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(20px);
}

.livewall-analytics {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.livewall-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.livewall-metrics article {
  display: grid;
  gap: 3px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-strong);
}

.livewall-metrics strong {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.livewall-metrics span {
  color: var(--muted);
  font-size: .78rem;
}

.livewall-ranking {
  display: grid;
  gap: 8px;
}

.livewall-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.livewall-ranking article {
  display: grid;
  grid-template-columns: 34px 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.livewall-ranking img {
  width: 62px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.livewall-ranking small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.livewall-rank {
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 950;
  text-align: center;
}

@media (max-width: 1100px) {
  .event-wall-page .event-wall-stage {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .livewall-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .livewall-ranking-grid {
    grid-template-columns: 1fr;
  }

  .event-wall-page .event-wall-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(56svh, 1fr) auto;
    overflow: auto;
  }

  .event-wall-page .event-wall-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .event-wall-page .event-wall-qr {
    grid-row: span 3;
  }

  .gallery-toggle-grid,
  .livewall-admin-grid {
    grid-template-columns: 1fr;
  }

  .livewall-settings-card-wide {
    grid-column: auto;
  }

  .livewall-team-admin {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .event-wall-page .event-wall-side,
  .livewall-team-admin,
  .livewall-metrics {
    grid-template-columns: 1fr;
  }

  .event-wall-page .event-wall-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .event-wall-reactions {
    grid-column: 1 / -1;
  }

  .livewall-card-heading,
  .workflow-head {
    align-items: stretch;
    flex-direction: column;
  }

  .livewall-head-actions {
    justify-content: stretch;
  }

  .livewall-head-actions .button {
    flex: 1;
  }
}
