@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Work+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --brand-logo-width: clamp(140px, 18vw, 190px);
  --brand-logo-top: 18px;
  --brand-logo-left: 24px;
  --studio-page-offset: 100px;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-low: #ffffff;
  --surface-high: #ffffff;
  --line: rgba(0, 0, 0, 0.18);
  --line-soft: rgba(0, 0, 0, 0.1);
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.72);
  --muted-soft: rgba(0, 0, 0, 0.56);
  --accent: #000000;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --template-bg: #ffffff;
  --template-bg-rgb: 255, 255, 255;
  --template-bg-strong: rgba(255, 255, 255, 0.92);
  --template-bg-soft: rgba(255, 255, 255, 0.62);
  --template-accent: #000000;
  --template-accent-rgb: 0, 0, 0;
  --template-on-accent: #ffffff;
  --template-accent-muted: rgba(0, 0, 0, 0.72);
  --template-accent-soft: rgba(0, 0, 0, 0.1);
  --template-accent-line: rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Work Sans", sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

button:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

.screen.active {
  display: block;
}

.screen-hud {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  pointer-events: none;
}

.hud-top {
  top: 0;
  padding: var(--brand-logo-top) var(--brand-logo-left);
}

.hud-bottom {
  bottom: 0;
  padding: 16px 24px;
}

.brand-lockup,
.hud-label,
.hud-value,
.eyebrow-meta,
.side-subtitle,
.link-instruction,
.status-line,
.slide-meta-line,
.slide-counter-label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.brand-lockup {
  line-height: 0;
}

.brand-lockup-logo {
  display: block;
  width: var(--brand-logo-width);
  height: auto;
  max-width: 100%;
}

.panel-logo {
  display: block;
  width: var(--brand-logo-width);
  height: auto;
  max-width: 100%;
}

.panel-favicon {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.icon-mask {
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.icon-settings {
  mask-image: url("/assets/icons/Settings.svg?v=20260425a");
  -webkit-mask-image: url("/assets/icons/Settings.svg?v=20260425a");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.icon-close {
  mask-image: url("/assets/icons/Close.svg?v=20260425a");
  -webkit-mask-image: url("/assets/icons/Close.svg?v=20260425a");
}

.icon-arrow-up {
  mask-image: url("/assets/icons/Arrow-up.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Arrow-up.svg?v=20260424b");
}

.icon-arrow-left {
  mask-image: url("/assets/icons/Arrow-left.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Arrow-left.svg?v=20260424b");
}

.icon-arrow-right {
  mask-image: url("/assets/icons/Arrow-right.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Arrow-right.svg?v=20260424b");
}

.icon-share {
  mask-image: url("/assets/icons/Share.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Share.svg?v=20260424b");
}

.icon-download {
  mask-image: url("/assets/icons/Download.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Download.svg?v=20260424b");
}

.icon-play {
  mask-image: url("/assets/icons/Play.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Play.svg?v=20260424b");
}

.icon-pause {
  mask-image: url("/assets/icons/Pause.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Pause.svg?v=20260424b");
}

.icon-copy {
  mask-image: url("/assets/icons/Copy.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Copy.svg?v=20260424b");
}

.icon-edit {
  mask-image: url("/assets/icons/Edit.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Edit.svg?v=20260424b");
}

.icon-delete {
  mask-image: url("/assets/icons/Delete.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Delete.svg?v=20260424b");
}

.icon-fullscreen {
  mask-image: url("/assets/icons/Full-screen.svg?v=20260426a");
  -webkit-mask-image: url("/assets/icons/Full-screen.svg?v=20260426a");
}

.icon-heart-empty {
  mask-image: url("/assets/icons/Heart-empty.svg?v=20260426a");
  -webkit-mask-image: url("/assets/icons/Heart-empty.svg?v=20260426a");
}

.icon-heart-selected {
  mask-image: url("/assets/icons/Heart-selected.svg?v=20260426a");
  -webkit-mask-image: url("/assets/icons/Heart-selected.svg?v=20260426a");
}

.icon-hamburger {
  mask-image: url("/assets/icons/Hamburger.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Hamburger.svg?v=20260424b");
}

.public-page-shell:not(.public-page-brand-ready) .cover-logo-link,
.public-page-shell:not(.public-page-brand-ready) .panel-favicon,
.public-page-shell:not(.public-page-brand-ready) .gallery-error-logo {
  opacity: 0;
}

.brand-lockup {
  font-family: "Work Sans", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.hud-label,
.hud-value,
.side-subtitle,
.link-instruction,
.status-line,
.slide-meta-line,
.slide-counter-label,
.eyebrow-meta {
  font-size: 0.72rem;
}

.hud-value,
.link-instruction,
.status-line,
.slide-meta-line {
  color: var(--muted);
}

.hud-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 24px;
  border-right: 1px solid var(--line-soft);
}

.hud-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.hud-label {
  color: var(--muted-soft);
}

.screen-link {
  position: relative;
}

.link-stage {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 22px;
  padding: 120px 24px;
}

.link-form {
  width: min(750px, calc(100vw - 48px));
  display: grid;
  gap: 12px;
}

.qr-shell {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.pairing-qr {
  width: min(280px, 50vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ffffff;
  padding: 14px;
  border: 1px solid var(--line);
}

.pairing-copy {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.pairing-code-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
}

.pairing-link {
  margin: 0;
  max-width: min(720px, calc(100vw - 80px));
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: center;
  overflow-wrap: anywhere;
}

.direct-link-form {
  margin-top: 4px;
}

.direct-link-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
}

.direct-link-submit {
  display: inline-grid;
  place-items: center;
  align-self: stretch;
  padding: 12px;
  background: #000000;
  color: #ffffff;
}

.direct-link-submit .icon-mask {
  width: 24px;
  height: 24px;
}

.link-submit-button {
  width: 100%;
  margin-top: 4px;
}

.text-link-button {
  justify-self: center;
  padding: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.secondary-text-link {
  color: var(--muted);
}

.link-form input {
  width: 100%;
  padding: 26px 30px 24px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Work Sans", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  outline: none;
}

.link-form input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.link-form input:focus {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.link-instruction,
.status-line {
  width: min(750px, calc(100vw - 48px));
  justify-self: center;
  text-align: center;
}

.link-instruction,
.status-line {
  margin-left: 2px;
}

.link-create-code-cta {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.link-create-code-cta:hover,
.link-create-code-cta:focus-visible {
  color: var(--accent);
}

.loading-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 8px;
  width: min(560px, 100vw);
  margin: 0;
  padding: 0;
  text-align: left;
  color: rgba(var(--template-bg-rgb), 0.8);
  opacity: 1;
  transition: opacity 1000ms ease;
}

.loading-percent {
  font-size: clamp(4.2rem, 10vw, 8.6rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.loading-message {
  max-width: 24ch;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gallery-screen.loading {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.gallery-screen.loading .screen-hud,
.gallery-screen.loading .workspace-side {
  display: none;
}

.gallery-screen.loading .scroll-top-button {
  display: none !important;
}

.gallery-screen.loading .workspace-main > :not(.loading-indicator):not(.workspace-stage) {
  display: none;
}

.gallery-screen.loading .workspace-main {
  min-height: 100vh;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.gallery-screen.loading .workspace-stage {
  display: block;
  min-height: 100vh;
  height: 100vh;
  height: 100svh;
}

.gallery-screen.loading .workspace-stage > :not(.cover-photo) {
  display: none;
}

.gallery-screen.loading .empty-sequence {
  display: none;
}

.gallery-screen.loading-fading .loading-indicator {
  opacity: 0;
}

.gallery-screen.loading .loading-indicator {
  position: fixed;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100vw - 48px));
}

.gallery-error-state {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.gallery-error-logo {
  width: min(320px, 44vw);
  max-width: 100%;
  height: auto;
}

.gallery-error-message {
  margin: 0;
  color: rgba(var(--template-accent-rgb), 0.46);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.gallery-screen.error-state .workspace-main > :not(.gallery-error-state) {
  display: none;
}

.gallery-screen.error-state .workspace-side {
  display: none !important;
}

@keyframes galleryReveal {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-screen.revealed .workspace-stage > :not(.cover-photo),
.gallery-screen.revealed .screen-hud,
.gallery-screen.revealed .workspace-side {
  animation: galleryReveal 560ms ease-out both;
}

.gallery-screen.revealed .workspace-stage,
.gallery-screen.revealed .cover-photo {
  will-change: opacity, transform;
}

.workspace-screen {
  display: none;
}

.workspace-screen.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.gallery-screen.active {
  grid-template-columns: 1fr;
}

.gallery-screen.panel-open.active {
  grid-template-columns: 1fr;
}

.gallery-screen .workspace-side {
  display: none;
}

.gallery-screen.panel-open .workspace-side {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, calc(100vw - 24px));
  height: 100vh;
  z-index: 40;
  background: var(--template-bg);
  border-left: 1px solid var(--template-accent-soft);
  box-shadow: -24px 0 56px rgba(var(--template-accent-rgb), 0.12);
}

.workspace-main {
  position: relative;
  min-height: 100vh;
  background: var(--template-bg);
}

.workspace-side {
  border-left: 1px solid var(--template-accent-soft);
  background: var(--template-bg);
}

.workspace-stage {
  min-height: 100vh;
  padding: 112px 48px 92px;
  display: grid;
  align-content: start;
  gap: 48px;
}

.workspace-copy {
  max-width: 640px;
}

.folder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 0;
  padding-left: 40px;
}

.folder-tabs-shell {
  width: 100%;
  padding-top: 6px;
}

.folder-tabs-sticky-shell {
  display: none;
}

.folder-tab {
  padding: 0 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--template-accent-muted);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  text-decoration: none;
  font-weight: 400;
}

.folder-tab.selected,
.folder-tab:hover,
.folder-tab:focus-visible {
  color: var(--template-accent);
  text-decoration: underline;
  text-underline-offset: 7px;
  font-weight: 700;
}

.display-title {
  margin: 10px 0 16px;
  font-family: "Work Sans", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.workspace-subtitle {
  max-width: 520px;
  color: var(--template-accent-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.folder-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.folder-sequence::-webkit-scrollbar {
  width: 8px;
}

.folder-sequence::-webkit-scrollbar-thumb {
  background: var(--template-bg);
}

.folder-choice {
  width: 100%;
  min-height: 170px;
  padding: 20px 22px;
  border: 1px solid transparent;
  border-left: 1px solid var(--template-accent-line);
  background: var(--template-bg);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.folder-choice:hover,
.folder-choice:focus-visible,
.folder-choice.selected {
  background: var(--template-bg);
  border-color: rgba(var(--template-accent-rgb), 0.5);
  transform: translateY(-4px);
}

.folder-choice-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 10px;
  font-family: "Work Sans", sans-serif;
  font-size: 1.05rem;
  flex-direction: column;
}

.folder-choice-title span {
  color: var(--template-accent-muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.folder-choice-path {
  color: var(--template-accent-muted);
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-sequence {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: var(--template-bg);
  color: var(--template-accent-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.84rem;
}

.side-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 28px 28px;
}

.slideshow-settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.side-title {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  font-size: 1.1rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.side-subtitle {
  margin: -8px 0 0;
  color: var(--template-accent-muted);
}

.side-group {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.side-group-compact {
  gap: 8px;
}

.side-row,
.toggle-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.side-key {
  color: var(--template-accent-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.side-value {
  text-align: right;
  font-size: 0.88rem;
  color: var(--template-accent);
  overflow-wrap: anywhere;
}

.side-value-path {
  max-width: 160px;
  overflow-wrap: anywhere;
}

.hud-link {
  color: var(--template-accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.hud-link:hover,
.hud-link:focus-visible,
.side-value-path:hover,
.side-value-path:focus-visible {
  color: var(--template-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.primary-cta {
  margin-top: auto;
  width: 100%;
  padding: 18px 20px;
  background: var(--template-accent);
  color: var(--template-on-accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.82rem;
}

.gallery-grid {
  position: relative;
  width: 100%;
  min-height: 1px;
}

.scroll-top-button {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--template-accent-line);
  background: rgba(var(--template-bg-rgb), 0.92);
  color: var(--template-accent);
  box-shadow: 0 10px 24px rgba(var(--template-accent-rgb), 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scroll-top-button .icon-mask {
  width: 20px;
  height: 20px;
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background: rgba(var(--template-bg-rgb), 0.98);
  border-color: var(--template-accent-line);
}

.cover-photo {
  position: relative;
  width: 100%;
  height: 1000px;
  overflow: hidden;
}

.cover-photo.has-loading-background {
  background-image: var(--loading-cover-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-photo.has-cover-image {
  background-image: var(--cover-image);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-photo.has-loading-background .empty-sequence,
.cover-photo.has-cover-image .empty-sequence {
  display: none;
}

.gallery-screen.loading.has-loading-cover .cover-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  background-image:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.5));
  transition: opacity 1000ms ease;
}

.gallery-screen.loading-fading.has-loading-cover .cover-photo::before,
.gallery-screen.revealed.has-loading-cover .cover-photo::before {
  opacity: 0;
}

.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--template-bg-rgb), 0.88) 0%, var(--template-bg-soft) 26%, rgba(var(--template-bg-rgb), 0) 100%);
}

.cover-logo-link {
  position: absolute;
  top: calc(var(--brand-logo-top) + (var(--cover-header-height) / 2));
  left: var(--brand-logo-left);
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: var(--cover-header-height);
  width: var(--brand-logo-width);
  height: auto;
  max-width: calc(100% - (var(--brand-logo-left) * 2));
  overflow: visible;
  pointer-events: auto;
  transform: translateY(-50%);
}

.cover-logo-link,
.cover-settings-button {
  --cover-header-height: clamp(24px, calc(var(--brand-logo-width) * 0.18), 40px);
  --cover-header-center: calc(var(--brand-logo-top) + (var(--cover-header-height) / 2));
}

.cover-logo {
  display: block;
  width: var(--brand-logo-width);
  height: auto;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
  max-width: 100%;
}

.cover-story-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 40px;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  mix-blend-mode: color-dodge;
  pointer-events: none;
}

.cover-date-range,
.cover-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  mix-blend-mode: color-dodge;
}

.cover-date-range {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cover-tagline {
  font-family: "Great Vibes", cursive;
  font-size: 80px;
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
  font-size: var(--cover-tagline-size, 80px);
}

.gallery-screen .hud-top {
  justify-content: flex-start;
  padding: var(--brand-logo-top) var(--brand-logo-left);
}

.gallery-screen .workspace-stage {
  --gallery-stage-inline-pad: 0px;
  padding: 0;
  gap: 36px;
}

.gallery-screen .cover-photo {
  width: 100%;
  margin-inline: 0;
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  background: var(--template-bg);
  text-align: left;
  overflow: hidden;
  height: auto;
  transition: transform 160ms ease, background 160ms ease;
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(var(--template-accent-rgb), 0.06) 0%,
    rgba(var(--template-accent-rgb), 0.1) 50%,
    rgba(var(--template-accent-rgb), 0.06) 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
}

.photo-card.is-loading::before {
  opacity: 1;
  animation: gridSkeletonPulse 1.2s linear infinite;
}

.photo-card-cover {
  cursor: default;
  width: 100%;
}

.cover-photo .photo-card-cover {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.photo-card:hover {
  transform: none;
  background: var(--template-bg);
}

.photo-card:focus-visible {
  transform: none;
  background: var(--template-bg);
  outline: none;
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--template-bg);
  opacity: 1;
  transition: opacity 180ms ease;
}

.photo-card.is-loading img {
  opacity: 0;
}

.photo-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--template-bg);
}

.photo-card-cover {
  background: var(--template-bg);
}

.photo-card-cover:hover {
  transform: none;
  background: var(--template-bg);
}

.cover-photo .photo-card {
  width: 100%;
  height: 100%;
}

.photo-card-cover::before,
.photo-card-cover.is-loading::before {
  display: none;
}

.cover-settings-button {
  position: absolute;
  top: var(--cover-header-center);
  right: var(--brand-logo-left);
  z-index: 5;
  transform: translateY(-50%);
}

.photo-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px;
  background: linear-gradient(180deg, var(--template-bg-strong) 0%, rgba(var(--template-bg-rgb), 0) 46%);
  pointer-events: none;
}

.photo-like-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  box-shadow: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.photo-like-badge-icon {
  width: 18px;
  height: 18px;
  display: block;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.photo-like-badge-icon.icon-heart-selected,
.slideshow-like-icon.icon-heart-selected {
  background-color: #e53935;
}

.photo-like-badge-count {
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 0 8px rgba(0, 0, 0, 0.78);
}

@keyframes gridSkeletonPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.photo-card-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--template-on-accent);
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: none;
  text-shadow: 0 2px 12px rgba(var(--template-accent-rgb), 0.26);
}

.icon-action {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--template-accent);
  border: 1px solid transparent;
  background: transparent;
  font-size: 1.2rem;
}

.icon-action:hover {
  border-color: var(--template-accent-line);
}

#toggle-settings,
#toggle-gallery-settings,
#dock-settings {
  font-size: 1.7rem;
}

.gallery-settings-button {
  width: auto;
  height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(var(--template-accent-rgb), 0.72);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.gallery-settings-button:hover,
.gallery-settings-button:focus-visible {
  color: rgba(var(--template-accent-rgb), 0.88);
  background: transparent;
  border-color: transparent;
}

.gallery-settings-icon {
  width: 18px;
  height: 18px;
  display: none;
  flex: 0 0 18px;
  color: inherit;
}

.slideshow-settings-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--template-accent);
  opacity: 1;
}

.gallery-settings-text {
  white-space: nowrap;
  font-size: 14px;
  color: rgba(var(--template-accent-rgb), 0.72);
  font-weight: 700;
}

@media (min-width: 901px) {
  .gallery-settings-icon {
    display: none !important;
  }

  .gallery-settings-text {
    display: inline;
  }
}

.icon-action:focus-visible,
.slideshow-nav:focus-visible,
.counter-button:focus-visible,
.primary-cta:focus-visible {
  border-color: var(--accent);
  background: var(--template-bg);
}

.icon-action-close-panel {
  width: auto;
  height: auto;
  padding: 0;
  color: var(--template-accent);
  border: 0;
  background: transparent;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.icon-action-close-panel:hover,
.icon-action-close-panel:focus-visible {
  color: var(--template-accent);
  border-color: transparent;
  background: transparent;
}

.hud-actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

input[type="checkbox"] {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 1px solid var(--template-accent-line);
  background: var(--template-bg);
}

input[type="checkbox"]:checked {
  background: var(--template-accent);
}

.counter-control {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}

.counter-button {
  height: 52px;
  border: 1px solid var(--template-accent-line);
  background: var(--template-bg);
  color: var(--template-accent);
  font-family: "Work Sans", sans-serif;
  font-size: 1.5rem;
}

.counter-value {
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--template-accent-soft);
  background: var(--template-bg);
  color: var(--template-accent);
  font-family: "Work Sans", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--template-bg);
}

.slideshow-frame {
  position: relative;
  min-height: 100vh;
  display: block;
  padding: 0;
  overflow: hidden;
}

.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  filter: saturate(0.96) contrast(1.02);
  background: var(--template-bg);
}

.slide-image-full {
  z-index: 2;
  opacity: 0;
  transition: opacity 280ms ease;
}

.slide-image-full.loaded {
  opacity: 1;
}

.slide-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--template-bg);
}

.slide-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(var(--template-accent-rgb), 0.32);
  color: var(--template-on-accent);
}

.slide-video-play-icon {
  width: 36px;
  height: 36px;
  display: block;
  color: var(--template-on-accent);
}

.slide-video-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.slide-video-toggle {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--template-accent);
  background: var(--template-bg);
}

.slide-video-toggle-icon {
  width: 16px;
  height: 16px;
  display: block;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.slide-video-toggle-icon.is-play {
  mask-image: url("/assets/icons/Play.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Play.svg?v=20260424b");
}

.slide-video-toggle-icon.is-pause {
  mask-image: url("/assets/icons/Pause.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Pause.svg?v=20260424b");
}

.slide-video-timeline {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  background: rgba(var(--template-accent-rgb), 0.28);
  overflow: hidden;
  cursor: pointer;
}

.slide-video-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--template-accent);
}

.slide-video-tooltip {
  position: absolute;
  bottom: 10px;
  left: 0;
  transform: translateX(-50%);
  padding: 6px 8px;
  background: var(--template-bg);
  color: var(--template-accent);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.slideshow-loader {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(var(--template-accent-rgb), 0.16);
  border-top-color: var(--template-accent);
  animation: slideshowSpin 0.8s linear infinite;
}

@keyframes slideshowSpin {
  to {
    transform: rotate(360deg);
  }
}

.slideshow-toast {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 1px solid var(--template-accent-line);
  background: var(--template-bg);
  color: var(--template-accent-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.slideshow-close-mobile {
  display: none;
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 6;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--template-accent);
  place-items: center;
}

.slideshow-close-mobile .icon-mask {
  width: 28px;
  height: 28px;
}

.slideshow-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.slideshow-action {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  background: var(--template-bg);
  color: var(--template-accent);
  box-shadow: 0 10px 24px rgba(var(--template-accent-rgb), 0.12);
}

.slideshow-like-action {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.slideshow-like-action:hover,
.slideshow-like-action:focus-visible {
  background: transparent;
}

.slideshow-like-icon {
  width: 22px;
  height: 22px;
  display: block;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.slideshow-like-count {
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.92),
    0 0 8px rgba(0, 0, 0, 0.78);
}

.slideshow-action-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.slideshow-action-image {
  display: block;
}

.slideshow-settings-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.slideshow-playback-icon {
  width: 18px;
  height: 18px;
  display: block;
  background-color: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.slideshow-playback-icon.is-play {
  mask-image: url("/assets/icons/Play.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Play.svg?v=20260424b");
}

.slideshow-playback-icon.is-pause {
  mask-image: url("/assets/icons/Pause.svg?v=20260424b");
  -webkit-mask-image: url("/assets/icons/Pause.svg?v=20260424b");
}

.slideshow-action:hover,
.slideshow-action:focus-visible {
  background: var(--template-bg);
  border-color: transparent;
}

.slideshow-close-mobile,
.slideshow-actions,
.slideshow-nav,
.slideshow-toast,
.slide-video-overlay,
.slide-video-controls {
  transition: opacity 160ms ease;
}

.slideshow.slideshow-ui-hidden .slideshow-close-mobile,
.slideshow.slideshow-ui-hidden .slideshow-actions,
.slideshow.slideshow-ui-hidden .slideshow-nav,
.slideshow.slideshow-ui-hidden .slideshow-toast,
.slideshow.slideshow-ui-hidden .slide-video-overlay,
.slideshow.slideshow-ui-hidden .slide-video-controls,
.slideshow.slideshow-fullscreen .slideshow-close-mobile,
.slideshow.slideshow-fullscreen .slideshow-actions,
.slideshow.slideshow-fullscreen .slideshow-nav,
.slideshow.slideshow-fullscreen .slideshow-toast,
.slideshow.slideshow-fullscreen .slide-video-overlay,
.slideshow.slideshow-fullscreen .slide-video-controls {
  opacity: 0;
  pointer-events: none;
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--template-accent-line);
  background: var(--template-bg);
  color: var(--template-accent);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.slideshow-nav-icon {
  width: 24px;
  height: 24px;
}

.slideshow-nav-prev {
  left: 20px;
}

.slideshow-nav-next {
  right: 20px;
}

.slideshow-nav:hover,
.slideshow-nav:focus-visible {
  border-color: var(--template-accent);
  background: var(--template-bg);
}

@media (hover: none) {
  .photo-card:hover,
  .folder-choice:hover,
  .icon-action:hover {
    transform: none;
    background: initial;
    border-color: transparent;
  }

  .slideshow-nav:hover {
    transform: translateY(-50%);
    background: var(--template-bg);
    border-color: var(--template-accent-line);
  }
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .workspace-screen.active {
    grid-template-columns: 1fr;
  }

  .gallery-screen.panel-open.active {
    grid-template-columns: 1fr;
  }

  .workspace-stage {
    min-height: auto;
    padding: 96px 28px 56px;
  }

  .gallery-screen .workspace-stage {
    padding: 0;
    --gallery-stage-inline-pad: 0px;
  }

  .workspace-side {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .side-panel {
    min-height: auto;
  }

  .primary-cta {
    margin-top: 0;
  }

  .gallery-grid {
    min-height: 1px;
  }

  .folder-tabs-shell {
    padding: 14px 18px 10px;
  }

  .folder-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .folder-tabs::-webkit-scrollbar {
    display: none;
  }

  .folder-tab {
    flex: 0 0 auto;
  }

  .folder-tabs-sticky-shell {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    z-index: 12;
    display: block;
    height: 32px;
    padding: 0 10px;
    background: rgba(var(--template-bg-rgb), 0.64);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 6px;
    overflow: hidden;
  }

  .folder-tabs-sticky-shell.hidden {
    display: none !important;
  }

  .folder-tabs-sticky {
    width: 100%;
    height: 100%;
    align-items: center;
    gap: 16px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .folder-tabs-sticky::-webkit-scrollbar {
    display: none;
  }

  .gallery-screen .cover-photo {
    height: 100vh;
    height: 100svh;
  }

  .cover-story-copy {
    left: 28px;
    right: 28px;
    top: auto;
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    transform: none;
    gap: 10px;
  }

  .cover-date-range {
    font-size: clamp(12px, 1.7vw, 14px);
    line-height: 1.2;
  }

  .cover-tagline {
    font-size: clamp(48px, 8vw, 72px);
    line-height: 0.98;
  }

  .cover-photo .photo-card-cover {
    display: block;
  }

  .photo-card-cover img {
    object-position: center center;
  }
}

@media (max-width: 900px) {
  html,
  body,
  .app-shell,
  .screen,
  .workspace-main,
  .workspace-stage {
    overflow-x: clip;
  }

  .hud-top,
  .hud-bottom {
    position: static;
    padding: 18px;
  }

  .screen-link.active {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
  }

  .workspace-main {
    min-height: auto;
  }

  .workspace-stage {
    min-height: auto;
    padding: 28px 18px 36px;
    gap: 28px;
  }

  .gallery-screen .workspace-stage {
    padding: 0;
    --gallery-stage-inline-pad: 0px;
  }

  .gallery-screen .cover-photo {
    height: 100vh;
    height: 100svh;
    background-image: none;
  }

  .cover-photo .photo-card-cover {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .cover-photo .photo-card-cover img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
    background: transparent;
  }

  .cover-story-copy {
    left: 16px;
    right: 16px;
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    display: grid;
    justify-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.94);
    text-align: center;
    mix-blend-mode: normal;
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.42),
      0 8px 28px rgba(0, 0, 0, 0.5);
  }

  .cover-date-range {
    width: 100%;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-align: center;
    mix-blend-mode: normal;
  }

  .cover-tagline {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 32px;
    line-height: 1.05;
    white-space: normal;
    text-align: center;
    mix-blend-mode: normal;
  }

  .cover-photo::after {
    inset: 0;
    height: auto;
    background:
      linear-gradient(180deg, rgba(var(--template-bg-rgb), 0.72) 0%, rgba(var(--template-bg-rgb), 0.08) 18%, rgba(var(--template-bg-rgb), 0) 34%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.12) 18%, rgba(0, 0, 0, 0) 34%);
  }

  .screen-hud {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .brand-lockup {
    flex: 0 1 auto;
  }

  .brand-lockup-logo {
    width: clamp(128px, 34vw, 170px);
  }

  .studio-entry-button {
    flex: 0 0 auto;
  }

  .link-stage {
    min-height: 0;
    padding: 24px 18px 40px;
    align-content: center;
  }

  .hud-stat {
    border-right: 0;
    padding-right: 0;
  }

  .side-panel {
    padding: 24px 18px 20px;
  }

  .folder-tabs-shell {
    padding: 12px 18px 10px;
  }

  .slide-image,
  .slide-image-full,
  .slide-video {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100vh;
    max-height: 100svh;
    transform: translate(-50%, -50%);
    object-fit: contain;
    object-position: center center;
  }

  .gallery-settings-button {
    width: 24px;
    height: 24px;
    gap: 0;
  }

  .slideshow-close-mobile {
    display: inline-grid;
  }

  .gallery-settings-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    flex: 0 0 24px;
  }

  .gallery-settings-text {
    display: none !important;
  }

  .gallery-screen.loading .loading-indicator {
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: min(560px, calc(100vw - 36px));
  }
}

@media (max-width: 720px) {
  .workspace-main,
  .workspace-stage,
  .gallery-screen .workspace-stage,
  .gallery-screen .cover-photo,
  .gallery-grid,
  .folder-tabs-shell,
  .folder-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .link-stage {
    min-height: 0;
    padding: 24px 18px 40px;
    align-content: center;
  }

  .link-form {
    width: 100%;
  }

  .pairing-qr {
    width: min(220px, 72vw);
  }

  .link-form input {
    padding: 20px;
    font-size: 1.1rem;
  }

  .folder-sequence {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    min-height: 1px;
  }

  .folder-tabs-shell {
    margin-top: 0;
    padding: 10px 12px 8px;
    overflow-x: clip;
  }

  .folder-tabs-sticky-shell {
    left: 16px;
    right: 16px;
    padding: 0 8px;
  }

  .folder-tab {
    padding: 10px 14px;
    font-size: 0.7rem;
  }

  .folder-tabs {
    padding-left: 0;
  }

  .folder-tabs-sticky .folder-tab {
    padding: 0 2px 2px;
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
  }

  .slideshow-nav {
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
  }

  .slideshow-action {
    width: 32px;
    height: 32px;
  }

  #enter-slideshow-fullscreen {
    display: none;
  }

  .slide-video-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .slideshow-action-share {
    display: inline-grid;
  }

  .slideshow-nav-prev {
    left: 12px;
  }

  .slideshow-nav-next {
    right: 12px;
  }

  .slideshow-toast {
    bottom: 18px;
    max-width: calc(100vw - 40px);
  }
  .gallery-screen.loading .loading-indicator {
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 88px);
  }

  .scroll-top-button {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

}

@media (min-width: 1101px) {
  .slideshow-action-share {
    display: none;
  }
}

@media (max-height: 820px) {
  body {
    overflow: auto;
  }

  .hud-top,
  .hud-bottom {
    position: static;
    padding: 16px 18px;
  }

  .screen-link.active {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
  }

  .workspace-main {
    min-height: auto;
  }

  .workspace-stage {
    min-height: auto;
    padding-top: 28px;
  }

  .screen-hud {
    gap: 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .link-stage {
    min-height: 0;
    align-content: center;
  }

  .slideshow-toast {
    bottom: 16px;
  }
}

.studio-entry-button {
  pointer-events: auto;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
}

.studio-screen {
  min-height: 100vh;
  background: #ffffff;
}

.cover-logo-link {
  line-height: 0;
}

.studio-floating-actions {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 18px;
}

.studio-floating-action-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.studio-sidebar-toggle,
.studio-sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #000000;
  place-items: center;
}

.studio-sidebar-toggle .icon-mask,
.studio-sidebar-close .icon-mask {
  width: 18px;
  height: 18px;
}

.studio-user-label,
.studio-kicker,
.studio-status,
.studio-empty {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.studio-main {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 0 90px 0;
}

.studio-panel,
.studio-dashboard,
.studio-wizard,
.studio-admin {
  background: #ffffff;
  color: #000000;
}

.studio-panel {
  width: min(720px, 100%);
  display: grid;
  gap: 22px;
}

.studio-auth-panel,
.studio-name-panel {
  min-height: 100vh;
  align-content: center;
  margin: 0 auto;
  padding: calc(72px + var(--studio-page-offset)) 24px 72px;
}

.studio-auth-header {
  display: flex;
  align-items: center;
}

.studio-auth-logo {
  display: block;
  width: min(var(--brand-logo-width), 100%);
  height: auto;
}

.studio-panel h1,
.studio-dashboard h1,
.studio-admin h1,
.studio-panel h2 {
  margin: 0;
  color: #000000;
  font-weight: 700;
  line-height: 1;
}

.studio-panel h1,
.studio-dashboard h1,
.studio-admin h1 {
  font-size: 40px;
  letter-spacing: -0.04em;
}

.studio-panel h2 {
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  letter-spacing: -0.07em;
}

.studio-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  line-height: 1.7;
}

.studio-form,
.wizard-step {
  display: grid;
  gap: 18px;
}

.studio-form input,
.wizard-step input,
.studio-settings-form input {
  width: 100%;
  border: 1px solid #000000;
  border-radius: 0;
  background: #ffffff;
  color: #000000;
  padding: 20px 22px;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.date-range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.date-range-fields label {
  display: grid;
  gap: 10px;
}

.date-range-fields span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.studio-primary-button,
.studio-text-button {
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
}

.studio-primary-button {
  width: fit-content;
  min-width: 220px;
  padding: 18px 24px;
  background: #000000;
  color: #ffffff;
}

.studio-secondary-button {
  width: fit-content;
  min-width: 220px;
  padding: 18px 24px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
}

.studio-primary-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.studio-text-button {
  color: #000000;
  padding: 0;
}

.studio-status {
  min-height: 1.2em;
}

.studio-status.is-error {
  color: rgba(0, 0, 0, 0.78);
}

.studio-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 48px;
  min-height: 100vh;
  align-items: start;
}

.studio-admin {
  width: min(1240px, calc(100vw - 64px));
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 50px;
  margin: 0 auto;
  padding: calc(96px + var(--studio-page-offset)) 0 96px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.admin-tab {
  width: fit-content;
  padding: 0 0 6px;
  color: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-tab.active {
  color: #000000;
  border-bottom: 1px solid #000000;
}

.admin-accounts-list {
  display: grid;
  border-top: 1px solid #000000;
}

.admin-accounts-list.links-mode {
  overflow-x: auto;
}

.admin-account-row {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.5fr 0.9fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  color: #000000;
  font-size: 15px;
  line-height: 1.35;
}

.admin-account-head {
  min-height: 52px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-account-row input {
  width: 22px;
  height: 22px;
}

.admin-link-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 0.7fr) minmax(150px, 0.8fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) auto;
  align-items: center;
  gap: 24px;
  min-width: 980px;
  min-height: 76px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  color: #000000;
  font-size: 15px;
  line-height: 1.35;
}

.admin-link-anchor {
  text-decoration: underline;
}

.admin-link-delete {
  justify-self: start;
}

.admin-link-accordion {
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.admin-link-accordion-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  list-style: none;
  cursor: pointer;
}

.admin-link-accordion-summary::-webkit-details-marker {
  display: none;
}

.admin-link-accordion-title {
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.admin-link-accordion-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.admin-link-accordion-body {
  display: grid;
  gap: 18px;
  padding: 0 16px 18px;
}

.admin-link-accordion-grid {
  display: grid;
  gap: 16px;
}

.admin-link-accordion-field {
  display: grid;
  gap: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.admin-link-accordion-label {
  color: rgba(0, 0, 0, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-approval-notice {
  max-width: 620px;
  margin: -34px 0 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

.studio-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  row-gap: 24px;
  width: 280px;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  padding: var(--brand-logo-top) 24px 32px var(--brand-logo-left);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.studio-sidebar-scrim {
  display: none;
}

.studio-sidebar-close {
  justify-self: start;
}

.studio-sidebar-logo-link {
  display: flex;
  align-items: flex-start;
  width: min(var(--brand-logo-width), 100%);
  min-height: 64px;
  line-height: 0;
}

.studio-sidebar-logo-link.is-empty {
  pointer-events: none;
}

.studio-sidebar-logo {
  display: block;
  width: min(var(--brand-logo-width), 100%);
  max-height: 84px;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

.studio-sidebar-actions {
  display: grid;
  gap: 24px;
  margin-top: 50px;
}

.studio-sidebar-primary-action,
.studio-sidebar-secondary-action {
  width: min(220px, 100%);
  justify-self: start;
}

.studio-sidebar-name {
  margin: 6px 0 0;
  color: rgba(0, 0, 0, 0.46);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
}

.studio-sidebar-name strong {
  color: #000000;
  font-weight: 500;
}

.studio-sidebar-nav {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 40px;
  margin-top: 40px;
}

.studio-sidebar-tab {
  width: fit-content;
  padding: 0 0 6px;
  color: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.studio-sidebar-tab.active {
  color: #000000;
  border-bottom: 1px solid #000000;
}

.studio-sidebar-favicon {
  position: absolute;
  left: var(--brand-logo-left);
  bottom: 32px;
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.studio-dashboard-content {
  grid-column: 2;
  min-width: 0;
  display: grid;
  padding-top: var(--studio-page-offset);
}

.studio-dashboard-section {
  display: none;
  gap: 32px;
}

.studio-dashboard-section.active {
  display: grid;
  row-gap: 50px;
}

.studio-wizard {
  width: min(720px, calc(100vw - 48px));
  min-height: 100vh;
  align-content: center;
  margin: 0 auto;
  padding: calc(72px + var(--studio-page-offset)) 0 72px;
}

.studio-dashboard-head,
.studio-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 24px;
}

.studio-dashboard-head {
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.studio-wizard-head .studio-kicker {
  margin-right: auto;
}

.saved-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: min(1180px, calc(100vw - 360px));
}

.saved-page-card {
  display: grid;
  grid-template-rows: 220px auto;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #ffffff;
}

.saved-page-thumb {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.saved-page-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.saved-page-content {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px 20px 16px;
}

.saved-page-content h2 {
  margin: 0;
  color: #000000;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 600;
}

.saved-page-pairing {
  margin: 0;
  color: #000000;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.saved-page-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}

.saved-page-icon-button {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #000000;
  cursor: pointer;
}

.saved-page-icon-button.danger {
  color: #c90000;
}

.saved-page-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.saved-page-share-button {
  display: none;
}

.studio-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  padding: 14px 16px;
  background: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.studio-settings-form label {
  display: grid;
  gap: 10px;
}

.studio-domain-summary {
  display: grid;
  gap: 18px;
  padding: 8px 0 2px;
}

.studio-domain-title,
.studio-domain-dns-title {
  margin: 0;
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-domain-copy {
  margin: 0;
  color: #000000;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.studio-domain-copy span {
  color: rgba(0, 0, 0, 0.42);
}

.studio-domain-copy strong {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.studio-domain-connect-button {
  margin-top: 2px;
}

.studio-domain-form {
  gap: 28px;
}

.studio-domain-dns-block {
  display: grid;
  gap: 16px;
}

.studio-domain-dns-table {
  display: grid;
  border-top: 1px solid #000000;
}

.studio-domain-dns-row {
  display: grid;
  grid-template-columns: 0.7fr 0.8fr 1.7fr 0.6fr;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 0 0 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  color: #000000;
  font-size: 15px;
  line-height: 1.4;
}

.studio-domain-dns-head {
  min-height: 48px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.studio-settings-form label > span,
.studio-field-row > span {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.studio-field-row {
  display: grid;
  grid-template-columns: 1fr 56px minmax(120px, 190px);
  align-items: center;
  gap: 14px;
}

.studio-field-row input[type="color"] {
  width: 56px;
  height: 56px;
  padding: 0;
  cursor: pointer;
}

.studio-field-row input[type="text"] {
  text-transform: uppercase;
}

.studio-wizard {
  display: grid;
  gap: 28px;
}

.media-picker-list {
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 1px;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.media-picker-row {
  width: 100%;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  color: #000000;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.media-picker-row.selected {
  font-weight: 700;
}

.media-picker-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.media-picker-row img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  background: #ffffff;
}

.media-picker-row span {
  display: grid;
  gap: 6px;
}

.media-picker-row strong {
  font-size: 0.96rem;
}

.media-picker-row small {
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-picker-row em {
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.media-picker-row.selected em {
  color: #000000;
}

.media-picker-folder-row img {
  filter: grayscale(1);
}

.media-picker-back {
  width: fit-content;
  padding: 18px 0;
  color: #000000;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.template-card {
  width: min(460px, 100%);
  display: grid;
  gap: 10px;
  padding: 22px;
  color: #000000;
  text-align: left;
  border: 1px solid #000000;
}

.template-card span {
  font-size: 1.2rem;
  font-weight: 700;
}

.template-card small {
  color: rgba(0, 0, 0, 0.62);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .studio-user-label {
    display: none;
  }

  .studio-sidebar-toggle {
    display: inline-grid;
  }

  .studio-main {
    display: grid;
    justify-items: center;
    row-gap: 18px;
  }

  .studio-floating-actions {
    position: static;
    width: min(100%, 720px);
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 16px 0;
    justify-items: stretch;
    gap: 14px;
  }

  .studio-floating-action-row {
    justify-content: space-between;
    gap: 12px;
  }

  .studio-sidebar-name {
    justify-self: center;
    width: min(100%, 720px);
    max-width: 720px;
    text-align: center;
  }

  .studio-dashboard {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .studio-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.28);
  }

  .studio-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
    width: min(320px, calc(100vw - 48px));
    min-height: 100vh;
    height: 100vh;
    grid-template-rows: auto auto 1fr auto;
    row-gap: 24px;
    padding: 16px;
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 220ms ease;
  }

  .studio-sidebar-close {
    display: inline-grid;
  }

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

  .studio-dashboard:not(.sidebar-open) .studio-sidebar-scrim {
    display: none;
  }

  .studio-sidebar-logo-link {
    min-height: 48px;
  }

  .studio-sidebar-actions {
    margin-top: 24px;
  }

  .studio-sidebar-nav {
    align-content: start;
    gap: 22px;
    margin-top: 24px;
  }

  .studio-sidebar-favicon {
    position: static;
    margin-top: auto;
  }

  .saved-page-share-button {
    display: inline-grid;
  }

  .studio-dashboard-content,
  .studio-admin,
  .studio-wizard {
    width: min(100%, 720px);
    max-width: 100%;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    gap: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-accounts-list.links-mode {
    overflow-x: visible;
  }

  .studio-auth-panel,
  .studio-name-panel {
    width: min(100%, 720px);
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .studio-dashboard-content {
    grid-column: auto;
    padding-top: var(--studio-page-offset);
  }

  .studio-dashboard-head,
  .studio-wizard-head {
    width: 100%;
  }

  .saved-pages-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .studio-main {
    width: 100%;
    padding: 0 0 72px 0;
  }

  .studio-admin {
    padding: 72px 0;
  }

  .admin-account-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .studio-field-row {
    grid-template-columns: 1fr;
  }

  .studio-domain-copy {
    font-size: 16px;
    line-height: 1.5;
  }

  .studio-wizard {
    min-height: 100vh;
  }

  .studio-dashboard-head,
  .studio-wizard-head,
  .date-range-fields {
    display: grid;
  }

  .studio-primary-button {
    width: 100%;
  }

  .studio-secondary-button {
    width: 100%;
  }
}
