:root {
  color-scheme: light;
  --ink: #121318;
  --muted: #68707e;
  --line: #e5e8ef;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --night: #101219;
  --brand: #16c6a1;
  --brand-2: #ff6b4a;
  --blue: #4676ff;
  --danger: #d73d54;
  --shadow: 0 22px 60px rgba(19, 25, 37, .11);
}

.theme-dark {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #a8b2c3;
  --line: rgba(255, 255, 255, .12);
  --paper: #171b25;
  --soft: #0b0d12;
  --night: #f4f7fb;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}

@media (prefers-color-scheme: dark) {
  .theme-auto {
    color-scheme: dark;
    --ink: #f4f7fb;
    --muted: #a8b2c3;
    --line: rgba(255, 255, 255, .12);
    --paper: #171b25;
    --soft: #0b0d12;
    --night: #f4f7fb;
    --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 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(22, 198, 161, .16), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, #f0f4f8 100%);
}

.theme-dark.app-shell {
  background:
    radial-gradient(circle at 12% 0%, rgba(22, 198, 161, .18), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(255, 107, 74, .12), transparent 26rem),
    linear-gradient(180deg, #0b0d12 0%, #111722 100%);
}

@media (prefers-color-scheme: dark) {
  .theme-auto.app-shell {
    background:
      radial-gradient(circle at 12% 0%, rgba(22, 198, 161, .18), transparent 28rem),
      radial-gradient(circle at 88% 0%, rgba(255, 107, 74, .12), transparent 26rem),
      linear-gradient(180deg, #0b0d12 0%, #111722 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: 150px;
  max-height: 38px;
  object-fit: contain;
}

.auth-brand-logo {
  max-width: 220px;
  max-height: 64px;
}

.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 1fr auto;
  width: 292px;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 18% 0%, rgba(11, 163, 154, .18), transparent 16rem),
    linear-gradient(180deg, rgba(15, 20, 29, .96), rgba(8, 11, 16, .98));
  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: 190px;
  max-height: 46px;
}

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

.sidebar-nav a,
.sidebar-logout {
  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;
}

.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(11, 163, 154, .96), rgba(70, 118, 255, .72));
  box-shadow: 0 16px 36px rgba(11, 163, 154, .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;
  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-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: 100%;
  min-height: 46px;
  padding: 0 8px;
  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: 8px;
  display: block;
  width: 30px;
  height: 30px;
  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% - 38px);
  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: 30px;
  height: 30px;
  border-radius: 50%;
  transition: color .24s ease, transform .24s ease, opacity .24s ease;
}

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

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

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

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

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

.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(11, 163, 154, .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 .theme-switch span,
.sidebar-collapsed .sidebar-discovery,
.sidebar-collapsed .sidebar-brand .brand-logo {
  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 {
  padding: 0;
  justify-content: center;
}

.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: #fff;
  background: var(--night);
  box-shadow: 0 12px 30px rgba(16, 18, 25, .22);
}

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

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

.danger {
  color: #fff;
  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;
}

.metrics div,
.panel,
.side-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .54));
  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(11, 163, 154, .26), transparent 22rem),
    radial-gradient(circle at 92% 8%, rgba(255, 107, 74, .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(11, 163, 154, .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;
}

.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;
}

.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;
}

.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-preview {
  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);
}

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

.profile-upload-panel {
  margin-top: 22px;
}

.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 {
  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);
}

.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;
}

.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: #303642;
  font-weight: 800;
}

input,
textarea,
select,
.share-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(70, 118, 255, .12);
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkline input {
  width: auto;
}

.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;
}

.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 {
  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 {
  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;
}

.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: 2;
  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(22, 198, 161, .11);
  transform: translateY(-2px);
  box-shadow: 0 24px 70px rgba(22, 198, 161, .16);
}

.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: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;
}

.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(22, 198, 161, .5);
  box-shadow: 0 16px 34px rgba(19, 25, 37, .13);
}

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

.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-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-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);
}

.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;
}

.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(22, 198, 161, .07);
}

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

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.35;
}

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

.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(11, 163, 154, .38), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(82, 124, 255, .18), transparent 24rem),
    var(--capturio-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(11, 163, 154, .42), transparent 62%),
    conic-gradient(from 80deg, rgba(11, 163, 154, .46), rgba(255, 255, 255, .08), rgba(31, 41, 51, 0), rgba(11, 163, 154, .46));
  animation: qrAmbientOne 18s ease-in-out infinite alternate;
}

.qr-marketing-page::after {
  right: -20vw;
  bottom: -22vw;
  background:
    radial-gradient(circle, rgba(11, 163, 154, .2), transparent 64%),
    conic-gradient(from 220deg, rgba(255, 255, 255, .1), rgba(11, 163, 154, .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(11, 163, 154, .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, #ff6b4a));
  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;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(18, 19, 24, .86), rgba(18, 19, 24, .42)),
    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='%23101219'/%3E%3Cpath fill='%2316c6a1' opacity='.32' d='M0 650 260 540l270 70 260-210 220 130 390-300v670H0z'/%3E%3Cpath fill='%23ff6b4a' opacity='.24' d='M0 780 330 610l300 70 220-120 260 70 290-160v430H0z'/%3E%3C/svg%3E");
  background-size: cover;
}

.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-status {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.public-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 10%, rgba(22, 198, 161, .22), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(255, 107, 74, .18), transparent 26rem),
    linear-gradient(180deg, #0b0d12 0%, #121620 42%, #08090d 100%);
  color: #f7f8fb;
}

.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: rgba(8, 11, 16, .62);
  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(11, 163, 154, .34), transparent 18rem),
    radial-gradient(circle at 92% 12%, rgba(255, 107, 74, .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(11, 163, 154, .62), rgba(70, 118, 255, .4), rgba(255, 107, 74, .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(255, 107, 74, .58), rgba(11, 163, 154, .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: #0BA39A;
}

.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(11, 163, 154, .2), transparent, rgba(255, 107, 74, .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(11, 163, 154, .34), transparent 22rem),
    radial-gradient(circle at 88% 12%, rgba(255, 107, 74, .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(11, 163, 154, .72), rgba(70, 118, 255, .44), rgba(255, 107, 74, .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(255, 107, 74, .62), rgba(11, 163, 154, .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(11, 163, 154, .32);
  background: rgba(255, 255, 255, .09);
}

.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);
}

.public-brand {
  color: #fff;
  font-weight: 950;
}

.public-brand-logo {
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}

.public-footer-logo {
  max-width: 170px;
  max-height: 42px;
  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: rgba(8, 11, 16, .86);
}

.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: 68vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(135deg, #171a22, #0b0d12 62%),
    linear-gradient(45deg, rgba(22, 198, 161, .38), rgba(255, 107, 74, .28));
}

.public-hero.no-cover {
  min-height: 42vh;
}

.public-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(15, 17, 23, .08) 0%, rgba(15, 17, 23, .38) 48%, rgba(15, 17, 23, .9) 84%, #0b0d12 100%),
    linear-gradient(90deg, rgba(15, 17, 23, .72), rgba(15, 17, 23, .08));
}

.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(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

.public-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 7.6rem);
  line-height: .9;
  letter-spacing: 0;
}

.public-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
}

.public-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, .72);
}

.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-public-hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(11, 163, 154, .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, .08), rgba(8, 11, 16, .48) 58%, #0b0d12),
    linear-gradient(90deg, rgba(8, 11, 16, .72), rgba(8, 11, 16, .1));
  content: "";
}

.profile-public-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  filter: saturate(1.05);
}

.profile-public-hero .public-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 92px;
}

.profile-public-avatar {
  display: grid;
  place-items: center;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  font-size: 4rem;
  font-weight: 950;
}

.profile-public-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .92;
}

.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(300px, 1fr));
  gap: 20px;
}

.profile-photo-public-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .25);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.profile-photo-public-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 30px 78px rgba(0, 0, 0, .34);
}

.profile-photo-enlarge,
.profile-photo-public-card > img {
  display: block;
}

.profile-photo-enlarge > img,
.profile-photo-public-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.profile-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  padding: 28px;
}

.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;
  gap: 14px;
  max-width: min(1200px, 94vw);
  max-height: 92vh;
}

.profile-lightbox-shell img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .42);
}

.profile-lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  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;
}

.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 {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;
}

.profile-like-button span {
  margin-left: 6px;
}

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

.profile-comments p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.profile-comment-form {
  display: grid;
  gap: 8px;
}

.profile-follow-form {
  margin-top: 18px;
}

.photographer-search-panel {
  margin-bottom: 20px;
}

.photographer-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.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;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.notification-list 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));
}

.notification-list span,
.notification-list time {
  color: var(--muted);
  font-weight: 750;
}

.photographer-results {
  display: grid;
  gap: 18px;
}

.photographer-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: var(--shadow);
}

.photographer-card-media {
  display: block;
  min-height: 220px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--ui-brand, var(--brand)) 30%, transparent), transparent 14rem),
    linear-gradient(135deg, #1f2933, #0a0e14);
}

.photographer-card-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.photographer-card-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.photographer-card-body h2 {
  margin: 0;
}

.photographer-card-body p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.photographer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photographer-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 850;
}

.photographer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.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;
}

.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 {
  color: #ff6f86;
}

.public-downloads a.flag-yellow {
  color: #ffd86a;
}

.public-downloads a.flag-green {
  color: #44d68a;
}

.public-downloads a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .18);
}

.public-main {
  width: min(1320px, calc(100% - 24px));
  margin: 34px auto 80px;
  position: relative;
  z-index: 3;
}

.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(22, 198, 161, .2), rgba(255, 107, 74, .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-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(23, 26, 34, .92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
  animation: surfaceIn .38s ease both;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.public-photo:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.public-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, .06);
}

.public-photo-link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
}

.public-photo-link img {
  display: block;
  transition: transform .24s ease, filter .24s ease;
}

.public-photo-link:hover img {
  transform: scale(1.025);
  filter: brightness(1.05);
}

.zip-toggle-button {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  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 {
  border-color: color-mix(in srgb, var(--brand) 66%, white);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .36), 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent);
}

.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;
}

.public-photo.selected {
  outline: 3px solid var(--brand);
  outline-offset: -3px;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.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);
}

.comment-count-link {
  display: inline-flex;
  margin: 0 10px 12px;
  color: rgba(255, 255, 255, .72);
  font-weight: 850;
}

.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;
}

.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-radius: 8px;
  background: 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: #fff;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.gallery-feedback form {
  display: grid;
  gap: 10px;
}

.gallery-feedback input,
.gallery-feedback textarea {
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.public-empty {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: 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;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.public-empty p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.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 {
  display: grid;
  place-items: center;
  min-height: min(78vh, 820px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.photo-stage img {
  max-height: min(74vh, 780px);
  width: auto;
  border-radius: 6px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

.photo-detail-panel {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: 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 0 8px;
  overflow-wrap: anywhere;
}

.photo-detail-panel .eyebrow {
  color: var(--ui-brand, var(--brand));
}

.detail-actions {
  padding: 12px 0 18px;
}

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

.detail-comments h2 {
  margin: 0;
}

.detail-comments p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.detail-comments form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.detail-comments input,
.detail-comments textarea {
  color: #fff;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.qr-card {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-card img {
  width: 100%;
  border-radius: 8px;
}

.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 {
  max-width: 860px;
}

.settings-layout + .settings-layout,
.settings-layout .panel + .panel {
  margin-top: 18px;
}

.settings-layout h2 {
  margin: 0 0 8px;
}

.color-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.color-settings-grid label {
  min-height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
}

.color-settings-grid input[type="color"] {
  width: 100%;
  height: 46px;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}

.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 input,
.theme-dark textarea,
.theme-dark select,
.theme-dark .share-input {
  color: var(--ink);
  border-color: var(--line);
  background: #10141d;
}

.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='%2316c6a1' opacity='.24' d='M0 650 260 540l270 70 260-210 220 130 390-300v670H0z'/%3E%3Cpath fill='%23ff6b4a' 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 input,
  .theme-auto textarea,
  .theme-auto select,
  .theme-auto .share-input {
    color: var(--ink);
    border-color: var(--line);
    background: #10141d;
  }

  .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='%2316c6a1' opacity='.24' d='M0 650 260 540l270 70 260-210 220 130 390-300v670H0z'/%3E%3Cpath fill='%23ff6b4a' 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 {
    transform: translateX(-105%);
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    left: auto;
    right: 18px;
    transform: none;
  }

  .sidebar-toggle:hover {
    transform: scale(1.04);
  }

  .sidebar-collapsed .sidebar {
    width: 292px;
    padding: 22px 18px;
  }

  .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 {
    padding: 0 10px;
    justify-content: space-between;
  }

  .sidebar-collapsed .theme-switch i {
    left: 8px;
    transform: none;
  }

  .sidebar-collapsed .theme-switch.is-dark i {
    left: calc(100% - 38px);
    transform: none;
  }

  .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,
  .photographer-card,
  .photographer-search-form,
  .landing-hero,
  .landing-showcase,
  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .marketing-layout {
    grid-template-columns: 1fr;
  }

  .super-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .profile-public-hero .public-hero-content {
    grid-template-columns: 1fr;
  }

  .profile-public-avatar {
    width: 118px;
    height: 118px;
    font-size: 3rem;
  }

  .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) {
  .page {
    width: min(100% - 20px, 1180px);
    margin-top: 18px;
  }

  .color-settings-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: clamp(36px, 5vw, 64px);
  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;
}
