:root {
  color-scheme: light;
  --ink: #2a1d28;
  --muted: #6e5f6a;
  --faint: #9c8e98;
  --line: #ebe1d4;
  --line-soft: #f1e9dd;
  --paper: #fbf8f3;
  --paper-2: #f4eee4;
  --panel: #ffffff;
  --brand: #8a2f3d;
  --brand-dark: #661f2a;
  --brand-soft: #b65a66;
  --blush: #ebcbc5;
  --blush-2: #f6e4df;
  --danger: #b42318;
  --gold: #be9a54;
  --sage: #7e8c6e;
  --shadow-sm: 0 4px 18px -10px rgba(42, 29, 40, 0.28);
  --shadow: 0 24px 60px -30px rgba(42, 29, 40, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(60vw 40vh at 85% -5%, rgba(235, 203, 197, 0.5), transparent 70%),
    radial-gradient(50vw 40vh at -10% 20%, rgba(190, 154, 84, 0.14), transparent 70%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(251, 248, 243, 0.78);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--brand-soft));
  box-shadow: var(--shadow-sm);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 4px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  left: 14px;
  top: 14px;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 0 0 3px var(--brand);
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.brand-word span {
  color: var(--brand);
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.nav-user-email {
  max-width: min(260px, 34vw);
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  max-width: min(420px, 46vw);
  padding: 5px 6px 5px 10px;
  border: 1px solid rgba(42, 29, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.nav-account .nav-user-email {
  max-width: min(230px, 26vw);
}

.nav-logout-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.nav-logout-button:hover,
.nav-logout-button:focus-visible {
  background: var(--blush-2);
  color: var(--brand);
}

.nav-logout-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page:has(.guest-app) {
  width: min(1120px, calc(100% - 24px));
  padding-top: 12px;
}

.toolbar,
.manage-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.toolbar-action {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.gallery-count-hint {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.gallery-count-hint.is-full {
  color: var(--brand-dark);
}

h1,
h2 {
  margin: 0 0 10px;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

p {
  color: var(--muted);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.has-icon,
button.has-icon {
  gap: 8px;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px var(--brand);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.password-cta {
  min-height: 48px;
  padding-inline: 20px;
  border-color: var(--brand-dark);
  box-shadow: 0 18px 34px -16px var(--brand-dark), 0 0 0 4px rgba(138, 47, 61, 0.1);
}

.zip-cta {
  min-height: 48px;
  padding-inline: 20px;
  background: linear-gradient(135deg, #1f6f56, #174b3e);
  border-color: #174b3e;
  box-shadow: 0 18px 34px -16px #174b3e, 0 0 0 4px rgba(31, 111, 86, 0.1);
}

.zip-cta:hover {
  background: #174b3e;
}

.zip-lock-cta {
  min-height: 42px;
  padding-inline: 16px;
  border-color: rgba(138, 47, 61, 0.16);
  background: rgba(251, 248, 243, 0.72);
  color: var(--muted);
  box-shadow: none;
}

.zip-lock-cta:hover {
  border-color: rgba(138, 47, 61, 0.28);
  background: #fff;
  color: var(--brand-dark);
}

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

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
}

.button-lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
}

.nav-button {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease, transform 0.16s ease;
}

.nav-button.has-icon {
  gap: 7px;
}

.nav-button .button-icon {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.nav-button:hover {
  border-color: var(--blush);
  background: var(--blush-2);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.nav-button:hover .button-icon {
  opacity: 1;
}

.nav-button.primary {
  box-shadow: 0 12px 24px -14px var(--brand);
}

/* The gradient fill already carries the emphasis; keep the tinted hover for
   secondary pills only. */
.nav-button.primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #fff;
}

.nav-button.primary:hover .button-icon {
  opacity: 1;
}

.nav-button:focus-visible,
.nav-logout-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: auto;
  font: inherit;
}

.inline-form {
  display: inline;
}

.auth-panel,
.panel,
.hero-panel,
.empty-state,
.print-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow-sm);
}

.auth-panel {
  width: min(520px, 100%);
  margin: 40px auto;
}

.download-page {
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  margin: 32px auto 0;
}

.download-page h1 {
  margin-bottom: 0;
}

.download-page-copy {
  max-width: 62ch;
  margin: 0;
  line-height: 1.55;
}

.download-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.download-page-actions .button {
  min-height: 48px;
  padding-inline: 18px;
}

.download-page-status {
  margin: 4px 0 0;
}

.download-page-notes {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.download-page-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.form-stack,
.settings-form {
  display: grid;
  gap: 14px;
}

.form-stack p,
.settings-form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.settings-field {
  display: grid;
  gap: 7px;
}

.settings-section-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.settings-section-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.settings-section-nav a:hover {
  background: #fff;
  color: var(--brand-dark);
}

.settings-section-nav a:focus-visible {
  outline: 3px solid rgba(138, 47, 61, 0.2);
  outline-offset: -1px;
}

.settings-category {
  scroll-margin-top: 24px;
}

.settings-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.settings-section-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-section-heading h3,
.settings-section-heading p {
  margin: 0;
}

.settings-section-heading h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.settings-section-heading p {
  max-width: 480px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: right;
}

.settings-section-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--blush-2);
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
}

.settings-priority-grid {
  display: grid;
  gap: 10px;
}

.settings-priority-card {
  border-color: rgba(138, 47, 61, 0.2);
  background: linear-gradient(110deg, #fff, var(--blush-2));
  box-shadow: 0 14px 34px -32px rgba(42, 29, 40, 0.48);
}

/* The gallery name is the one setting that is edited rather than toggled, so it
   gets a card of its own above the switch list instead of a bare input. */
.settings-name-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--blush);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--blush-2), #fff 62%);
  box-shadow: var(--shadow-sm);
}

.settings-name-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--blush);
  color: var(--brand);
}

.settings-name-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-name-field {
  gap: 4px;
}

.settings-name-field label {
  font-size: 15px;
}

.settings-name-field .field-help {
  margin-bottom: 4px;
}

.settings-name-field input {
  min-height: 50px;
  padding: 12px 14px;
  border-color: var(--blush);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.settings-name-field input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.settings-name-field textarea {
  min-height: 92px;
  resize: vertical;
}

.settings-name-field textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.settings-field label {
  color: var(--ink);
  font-weight: 800;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.settings-status-grid {
  display: grid;
  gap: 10px;
}

.settings-option-section {
  display: grid;
  gap: 10px;
}

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

.settings-option-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, rgba(251, 248, 243, 0.34));
  box-shadow: 0 14px 34px -32px rgba(42, 29, 40, 0.48);
}

.settings-option-card.is-premium-locked {
  background: var(--paper);
}

.settings-option-card textarea {
  resize: vertical;
}

.settings-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 46px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%),
    linear-gradient(to right, var(--line-soft), var(--line-soft));
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 15px) 22px,
    calc(100% - 42px) 9px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px, 1px 34px;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.settings-select:hover {
  border-color: var(--brand-soft);
}

.settings-select:focus-visible {
  outline: 3px solid rgba(138, 47, 61, 0.16);
  outline-offset: 2px;
  border-color: var(--brand);
}

.settings-verification-note {
  color: var(--brand);
}

.settings-field-label {
  color: var(--ink);
  font-weight: 800;
}

.settings-theme-card,
.digest-settings-card {
  grid-column: 1 / -1;
}

.theme-live-preview {
  display: grid;
  gap: 8px;
  min-height: 190px;
  margin-top: 6px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--blush);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 14%, var(--blush), transparent 32%),
    linear-gradient(145deg, #fff, var(--blush-2));
  color: var(--ink);
}

.theme-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.theme-preview-brand {
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.theme-preview-secure {
  padding: 5px 9px;
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 850;
}

.theme-live-preview > strong {
  align-self: end;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 4vw, 30px);
  overflow-wrap: anywhere;
}

.theme-preview-copy {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.theme-preview-button {
  justify-self: start;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.theme-radio-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(94px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.theme-radio-option {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.theme-radio-option:hover {
  border-color: var(--brand-soft);
  transform: translateY(-1px);
}

.theme-radio-option.is-selected {
  border-color: var(--brand);
  color: var(--brand-dark);
  box-shadow: 0 0 0 2px var(--blush-2);
}

.theme-radio-option.is-premium-locked {
  cursor: not-allowed;
  opacity: 0.68;
}

.theme-radio-option.is-premium-locked:hover {
  border-color: var(--line);
  transform: none;
}

.theme-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--brand-dark);
  font-size: 10px;
}

.theme-lock-badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.theme-radio-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.settings-confirmation-card {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.settings-confirmation-card > .settings-toggle-row {
  padding: 0;
  border: 0;
  background: transparent;
}

.settings-confirmation-message {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.settings-confirmation-message[hidden] {
  display: none;
}

.theme-radio-option:focus-within {
  outline: 3px solid rgba(138, 47, 61, 0.18);
  outline-offset: 2px;
}

.theme-radio-swatch {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 44px;
  padding: 7px;
  border-radius: 9px;
  background: var(--blush-2);
}

.theme-radio-swatch i {
  display: block;
  width: 8px;
  border-radius: 5px;
  background: var(--brand);
}

.theme-radio-swatch i:nth-child(1) {
  height: 18px;
}

.theme-radio-swatch i:nth-child(2) {
  height: 28px;
  background: var(--brand-soft);
}

.theme-radio-swatch i:nth-child(3) {
  height: 22px;
  background: var(--brand-dark);
}

.digest-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.digest-time-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.digest-time-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--blush-2);
  box-shadow: 0 0 0 2px rgba(138, 47, 61, 0.08);
}

.digest-time-option input {
  width: 19px;
  height: 19px;
  accent-color: var(--brand);
}

.digest-time-clock {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.digest-time-option > span:last-child {
  display: grid;
  gap: 2px;
}

.digest-time-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-group-heading {
  margin: 14px 0 2px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.settings-group-heading:first-child {
  margin-top: 0;
}

.settings-save-button {
  position: sticky;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 4;
  justify-self: center;
  min-width: 190px;
  box-shadow: 0 16px 34px -18px var(--brand-dark);
}

.settings-secret-group {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.settings-secret-group.is-premium-locked {
  border-color: rgba(138, 47, 61, 0.22);
  background: linear-gradient(180deg, #fff, var(--blush-2));
}

.settings-secret-group .settings-toggle-row {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-secret-group .settings-secret-field {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.settings-page {
  display: grid;
  gap: 18px;
}

.settings-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(138, 47, 61, 0.14);
  background:
    radial-gradient(circle at 92% 10%, rgba(138, 47, 61, 0.09), transparent 34%),
    #fff;
}

.settings-hero > div:first-child {
  max-width: 680px;
}

.settings-hero-side {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.settings-editor-panel {
  padding: clamp(18px, 3vw, 32px);
  border-color: rgba(42, 29, 40, 0.1);
  box-shadow: 0 24px 70px -52px rgba(42, 29, 40, 0.55);
}

.settings-editor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.settings-editor-heading h2,
.settings-editor-heading p {
  margin-bottom: 0;
}

.settings-editor-heading > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manage-page {
  position: relative;
  left: 50%;
  width: min(1320px, calc(100vw - 36px));
  transform: translateX(-50%);
}

.manage-page .manage-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  gap: 20px;
  align-items: start;
  margin-bottom: 0;
}

.manage-page .hero-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  border-color: rgba(42, 29, 40, 0.1);
  background: #fff;
  box-shadow: 0 18px 46px -34px rgba(42, 29, 40, 0.38);
}

.manage-page .hero-panel .eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
}

.manage-page .hero-panel h1 {
  margin-bottom: 0;
  font-size: clamp(25px, 2.6vw, 34px);
  overflow-wrap: anywhere;
}

.settings-overview-panel {
  align-self: start;
}

.settings-overview-panel .section-title-row {
  margin-bottom: 14px;
}

.settings-overview-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(138, 47, 61, 0.18);
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.75);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.settings-overview-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-overview-action:hover {
  border-color: rgba(138, 47, 61, 0.3);
  background: #fff;
  color: var(--brand-dark);
}

.settings-overview-panel .settings-indicator-grid {
  gap: 0;
}

.settings-overview-panel .settings-indicator-row {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  min-height: 38px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(42, 29, 40, 0.08);
  border-radius: 0;
  background: transparent;
}

.settings-overview-panel .settings-indicator-row.is-premium-locked {
  grid-template-columns: minmax(0, 1fr) 112px;
  border-color: rgba(42, 29, 40, 0.08);
  background: transparent;
}

.settings-overview-panel .settings-indicator-group {
  margin: 14px 0 2px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.settings-overview-panel .settings-indicator-group:first-child {
  margin-top: 0;
}

.settings-overview-panel .settings-toggle-copy {
  gap: 0;
}

.settings-overview-panel .settings-toggle-copy strong {
  font-size: 13px;
  line-height: 1.25;
}

.settings-overview-panel .settings-toggle-copy small,
.settings-overview-panel .premium-indicator-cta {
  display: none;
}

.settings-overview-panel .settings-state {
  justify-self: end;
  justify-content: center;
  width: auto;
  min-width: 96px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.settings-overview-panel .settings-state::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.settings-overview-panel .settings-state.is-on {
  border-color: rgba(22, 101, 52, 0.14);
  background: rgba(22, 163, 74, 0.09);
}

.settings-overview-panel .settings-state.is-off {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(180, 35, 24, 0.07);
}

.settings-overview-panel .settings-state.is-locked {
  border-color: rgba(138, 47, 61, 0.12);
  background: rgba(138, 47, 61, 0.06);
}

.settings-overview-panel .settings-state-icon {
  display: none;
}

.manage-main-stack {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.manage-side-stack {
  display: grid;
  width: 100%;
  gap: 16px;
  align-self: start;
  position: sticky;
  top: 88px;
}

.compact-copy {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.expansion-grid {
  display: grid;
  gap: 10px;
}

.expansion-card {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.expansion-card strong {
  color: var(--ink);
  font-size: 16px;
}

.expansion-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.expansion-card b {
  color: var(--brand-dark);
}

.expansion-card .button {
  width: 100%;
  min-height: 38px;
}

.expansion-cta-panel {
  display: grid;
  gap: 14px;
  border-color: rgba(138, 47, 61, 0.12);
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.28), rgba(255, 255, 255, 0.98) 58%),
    #fff;
  box-shadow: 0 14px 34px -32px var(--brand-dark);
}

.expansion-cta-panel:not(.is-free-tier) {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 18px 58px 18px 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.expansion-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(138, 47, 61, 0.08);
  color: var(--brand);
  box-shadow: none;
}

.expansion-cta-panel:not(.is-free-tier) .expansion-cta-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.expansion-cta-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.expansion-cta-panel:not(.is-free-tier) .expansion-cta-icon svg {
  width: 21px;
  height: 21px;
}

.expansion-cta-panel .eyebrow {
  margin: 0 0 5px;
}

.expansion-cta-panel:not(.is-free-tier) .eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
}

.expansion-cta-panel h2 {
  margin: 0 0 8px;
}

.expansion-cta-panel:not(.is-free-tier) h2 {
  margin-bottom: 4px;
  font-size: 23px;
  line-height: 1.05;
}

.expansion-cta-panel p {
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

.expansion-cta-panel:not(.is-free-tier) p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.4;
}

.free-tier-badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(190, 154, 84, 0.17);
  color: #765d21;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.expansion-cta-button {
  width: 100%;
  min-height: 46px;
}

.expansion-cta-panel:not(.is-free-tier) .expansion-cta-button {
  grid-column: auto;
  justify-self: start;
  margin-top: 2px;
  width: fit-content;
  min-height: 36px;
  padding-inline: 14px;
  border-color: rgba(138, 47, 61, 0.18);
  background: rgba(251, 248, 243, 0.75);
  color: var(--brand-dark);
  font-size: 14px;
  box-shadow: none;
}

.expansion-cta-panel:not(.is-free-tier) .expansion-cta-button:hover {
  border-color: rgba(138, 47, 61, 0.3);
  background: #fff;
}

.sticky-expansion-button {
  display: none;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title-row.compact {
  align-items: flex-start;
}

.section-title-row h2 {
  margin: 0;
}

.settings-indicator-grid {
  position: relative;
  display: grid;
  gap: 10px;
}

.settings-indicator-mobile-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.settings-indicator-more {
  display: none;
}

.settings-indicator-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.settings-indicator-row.is-premium-locked,
.settings-toggle-row.is-premium-locked {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  border-color: rgba(138, 47, 61, 0.22);
  background: linear-gradient(180deg, #fff, var(--blush-2));
}

.settings-status-grid > .settings-toggle-row.is-premium-locked,
.settings-secret-group.is-premium-locked {
  opacity: 0.9;
}

.settings-toggle-row.is-premium-locked {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  cursor: not-allowed;
}

.settings-toggle-row.is-premium-locked .settings-toggle-copy {
  grid-column: 1;
  grid-row: 1;
}

.settings-toggle-row.is-premium-locked .settings-toggle-control {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
}

.settings-toggle-row.is-premium-locked .settings-state {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.settings-toggle-row.is-premium-locked .premium-lock-indicator {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.settings-secret-group > .settings-toggle-row,
.settings-secret-group > .settings-toggle-row.is-premium-locked {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-indicator-row .premium-indicator-cta {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.settings-toggle-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
}

.settings-toggle-copy {
  display: grid;
  gap: 3px;
}

.settings-toggle-copy strong {
  color: var(--ink);
}

.settings-toggle-copy small {
  color: var(--muted);
  line-height: 1.4;
}

.settings-toggle-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.settings-toggle-control {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d8cfc5;
  transition: background 0.18s ease;
}

.settings-toggle-control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(42, 29, 40, 0.2);
  transition: transform 0.18s ease;
}

.settings-toggle-input:checked + .settings-toggle-control {
  background: var(--brand);
}

.settings-toggle-input:checked + .settings-toggle-control::after {
  transform: translateX(24px);
}

.settings-toggle-input:focus-visible + .settings-toggle-control {
  outline: 3px solid rgba(138, 47, 61, 0.22);
  outline-offset: 3px;
}

.settings-toggle-input:disabled + .settings-toggle-control {
  opacity: 0.58;
}

.settings-secret-field {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.settings-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 86px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.settings-state-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-state.is-on {
  border-color: rgba(22, 101, 52, 0.18);
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.settings-state.is-off {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(180, 35, 24, 0.07);
  color: var(--danger);
}

.settings-state.is-locked {
  border-color: rgba(138, 47, 61, 0.2);
  background: rgba(138, 47, 61, 0.1);
  color: var(--brand-dark);
}

.premium-lock-cta {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  max-width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.settings-unlock-button {
  display: inline-flex;
  gap: 6px;
  border-color: rgba(138, 47, 61, 0.2);
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
}

.settings-unlock-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-unlock-button:hover {
  border-color: var(--brand);
  background: var(--blush-2);
}

.premium-lock-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(138, 47, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--brand-dark);
}

.premium-lock-indicator svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.errorlist {
  margin: 4px 0 0;
  padding-left: 18px;
  color: var(--danger);
  font-weight: 700;
}

.form-errors {
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
}

.form-note {
  margin: 18px 0 0;
  font-size: 14px;
}

.loading-status,
.login-key-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: var(--brand-dark);
  font-weight: 800;
}

.loading-status:empty,
.login-key-status:empty {
  display: none;
}

.loading-status.is-error,
.login-key-status.is-error {
  color: var(--danger);
}

.auth-panel .login-key-status {
  margin-top: 0;
}

.auth-panel .login-key-status.is-error {
  align-items: flex-start;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.34);
  border-left: 5px solid var(--danger);
  border-radius: 12px;
  background: #fff0ee;
  box-shadow: 0 12px 26px rgba(180, 35, 24, 0.1);
  line-height: 1.35;
}

.auth-panel .login-key-status.is-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.loading-status-spinner,
.login-status-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid rgba(138, 47, 61, 0.18);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: login-status-spin 0.72s linear infinite;
}

.loading-status-text,
.login-status-text {
  min-width: 0;
}

.loading-status.is-download-progress {
  flex-wrap: wrap;
  width: min(100%, 360px);
  gap: 10px;
}

.loading-status.is-download-progress .zip-part-status {
  flex: 1 0 100%;
  margin-top: 4px;
}

.download-progress-track {
  display: block;
  flex: 1 1 180px;
  height: 8px;
  min-width: 120px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(138, 47, 61, 0.14);
}

.download-progress-bar {
  display: block;
  width: var(--download-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
  transition: width 0.18s ease;
}

.download-progress-track[aria-valuenow="0"] .download-progress-bar {
  width: 34%;
  animation: download-progress-indeterminate 1.05s ease-in-out infinite;
}

@keyframes download-progress-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(310%);
  }
}

@keyframes login-status-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-reassurance {
  margin: -4px 0 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.gallery-limit-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: 18px 0 20px;
  padding: 14px;
  border: 1px solid rgba(190, 154, 84, 0.32);
  border-radius: 16px;
  background: #f7efd9;
  color: #6f5720;
}

.gallery-limit-callout.is-full {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fff0ee;
  color: var(--danger);
}

.gallery-limit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(190, 154, 84, 0.18);
  color: #8a681f;
}

.gallery-limit-callout.is-full .gallery-limit-icon {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.gallery-limit-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-limit-callout strong,
.gallery-limit-callout p {
  margin: 0;
}

.gallery-limit-callout p {
  margin-top: 4px;
  color: currentColor;
  font-weight: 700;
  line-height: 1.45;
}

.gallery-limit-callout b {
  font-size: 1.08em;
}

.password-checklist {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.14);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.06);
  list-style: none;
  font-size: 13px;
  font-weight: 800;
}

.password-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--danger);
}

.password-checklist li.is-valid {
  color: #166534;
}

.password-check-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  flex: 0 0 20px;
  border-radius: 999px;
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
  font-size: 14px;
  line-height: 1;
}

.password-checklist li.is-valid .password-check-icon {
  background: rgba(22, 163, 74, 0.14);
  color: #166534;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  border: 1px solid var(--blush);
  background: var(--blush-2);
  border-radius: 14px;
  padding: 12px;
  color: var(--ink);
}

.message.success {
  border-color: rgba(126, 140, 110, 0.34);
  background: #eef4e9;
  color: #415238;
}

.message.info {
  border-color: rgba(190, 154, 84, 0.3);
  background: #f7efd9;
  color: #6f5720;
}

.message.error {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff0ee;
  color: var(--danger);
}

.inline-callout {
  display: grid;
  gap: 4px;
  margin: 14px 0 18px;
  padding: 13px 14px;
  border: 1px solid rgba(138, 47, 61, 0.18);
  border-radius: 14px;
  background: var(--blush-2);
}

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

.inline-callout p {
  margin: 0;
}

.inline-success {
  margin: 2px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(22, 101, 52, 0.18);
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  font-weight: 800;
}

.expiry-notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blush-2);
}

.expiry-notice p {
  margin: 0;
  font-weight: 800;
}

.account-prompt {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  border-color: rgba(138, 47, 61, 0.22);
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.78), rgba(255, 255, 255, 0.96) 58%),
    #fff;
  box-shadow: 0 22px 50px -34px var(--brand-dark);
}

.account-prompt h2,
.account-prompt p {
  margin: 0;
}

.account-prompt .button {
  justify-self: start;
  margin-top: 4px;
}

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

.inline-action-form .button {
  margin-top: 4px;
}

/* The address is the point of the verify prompt — a typo is only spottable if
   it is legible, so it gets its own line and wraps instead of overflowing the
   card on a narrow screen. */
.verify-address {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.email-change-details > summary {
  cursor: pointer;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

/* Stacked rather than inline: an e-mail input beside a button is the layout
   that breaks first on a phone. */
.email-change-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.status-page {
  display: grid;
  gap: 14px;
  text-align: left;
}

.status-page h1,
.status-page p {
  margin: 0;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--blush-2);
  color: var(--brand);
}

.status-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-icon path {
  fill: none;
  stroke-width: 6;
}

/* The surrounding stacks are gap-based, so the card's own bottom margin would
   double the spacing here. */
.manage-account-prompt,
.manage-grid .email-verification-prompt {
  margin: 0;
}

.gallery-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
  gap: 16px;
}

.help-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.help-strip article {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.help-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 12px;
  background: var(--blush-2);
  color: var(--brand);
}

.help-icon svg,
.gallery-card-icon svg,
.gallery-card-metrics svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.help-strip strong {
  color: var(--brand-dark);
}

.help-strip article > span:not(.help-icon) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.gallery-card,
.photo-admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 230px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.gallery-card:hover {
  border-color: rgba(138, 47, 61, 0.34);
  box-shadow: 0 16px 34px -24px rgba(84, 37, 49, 0.55);
  transform: translateY(-2px);
}

.gallery-card:focus-visible {
  outline: 3px solid rgba(138, 47, 61, 0.28);
  outline-offset: 3px;
}

.gallery-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 74px;
}

.gallery-card-head h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 24px;
}

.gallery-card-title {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.gallery-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.94), rgba(255, 255, 255, 0.92)),
    var(--blush-2);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(138, 47, 61, 0.12);
}

.gallery-card-icon svg {
  width: 24px;
  height: 24px;
}

.gallery-plan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.gallery-plan-pill.is-premium {
  color: #166534;
}

.gallery-plan-pill svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-card-stats {
  display: grid;
  align-content: flex-start;
  gap: 12px;
}

.gallery-card-metrics {
  display: grid;
  gap: 8px;
}

.gallery-card-metrics span {
  display: grid;
  grid-template-columns: 20px auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gallery-card-metrics svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.gallery-card-metrics strong {
  color: var(--ink);
  font-weight: 900;
}

.gallery-card-statuses {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.gallery-card-statuses span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-card-statuses span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.gallery-card-statuses .is-on {
  color: #166534;
}

.gallery-card-statuses .is-off {
  color: var(--danger);
}

.gallery-expiry {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(180, 35, 24, 0.16);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.07);
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.gallery-plan-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(138, 47, 61, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(138, 47, 61, 0.08), rgba(251, 248, 243, 0.92));
}

.gallery-plan-banner.is-premium {
  border-color: rgba(22, 101, 52, 0.18);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(251, 248, 243, 0.92));
}

.gallery-plan-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 24px -18px var(--brand-dark);
}

.gallery-plan-banner.is-premium .gallery-plan-icon {
  color: #166534;
}

.gallery-plan-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-plan-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gallery-plan-copy strong {
  color: var(--ink);
  font-size: 16px;
}

.gallery-plan-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.gallery-plan-action {
  white-space: nowrap;
}

.gallery-manage-button {
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  align-self: flex-end;
  padding-inline: 18px;
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 14px 28px -16px var(--brand-dark);
}

.gallery-manage-button:hover {
  background: var(--brand-dark);
}

.gallery-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}

.gallery-metrics article {
  display: grid;
  grid-template-rows: 36px minmax(54px, auto) 15px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(235, 225, 212, 0.88);
  border-radius: 12px;
  background: rgba(251, 248, 243, 0.55);
}

.metric-heading {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  color: var(--metric-color);
  background: var(--metric-bg);
}

.metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-people {
  --metric-bg: #e4edf4;
  --metric-color: #2f566b;
}

.metric-photos {
  --metric-bg: #f6e4df;
  --metric-color: #8a2f3d;
}

.metric-storage {
  --metric-bg: #e2eee9;
  --metric-color: #315c50;
}

.metric-expiry {
  --metric-bg: #f5e8c8;
  --metric-color: #7b5f1e;
}

.metric-heading > span:last-child {
  display: block;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.gallery-metrics strong {
  display: flex;
  align-items: start;
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.08;
  white-space: nowrap;
}

.gallery-metrics strong[data-storage-capacity-display] {
  font-size: clamp(15px, 1.25vw, 21px);
}

.capacity-success-pulse article {
  animation: capacity-success-card 1.8s ease both;
}

.metric-value-pop {
  display: inline-block;
  color: var(--brand);
  animation: metric-value-pop 1.2s ease both;
}

@keyframes capacity-success-card {
  0% {
    border-color: rgba(31, 111, 86, 0.16);
    background: rgba(226, 238, 233, 0.42);
    box-shadow: 0 0 0 0 rgba(31, 111, 86, 0);
  }
  35% {
    border-color: rgba(31, 111, 86, 0.36);
    background: rgba(226, 238, 233, 0.86);
    box-shadow: 0 16px 42px -30px rgba(31, 111, 86, 0.72);
  }
  100% {
    border-color: rgba(235, 225, 212, 0.88);
    background: rgba(251, 248, 243, 0.55);
    box-shadow: none;
  }
}

@keyframes metric-value-pop {
  0% {
    transform: translateY(2px) scale(0.98);
  }
  45% {
    transform: translateY(0) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.metric-progress {
  display: block;
  align-self: start;
  width: 100%;
  height: 6px;
  margin-top: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(138, 47, 61, 0.1);
  appearance: none;
}

.metric-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgba(138, 47, 61, 0.1);
}

.metric-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
}

.metric-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand));
}

.storage-progress {
  background: rgba(49, 92, 80, 0.12);
}

.storage-progress::-webkit-progress-bar {
  background: rgba(49, 92, 80, 0.12);
}

.storage-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #6f9b8f, #315c50);
}

.storage-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #6f9b8f, #315c50);
}

.expiry-progress {
  background: rgba(123, 95, 30, 0.12);
}

.expiry-progress::-webkit-progress-bar {
  background: rgba(123, 95, 30, 0.12);
}

.expiry-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #d8b860, #7b5f1e);
}

.expiry-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #d8b860, #7b5f1e);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.manage-page .hero-panel .button-row {
  margin-top: 10px;
}

.manage-photos-panel .zip-cta {
  min-height: 42px;
  padding-inline: 16px;
  border-color: rgba(138, 47, 61, 0.18);
  background: rgba(251, 248, 243, 0.75);
  color: var(--brand-dark);
  font-size: 14px;
  box-shadow: none;
}

.manage-photos-panel .zip-cta:hover {
  border-color: rgba(138, 47, 61, 0.3);
  background: #fff;
  color: var(--brand-dark);
}

.manage-photos-panel .zip-lock-cta {
  font-size: 14px;
}

.photo-select-mode-button {
  min-height: 42px;
  padding-inline: 14px;
  border-color: rgba(138, 47, 61, 0.18);
  background: rgba(251, 248, 243, 0.75);
  color: var(--brand-dark);
  font-size: 14px;
  box-shadow: none;
}

.photo-select-mode-button:hover,
.photo-select-mode-button.is-active {
  border-color: rgba(138, 47, 61, 0.3);
  background: #fff;
  color: var(--brand-dark);
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.key-warning,
.danger-note {
  margin-top: 14px;
  color: var(--danger);
  font-weight: 700;
}

.key-warning.safe {
  color: #166534;
}

.key-access-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(138, 47, 61, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 228, 223, 0.82), rgba(251, 248, 243, 0.96));
}

.key-access-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.key-access-message strong {
  display: block;
  margin: 1px 0 4px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
}

.key-access-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 0 0 1px rgba(138, 47, 61, 0.1);
}

.key-access-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.key-access-panel.is-safe {
  border-color: rgba(22, 101, 52, 0.16);
  background: linear-gradient(135deg, rgba(232, 245, 237, 0.9), rgba(251, 248, 243, 0.96));
}

.key-access-panel.is-safe .key-access-icon {
  color: #166534;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.1);
}

.key-access-panel .key-warning {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.key-access-panel .key-warning.safe {
  color: #166534;
}

.key-relogin-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(138, 47, 61, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.key-relogin-form[hidden] {
  display: none;
}

.key-relogin-form > div {
  display: grid;
  gap: 3px;
}

.key-relogin-form strong {
  color: var(--ink);
  font-size: 14px;
}

.key-relogin-form p {
  max-width: 62ch;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.key-relogin-form .button {
  min-height: 48px;
  flex: 0 0 auto;
  padding-inline: 18px;
  white-space: nowrap;
}

.key-recovery-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 8px 16px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.key-recovery-form[hidden] {
  display: none;
}

.key-access-panel .key-recovery-form .copy-row.stacked {
  display: contents;
}

.key-access-panel .key-recovery-form .copy-row > span {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 2px;
}

.key-access-panel .key-recovery-form .copy-row > input {
  grid-column: 1;
  grid-row: 2;
  min-height: 48px;
}

.key-access-panel .key-recovery-form .copy-row > .field-help {
  grid-column: 1;
  grid-row: 3;
}

.key-access-panel .key-recovery-form .button {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 14px;
  box-shadow: 0 10px 22px -16px var(--brand-dark);
  white-space: nowrap;
}

.key-access-panel .key-recovery-form .key-link-recovery-button {
  border-color: rgba(138, 47, 61, 0.2);
  background: transparent;
  color: var(--brand-dark);
  box-shadow: none;
}

.key-access-panel .key-recovery-form .key-link-recovery-button:hover {
  border-color: rgba(138, 47, 61, 0.35);
  background: rgba(255, 255, 255, 0.72);
}

.danger-zone {
  border-color: rgba(180, 35, 24, 0.22);
}

.danger-zone h2 {
  color: var(--danger);
}

.danger-zone form {
  margin-top: 12px;
}

.gallery-danger-zone,
.account-danger-zone {
  margin-top: 24px;
}

.account-danger-zone > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.account-danger-zone > summary::-webkit-details-marker {
  display: none;
}

.account-danger-zone > summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.16s ease;
}

.account-danger-zone {
  padding: 13px 16px;
  border-color: rgba(108, 91, 104, 0.14);
  background: transparent;
  box-shadow: none;
}

.account-danger-zone[open] {
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.025);
}

.account-danger-zone[open] > summary {
  color: var(--danger);
}

.account-danger-zone[open] > summary svg {
  transform: rotate(180deg);
}

.account-danger-zone > summary:focus-visible {
  outline: 3px solid rgba(180, 35, 24, 0.22);
  outline-offset: 4px;
  border-radius: 6px;
}

.account-danger-content {
  padding-top: 14px;
}

.account-danger-content > :first-child {
  margin-top: 0;
}

.manage-main-stack .gallery-danger-zone {
  margin-top: 0;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 18px;
}

.confirm-modal[aria-hidden="false"] {
  display: grid;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 27, 0.62);
}

.confirm-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 22px;
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px -28px rgba(28, 20, 27, 0.55);
}

.confirm-dialog h2 {
  margin: 0 0 8px;
  color: var(--danger);
  font-size: clamp(24px, 6vw, 34px);
}

.confirm-dialog p {
  margin: 0;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.download-status {
  min-height: 22px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-weight: 700;
}

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

.zip-part-status {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
  white-space: pre-line;
}

.photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  align-items: start;
  gap: 10px;
}

.manage-photos-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.photo-empty-placeholder {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--blush);
  border-radius: 14px;
  background: var(--blush-2);
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 1.55;
}

.photo-admin-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  width: 100%;
  padding: 9px;
}

.photo-admin-card.is-selected {
  border-color: rgba(138, 47, 61, 0.42);
  box-shadow: 0 16px 36px -28px rgba(138, 47, 61, 0.7), 0 0 0 3px rgba(138, 47, 61, 0.1);
}

.photo-admin-card.is-hidden-photo .admin-photo-preview img,
.photo-thumb.is-hidden-photo img {
  opacity: 0.52;
}

.admin-photo-select {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px -18px rgba(42, 29, 40, 0.5), 0 0 0 1px var(--line);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-2px, -2px) scale(0.92);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.photo-admin-grid.is-selection-mode .admin-photo-select {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.admin-photo-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-photo-select span {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--brand);
  border-radius: 4px;
  background: #fff;
}

.admin-photo-select input:checked + span {
  background: var(--brand);
  box-shadow: inset 0 0 0 3px #fff;
}

.admin-photo-frame {
  position: relative;
}

.photo-admin-delete-form {
  display: none;
}

.bulk-photo-actions {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  border: 1px solid rgba(138, 47, 61, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 52px -30px rgba(42, 29, 40, 0.62);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.bulk-photo-actions[hidden] {
  display: none;
}

.bulk-photo-actions .button {
  min-height: 38px;
  padding: 8px 14px;
}

.bulk-photo-actions .button.subtle {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.photo-page-loader {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.admin-photo-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-photo-preview[href]:hover,
.admin-photo-preview[href]:focus-visible {
  border-color: rgba(31, 111, 86, 0.42);
  box-shadow: 0 16px 34px -28px rgba(31, 111, 86, 0.72);
  transform: translateY(-1px);
}

.admin-photo-preview[aria-disabled="true"] {
  cursor: default;
}

.admin-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--paper-2);
}

/* Icon-only badges: the JS still sets the "Video"/"Skryté" text (kept for
   screen readers via font-size:0), while a masked SVG icon is shown instead. */
.media-play-badge {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  background: rgba(16, 11, 15, 0.74);
  color: #fff;
  font-size: 0;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.8);
}

.media-play-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='black'%3E%3Cpath%20d='M8%205v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='black'%3E%3Cpath%20d='M8%205v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.photo-visibility-badge {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  background: rgba(138, 47, 61, 0.86);
  color: #fff;
  font-size: 0;
  box-shadow: 0 8px 18px -12px rgba(42, 29, 40, 0.72);
}

.photo-visibility-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M17.94%2017.94A10.07%2010.07%200%200%201%2012%2020c-7%200-11-8-11-8a18.45%2018.45%200%200%201%205.06-5.94M9.9%204.24A9.12%209.12%200%200%201%2012%204c7%200%2011%208%2011%208a18.5%2018.5%200%200%201-2.16%203.19m-6.72-1.07a3%203%200%201%201-4.24-4.24'/%3E%3Cline%20x1='1'%20y1='1'%20x2='23'%20y2='23'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M17.94%2017.94A10.07%2010.07%200%200%201%2012%2020c-7%200-11-8-11-8a18.45%2018.45%200%200%201%205.06-5.94M9.9%204.24A9.12%209.12%200%200%201%2012%204c7%200%2011%208%2011%208a18.5%2018.5%200%200%201-2.16%203.19m-6.72-1.07a3%203%200%201%201-4.24-4.24'/%3E%3Cline%20x1='1'%20y1='1'%20x2='23'%20y2='23'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lightbox-visibility-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(138, 47, 61, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.admin-photo-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-photo-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.guest-app {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

body:has(.guest-app) .topbar {
  align-items: center;
  flex-direction: row;
  min-height: 56px;
  padding: 10px 16px;
}

body:has(.guest-app) .topbar nav {
  display: none;
}

body:has(.guest-app) .brand-mark {
  width: 32px;
  height: 32px;
}

body:has(.guest-app) .brand-word {
  font-size: 21px;
}

.guest-app.theme-sage,
.theme-live-preview.theme-sage,
.theme-radio-swatch.theme-sage {
  --brand: #48624c;
  --brand-dark: #314435;
  --brand-soft: #718975;
  --blush: #cad8cd;
  --blush-2: #edf3ee;
}

.guest-app.theme-navy,
.theme-live-preview.theme-navy,
.theme-radio-swatch.theme-navy {
  --brand: #34506f;
  --brand-dark: #22364d;
  --brand-soft: #6480a0;
  --blush: #c9d6e4;
  --blush-2: #edf2f7;
}

.guest-app.theme-gold,
.theme-live-preview.theme-gold,
.theme-radio-swatch.theme-gold {
  --brand: #7f5506;
  --brand-dark: #4a3000;
  --brand-soft: #bd8b2d;
  --blush: #e8cf96;
  --blush-2: #fbf3df;
  --premium-surface: #f7e9c6;
  --premium-glow: rgba(190, 139, 39, 0.24);
  --premium-line: rgba(127, 85, 6, 0.3);
}

.guest-app.theme-emerald,
.theme-live-preview.theme-emerald,
.theme-radio-swatch.theme-emerald {
  --brand: #086247;
  --brand-dark: #043d2d;
  --brand-soft: #319373;
  --blush: #abd8c8;
  --blush-2: #e9f7f1;
  --premium-surface: #dff2ea;
  --premium-glow: rgba(8, 98, 71, 0.2);
  --premium-line: rgba(8, 98, 71, 0.28);
}

.guest-app.theme-onyx,
.theme-live-preview.theme-onyx,
.theme-radio-swatch.theme-onyx {
  --brand: #312d38;
  --brand-dark: #17151b;
  --brand-soft: #776d83;
  --blush: #cfc8d5;
  --blush-2: #f1eef3;
  --premium-surface: #e7e3ea;
  --premium-glow: rgba(49, 45, 56, 0.2);
  --premium-line: rgba(49, 45, 56, 0.3);
}

.theme-live-preview.theme-gold,
.theme-live-preview.theme-emerald,
.theme-live-preview.theme-onyx {
  border-color: var(--premium-line);
  background:
    radial-gradient(circle at 88% 8%, var(--premium-glow), transparent 38%),
    linear-gradient(145deg, #fff 18%, var(--premium-surface));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 24px 50px -34px var(--brand-dark);
}

.theme-radio-swatch.theme-gold,
.theme-radio-swatch.theme-emerald,
.theme-radio-swatch.theme-onyx {
  border: 1px solid var(--premium-line);
  background:
    radial-gradient(circle at 80% 0, var(--premium-glow), transparent 48%),
    linear-gradient(145deg, #fff, var(--premium-surface));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 20px -18px var(--brand-dark);
}

.guest-app.theme-gold .guest-quick-action,
.guest-app.theme-emerald .guest-quick-action,
.guest-app.theme-onyx .guest-quick-action {
  border-color: var(--premium-line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 28px -24px var(--brand-dark);
}

.guest-app.theme-gold .guest-header-topline h1,
.guest-app.theme-emerald .guest-header-topline h1,
.guest-app.theme-onyx .guest-header-topline h1 {
  color: var(--brand-dark);
  letter-spacing: -0.025em;
}

.guest-app.theme-gold .guest-message,
.guest-app.theme-emerald .guest-message,
.guest-app.theme-onyx .guest-message {
  border-color: var(--premium-line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.guest-app.theme-gold .guest-primary-upload,
.guest-app.theme-emerald .guest-primary-upload,
.guest-app.theme-onyx .guest-primary-upload {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.guest-app.theme-gold .file-drop,
.guest-app.theme-emerald .file-drop,
.guest-app.theme-onyx .file-drop {
  border-color: var(--premium-line);
  border-style: solid;
  background:
    radial-gradient(circle at 88% 0, var(--premium-glow), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), var(--blush-2));
  color: var(--brand-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 30px -30px var(--brand-dark);
}

.guest-app.theme-gold .file-drop:hover,
.guest-app.theme-emerald .file-drop:hover,
.guest-app.theme-onyx .file-drop:hover {
  border-color: var(--brand-soft);
  background:
    radial-gradient(circle at 88% 0, var(--premium-glow), transparent 48%),
    linear-gradient(135deg, #fff, var(--premium-surface));
  box-shadow:
    inset 0 1px 0 #fff,
    0 18px 34px -28px var(--brand-dark);
}

.guest-app.theme-gold .file-drop-icon,
.guest-app.theme-emerald .file-drop-icon,
.guest-app.theme-onyx .file-drop-icon {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px -18px var(--brand-dark);
}

.guest-main-view {
  display: grid;
  gap: 12px;
}

.guest-secret-app {
  min-height: min(620px, calc(100vh - 190px));
  place-items: center;
}

.guest-secret-panel {
  width: min(480px, 100%);
}

.guest-secret-panel h1 {
  margin-bottom: 10px;
}

.guest-header {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 0;
}

.guest-header-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
}

.guest-header-topline h1 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 8.5vw, 40px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.guest-quick-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.guest-quick-action {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 12px 28px -25px rgba(42, 29, 40, 0.64);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.guest-quick-action:hover {
  border-color: var(--brand-soft);
  background: var(--blush-2);
  transform: translateY(-1px);
}

.guest-quick-action:focus-visible {
  outline: 3px solid rgba(138, 47, 61, 0.2);
  outline-offset: 2px;
}

.guest-quick-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--blush);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--blush-2));
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.guest-message p {
  margin: 0;
  overflow-wrap: anywhere;
}

.guest-message svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-key-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.guest-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.guest-deadline-status {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(123, 95, 30, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guest-package-button[hidden] {
  display: none;
}

.guest-soft-package-button {
  color: var(--muted);
}

.guest-owner-full-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(31, 111, 86, 0.18);
  border-radius: 14px;
  background: rgba(31, 111, 86, 0.08);
  color: #174b3e;
}

.guest-owner-full-notice[hidden] {
  display: none;
}

.guest-owner-full-notice div {
  min-width: 0;
  flex: 1 1 auto;
}

.guest-owner-full-notice strong,
.guest-owner-full-notice p {
  margin: 0;
}

.guest-owner-full-notice strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.guest-owner-full-notice p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.guest-owner-full-notice .button {
  flex: 0 0 auto;
}

.guest-owner-full-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #1f6f56;
  box-shadow: 0 12px 30px -24px rgba(31, 111, 86, 0.8);
}

.guest-owner-full-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-qr-view {
  margin-top: 18px;
}

.guest-qr-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.guest-qr-view .manage-qr-layout {
  grid-template-columns: minmax(260px, 420px) minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
}

.guest-qr-view .manage-qr-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-qr-view .manage-qr-box canvas {
  width: min(390px, 100%);
}

[data-guest-status]:empty {
  display: none;
}

.upload-panel {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.guest-primary-upload {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

/* Management photo links reuse the guest lightbox, but its upload/header UI
   must never flash during the short interval before the encrypted photo opens. */
.management-lightbox-view .guest-header,
.management-lightbox-view .upload-panel,
.management-lightbox-view .queue,
.management-lightbox-view .upload-moderation-status,
.management-lightbox-view .guest-download-all {
  display: none;
}

.upload-secret-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.upload-secret-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.upload-secret-block summary::-webkit-details-marker {
  display: none;
}

.upload-secret-summary-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.upload-secret-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Drawn as an SVG chevron rather than a text glyph: a "+"/"x" character sits
   off-centre in the circle because its ink box is not centred on the baseline. */
.upload-secret-toggle {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--blush);
  border-radius: 50%;
  background: var(--blush-2);
  color: var(--brand);
  transition: transform 0.2s ease;
}

.upload-secret-toggle svg {
  display: block;
  width: 14px;
  height: 14px;
  /* The chevron's ink sits in the lower half of its 24-unit box; nudge it up so
     it reads as centred in the circle. */
  margin-top: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-secret-block[open] .upload-secret-toggle {
  transform: rotate(180deg);
}

.upload-secret-panel {
  gap: 10px;
  padding: 0 16px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.upload-secret-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.upload-secret-panel label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.upload-secret-panel .button {
  justify-self: start;
}

.file-drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--blush);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.88), transparent 40%),
    linear-gradient(135deg, #fff, var(--blush-2));
  color: var(--brand-dark);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px -34px var(--brand-dark);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.file-drop:hover {
  border-color: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -32px var(--brand-dark);
}

.file-drop:focus-within {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 2px;
}

.file-drop-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 26px -20px var(--brand-dark);
}

.file-drop-icon svg,
.guest-empty-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-drop-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.file-drop-copy strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.file-drop-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.file-drop-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, #fff);
  color: var(--brand);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}

/* The whole card is the target, so the arrow fills and nudges on hover/focus to
   read as a single "go" affordance rather than a stray button. */
.file-drop:hover .file-drop-arrow,
.file-drop:focus-within .file-drop-arrow {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  transform: translateX(3px);
  box-shadow: 0 10px 20px -14px var(--brand-dark);
}

.file-drop-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.upload-moderation-note,
.upload-moderation-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.upload-moderation-status {
  padding: 8px 10px;
  border-left: 3px solid rgba(24, 120, 64, 0.32);
  background: rgba(24, 120, 64, 0.07);
  color: #187840;
  font-weight: 800;
}

.upload-moderation-status[hidden] {
  display: none;
}

.guest-note-control {
  overflow: hidden;
  border: 1px solid var(--blush);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.guest-note-summary-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.guest-note-summary-row::-webkit-details-marker {
  display: none;
}

.guest-note-summary-row:focus-visible {
  outline: 3px solid rgba(138, 47, 61, 0.18);
  outline-offset: -3px;
}

.guest-note-status-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 12px 26px -22px rgba(42, 29, 40, 0.6);
}

.guest-note-status-icon svg,
.guest-note-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-note-status-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.guest-note-status-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.guest-note-chevron {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--paper);
  color: var(--brand);
}

.guest-note-chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.18s ease;
}

.guest-note-control[open] .guest-note-chevron svg {
  transform: rotate(180deg);
}

.guest-note-expanded {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #fff, var(--blush-2));
}

.guest-note-expanded > p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.guest-note-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guest-note-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.guest-note-action {
  gap: 6px;
  min-height: 44px;
  padding: 8px 11px;
}

.guest-note-action.is-remove {
  color: var(--danger);
}

.guest-upload-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(24, 120, 64, 0.2);
  border-radius: 14px;
  background: rgba(24, 120, 64, 0.08);
  color: #176438;
}

.guest-upload-success[hidden] {
  display: none;
}

.guest-upload-success p {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.guest-upload-success-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.guest-upload-success-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-note-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  box-shadow: 0 32px 80px -36px rgba(42, 29, 40, 0.68);
}

.guest-note-dialog::backdrop {
  background: rgba(42, 29, 40, 0.56);
  backdrop-filter: blur(3px);
}

.guest-note-dialog form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
}

.guest-note-dialog h2,
.guest-note-dialog p {
  margin: 0;
}

.guest-note-dialog > form > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.guest-note-dialog label {
  font-weight: 800;
}

.guest-note-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.guest-note-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.queue {
  display: grid;
  gap: 8px;
}

.guest-status-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.guest-status-chips[hidden] {
  display: none;
}

/* Info pills, not action buttons: pill shape + inline value so the important
   number reads without any tap. The full sentence is the tap/hover tooltip. */
.guest-status-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  outline: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.guest-status-chip[aria-expanded="true"] {
  border-color: var(--brand);
  color: var(--brand);
}

.guest-status-chip:focus-visible {
  box-shadow: 0 0 0 3px rgba(138, 47, 61, 0.14);
}

.guest-status-chip-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.guest-status-chip-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.guest-status-chip.is-full {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
}

.guest-status-tooltip {
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: 0;
  left: auto;
  width: max-content;
  max-width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 11px;
  background: #30252d;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -18px rgba(20, 12, 18, 0.85);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Caret pointing up at the chip, aligned near its right edge. When JS nudges
   the bubble back on screen it shifts the caret the same amount the other way
   (via --tooltip-caret-shift) so it keeps pointing at the chip. */
.guest-status-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  right: calc(15px + var(--tooltip-caret-shift, 0px));
  width: 11px;
  height: 11px;
  background: inherit;
  border-radius: 2px 0 0 0;
  transform: rotate(45deg);
}

.guest-status-chip:hover .guest-status-tooltip,
.guest-status-chip.is-tooltip-open .guest-status-tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Touch devices: hover is meaningless, so only the tapped-open state shows the
   tooltip. This also stops a sticky :hover from lingering after a tap. */
@media (hover: none) {
  .guest-status-chip:hover .guest-status-tooltip {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
  }

  .guest-status-chip.is-tooltip-open .guest-status-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 721px) {
  body:has(.guest-app) .topbar {
    min-height: 64px;
    padding-inline: clamp(20px, 4vw, 42px);
  }

  .page:has(.guest-app) {
    padding-top: 20px;
  }

  .guest-main-view {
    gap: 16px;
  }

  .guest-header {
    gap: 12px;
  }

  .guest-header-topline h1 {
    font-size: clamp(40px, 4.6vw, 54px);
  }

  .guest-message {
    padding: 12px 14px;
    font-size: 14px;
  }

  .file-drop {
    min-height: 96px;
    padding: 18px;
  }

  .file-drop-copy strong {
    font-size: 18px;
  }
}

.queue-item {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.queue-item-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.queue-item-label.is-busy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.queue-item-label.is-busy::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid rgba(138, 47, 61, 0.18);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: login-status-spin 0.72s linear infinite;
}

.upload-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 111, 86, 0.14);
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress[data-indeterminate] {
  animation: upload-progress-pulse 0.9s ease-in-out infinite;
}

.upload-progress::-webkit-progress-bar {
  background: rgba(31, 111, 86, 0.14);
}

.upload-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #2fbf71, #1f6f56);
}

.upload-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #2fbf71, #1f6f56);
}

@keyframes upload-progress-pulse {
  0%,
  100% {
    opacity: 0.68;
  }

  50% {
    opacity: 1;
  }
}

.upload-progress[data-indeterminate]::-webkit-progress-value {
  background: linear-gradient(90deg, #2fbf71, #1f6f56);
}

.upload-progress[data-indeterminate]::-moz-progress-bar {
  background: linear-gradient(90deg, #2fbf71, #1f6f56);
}

.guest-download-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(31, 111, 86, 0.16);
  border-radius: 14px;
  background: rgba(31, 111, 86, 0.07);
}

.guest-download-all[hidden] {
  display: none;
}

.guest-download-all .button {
  flex: 0 0 auto;
}

.guest-zip-status {
  margin: 0;
  color: #174b3e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

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

/* Phones default to 2 columns with the 140px minimum above; pin a denser
   4-column grid and tighten the gaps for mobile. */
@media (max-width: 520px) {
  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
  }

  /* Scope to .photo-grid so this beats the later base .photo-thumb rules
     (media queries don't raise specificity) and stays guest-only. */
  .photo-grid .photo-thumb,
  .photo-grid .photo-thumb img {
    border-radius: 6px;
  }
}

@media (max-width: 900px) {
  .settings-hero,
  .settings-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-hero-side {
    justify-items: start;
  }

  .theme-radio-grid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }
}

@media (max-width: 640px) {
  .settings-section-nav {
    gap: 3px;
    margin-top: 14px;
    padding: 4px;
    border-radius: 12px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .settings-section-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-section-nav a {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 9px;
    scroll-snap-align: start;
  }

  .settings-section-nav a:hover {
    background: transparent;
    color: var(--muted);
  }

  .settings-section-nav a:active {
    background: #fff;
    color: var(--brand-dark);
  }

  .settings-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .settings-section-heading p {
    padding-left: 40px;
    text-align: left;
  }

  .settings-option-grid {
    grid-template-columns: 1fr;
  }

  .theme-radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .digest-time-grid {
    grid-template-columns: 1fr;
  }

  .guest-note-actions {
    justify-content: stretch;
  }

  .guest-note-expanded {
    grid-template-columns: 1fr;
  }

  .guest-note-action {
    flex: 1 1 0;
  }

  .guest-note-dialog {
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .guest-note-dialog form {
    border-radius: 22px 22px 0 0;
    padding: 22px 18px max(22px, env(safe-area-inset-bottom));
  }

  .guest-note-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .guest-note-dialog-actions .button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .file-drop,
  .guest-note-chevron svg,
  .guest-quick-action,
  .theme-radio-option,
  .upload-progress,
  .queue-item-label.is-busy::before {
    animation: none;
    transition: none;
  }
}

.guest-empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
}

.guest-empty-state p {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.guest-empty-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.guest-private-notice {
  display: grid;
  grid-column: 1 / -1;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 36px 18px;
  border: 1px solid rgba(138, 47, 61, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.guest-private-notice p {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.photo-thumb {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.photo-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: stretch;
  padding: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 38%),
    #100b0f;
}

.photo-lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox-open,
.modal-open {
  overflow: hidden;
}

.photo-lightbox-inner {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  color: #fff;
}

.photo-lightbox-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 14px) 16px 18px;
  background: linear-gradient(rgba(0, 0, 0, 0.58), transparent);
  pointer-events: none;
}

.photo-lightbox-top > * {
  pointer-events: auto;
}

.photo-lightbox-top span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.photo-lightbox-stage {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.photo-lightbox-image {
  box-sizing: border-box;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 72px 64px 92px;
  place-items: center;
}

.photo-lightbox-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 34px 90px -52px rgba(0, 0, 0, 0.9);
}

.video-poster-wrap {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(16, 11, 15, 0.74);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.photo-lightbox-image video {
  display: block;
  width: min(100%, 1180px);
  max-height: 100%;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 34px 90px -52px rgba(0, 0, 0, 0.9);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(16, 11, 15, 0.48);
  color: #fff;
  backdrop-filter: blur(12px);
}

.icon-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  transform: translateY(-50%);
}

.nav-arrow svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.15;
}

[data-lightbox-prev] {
  left: max(28px, env(safe-area-inset-left));
}

[data-lightbox-next] {
  right: max(28px, env(safe-area-inset-right));
}

.photo-lightbox-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 18px 16px calc(env(safe-area-inset-bottom) + 14px);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.photo-lightbox-actions .button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.photo-lightbox-actions .button.primary {
  border-color: rgba(180, 82, 91, 0.75);
  background: rgba(180, 82, 91, 0.88);
}

.photo-lightbox-actions .button.danger {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.72);
  color: #fff;
}

.photo-lightbox-actions .lightbox-action-button {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  pointer-events: auto;
}

.photo-lightbox-actions .lightbox-action-button:hover,
.photo-lightbox-actions .lightbox-action-button:focus-visible {
  background: rgba(255, 255, 255, 0.24);
}

.photo-lightbox-actions .lightbox-action-button.is-primary {
  border-color: rgba(180, 82, 91, 0.75);
  background: rgba(180, 82, 91, 0.88);
}

.photo-lightbox-actions .lightbox-action-button.is-primary:hover,
.photo-lightbox-actions .lightbox-action-button.is-primary:focus-visible {
  background: rgba(180, 82, 91, 0.96);
}

.photo-lightbox-actions .lightbox-action-button.is-success {
  border-color: rgba(134, 239, 172, 0.56);
  background: rgba(22, 101, 52, 0.72);
}

.photo-lightbox-actions .lightbox-action-button.is-success:hover,
.photo-lightbox-actions .lightbox-action-button.is-success:focus-visible {
  background: rgba(22, 101, 52, 0.84);
}

.photo-lightbox-actions .lightbox-action-button.is-danger {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(127, 29, 29, 0.72);
}

.photo-lightbox-actions .lightbox-action-button.is-danger:hover,
.photo-lightbox-actions .lightbox-action-button.is-danger:focus-visible {
  background: rgba(127, 29, 29, 0.86);
}

.photo-lightbox-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 74px);
  z-index: 4;
  margin: 0;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.photo-lightbox-note {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.photo-lightbox-status:empty {
  display: none;
}

.qr-page {
  display: grid;
  gap: 18px;
}

.qr-hero p:last-of-type {
  max-width: 62ch;
}

.qr-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.qr-preview {
  display: grid;
  gap: 12px;
}

.qr-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qr-preview-head .eyebrow {
  margin: 0 0 2px;
}

.qr-preview-head h2 {
  margin: 0;
}

.qr-preview-hint {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.qr-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
}

.qr-side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.qr-side-head .eyebrow {
  margin: 0 0 2px;
}

.qr-side-head h2 {
  margin: 0;
}

.qr-side-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
}

.qr-link-preview {
  padding: 11px 13px;
  border: 1px dashed rgba(138, 47, 61, 0.28);
  border-radius: 12px;
  background: var(--paper);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.qr-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qr-button-grid .button {
  justify-content: center;
  width: 100%;
}

.qr-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

.qr-note svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-poster-card {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(42, 29, 40, 0.1);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 58px -38px rgba(42, 29, 40, 0.45);
}

.qr-poster-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  pointer-events: none;
}

.qr-poster-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.qr-poster-card h1 {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 8px auto 12px;
  font-size: clamp(34px, 5vw, 54px);
}

.qr-poster-custom {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 0 auto 20px;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.qr-poster-custom.after {
  margin-top: 22px;
  margin-bottom: 10px;
}

.qr-inline-secret {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 2px auto 0;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.manage-qr-box .qr-inline-secret {
  width: min(260px, 100%);
  margin-top: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.guest-qr-view .manage-qr-box .qr-inline-secret {
  width: min(390px, 100%);
  font-size: 14px;
}

.qr-poster-footnote {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.qr-box {
  position: relative;
  z-index: 1;
  display: grid;
  justify-content: center;
  gap: 8px;
  margin: 26px 0;
}

.qr-box canvas {
  width: min(340px, 74vw);
  height: auto;
  border: 12px solid #fff;
  border-radius: 14px;
  box-shadow: 0 18px 42px -30px rgba(42, 29, 40, 0.55), 0 0 0 1px var(--line);
}

.manage-qr-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border-color: rgba(42, 29, 40, 0.1);
  background: #fff;
  box-shadow: 0 18px 46px -34px rgba(42, 29, 40, 0.38);
}

.manage-qr-card .eyebrow {
  margin: 0 0 4px;
}

.manage-qr-card .section-title-row {
  margin-bottom: 0;
}

.manage-qr-layout {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.primary-qr-card .manage-qr-layout {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: center;
}

.manage-qr-box {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 6px 0 8px;
}

.manage-qr-box canvas {
  width: min(180px, 100%);
  height: auto;
  border: 10px solid #fff;
  border-radius: 14px;
  box-shadow: 0 14px 32px -24px rgba(42, 29, 40, 0.52), 0 0 0 1px var(--line);
}

.qr-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
}

.qr-fallback::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(138, 47, 61, 0.18);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: login-status-spin 0.72s linear infinite;
}

.manage-qr-box-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.manage-qr-box-link[aria-disabled="true"] {
  cursor: default;
}

.manage-qr-box-link:not([aria-disabled="true"]):hover,
.manage-qr-box-link:not([aria-disabled="true"]):focus-visible {
  transform: translateY(-2px);
}

.manage-qr-box-link:not([aria-disabled="true"]):focus-visible {
  outline: 3px solid rgba(138, 47, 61, 0.24);
  outline-offset: 4px;
}

.primary-qr-card .manage-qr-box canvas {
  width: min(230px, 100%);
}

.primary-qr-card.is-key-missing .manage-qr-box {
  min-height: 180px;
  padding: 24px;
  border: 1px dashed rgba(138, 47, 61, 0.25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(246, 228, 223, 0.5), rgba(251, 248, 243, 0.75));
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.manage-qr-gallery-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.5;
  box-shadow: none;
}

.manage-qr-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.manage-qr-copy .copy-row.stacked {
  margin: 0;
}

.manage-qr-copy .secure-link-preview {
  background: #faf7f2;
}

.manage-qr-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  width: 100%;
}

.manage-qr-actions .button {
  width: 100%;
  min-height: 38px;
  justify-content: center;
  padding: 8px 10px;
  font-size: 13px;
  white-space: nowrap;
}

.manage-qr-actions .button.primary {
  box-shadow: 0 12px 26px -16px var(--brand-dark);
}

.manage-qr-gallery-link {
  justify-self: stretch;
  min-height: 48px;
}

@media (min-width: 961px) {
  .primary-qr-card {
    grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #fff 62%, #faf7f2 100%);
  }

  .primary-qr-card .section-title-row {
    display: grid;
    align-content: center;
    justify-content: start;
    gap: 10px;
    padding-right: 24px;
    border-right: 1px solid var(--line-soft);
  }

  .primary-qr-card .eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid rgba(138, 47, 61, 0.14);
    border-radius: 999px;
    background: var(--blush-2);
    color: var(--brand);
    font-size: 11px;
  }

  .primary-qr-card h2 {
    max-width: 7ch;
    font-size: 36px;
    line-height: 0.98;
  }

  .primary-qr-card .manage-qr-layout {
    grid-template-columns: minmax(260px, 320px) minmax(300px, 360px);
    gap: 24px;
    justify-content: end;
    align-items: center;
  }

  .primary-qr-card .manage-qr-box {
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
  }

  .primary-qr-card .manage-qr-box canvas {
    width: min(300px, 100%);
  }

  .primary-qr-card .manage-qr-copy {
    align-content: center;
    gap: 12px;
  }

  .primary-qr-card .manage-qr-actions {
    gap: 8px;
  }

  .primary-qr-card .manage-qr-actions .button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .primary-qr-card .manage-qr-gallery-link {
    min-height: 52px;
  }
}

.qr-pdf-download {
  justify-content: center;
  width: 100%;
  min-height: 54px;
  font-size: 15px;
  box-shadow: 0 18px 34px -20px var(--brand-dark), 0 0 0 3px rgba(138, 47, 61, 0.08);
}

.qr-text-form {
  display: grid;
  gap: 14px;
}

.qr-text-form .button {
  justify-self: start;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.copy-row span {
  grid-column: 1 / -1;
  color: var(--ink);
  font-weight: 900;
}

.copy-row input,
.copy-row textarea {
  min-width: 0;
  font-size: 13px;
}

.secure-link-preview {
  min-width: 0;
  overflow: hidden;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(246, 228, 223, 0.42), rgba(255, 255, 255, 0.96)),
    #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secure-link-preview.large {
  padding: 13px 14px;
  font-size: 14px;
}

.secure-link-preview.full {
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.copy-row.stacked {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.qr-link-details {
  padding: 12px 0 0;
  border-top: 1px solid var(--line-soft);
}

.qr-link-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(16px, 4vw, 42px);
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

/* Accepted payment marks: shared by the checkout page and the footer. */
.payment-methods {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.payment-mark-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 46px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.payment-mark svg {
  height: 15px;
}

.payment-mark-visa span {
  color: #1434cb;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.payment-mark-mastercard svg {
  width: 30px;
}

.payment-mark-apple svg {
  width: 13px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.payment-mark-google b {
  color: #4285f4;
  font-weight: 900;
}

/* Stripe's badge is supplied artwork, so it sits in the row unpadded. */
.payment-mark-stripe {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.payment-mark-stripe img {
  display: block;
  width: 106px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.payment-methods-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.payment-lock {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Checkout detail */
.checkout-detail {
  display: grid;
  gap: 20px;
}

.checkout-detail-head {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.checkout-detail-head h1 {
  margin: 4px 0 6px;
}

.checkout-detail-intro {
  display: grid;
  gap: 8px;
  justify-items: start;
}

/* The gallery being upgraded is the thing a buyer double-checks before paying,
   so it gets a chip of its own rather than a clause in a sentence. */
.checkout-detail-gallery {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: var(--blush-2);
  color: var(--brand-dark);
  font-size: 15px;
}

.checkout-detail-gallery strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: var(--ink);
}

.checkout-gallery-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-detail-lede {
  margin: 0;
  color: var(--muted);
}

.checkout-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkout-detail-main h2,
.checkout-detail-summary h2 {
  margin-top: 0;
}

.checkout-detail-main h3 {
  margin: 22px 0 10px;
  font-size: 16px;
}

.checkout-gains {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-gains li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.checkout-gain-label {
  font-weight: 800;
}

.checkout-gain-change {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.checkout-gain-before {
  color: var(--faint);
  text-decoration: line-through;
}

.checkout-gain-arrow {
  color: var(--brand);
  font-weight: 900;
}

.checkout-feature-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--blush-2);
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.55;
}

.checkout-detail-summary {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.checkout-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.checkout-price-row > strong {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  color: var(--brand);
}

.checkout-discount-row {
  align-items: flex-start;
}

.checkout-discount-row > strong,
.checkout-discount-row .checkout-price-label > span {
  color: var(--success, #287a52);
}

.checkout-price-label {
  display: grid;
  min-width: 0;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 800;
}

.checkout-promo-code {
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem 0.5rem;
  overflow-wrap: anywhere;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.checkout-total-row {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
}

.checkout-total-row > strong {
  font-size: 25px;
}

.checkout-vat-note {
  margin: -0.35rem 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.promo-code-field {
  margin: 1rem 0;
}

.promo-code-field > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 14px;
  font-weight: 700;
}

.promo-code-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.promo-code-controls:focus-within {
  border-color: rgba(138, 47, 61, 0.46);
  box-shadow: 0 0 0 3px rgba(138, 47, 61, 0.09);
}

.promo-code-field.has-error .promo-code-controls {
  border-color: rgba(180, 35, 24, 0.46);
}

.promo-code-controls input {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  background: transparent;
  font-size: 15px;
  text-transform: uppercase;
}

.promo-code-controls .button {
  min-height: 38px;
  padding: 8px 14px;
  border-color: var(--line);
  font-size: 14px;
}

.promo-code-error {
  margin: 0.45rem 0 0;
  padding: 0 0.15rem;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.checkout-price-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.checkout-submit {
  width: 100%;
  margin-top: 10px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding: 50px 0 34px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid var(--blush);
  border-radius: 999px;
  background: var(--blush-2);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.kicker.compact {
  margin-bottom: 12px;
}

.landing-hero h1 {
  max-width: 15ch;
  font-size: clamp(40px, 5.6vw, 66px);
}

.hero-italic {
  display: inline-block;
  color: var(--brand);
  font-style: italic;
  font-weight: 400;
}

.lead {
  max-width: 32ch;
  margin: 20px 0 26px;
  font-size: 19.5px;
  color: var(--muted);
}

.hero-actions,
.trust-row {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-row {
  margin-top: 26px;
}

/* The chips as their own strip above the closing CTA rather than in the hero. */
.trust-row-standalone {
  justify-content: center;
  margin: 0 0 34px;
}

.cta-microcopy {
  margin: 10px 0 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.trust-chip {
  min-width: 136px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.trust-chip b {
  display: block;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.trust-chip span {
  color: var(--muted);
  font-size: 12px;
}

.keepsake-stage {
  position: relative;
  display: flex;
  min-height: 460px;
  align-items: center;
  justify-content: center;
}

.keepsake-stage::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 203, 197, 0.9), transparent 65%);
}

.sample-photo {
  position: absolute;
  z-index: 1;
  width: 190px;
  height: 150px;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sample-photo::after {
  content: attr(data-caption);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 10px 7px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.42));
}

.sample-photo-a {
  transform: rotate(-10deg) translate(-100px, -66px);
  background: url("../img/abstract-poster.14515a99ca2f.webp") center / cover;
}

.sample-photo-b {
  transform: rotate(9deg) translate(104px, -40px);
  background: url("../img/abstract-upload.c49487b327d2.webp") center / cover;
}

.sample-photo-c {
  transform: rotate(6deg) translate(72px, 100px);
  background: url("../img/abstract-gallery.a0f506ac9bc1.webp") center / cover;
}

.keepsake-card {
  position: relative;
  z-index: 3;
  width: 285px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  box-shadow: 0 40px 90px -40px rgba(42, 29, 40, 0.5);
  transform: rotate(-2deg);
}

.scan-seal {
  position: absolute;
  top: -17px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  transform: rotate(12deg);
}

.keepsake-small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.keepsake-title {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-style: italic;
}

.keepsake-qr {
  display: block;
  width: 150px;
  height: 150px;
  margin: 16px auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.keepsake-card p {
  margin: 0;
  font-size: 13px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-copy h2 {
  max-width: 14ch;
  font-size: clamp(30px, 4vw, 44px);
}

.intro-copy p:not(.kicker) {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.intro-lead {
  margin-top: 20px;
  color: var(--ink);
  font-size: 18px;
}

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

.intro-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.intro-point h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.intro-point p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.intro-symbol {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--symbol-bg);
  color: var(--symbol-fg);
}

.intro-symbol svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-symbol-qr {
  --symbol-bg: #f6e4df;
  --symbol-fg: #8a2f3d;
}

.intro-symbol-lock {
  --symbol-bg: #e2eee9;
  --symbol-fg: #315c50;
}

.intro-symbol-lock path {
  fill: none;
  stroke-width: 6;
}

.intro-symbol-album {
  --symbol-bg: #e4edf4;
  --symbol-fg: #2f566b;
}

.intro-symbol-free {
  --symbol-bg: #f1e7c7;
  --symbol-fg: #7b6428;
}

.intro-symbol-free svg {
  fill: none;
  stroke-width: 5;
}

.landing-section {
  padding: 74px 0;
}

.landing-section.intro-band {
  margin-bottom: 68px;
  padding: 34px;
}

.section-head {
  max-width: 650px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
}

.event-band {
  margin-inline: calc(50% - 50vw);
  padding-top: 68px;
  padding-bottom: 78px;
  padding-inline: max(16px, calc((100vw - 1120px) / 2));
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}

.event-band .section-head {
  margin-bottom: 30px;
}

.event-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.event-type-card {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
  min-height: 254px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.event-type-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.event-type-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.event-graphic {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  color: var(--brand-dark);
}

.event-graphic svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-cabin .event-graphic {
  background: #e6f0e2;
  color: #37583f;
}

.event-party .event-graphic {
  background: #f6e4df;
  color: #8a2f3d;
}

.event-camp .event-graphic {
  background: #f1e7c7;
  color: #7b6428;
}

.event-parents .event-graphic {
  background: #e4edf4;
  color: #2f566b;
}

.event-work .event-graphic {
  background: #ebe7f2;
  color: #51436a;
}

.event-family .event-graphic {
  background: #f3e2e8;
  color: #7b3653;
}

.event-trip .event-graphic {
  background: #e2eee9;
  color: #315c50;
}

.event-community .event-graphic {
  background: #f0e7dc;
  color: #76563b;
}

.pricing-band {
  padding-top: 28px;
  padding-bottom: 76px;
}

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

.pricing-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
  min-height: 52px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.12;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card ul li {
  position: relative;
  padding-left: 28px;
  color: #4c3c46;
  font-size: 14px;
  line-height: 1.4;
}

.pricing-card ul li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background-color: var(--blush-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238a2f3d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.pricing-card-popular ul li::before {
  background-color: var(--blush);
}

.pricing-card ul + p {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}

.pricing-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-price {
  min-height: 44px;
  color: var(--brand-dark) !important;
  font-size: 26px !important;
  font-weight: 900;
  line-height: 1.05 !important;
}

.pricing-price span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.pricing-card-free {
  border-color: rgba(138, 47, 61, 0.22);
  background: linear-gradient(135deg, #fff, var(--blush-2));
}

.pricing-card-free .button {
  align-self: end;
  margin-top: 4px;
}

.pricing-card-time {
  background: var(--paper);
}

.pricing-card-popular {
  border-color: rgba(138, 47, 61, 0.46);
  box-shadow: 0 18px 44px rgba(138, 47, 61, 0.16);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 18px;
  max-width: calc(100% - 24px);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
}

.pricing-card-form {
  font: inherit;
  text-align: left;
}

.pricing-card-form .button {
  align-self: end;
  width: 100%;
  margin-top: 6px;
}

.pricing-card-locked .button {
  align-self: end;
  width: 100%;
  margin-top: 6px;
}

.pricing-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.gallery-expansion-shop {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.expansion-shop-head {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.expansion-shop-head > .button {
  justify-self: start;
}

.expansion-shop-head h1 {
  max-width: 760px;
  margin: 4px 0 10px;
}

.expansion-shop-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.6;
}

.package-password-prompt {
  margin-bottom: 22px;
}

.guest-payer-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 111, 86, 0.18);
  border-radius: 14px;
  background: rgba(31, 111, 86, 0.08);
  color: #174b3e;
}

.guest-payer-note strong,
.guest-payer-note p {
  margin: 0;
}

.guest-payer-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.guest-payer-email {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.guest-payer-email input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.purchase-terms-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.purchase-terms-note a {
  color: var(--brand);
  font-weight: 900;
}

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

.expansion-pricing-grid .pricing-card {
  display: flex;
  flex-direction: column;
}

.expansion-pricing-grid .pricing-card .button {
  align-self: stretch;
  width: 100%;
  margin-top: auto;
}

.expansion-pricing-grid .pricing-card ul {
  margin-bottom: 4px;
}

.capacity-stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin: 6px 0 0;
  padding: 5px 0;
  border-block: 1px solid rgba(108, 91, 104, 0.12);
}

.capacity-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 7px 0;
  border: 0;
  background: transparent;
}

.capacity-stat + .capacity-stat {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(108, 91, 104, 0.16);
}

.capacity-stat-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted);
  opacity: 0.72;
}

.capacity-stat-icon svg {
  width: 17px;
  height: 17px;
}

.capacity-stat-text {
  display: grid;
  gap: 2px;
}

.capacity-stat dt {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.capacity-stat dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.tile-wine {
  background: linear-gradient(135deg, #caa4a0, var(--brand));
}

.tile-gold {
  background: linear-gradient(135deg, #e0cc9c, var(--gold));
}

.tile-sage {
  background: linear-gradient(135deg, #a6b596, var(--sage));
}

.tile-blush {
  background: linear-gradient(135deg, #f3ded9, #d3a29c);
}

.tile-ink {
  background: linear-gradient(135deg, #6b5563, var(--ink));
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.landing-cta h2 {
  max-width: 19ch;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.landing-cta p:not(.kicker) {
  max-width: 58ch;
  line-height: 1.5;
}

.doc-page {
  width: min(820px, 100%);
  margin: 34px auto 70px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.join-panel {
  width: min(580px, 100%);
  margin: 48px auto 76px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.join-panel h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.join-subtitle,
.join-note {
  line-height: 1.65;
}

.join-form {
  display: grid;
  gap: 16px;
  margin: 28px 0 18px;
}

.join-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.join-form input {
  font-size: 16px;
}

.join-fallback {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(138, 47, 61, 0.16);
  border-radius: 16px;
  background: var(--blush-2);
}

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

.join-fallback p {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.join-fallback .button {
  justify-self: start;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 12px;
  background: rgba(180, 35, 24, 0.08);
  color: var(--danger);
  font-weight: 800;
}

.doc-page h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.doc-page h2 {
  margin-top: 34px;
  font-size: 23px;
}

.doc-page h3 {
  margin: 20px 0 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.doc-page p {
  line-height: 1.7;
}

.doc-page ul,
.doc-page ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.doc-page li {
  margin-bottom: 7px;
}

.doc-page table {
  width: 100%;
  margin: 14px 0 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.doc-page th,
.doc-page td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.doc-page th {
  background: var(--blush-2);
  color: var(--ink);
  font-weight: 800;
}

.doc-page a {
  color: var(--brand);
  font-weight: 800;
}

.doc-updated {
  margin-top: 4px;
  font-size: 14px;
}

.legal-note {
  margin: 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--blush);
  border-radius: 14px;
  background: var(--blush-2);
  color: var(--brand-dark);
  font-weight: 700;
}

.legal-doc {
  width: min(800px, 100%);
  margin-top: 44px;
}

.form-box {
  margin: 14px 0 18px;
  padding: 18px 20px;
  border: 1px dashed var(--brand-soft);
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-hero {
  padding: 48px 0 28px;
  text-align: center;
}

.faq-eye {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 500;
}

.faq-hero p {
  max-width: 36ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.faq-list {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 20px 0 80px;
}

.faq-list details {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.faq-list details[open] {
  box-shadow: 0 18px 46px -28px rgba(42, 29, 40, 0.4);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 800;
  list-style: none;
}

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

.faq-plus {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--blush);
  border-radius: 50%;
  background: var(--blush-2);
  color: var(--brand);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 22px;
}

.faq-answer p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--brand);
  font-weight: 800;
}

.faq-cta {
  margin: 28px 0 0;
  padding: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  text-align: center;
}

.faq-cta h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 500;
}

.faq-cta p {
  max-width: 44ch;
  margin: 0 auto 20px;
  color: rgba(255, 255, 255, 0.86);
}

.faq-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.how-page {
  width: min(1080px, 100%);
  margin: 0 auto 82px;
}

.how-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.how-section {
  margin-top: 62px;
}

.how-section-lead {
  max-width: 64ch;
  margin: -6px 0 24px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

/* ---------- hero ---------- */

.how-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(26px, 5vw, 52px) 0 6px;
}

.how-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.how-lead {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.72;
}

.how-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.how-hero-poster {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(165deg, #fff, var(--paper-2));
  box-shadow: var(--shadow);
  text-align: center;
}

.how-poster-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.how-poster-qr {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: repeat(3, 34px);
  gap: 6px;
  margin: 6px 0 4px;
}

.how-poster-qr i {
  border-radius: 8px;
  background: var(--ink);
}

.how-poster-qr i:nth-child(5) {
  background: var(--brand);
}

.how-poster-qr i:nth-child(2),
.how-poster-qr i:nth-child(4),
.how-poster-qr i:nth-child(6),
.how-poster-qr i:nth-child(8) {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.how-hero-poster b {
  font-size: 16px;
}

.how-hero-poster small {
  max-width: 26ch;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- steps ---------- */

.how-stepper {
  display: grid;
  gap: 14px;
}

.how-step-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.how-step-tab {
  display: grid;
  gap: 8px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.how-step-tab:hover {
  border-color: var(--brand-soft);
  color: var(--brand);
}

.how-step-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.how-step-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.how-step-tab.is-active {
  border-color: transparent;
  background: linear-gradient(150deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.how-step-tab.is-active .how-step-index {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.how-step-stage {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  align-items: center;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.how-step-iconbox {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: var(--blush-2);
  color: var(--brand);
}

.how-step-icon {
  display: none;
}

.how-step-iconbox[data-step-icon="create"] [data-step-icon-for="create"],
.how-step-iconbox[data-step-icon="share"] [data-step-icon-for="share"],
.how-step-iconbox[data-step-icon="upload"] [data-step-icon-for="upload"],
.how-step-iconbox[data-step-icon="manage"] [data-step-icon-for="manage"],
.how-step-iconbox[data-step-icon="keep"] [data-step-icon-for="keep"] {
  display: block;
}

.how-step-icon svg {
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-step-panel {
  display: none;
}

.how-step-panel.is-active {
  display: block;
}

.how-step-num {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.how-step-panel h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.25;
}

.how-step-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.how-step-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-step-ctrl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.how-step-ctrl:hover {
  border-color: var(--brand-soft);
  color: var(--brand);
}

.how-step-ctrl svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-step-counter {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.how-ticks {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-ticks li {
  position: relative;
  padding-left: 25px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.how-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: var(--blush-2);
  box-shadow: inset 0 0 0 1px rgba(138, 47, 61, 0.2);
}

.how-ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 6px;
  height: 3px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- photo flow ---------- */

.how-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.how-flow-stage {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.how-flow-stage.is-server {
  border-style: dashed;
  border-color: rgba(138, 47, 61, 0.34);
  background: linear-gradient(165deg, #fff, rgba(246, 228, 223, 0.5));
}

.how-flow-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--brand);
}

.how-flow-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-flow-stage h3 {
  margin: 2px 0 0;
  font-size: 16px;
}

.how-flow-stage > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.how-flow-stage ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.how-flow-stage li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.how-flow-stage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.how-flow-arrow {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-width: 96px;
  padding: 0 4px;
}

.how-flow-line {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(138, 47, 61, 0.35);
}

.how-flow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(138, 47, 61, 0.5);
  border-right: 2px solid rgba(138, 47, 61, 0.5);
  transform: translateY(-50%) rotate(45deg);
}

.how-flow-arrow b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}

.how-flow-note {
  margin: 14px 0 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
}

.how-flow-note b {
  color: var(--ink);
}

/* ---------- demo ---------- */

.how-lab {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.how-lab-cell {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.how-lab-cell h3 {
  margin: 0;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.how-lab-cell-server {
  background: linear-gradient(160deg, #f7f2ea, #efe6d9);
}

.how-lab-screen {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.how-lab-canvas,
.how-lab-result {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.how-lab-screen[data-lab-screen="encrypted"] .how-lab-canvas,
.how-lab-screen[data-lab-screen="failed"] .how-lab-canvas,
.how-lab-screen[data-lab-screen="decrypted"] .how-lab-canvas {
  visibility: hidden;
}

.how-lab-screen[data-lab-screen="decrypted"] .how-lab-canvas {
  position: absolute;
  inset: 0;
}

.how-lab-noise {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(90deg, #2a1d28 0 4px, #4a2f3a 4px 7px, #2a1d28 7px 11px);
}

.how-lab-screen[data-lab-screen="failed"] .how-lab-noise::after {
  content: "zlý kľúč";
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.92);
  color: var(--danger);
  font-size: 13px;
  font-weight: 900;
}

.how-lab-screen-note {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.5;
}

.how-lab-bytes {
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #241a22;
}

.how-lab-bytes code {
  display: block;
  color: #f0d9d0;
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.how-lab-bytes-note,
.how-lab-empty {
  margin: 10px 0 0;
  color: rgba(240, 217, 208, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.how-lab-empty {
  margin: 0;
  font-size: 12px;
}

.how-lab-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.how-lab-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.how-lab-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.how-lab-meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.how-lab-meta dd.is-never {
  color: var(--brand);
}

.how-lab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.how-lab-buttons .button {
  padding: 10px 16px;
  font-size: 13px;
}

.how-lab-buttons .button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.how-lab-status {
  margin: 0;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.how-lab-status[data-tone="ok"] {
  background: rgba(126, 140, 110, 0.16);
  color: #4d5a3f;
}

.how-lab-status[data-tone="bad"] {
  background: rgba(180, 35, 24, 0.1);
  color: var(--danger);
}

.how-lab-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

/* ---------- url ---------- */

.how-url {
  display: grid;
  gap: 14px;
}

.how-url-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: clamp(13px, 1.8vw, 17px);
  font-weight: 800;
  word-break: break-all;
}

.how-url-public {
  color: var(--ink);
}

.how-url-secret {
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--blush-2);
  color: var(--brand-dark);
}

.how-url-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.how-url-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.how-url-card h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.how-url-card code {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 800;
  word-break: break-all;
}

.how-url-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.how-url-card.is-secret {
  border-color: rgba(138, 47, 61, 0.3);
}

.how-url-card.is-secret h3 {
  color: var(--brand);
}

.how-url-card.is-secret code {
  background: var(--blush-2);
  color: var(--brand-dark);
}

/* ---------- provider ---------- */

.how-see-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.how-see-card {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.how-see-card h3 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how-see-card.yes h3 {
  color: var(--muted);
}

.how-see-card.no h3 {
  color: var(--brand);
}

.how-see-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-see-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.how-see-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--faint);
}

.how-see-card.no li::before {
  background: var(--brand-soft);
}

/* ---------- cases ---------- */

.how-cases {
  display: grid;
  gap: 10px;
}

.how-case {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.how-case summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.how-case summary::-webkit-details-marker {
  display: none;
}

.how-case[open] summary {
  color: var(--brand);
}

.how-case[open] .faq-plus {
  transform: rotate(45deg);
}

.how-case .faq-plus {
  transition: transform 0.18s ease;
}

.how-case p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.7;
}

.how-final-cta {
  margin-top: 56px;
}

@media (max-width: 960px) {
  .how-hero {
    grid-template-columns: 1fr;
  }

  .how-step-rail {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .how-step-stage {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .how-flow {
    grid-template-columns: 1fr;
  }

  .how-flow-arrow {
    min-width: 0;
    padding: 2px 0;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    grid-auto-flow: column;
  }

  .how-flow-line {
    width: 2px;
    height: 26px;
  }

  .how-flow-line::after {
    right: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .how-lab-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .how-page {
    margin-bottom: 46px;
  }

  .how-section {
    margin-top: 44px;
  }

  .how-step-rail {
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .how-step-tab {
    scroll-snap-align: start;
  }

  .how-step-stage {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .how-step-iconbox {
    width: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
  }

  .how-step-icon svg {
    width: 46px;
    height: 46px;
  }

  .how-url-legend,
  .how-see-grid {
    grid-template-columns: 1fr;
  }

  .how-lab-buttons .button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .how-final-cta {
    margin-top: 32px;
  }
}

@media (max-width: 960px) {
  .manage-page {
    left: auto;
    width: 100%;
    transform: none;
  }

  .manage-page .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-main-stack,
  .manage-side-stack {
    display: contents;
  }

  .manage-side-stack {
    position: static;
  }

  .primary-qr-card {
    order: 1;
  }

  /* .manage-main-stack becomes display:contents here, so these are grid items
     and unordered siblings would sort ahead of the QR card at order 1. Both
     account prompts are mutually exclusive branches, so they share a slot. */
  .manage-account-prompt,
  .manage-grid .email-verification-prompt {
    order: 2;
  }

  .gallery-plan-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gallery-plan-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .gallery-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-metrics article {
    grid-template-rows: auto auto;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 12px;
    border-radius: 8px;
  }

  .metric-heading {
    min-width: 0;
  }

  .metric-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .gallery-metrics strong,
  .gallery-metrics strong[data-storage-capacity-display] {
    justify-self: end;
    max-width: min(52vw, 280px);
    margin-top: 0;
    font-size: clamp(17px, 4.6vw, 22px);
    line-height: 1.05;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .gallery-metrics strong[data-storage-capacity-display] {
    font-size: clamp(15px, 4vw, 20px);
  }

  .metric-progress {
    grid-column: 1 / -1;
    height: 5px;
  }

  .expansion-cta-panel {
    order: 3;
  }

  .sticky-expansion-button {
    display: none;
  }

  .expansion-cta-panel.is-free-tier .sticky-expansion-button {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid rgba(138, 47, 61, 0.2);
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 34px -18px var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
  }

  .sticky-expansion-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .expansion-cta-panel.is-free-tier {
    position: static;
    z-index: 7;
  }

  .manage-page .hero-panel {
    order: 4;
  }

  .settings-overview-panel {
    order: 5;
  }

  .expansion-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capacity-stats {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .capacity-stat {
    padding: 7px 0;
  }

  .capacity-stat + .capacity-stat {
    margin-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(108, 91, 104, 0.12);
    border-left: 0;
  }

  .manage-photos-panel {
    order: 6;
  }

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

  .primary-qr-card .manage-qr-layout {
    grid-template-columns: 1fr;
  }

  .guest-qr-view .manage-qr-layout {
    grid-template-columns: 1fr;
  }

  .manage-qr-box canvas {
    width: min(220px, 100%);
  }

  .primary-qr-card .manage-qr-box canvas {
    width: min(280px, 76vw);
  }

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

  .qr-side {
    position: static;
  }
}

@media (max-width: 420px) {
  .photo-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .photo-admin-card {
    padding: 6px;
    border-radius: 8px;
  }

  .admin-photo-meta {
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    line-height: 1.15;
  }

  .gallery-metrics article {
    grid-template-columns: 1fr;
  }

  .gallery-metrics strong,
  .gallery-metrics strong[data-storage-capacity-display] {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  .manage-qr-actions .button {
    gap: 5px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .manage-qr-actions .button-icon {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 720px) {
  .toolbar,
  .manage-grid,
  .landing-hero,
  .intro-band,
  .help-strip {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-action {
    justify-items: start;
  }

  .gallery-count-hint {
    text-align: left;
  }

  .manage-page {
    left: auto;
    width: 100%;
    transform: none;
  }

  .manage-page .manage-grid {
    grid-template-columns: 1fr;
  }

  .manage-main-stack {
    gap: 16px;
  }

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

  .key-relogin-form {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .key-relogin-form .button {
    width: 100%;
    white-space: normal;
  }

  .key-access-panel .key-recovery-form .copy-row > span,
  .key-access-panel .key-recovery-form .copy-row > input,
  .key-access-panel .key-recovery-form .copy-row > .field-help,
  .key-access-panel .key-recovery-form .button {
    grid-column: 1;
  }

  .key-access-panel .key-recovery-form .copy-row > span {
    grid-row: 1;
  }

  .key-access-panel .key-recovery-form .copy-row > input {
    grid-row: 2;
  }

  .key-access-panel .key-recovery-form .copy-row > .field-help {
    grid-row: 3;
  }

  .key-access-panel .key-recovery-form .button {
    grid-row: 4;
    width: 100%;
    margin-top: 2px;
  }

  .settings-save-button {
    justify-self: stretch;
    width: 100%;
  }

  .gallery-card {
    min-height: 0;
  }

  .gallery-card-head,
  .gallery-card-stats {
    min-height: 0;
  }

  .topbar nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-account {
    max-width: 100%;
  }

  .nav-account .nav-user-email {
    max-width: min(220px, 52vw);
  }

  .landing-hero {
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 22px;
    /* Keep the rotated hero polaroids from spilling past the screen edge
       (which let the page pan sideways on narrow phones). */
    overflow-x: clip;
  }

  .landing-hero h1 {
    max-width: none;
  }

  .intro-band {
    gap: 24px;
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .intro-copy h2 {
    max-width: none;
  }

  .landing-section.intro-band {
    margin-bottom: 44px;
    padding: 22px;
  }

  .intro-point {
    padding: 14px;
  }

  .keepsake-stage {
    min-height: 390px;
    /* Shrink the photo cluster a touch so it fits within the screen without
       changing the stage's layout footprint. */
    transform: scale(0.82);
  }

  .event-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .pricing-band {
    padding-top: 20px;
  }

  .pricing-card {
    min-height: 0;
  }

  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .guest-download-all {
    align-items: flex-start;
    flex-direction: column;
  }

  .guest-owner-full-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .guest-owner-full-notice .button {
    width: 100%;
  }

  .guest-zip-status {
    text-align: left;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-indicator-row {
    grid-template-columns: 1fr;
  }

  .settings-overview-panel .settings-indicator-row,
  .settings-overview-panel .settings-indicator-row.is-premium-locked {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .manage-side-stack {
    width: 100%;
  }

  .bulk-photo-actions {
    right: 12px;
    bottom: 12px;
    left: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 18px;
  }

  .bulk-photo-actions .button {
    flex: 1 1 auto;
    padding: 8px 10px;
  }

  .bulk-photo-actions > span {
    flex: 1 0 100%;
  }

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

  .primary-qr-card .manage-qr-layout {
    grid-template-columns: 1fr;
  }

  .guest-qr-view .manage-qr-layout {
    grid-template-columns: 1fr;
  }

  .manage-qr-box canvas {
    width: min(220px, 100%);
  }

  .primary-qr-card .manage-qr-box canvas {
    width: min(300px, 82vw);
  }

  .settings-toggle-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .settings-toggle-row.is-premium-locked {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .settings-toggle-control {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .settings-state {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .settings-overview-panel .settings-indicator-row,
  .settings-overview-panel .settings-indicator-row.is-premium-locked {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 8px;
  }

  .settings-overview-panel .settings-toggle-copy {
    min-width: 0;
  }

  .settings-overview-panel .settings-toggle-copy strong {
    font-size: 12px;
  }

  .settings-overview-panel .settings-state {
    grid-column: auto;
    width: auto;
    white-space: nowrap;
  }

  .settings-overview-panel .settings-indicator-mobile-toggle:not(:checked) ~ .is-mobile-extra {
    display: none;
  }

  .settings-overview-panel .settings-indicator-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    justify-self: start;
    min-height: 36px;
    margin-top: 2px;
    padding: 7px 12px;
    border: 1px solid rgba(138, 47, 61, 0.18);
    border-radius: 999px;
    background: rgba(251, 248, 243, 0.78);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
  }

  .settings-overview-panel .settings-indicator-more svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
  }

  .settings-overview-panel .settings-indicator-more-close {
    display: none;
  }

  .settings-overview-panel .settings-indicator-mobile-toggle:checked ~ .settings-indicator-more .settings-indicator-more-open {
    display: none;
  }

  .settings-overview-panel .settings-indicator-mobile-toggle:checked ~ .settings-indicator-more .settings-indicator-more-close {
    display: inline;
  }

  .settings-overview-panel .settings-indicator-mobile-toggle:checked ~ .settings-indicator-more svg {
    transform: rotate(180deg);
  }

  .settings-overview-panel .settings-indicator-mobile-toggle:focus-visible ~ .settings-indicator-more {
    outline: 2px solid rgba(138, 47, 61, 0.35);
    outline-offset: 3px;
  }

  .premium-lock-cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .settings-toggle-row.is-premium-locked .settings-toggle-copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .settings-toggle-row.is-premium-locked .settings-toggle-control {
    grid-column: 4;
    grid-row: 2;
  }

  .settings-toggle-row.is-premium-locked .settings-state {
    grid-column: 2;
    grid-row: 2;
    width: fit-content;
  }

  .settings-toggle-row.is-premium-locked .premium-lock-indicator {
    grid-column: 1;
    grid-row: 2;
  }

  .settings-toggle-row.is-premium-locked .premium-lock-cta {
    grid-column: 1;
    grid-row: 2;
    width: auto;
  }

  .qr-poster-card {
    min-height: auto;
  }

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

  .photo-lightbox-top {
    padding-inline: 12px;
  }

  .photo-lightbox-stage {
    height: 100%;
  }

  .photo-lightbox-image {
    padding: 66px 0 104px;
  }

  .photo-lightbox-image img {
    border-radius: 0;
    box-shadow: none;
  }

  .nav-arrow {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
  }

  .nav-arrow svg {
    width: 26px;
    height: 26px;
  }

  [data-lightbox-prev] {
    left: max(12px, env(safe-area-inset-left));
  }

  [data-lightbox-next] {
    right: max(12px, env(safe-area-inset-right));
  }

  .photo-lightbox-actions {
    flex-wrap: wrap;
    padding-inline: 12px;
  }

  .photo-lightbox-actions .button {
    min-height: 40px;
    padding: 8px 12px;
  }

  .photo-lightbox-actions .lightbox-action-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-detail-summary {
    position: static;
  }
}

@media (max-width: 420px) {
  .nav-account .nav-user-email {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-account {
    padding-left: 6px;
  }

  .settings-overview-panel .settings-indicator-row,
  .settings-overview-panel .settings-indicator-row.is-premium-locked {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6px;
  }

  .settings-overview-panel .settings-state {
    padding: 4px 7px;
    font-size: 11px;
  }

  .settings-overview-panel .settings-state::before {
    width: 5px;
    height: 5px;
  }
}

@media print {
  .topbar,
  .no-print,
  .messages {
    display: none;
  }

  body {
    background: #fff;
  }

  .print-card {
    border: 0;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .qr-page,
  .qr-layout,
  .qr-preview {
    display: block;
  }

  .qr-poster-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
