:root {
  color-scheme: dark;
  --bg: #050505;
  --fg: #f6f2e8;
  --muted: #b8b1a5;
  --accent: #f2f2f2;
  --danger: #f47070;
}

/* Organizer v1 control surface */
.app-shell {
  min-height: 100svh;
  background: #f8f7fb;
  color: #1a1822;
  font-family: Inter, Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 8;
  width: min(1000px, calc(100% - 48px));
  min-height: 60px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8e6ec;
  background: rgba(248, 247, 251, 0.94);
  backdrop-filter: blur(12px);
}

.app-logo {
  color: #1a1822;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.event-menu,
.account-menu {
  position: relative;
  min-width: 0;
}

.event-menu summary,
.account-menu summary,
.event-menu-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a1822;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
}

.event-menu summary {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.event-menu summary::-webkit-details-marker,
.account-menu summary::-webkit-details-marker {
  display: none;
}

.event-menu summary::after {
  content: "⌄";
  color: #6b6678;
}

.account-menu {
  justify-self: end;
}

.app-header > .account-menu:last-child {
  grid-column: 3;
}

.account-menu summary {
  width: 38px;
  height: 38px;
  min-height: 38px;
  justify-content: center;
  border-radius: 999px;
  background: #eeeafb;
  color: #6e56cf;
  font-size: 15px;
}

.event-menu div,
.account-menu div {
  position: absolute;
  top: calc(100% + 8px);
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #e8e6ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(26, 24, 34, 0.12);
}

.event-menu div {
  left: 0;
}

.account-menu div {
  right: 0;
}

.event-menu a,
.account-menu a,
.account-menu button,
.account-menu span {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1a1822;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  text-align: left;
}

.account-menu span {
  color: #6b6678;
}

.account-menu button {
  width: 100%;
  cursor: pointer;
}

.event-control-page,
.events-index,
.profile-page,
.create-event-screen,
.manage-photos-page {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
}

.event-control-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0 48px;
}

.event-title-line,
.events-heading,
.manage-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.event-title-line h1,
.events-heading h1,
.manage-heading h1,
.create-event-panel h1 {
  margin: 0;
  color: #1a1822;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.event-readiness > h1 {
  margin: 0;
  color: #1a1822;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.plan-label,
.muted-copy,
.readiness-lines span,
.photos-control p,
.manage-heading p,
.create-event-panel p,
.guest-access-copy p,
.event-row-card p {
  color: #6b6678;
}

.plan-label {
  margin: 10px 0 18px;
  font-size: 16px;
  font-weight: 700;
}

.event-readiness .plan-label {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.readiness-lines {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.readiness-status-block {
  display: grid;
  gap: 4px;
}

.readiness-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1a1822;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2f7d57;
}

.status-dot-closed {
  background: #8a8594;
}

.readiness-capacity {
  color: #6b6678;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.readiness-closing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.readiness-setting {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.readiness-setting-label {
  color: #6b6678;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.readiness-setting-value {
  color: #1a1822;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.readiness-edit-button {
  flex: 0 0 auto;
  margin: -10px -4px;
  padding: 10px 4px;
  color: #6e56cf;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.inline-edit-button {
  margin-left: 8px;
}

.app-card,
.create-event-panel,
.dashboard-panel {
  border: 1px solid #e8e6ec;
  border-radius: 12px;
  background: #ffffff;
}

.app-card,
.create-event-panel {
  padding: 20px;
}

.upgrade-prompt {
  display: grid;
  gap: 10px;
}

.free-plan-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: #f3f1f6;
}

.free-plan-prompt .plan-label {
  margin: 0;
  color: #1a1822;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.free-plan-prompt .upgrade-allowance {
  margin: 4px 0 0;
  color: #6b6678;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.free-plan-prompt .tertiary-button {
  flex: 0 0 auto;
  color: #6e56cf;
  font-size: 15px;
  font-weight: 600;
}

.upgrade-prompt h2,
.guest-access-copy h2,
.photos-control h2,
.event-details-plain h2,
.panel-heading h2 {
  margin: 0;
  color: #1a1822;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.app-button,
.dashboard-primary-button,
.dashboard-secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.ui-icon {
  width: 1.08em;
  height: 1.08em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-text-button,
.section-heading-with-icon,
.inline-status-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.section-heading-with-icon {
  gap: 9px;
}

.section-heading-with-icon .ui-icon {
  color: #6e56cf;
}

.inline-status-with-icon .ui-icon {
  width: 0.98em;
  height: 0.98em;
}

.app-button-primary,
.dashboard-primary-button {
  border: 1px solid #6e56cf;
  background: #6e56cf;
  color: #ffffff;
}

.app-button-primary:hover,
.dashboard-primary-button:hover {
  background: #5d46bf;
}

.app-button-secondary,
.dashboard-secondary-button {
  border: 1px solid #e8e6ec;
  background: #ffffff;
  color: #1a1822;
}

.tertiary-button,
.tertiary-link {
  border: 0;
  background: transparent;
  color: #6e56cf;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.readiness-upgrade {
  margin-top: 18px;
}

.guest-access-card {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid #e8e6ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.qr-block {
  display: grid;
  place-items: center;
  gap: 20px;
}

.qr-block img {
  width: 188px;
  height: 188px;
  display: block;
  padding: 0;
  background: #ffffff;
}

.guest-access-copy {
  display: grid;
  gap: 6px;
}

.guest-access-copy h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.guest-access-description {
  margin: 0;
  color: #6b6678;
  font-size: 15px;
  line-height: 1.5;
}

.guest-link-group {
  display: grid;
  gap: 8px;
}

.guest-link-label {
  margin: 0;
  color: #6b6678;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.guest-url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.guest-url {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #1a1822;
  font-size: 15px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-copy-button {
  flex: 0 0 auto;
}

.guest-open-link {
  justify-self: start;
  color: #6e56cf;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

.guest-open-link:hover,
.guest-copy-button:hover,
.tertiary-button:hover,
.tertiary-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.action-row,
.photos-actions,
.manage-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-block .app-button {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
}

.photos-control {
  display: grid;
  gap: 0;
}

.photos-control-copy {
  display: grid;
  gap: 0;
}

.photos-control-copy h2,
.event-details-plain h2 {
  margin: 0;
  color: #1a1822;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.photos-control-copy p {
  margin: 0;
  color: #6b6678;
  font-size: 15px;
  line-height: 1.45;
}

.photos-control-copy p:first-of-type {
  margin-top: 12px;
  color: #1a1822;
  font-size: 16px;
  font-weight: 500;
}

.photos-control-copy p + p {
  margin-top: 5px;
}

.photos-actions {
  align-items: center;
  margin-top: 12px;
}

.photos-actions .tertiary-link {
  color: #6e56cf;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.event-details-plain {
  display: grid;
  gap: 22px;
}

.event-details-plain .detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail-label {
  color: #6b6678;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.detail-value {
  color: #1a1822;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.event-details-plain .tertiary-button {
  flex: 0 0 auto;
  margin: -10px -4px;
  padding: 10px 4px;
  color: #6e56cf;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.publish-gallery-button {
  min-height: 44px;
}

/* Mobile event screen */
.app-shell:has(.event-control-page) {
  width: min(100%, 495px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #f9f4ed;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.1);
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell:has(.event-control-page) .app-header {
  position: relative;
  width: 100%;
  min-height: 65px;
  margin: 0;
  padding: 0 16px 0 26px;
  border-bottom: 1px solid #d0d0d0;
  background: transparent;
  backdrop-filter: none;
}

.app-shell:has(.event-control-page) .app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e2721;
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.app-shell:has(.event-control-page) .app-logo span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 24px;
}

.app-shell:has(.event-control-page) .event-menu {
  display: none;
}

.app-shell:has(.event-control-page) .account-menu summary {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  box-shadow: none;
}

.app-shell:has(.event-control-page) .account-menu summary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#898989, #898989) 0 0 / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 5px / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 10px / 17px 1px no-repeat;
}

.app-shell:has(.event-control-page) .account-menu div {
  min-width: 230px;
  border-color: #d7d0c5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(46, 39, 33, 0.16);
}

.app-shell:has(.event-control-page) .account-menu a,
.app-shell:has(.event-control-page) .account-menu button,
.app-shell:has(.event-control-page) .account-menu span {
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.app-shell:has(.event-control-page) .account-menu span {
  color: #7f7f7f;
}

.app-shell:has(.events-index, .profile-page) {
  width: min(100%, 495px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #f9f4ed;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.1);
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell:has(.events-index, .profile-page) .app-header {
  position: relative;
  width: 100%;
  min-height: 65px;
  margin: 0;
  padding: 0 16px 0 26px;
  border-bottom: 1px solid #d0d0d0;
  background: transparent;
  backdrop-filter: none;
}

.app-shell:has(.events-index, .profile-page) .app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e2721;
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.app-shell:has(.events-index, .profile-page) .app-logo span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 24px;
}

.app-shell:has(.events-index, .profile-page) .account-menu summary {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  box-shadow: none;
}

.app-shell:has(.events-index, .profile-page) .account-menu summary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#898989, #898989) 0 0 / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 5px / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 10px / 17px 1px no-repeat;
}

.app-shell:has(.events-index, .profile-page) .account-menu div {
  min-width: 230px;
  border-color: #d7d0c5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(46, 39, 33, 0.16);
}

.app-shell:has(.events-index, .profile-page) .account-menu a,
.app-shell:has(.events-index, .profile-page) .account-menu button,
.app-shell:has(.events-index, .profile-page) .account-menu span {
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.app-shell:has(.events-index, .profile-page) .account-menu span {
  color: #7f7f7f;
}

.app-shell:has(.create-event-screen) {
  width: min(100%, 495px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #f9f4ed;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.1);
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell:has(.create-event-screen) .app-header {
  position: relative;
  width: 100%;
  min-height: 65px;
  margin: 0;
  padding: 0 16px 0 26px;
  border-bottom: 1px solid #d0d0d0;
  background: transparent;
  backdrop-filter: none;
}

.app-shell:has(.create-event-screen) .app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e2721;
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.app-shell:has(.create-event-screen) .app-logo span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 24px;
}

.app-shell:has(.create-event-screen) .account-menu summary {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  box-shadow: none;
}

.app-shell:has(.create-event-screen) .account-menu summary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#898989, #898989) 0 0 / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 5px / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 10px / 17px 1px no-repeat;
}

.app-shell:has(.create-event-screen) .account-menu div {
  min-width: 230px;
  border-color: #d7d0c5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(46, 39, 33, 0.16);
}

.app-shell:has(.create-event-screen) .account-menu a,
.app-shell:has(.create-event-screen) .account-menu button,
.app-shell:has(.create-event-screen) .account-menu span {
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.app-shell:has(.create-event-screen) .account-menu span {
  color: #7f7f7f;
}

.app-shell:has(.event-control-page) .event-control-page {
  width: 100%;
  gap: 24px;
  padding: 0 16px 34px;
}

.event-overview-strip {
  width: calc(100% + 32px);
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 6px;
  margin: 0 -16px -4px;
  padding: 14px 23px 18px;
  border-bottom: 1px solid #d0d0d0;
}

.event-overview-strip h1 {
  margin: 0;
  color: #2e2721;
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.event-overview-strip p {
  margin: 0;
  color: #6f645a;
  font-size: 14px;
  line-height: 18px;
}

.app-shell:has(.event-control-page) .free-plan-prompt {
  min-height: 130px;
  align-items: center;
  gap: 18px;
  margin: 4px 2px 26px;
  padding: 22px 23px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #f9f4ed;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.app-shell:has(.event-control-page) .free-plan-prompt .plan-label {
  max-width: 250px;
  margin: 0;
  color: #2e2721;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.app-shell:has(.event-control-page) .free-plan-prompt .upgrade-allowance {
  max-width: 245px;
  margin: 8px 0 0;
  color: #6f645a;
  font-size: 12px;
  line-height: 16px;
}

.app-shell:has(.event-control-page) .free-plan-prompt .tertiary-button {
  min-width: 119px;
  min-height: 41px;
  padding: 0 18px;
  border: 1px solid #000000;
  border-radius: 20px;
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.event-dashboard-section {
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.event-dashboard-section:first-of-type {
  padding-top: 0;
}

.event-section-kicker,
.guest-access-card > h2 {
  margin: 0 0 3px;
  color: #7f7f7f;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.event-stat-card {
  min-height: 67px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
}

.event-stat-card span {
  color: #6f645a;
  font-size: 12px;
  line-height: 18px;
}

.event-stat-card strong {
  color: #2e2721;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.event-stat-card-wide {
  grid-column: 1 / -1;
}

.event-stat-grid + .event-action-row {
  margin-top: 9px;
}

.event-action-row {
  width: 100%;
  min-height: 83px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  padding: 20px 28px 20px 23px;
  color: #2e2721;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.event-action-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f5efe4;
  color: #897c6c;
}

.event-action-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.event-action-copy {
  min-width: 0;
  display: grid;
}

.event-action-copy strong {
  overflow: hidden;
  color: #2e2721;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-action-copy small {
  overflow: hidden;
  color: #6f645a;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-action-arrow {
  color: #312a24;
}

.event-action-arrow .ui-icon {
  width: 24px;
  height: 24px;
}

.app-shell:has(.event-control-page) .guest-access-card {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0 6px 24px;
  padding: 38px 46px 24px;
  border: 1px solid #bebcb9;
  border-radius: 20px;
  background: #f9f4ec;
  box-shadow: none;
}

.app-shell:has(.event-control-page) .guest-access-card > h2 {
  margin-bottom: 27px;
  color: #b1b1b1;
  font-weight: 600;
  text-align: center;
}

.app-shell:has(.event-control-page) .qr-block {
  gap: 0;
}

.qr-image-frame {
  width: 193px;
  height: 196px;
  display: grid;
  place-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  background: #ffffff;
}

.app-shell:has(.event-control-page) .qr-block img {
  width: 165px;
  height: 165px;
}

.app-shell:has(.event-control-page) .guest-link-group {
  width: 100%;
  margin-top: 29px;
}

.app-shell:has(.event-control-page) .guest-url-row {
  min-height: 41px;
  gap: 8px;
  padding: 0 12px 0 13px;
  border: 1px solid #d6d6d6;
  border-radius: 20px;
  background: #ffffff;
}

.app-shell:has(.event-control-page) .guest-url {
  color: #5c5c5c;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.05em;
}

.app-shell:has(.event-control-page) .guest-copy-button {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #111111;
  border-radius: 50%;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-shell:has(.event-control-page) .guest-copy-button .ui-icon {
  width: 16px;
  height: 16px;
}

.app-shell:has(.event-control-page) .guest-copy-button.copy-success {
  background: #f5efe4;
  color: #897c6c;
}

.app-shell:has(.event-control-page) .guest-copy-button.copy-error {
  background: #fff1f1;
  color: #a04444;
}

.app-shell:has(.event-control-page) .guest-copy-button.copy-animate {
  animation: copyIconPulse 420ms ease;
}

@keyframes copyIconPulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.84) rotate(-4deg);
  }

  72% {
    transform: scale(1.12) rotate(3deg);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell:has(.event-control-page) .guest-copy-button {
    transition: none;
  }

  .app-shell:has(.event-control-page) .guest-copy-button.copy-animate {
    animation: none;
  }
}

.qr-helper {
  margin: 18px 0 25px;
  color: #7f7f7f;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.05em;
  text-align: center;
}

.app-shell:has(.event-control-page) .guest-access-card .app-button {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 20px;
  background: #454545;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 0.05em;
}

.guest-experience-section {
  margin-top: 0;
}

.app-shell:has(.event-control-page) .event-details-backdrop {
  align-items: end;
  justify-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.34);
}

.app-shell:has(.event-control-page) .event-details-backdrop:not(.hidden) {
  animation: eventDetailsBackdropIn 180ms ease-out;
}

.app-shell:has(.event-control-page) .event-details-backdrop:not(.hidden) .event-details-modal {
  animation: eventDetailsSheetIn 280ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.event-details-modal {
  position: relative;
  width: min(100%, 496px);
  min-height: 511px;
  display: grid;
  align-content: start;
  gap: 36px;
  padding: 34px 27px 22px;
  border: 1px solid #d7d0c5;
  border-radius: 20px 20px 0 0;
  background: #fbf7f1;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.08);
}

.event-details-modal h2 {
  margin: 0;
  color: #2a231d;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.event-details-close-button {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #ffffff;
  color: #898989;
  padding: 0 0 2px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.event-details-fields {
  display: grid;
  gap: 24px;
  width: 100%;
}

.event-detail-display-field {
  position: relative;
  display: grid;
  gap: 6px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: #2a231d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.event-detail-display-field span,
.event-detail-display-field label {
  color: #2a231d;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-detail-display-field strong,
.event-detail-display-field input,
.event-detail-display-field select {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c2bcb4;
  border-radius: 12px;
  background: #ffffff;
  padding: 0 52px 0 19px;
  color: #2a231d;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-detail-display-field input,
.event-detail-display-field select {
  appearance: none;
  font-size: 16px;
  outline: 0;
}

.event-detail-display-field input[type="hidden"] {
  display: none;
}

.event-detail-display-field input[readonly] {
  cursor: pointer;
}

.event-detail-display-field input:not([readonly]),
.event-detail-display-field select:focus {
  border-color: #a89d8c;
  box-shadow: 0 0 0 3px rgba(168, 157, 140, 0.16);
}

.event-detail-display-field select:disabled {
  color: #2a231d;
  opacity: 1;
  cursor: not-allowed;
}

.event-detail-select-form select {
  border-color: #bfb6aa;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 18px rgba(46, 39, 33, 0.08);
  cursor: pointer;
}

.event-detail-select-form select:hover {
  border-color: #a89d8c;
}

.event-custom-select {
  position: relative;
}

.event-custom-select-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #bfb6aa;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  color: #2a231d;
  padding: 0 52px 0 19px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 18px rgba(46, 39, 33, 0.08);
}

.event-custom-select-button:hover,
.event-custom-select-button[aria-expanded="true"] {
  border-color: #a89d8c;
}

.event-custom-select-button:focus {
  outline: 0;
  border-color: #a89d8c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 3px rgba(168, 157, 140, 0.16);
}

.event-custom-select-button:disabled {
  color: #2a231d;
  cursor: not-allowed;
  opacity: 1;
}

.event-custom-select-button [data-custom-select-label] {
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.event-custom-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  z-index: 6;
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid #d7d0c5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(46, 39, 33, 0.18);
}

.event-custom-select-menu.opens-up {
  top: auto;
  bottom: calc(100% + 7px);
  box-shadow: 0 -18px 42px rgba(46, 39, 33, 0.14);
}

.event-custom-select-menu button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2a231d;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.event-custom-select-menu button:hover,
.event-custom-select-menu button[aria-selected="true"] {
  background: #f5efe4;
}

.event-select-chevron {
  position: absolute;
  right: 20px;
  bottom: 21px;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-right: 2px solid #8e8375;
  border-bottom: 2px solid #8e8375;
  transform: rotate(45deg);
  pointer-events: none;
}

.event-detail-display-field > .ui-icon,
.event-detail-field-action {
  position: absolute;
  right: 19px;
  bottom: 17px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #a89d8c;
  pointer-events: none;
}

.event-detail-field-action {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #a89d8c;
  cursor: pointer;
  pointer-events: auto;
}

.event-detail-field-action .ui-icon {
  width: 18px;
  height: 18px;
}

.event-detail-save-button {
  color: #5f7a56;
}

.event-detail-edit-form.is-editing .event-detail-field-action[data-inline-edit-button] {
  display: none;
}

.event-detail-display-field[disabled] {
  cursor: default;
}

.event-detail-field-locked {
  cursor: not-allowed;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) {
  align-items: center;
  justify-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.34);
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal):not(.hidden) {
  animation: eventDetailsBackdropIn 180ms ease-out;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal):not(.hidden) .app-modal {
  animation: eventRenameModalIn 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .app-modal {
  position: relative;
  width: min(calc(100% - 32px), 432px);
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 30px;
  padding: 34px 27px 24px;
  border: 1px solid #d7d0c5;
  border-radius: 20px;
  background: #fbf7f1;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.08);
  color: #2a231d;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .modal-heading {
  display: block;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .modal-heading h2 {
  margin: 0;
  color: #2a231d;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .modal-close-button {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #dedbd6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #8f8a84;
  padding: 0 0 2px;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .upgrade-form {
  display: grid;
  gap: 24px;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .upgrade-form label {
  display: grid;
  gap: 6px;
  color: #2a231d;
  font-weight: 600;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .upgrade-form label span {
  color: #2a231d;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-shell:has(.event-control-page) #renameEventModal .upgrade-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c2bcb4;
  border-radius: 12px;
  background: #ffffff;
  color: #2a231d;
  padding: 0 19px;
  font-size: 16px;
  font-weight: 500;
  outline: 0;
}

.app-shell:has(.event-control-page) #renameEventModal .upgrade-form input:focus {
  border-color: #a89d8c;
  box-shadow: 0 0 0 3px rgba(168, 157, 140, 0.16);
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .app-button {
  min-height: 41px;
  justify-content: center;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .app-button-primary {
  border: 0;
  background: #454545;
  color: #ffffff;
}

.app-shell:has(.event-control-page) :is(#renameEventModal, #closingTimeModal) .app-button-secondary {
  border: 1px solid #000000;
  background: transparent;
  color: #000000;
}

@keyframes eventRenameModalIn {
  from {
    opacity: 0.92;
    transform: translateY(10px) scale(0.98);
  }

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

@keyframes eventDetailsBackdropIn {
  from {
    background: rgba(0, 0, 0, 0);
  }

  to {
    background: rgba(0, 0, 0, 0.34);
  }
}

@keyframes eventDetailsSheetIn {
  from {
    opacity: 0.96;
    transform: translateY(100%);
  }

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

@media (min-width: 520px) {
  .event-details-modal {
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .event-details-modal {
    min-height: min(511px, calc(100svh - 24px));
    padding-inline: 22px;
  }
}

.app-shell:has(.event-control-page) .package-modal-backdrop {
  align-items: end;
  justify-items: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.34);
}

.app-shell:has(.event-control-page) .package-modal-backdrop:not(.hidden) {
  animation: eventDetailsBackdropIn 180ms ease-out;
}

.app-shell:has(.event-control-page) .package-modal-backdrop:not(.hidden) .package-modal {
  animation: eventDetailsSheetIn 300ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.package-modal {
  position: relative;
  width: min(100%, 496px);
  max-height: calc(100svh - 24px);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px 28px 24px;
  border: 1px solid #d7d0c5;
  border-radius: 20px 20px 0 0;
  background: #fbf7f1;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.08);
}

.package-modal h2 {
  margin: 0;
  color: #2a231d;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
}

.package-modal-close-button {
  position: absolute;
  top: 16px;
  right: 15px;
  width: 31px;
  min-height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #ffffff;
  color: #898989;
  padding: 0 0 2px;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
}

.package-benefit-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0 0 10px 22px;
  color: #2a231d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  list-style: none;
}

.package-benefit-list li {
  position: relative;
}

.package-benefit-list li::before {
  content: "✓";
  position: absolute;
  left: -21px;
  top: 0;
  color: #73ad7a;
  font-size: 18px;
  line-height: 1;
}

.package-card-list {
  display: grid;
  gap: 14px;
}

.package-choice-card {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 17px 17px 15px;
  border: 1px solid #eadbcc;
  border-radius: 12px;
  background: #ffffff;
}

.package-choice-card h3 {
  margin: 0 0 -2px;
  color: #2a231d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.package-choice-card strong {
  color: #2a231d;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.package-choice-card button {
  min-height: 38px;
  border: 1px solid #2a231d;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.package-choice-card button:disabled {
  border-color: #a9a9a9;
  color: #999999;
  cursor: default;
}

@media (min-width: 520px) {
  .package-modal {
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .package-modal {
    padding-inline: 22px;
  }

  .package-modal h2 {
    padding-right: 35px;
    font-size: 22px;
  }

  .package-benefit-list {
    font-size: 13px;
  }
}

.events-index,
.create-event-screen,
.manage-photos-page {
  padding: 28px 0 48px;
}

.event-row-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.event-row-card {
  position: relative;
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e7e2f0;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1822;
  padding: 16px 46px 16px 16px;
  text-decoration: none;
}

.event-row-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.event-row-card p,
.event-row-meta span {
  margin: 0;
  font-size: 14px;
}

.event-row-meta {
  display: grid;
  gap: 4px;
  color: #6b6678;
}

.event-row-arrow {
  position: absolute;
  right: 16px;
  color: #6e56cf;
  font-size: 24px;
}

.app-shell:has(.events-index, .profile-page) .events-index {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 30px 16px 34px;
}

.app-shell:has(.profile-page) .profile-page {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 30px 16px 34px;
}

.profile-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  padding: 30px 24px;
  text-align: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5efe4;
  color: #897c6c;
  font-size: 26px;
  font-weight: 600;
}

.profile-card .profile-email {
  margin: 0;
  color: #2e2721;
  font-size: 15px;
  font-weight: 600;
}

.profile-card form {
  width: 100%;
}

.profile-card .app-button {
  width: 100%;
}

.app-shell:has(.events-index, .profile-page) .events-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.app-shell:has(.events-index, .profile-page) .events-heading .event-section-kicker {
  margin: 0;
}

.app-shell:has(.events-index, .profile-page) .events-heading .app-button {
  min-height: 41px;
  padding: 0 18px;
  border: 1px solid #000000;
  border-radius: 20px;
  background: transparent;
  color: #000000;
  font-size: 12px;
  font-weight: 600;
}

.app-shell:has(.events-index, .profile-page) .event-row-list {
  gap: 12px;
  margin-top: 0;
}

.app-shell:has(.events-index, .profile-page) .event-row-card {
  min-height: 96px;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 12px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  color: #2e2721;
  padding: 18px 28px 18px 23px;
}

.app-shell:has(.events-index, .profile-page) .event-row-card h2 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #2e2721;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell:has(.events-index, .profile-page) .event-row-card p,
.app-shell:has(.events-index, .profile-page) .event-row-meta span {
  color: #6f645a;
  font-size: 12px;
  line-height: 18px;
}

.app-shell:has(.events-index, .profile-page) .event-row-meta {
  margin-top: 8px;
  gap: 2px;
}

.app-shell:has(.events-index, .profile-page) .event-row-arrow {
  position: static;
  justify-self: end;
  color: #312a24;
  font-size: 24px;
}

.app-shell:has(.events-index, .profile-page) .events-empty-state {
  min-height: 320px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  padding: 40px 28px;
  text-align: center;
}

.app-shell:has(.events-index, .profile-page) .events-empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5efe4;
  font-size: 28px;
}

.app-shell:has(.events-index, .profile-page) .events-empty-state h2 {
  margin: 0;
  color: #2e2721;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}

.app-shell:has(.events-index, .profile-page) .events-empty-state p {
  margin: 0;
  max-width: 320px;
  color: #6f645a;
  font-size: 13px;
  line-height: 19px;
}

.app-shell:has(.events-index, .profile-page) .events-empty-state .app-button {
  min-height: 41px;
  border: 0;
  border-radius: 20px;
  background: #454545;
  color: #ffffff;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.app-shell:has(.events-index, .profile-page) .events-empty-state .app-button:hover {
  background: #312a24;
}

.create-event-screen {
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: start;
}

.create-event-panel {
  width: min(460px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.app-shell:has(.create-event-screen) .create-event-screen {
  width: 100%;
  min-height: calc(100svh - 65px);
  padding: 30px 16px 34px;
}

.app-shell:has(.create-event-screen) .create-event-panel {
  width: 100%;
  gap: 22px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.create-event-heading {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.create-back-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #c3c3c3;
  border-radius: 50%;
  background: #ffffff;
  color: #312a24;
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
}

.app-shell:has(.create-event-screen) .create-event-heading h1 {
  margin: 0;
  color: #2e2721;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.mobile-create-form {
  display: grid;
  gap: 19px;
}

.event-create-field,
.event-create-group {
  display: grid;
  gap: 8px;
}

.event-end-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 10px;
}

.event-end-fields label {
  min-width: 0;
}

.event-picker-field {
  position: relative;
}

.event-picker-field input[type="hidden"] {
  display: none;
}

.event-picker-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #c2bcb4;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbf8f3 100%);
  color: #2a231d;
  padding: 0 38px 0 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 39, 33, 0.08);
}

.event-picker-button::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: 21px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #8e8375;
  border-bottom: 2px solid #8e8375;
  transform: rotate(45deg);
  pointer-events: none;
}

.event-picker-button:hover,
.event-picker-button[aria-expanded="true"],
.event-picker-button:focus {
  border-color: #a89d8c;
  outline: 0;
}

.event-picker-button:focus {
  box-shadow: 0 0 0 3px rgba(168, 157, 140, 0.16);
}

.event-date-picker,
.event-time-picker {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  border: 1px solid #d7d0c5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(46, 39, 33, 0.18);
}

.event-date-picker {
  width: min(320px, calc(100vw - 48px));
  padding: 12px;
}

.event-date-picker-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.event-date-picker-header strong {
  color: #2a231d;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  text-transform: capitalize;
}

.event-date-picker-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d7d0c5;
  border-radius: 50%;
  background: #fbf8f3;
  color: #2a231d;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.event-date-picker-weekdays,
.event-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.event-date-picker-weekdays {
  margin-bottom: 5px;
}

.event-date-picker-weekdays span {
  color: #8e8375;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.event-date-picker-grid button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #2a231d;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.event-date-picker-grid button.muted {
  color: #b9b0a5;
}

.event-date-picker-grid button:hover {
  background: #f5efe4;
}

.event-date-picker-grid button.selected {
  background: #454545;
  color: #ffffff;
}

.event-date-picker-grid button.today {
  border: 1px solid #454545;
}

.event-date-picker-grid button.today:hover {
  background: #f5efe4;
}

.event-time-picker {
  max-height: 236px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
}

.event-time-picker button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #2a231d;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.event-time-picker button:hover,
.event-time-picker button.selected {
  background: #f5efe4;
}

.event-time-picker button.selected {
  color: #000000;
}

.event-create-field {
  position: relative;
}

.event-create-field span,
.event-create-label {
  margin: 0;
  color: #2a231d;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-create-field input,
.event-create-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #c2bcb4;
  border-radius: 12px;
  background: #ffffff;
  color: #2a231d;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.08em;
  outline: 0;
}

.event-create-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #a89d8c 50%),
    linear-gradient(135deg, #a89d8c 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 23px,
    calc(100% - 16px) 23px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 48px;
}

.event-create-field input:focus,
.event-create-field select:focus {
  border-color: #a89d8c;
  box-shadow: 0 0 0 3px rgba(168, 157, 140, 0.16);
}

.event-create-field input[name="name"]:focus::placeholder {
  color: transparent;
}

.create-field-hint {
  margin: -10px 0 0;
  color: #6f645a;
  font-size: 12px;
  line-height: 18px;
}

.event-end-fields-modal {
  gap: 10px;
}

.app-shell:has(.event-control-page) .event-end-fields-modal label {
  gap: 6px;
}

@media (max-width: 380px) {
  .event-end-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

.event-create-field.is-locked {
  position: relative;
}

.event-create-field-icon {
  position: absolute;
  right: 19px;
  bottom: 17px;
  display: none;
  color: #a89d8c;
  pointer-events: none;
}

.event-create-field-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.event-create-field.is-locked .event-create-field-icon {
  display: block;
}

.event-create-field.is-locked select {
  background-image: none;
  color: #6f645a;
  cursor: not-allowed;
  opacity: 1;
}

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

.create-package-option {
  min-height: 82px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px 18px;
  color: #2e2721;
  cursor: pointer;
}

.create-package-option input {
  width: 18px;
  height: 18px;
  accent-color: #2e2721;
}

.create-package-option span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.create-package-option strong {
  overflow: hidden;
  color: #2e2721;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-package-option small {
  color: #6f645a;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.create-package-option.selected {
  border-color: #2e2721;
  box-shadow: 0 4px 10px rgba(46, 39, 33, 0.14);
}

.create-field-hint {
  margin: -7px 0 0;
  color: #7f7f7f;
  font-size: 12px;
  line-height: 18px;
}

.app-shell:has(.create-event-screen) .mobile-create-form > .app-button {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  border: 0;
  border-radius: 20px;
  background: #454545;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: 0.05em;
}

.simple-create-form,
.upgrade-form {
  display: grid;
  gap: 14px;
}

.package-choice-form {
  gap: 18px;
}

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

.create-package-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 72px;
  border: 1px solid #e7e2f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  cursor: pointer;
}

.create-package-option.selected {
  border-color: #6e56cf;
  background: #eeeafb;
}

.create-package-option input {
  width: 18px;
  height: 18px;
  accent-color: #6e56cf;
}

.create-package-option span {
  display: grid;
  gap: 3px;
}

.create-package-option strong {
  color: #1a1822;
}

.create-package-option small {
  color: #6b6678;
  font-size: 14px;
}

.simple-create-form label,
.upgrade-form label {
  display: grid;
  gap: 7px;
  color: #1a1822;
  font-weight: 800;
}

.simple-create-form input,
.upgrade-form input,
.upgrade-form select {
  min-height: 46px;
  border: 1px solid #e7e2f0;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1822;
  padding: 0 12px;
  font: inherit;
}

.app-shell:has(.create-event-screen) .mobile-create-form {
  gap: 19px;
}

.app-shell:has(.create-event-screen) .event-create-field,
.app-shell:has(.create-event-screen) .event-create-group {
  gap: 8px;
  color: #2a231d;
  font-weight: 600;
}

.app-shell:has(.create-event-screen) .event-create-field input,
.app-shell:has(.create-event-screen) .event-create-field select {
  min-height: 52px;
  border: 1px solid #c2bcb4;
  border-radius: 12px;
  background-color: #ffffff;
  color: #2a231d;
  padding: 0 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.app-shell:has(.create-event-screen) .event-create-field select {
  padding-right: 48px;
}

.app-shell:has(.create-event-screen) .create-package-list {
  gap: 12px;
}

.app-shell:has(.create-event-screen) .create-package-option {
  min-height: 82px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  padding: 16px 18px;
}

.app-shell:has(.create-event-screen) .create-package-option.selected {
  border-color: #2e2721;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(46, 39, 33, 0.14);
}

.app-shell:has(.create-event-screen) .create-package-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  border: 0;
  background: transparent;
  padding: 0;
  accent-color: #2e2721;
}

.app-shell:has(.create-event-screen) .create-package-option strong {
  color: #2e2721;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.app-shell:has(.create-event-screen) .create-package-option small {
  color: #6f645a;
  font-size: 12px;
  line-height: 18px;
}

.form-error,
.config-warning {
  margin: 0;
  border-radius: 10px;
  background: #fbeaea;
  color: #d14343;
  padding: 10px 12px;
  font-weight: 700;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  transform: translateX(-50%);
  border: 1px solid #d8ebdf;
  border-radius: 999px;
  background: #e7f4ec;
  color: #2f7d57;
  padding: 10px 16px;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast-hiding {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.app-modal {
  width: min(520px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  display: grid;
  gap: 16px;
  border: 1px solid #e7e2f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 18px;
  color: #1a1822;
}

.manage-heading {
  align-items: end;
  margin-bottom: 16px;
}

.app-shell:has(.manage-photos-page) {
  width: min(100%, 495px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: #f9f4ed;
  box-shadow: inset 12px 0 20px 2px rgba(0, 0, 0, 0.1);
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell:has(.manage-photos-page) .app-header {
  position: relative;
  width: 100%;
  min-height: 65px;
  margin: 0;
  padding: 0 16px 0 26px;
  border-bottom: 1px solid #d0d0d0;
  background: transparent;
  backdrop-filter: none;
}

.app-shell:has(.manage-photos-page) .app-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e2721;
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.app-shell:has(.manage-photos-page) .app-logo span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 24px;
}

.app-shell:has(.manage-photos-page) .event-menu-link {
  min-width: 0;
  overflow: hidden;
  color: #6f645a;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell:has(.manage-photos-page) .account-menu summary {
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
  background: #ffffff;
  color: transparent;
  box-shadow: none;
}

.app-shell:has(.manage-photos-page) .account-menu summary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 12px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#898989, #898989) 0 0 / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 5px / 17px 1px no-repeat,
    linear-gradient(#898989, #898989) 0 10px / 17px 1px no-repeat;
}

.app-shell:has(.manage-photos-page) .account-menu div {
  min-width: 230px;
  border-color: #d7d0c5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(46, 39, 33, 0.16);
}

.app-shell:has(.manage-photos-page) .account-menu a,
.app-shell:has(.manage-photos-page) .account-menu button,
.app-shell:has(.manage-photos-page) .account-menu span {
  color: #2e2721;
  font-family: Poppins, Inter, Geist, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.app-shell:has(.manage-photos-page) .account-menu span {
  color: #7f7f7f;
}

.app-shell:has(.manage-photos-page) .manage-photos-page {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 0 16px 34px;
}

.app-shell:has(.manage-photos-page) .manage-heading {
  width: calc(100% + 32px);
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -16px -4px;
  padding: 0 23px;
  border-bottom: 1px solid #d0d0d0;
}

.app-shell:has(.manage-photos-page) .manage-trash-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #c3c3c3;
  border-radius: 50%;
  background: #ffffff;
  color: #454545;
  text-decoration: none;
}

.app-shell:has(.manage-photos-page) .manage-trash-button .ui-icon {
  width: 18px;
  height: 18px;
}

.app-shell:has(.manage-photos-page) .manage-back-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  color: #2e2721;
  padding: 0 16px 0 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.app-shell:has(.manage-photos-page) .manage-back-button .ui-icon {
  width: 16px;
  height: 16px;
}

.app-shell:has(.manage-photos-page) .manage-heading > div:first-child {
  min-width: 0;
}

.app-shell:has(.manage-photos-page) .manage-heading .tertiary-link {
  display: none;
}

.app-shell:has(.manage-photos-page) .manage-heading h1 {
  margin: 0;
  color: #2e2721;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
}

.app-shell:has(.manage-photos-page) .manage-heading p {
  margin: 0;
  color: #6f645a;
  font-size: 12px;
  line-height: 16px;
}

.app-shell:has(.manage-photos-page) .manage-heading-actions {
  display: none;
}

.app-shell:has(.manage-photos-page) .dashboard-gallery-layout {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.app-shell:has(.manage-photos-page) .dashboard-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.app-shell:has(.manage-photos-page) .gallery-filter-panel {
  position: static;
  display: grid;
  gap: 9px;
}

.app-shell:has(.manage-photos-page) .gallery-filter-panel .panel-heading {
  display: none;
}

.app-shell:has(.manage-photos-page) .guest-filter-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: none;
}

.app-shell:has(.manage-photos-page) .guest-filter-list::-webkit-scrollbar {
  display: none;
}

.app-shell:has(.manage-photos-page) .guest-filter-list a {
  min-height: 41px;
  flex: 0 0 auto;
  justify-content: center;
  gap: 8px;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  color: #2e2721;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.app-shell:has(.manage-photos-page) .guest-filter-list a.active {
  border-color: #2e2721;
  background: #f5efe4;
  box-shadow: none;
}

.app-shell:has(.manage-photos-page) .guest-filter-list strong {
  color: #6f645a;
  font-size: 12px;
}

.app-shell:has(.manage-photos-page) .gallery-workspace {
  min-height: 0;
}

.app-shell:has(.manage-photos-page) .workspace-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-shell:has(.manage-photos-page) .workspace-photo-card {
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  color: #2e2721;
}

.app-shell:has(.manage-photos-page) .workspace-photo-button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 19px 19px 0 0;
  background: #e3ded6;
}

.app-shell:has(.manage-photos-page) .workspace-photo-meta {
  padding: 10px 12px 8px;
}

.app-shell:has(.manage-photos-page) .workspace-photo-meta strong {
  color: #2e2721;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.app-shell:has(.manage-photos-page) .workspace-photo-meta span {
  color: #6f645a;
  font-size: 11px;
  line-height: 15px;
}

.app-shell:has(.manage-photos-page) .workspace-photo-actions {
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 0 10px 12px;
}

.app-shell:has(.manage-photos-page) .workspace-download-link,
.app-shell:has(.manage-photos-page) .workspace-visibility-button,
.app-shell:has(.manage-photos-page) .workspace-delete-button {
  min-height: 34px;
  border: 1px solid #d6d6d6;
  border-radius: 17px;
  background: #ffffff;
  color: #2e2721;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
}

.app-shell:has(.manage-photos-page) .workspace-delete-button {
  border-color: #e3c8c8;
  color: #8a2d2d;
}

.app-shell:has(.manage-photos-page) .workspace-hidden-badge {
  top: 8px;
  left: 8px;
  border-radius: 14px;
  background: rgba(46, 39, 33, 0.86);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
}

.app-shell:has(.manage-photos-page) .gallery-empty-state {
  justify-items: center;
  min-height: 260px;
  align-content: center;
  border: 1px solid #c3c3c3;
  border-radius: 20px;
  background: #ffffff;
  padding: 28px;
  text-align: center;
}

.app-shell:has(.manage-photos-page) .gallery-empty-state h2 {
  margin: 0;
  color: #2e2721;
  font-size: 18px;
  line-height: 24px;
}

.app-shell:has(.manage-photos-page) .gallery-empty-state p {
  margin: 0;
  color: #6f645a;
  font-size: 13px;
  line-height: 19px;
}

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

.workspace-photo-card {
  border-color: #e7e2f0;
  background: #ffffff;
}

.workspace-photo-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-delete-button {
  border-color: #f1caca;
  background: #ffffff;
  color: #d14343;
}

.guest-state-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #f8f7fb;
  color: #1a1822;
  padding: 24px;
}

.guest-state-card {
  width: min(440px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid #e7e2f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 24px;
  text-align: center;
}

.guest-state-card h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.guest-state-card p {
  margin: 0;
}

.guest-state-kicker {
  color: #6e56cf;
  font-weight: 800;
}

@media (min-width: 820px) {
  .event-control-page {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  .photos-control {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 24px;
  }
}

@media (max-width: 720px) {
  .app-header,
  .event-control-page,
  .events-index,
  .create-event-screen,
  .manage-photos-page {
    width: calc(100% - 40px);
  }

  .app-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 60px;
  }

  .event-title-line,
  .events-heading,
  .manage-heading {
    align-items: start;
  }

  .events-heading .app-button,
  .manage-heading-actions .app-button {
    padding: 0 12px;
  }

  .app-card,
  .create-event-panel {
    padding: 18px;
  }

  .guest-access-card {
    padding: 24px;
  }

  .free-plan-prompt {
    align-items: flex-start;
  }

  .action-row .app-button,
  .photos-actions .app-button,
  .photos-actions .tertiary-link {
    flex: 1 1 auto;
  }

  .photos-actions .tertiary-link {
    flex: 0 0 auto;
  }

  .qr-block .app-button {
    width: 100%;
  }

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

  .manage-heading,
  .manage-heading-actions {
    display: grid;
    justify-content: stretch;
  }
}

@media (max-width: 359px) {
  .free-plan-prompt {
    display: grid;
    gap: 12px;
  }

  .free-plan-prompt .tertiary-button {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .app-shell:has(.event-control-page) .app-header,
  .app-shell:has(.event-control-page) .event-control-page {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .app-shell:has(.event-control-page) {
    border-radius: 0;
  }

  .app-shell:has(.event-control-page) .free-plan-prompt {
    padding-right: 18px;
  }

  .app-shell:has(.event-control-page) .free-plan-prompt .plan-label,
  .app-shell:has(.event-control-page) .free-plan-prompt .upgrade-allowance {
    max-width: 190px;
  }

  .event-stat-grid {
    gap: 14px;
  }

  .event-stat-grid + .event-action-row {
    margin-top: 5px;
  }

  .event-action-row {
    padding-right: 22px;
  }

  .app-shell:has(.event-control-page) .guest-access-card {
    margin-inline: 0;
    padding-inline: 28px;
  }
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.screen {
  min-height: 100svh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
}

.centered {
  display: grid;
  place-items: center;
}

.message {
  width: min(100%, 420px);
  text-align: center;
}

.guest-app #landingScreen {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: url("../img/camera.jpg") center center / cover no-repeat, #09111b;
  color: #f7f4ee;
  font-family: Poppins, Inter, Geist, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guest-app #landingScreen .background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 9, 14, 0.68), rgba(5, 9, 14, 0.78)),
    radial-gradient(ellipse 130% 105% at 50% 45%, transparent 52%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

.guest-app #landingScreen .content {
  position: relative;
  z-index: 1;
  width: calc(100% - 48px);
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
}

.guest-app #landingScreen .event-header {
  padding-top: 96px;
  text-align: center;
}

.guest-app #landingScreen .event-header h1 {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.guest-app #landingScreen .event-header p {
  margin: 12px 0 0;
  color: #d3cdb8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guest-app #landingScreen .rules {
  width: min(100%, 320px);
  margin: 26px auto 0;
}

.guest-app #landingScreen .rules ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-app #landingScreen .rules li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  color: #e8e6e2;
  font-size: 14px;
  font-weight: 500;
}

.guest-app #landingScreen .rules li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.guest-app #landingScreen .rule-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  fill: none;
  stroke: #d3cdb8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-app #landingScreen .rule-text {
  min-width: 0;
  display: grid;
  gap: 0;
}

.guest-app #landingScreen .rule-text strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-app #landingScreen .rule-text span {
  color: #a5a2a6;
  font-size: 12.5px;
  font-weight: 400;
}

.guest-app #landingScreen .guest-form {
  width: min(100%, 320px);
  margin: 28px auto 0;
}

.guest-app #landingScreen .guest-form form {
  display: grid;
  gap: 10px;
}

.guest-app #landingScreen .guest-form label {
  color: #a5a2a6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guest-app #landingScreen .guest-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  padding: 11px 16px;
  font-size: 18px;
  font-weight: 500;
  outline: 0;
}

.guest-app #landingScreen .guest-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 300;
}

.guest-app #landingScreen .guest-form input:focus {
  border-color: #ffffff;
}

.guest-app #landingScreen .guest-form button {
  min-height: 56px;
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: #ede8e0;
  color: #161310;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.guest-app #landingScreen .guest-form button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-app #landingScreen .guest-form button:active {
  transform: scale(0.98);
}

.guest-app #landingScreen .brand {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 42px 0 max(48px, calc(env(safe-area-inset-bottom) + 20px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #f7f4ee;
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 30px;
  line-height: 1;
}

.guest-app #landingScreen .brand span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 23px;
}

@media (max-width: 360px) {
  .guest-app #landingScreen .content {
    width: calc(100% - 40px);
    padding: 0 20px;
  }
}

.message h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.message p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.5;
}

.message button,
.close-lightbox {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #050505;
  padding: 14px 16px;
  font-weight: 700;
}

.camera-screen {
  display: grid;
  place-items: start center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--camera-vh, 100svh);
  min-height: 0;
  width: 100%;
  background: #0d0d0d;
  overflow: hidden;
  padding: max(2px, env(safe-area-inset-top)) 0 max(4px, env(safe-area-inset-bottom));
}

.camera-shell {
  width: 100vw;
  max-width: 100vw;
  width: 100dvw;
  max-width: 100dvw;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.camera-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0;
}

.icon-button svg,
.camera-tool-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-info {
  min-width: 0;
  text-align: center;
}

.event-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-time {
  margin-top: 2px;
  color: #8e8e93;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
}

.camera-main {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 2px;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding-bottom: 84px;
}

.camera-preview {
  position: relative;
  justify-self: center;
  align-self: start;
  margin-top: 24px;
  width: 100vw;
  width: 100dvw;
  max-width: 100vw;
  max-width: 100dvw;
  height: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0;
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.camera-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  color: #c8c8c8;
  font-size: 15px;
  text-align: center;
  background: #111;
  z-index: 1;
}

.preview-state.hidden {
  display: none !important;
}

.preview-error {
  gap: 10px;
  align-content: center;
  line-height: 1.4;
}

.preview-error strong {
  color: #f7f4ee;
  font-size: 18px;
}

.preview-error span {
  max-width: 240px;
}

.preview-error button {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  color: #050505;
  padding: 10px 16px;
  font-weight: 700;
}

.capture-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 90ms ease;
  z-index: 2;
}

.capture-flash.active {
  opacity: 0.85;
}

.upload-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  opacity: 0;
  z-index: 4;
  transition: opacity 120ms ease;
}

.upload-progress.active {
  opacity: 1;
}

.upload-progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: #8b5cf6;
  transform: translateX(-100%);
}

.upload-progress.active span {
  animation: upload-progress-sweep 950ms ease-in-out infinite;
}

@keyframes upload-progress-sweep {
  0% {
    transform: translateX(-100%);
  }

  55% {
    transform: translateX(80%);
  }

  100% {
    transform: translateX(240%);
  }
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.preview-control-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px auto 44px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.camera-tool-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  opacity: 0.9;
  padding: 0;
}

.flash-button {
  justify-self: center;
}

.flash-button.active {
  color: #ffe6a3;
}

.flip-camera-button {
  justify-self: center;
}

.zoom-control {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 42px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.78);
  backdrop-filter: blur(10px);
  padding: 3px;
}

.zoom-control button {
  width: 36px;
  min-width: 36px;
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8e8e93;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
}

.zoom-control button.active {
  background: #4a4b52;
  color: #ffffff;
  font-weight: 600;
}

.camera-actions {
  padding: 2px 14px;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(4px, env(safe-area-inset-bottom));
  z-index: 5;
  max-width: 520px;
  margin: 0 auto;
}

.film-counter {
  justify-self: start;
  width: 90px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  overflow: hidden;
  border-radius: 22px;
  background: #121214;
  color: rgba(255, 255, 255, 0.25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
  padding: 0 6px;
}

.film-counter span {
  min-width: 0;
}

.film-counter .current {
  color: #ffffff;
  font-weight: 700;
  font-size: 25px;
  text-shadow: none;
}

.film-counter.rolling span {
  animation: counter-roll 180ms ease;
}

@keyframes counter-roll {
  0% {
    transform: translateX(10px);
    opacity: 0.35;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.shutter-button {
  justify-self: center;
  position: relative;
  width: 74px;
  height: 74px;
  border: 3px solid #9c9ca3;
  border-radius: 50%;
  background: #5f6067;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.shutter-inner,
.shutter-button::after {
  position: static;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  border: none;
  background: #b9bac1;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.22);
}

.shutter-button::after {
  content: none;
}

.shutter-inner {
  pointer-events: none;
}

.shutter-button:active:not(:disabled) {
  transform: scale(0.94);
}

.shutter-button:disabled {
  opacity: 0.55;
}

.last-photo {
  justify-self: end;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border-radius: 20px;
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.last-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.last-photo.has-photo img {
  display: block;
}

.status-text {
  min-height: 20px;
  color: var(--danger);
  font-size: 14px;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(max(4px, env(safe-area-inset-bottom)) + 80px);
  z-index: 4;
}

.qr-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.78);
  z-index: 20;
}

.qr-overlay-panel {
  width: min(100%, 340px);
  display: grid;
  justify-items: center;
  gap: 14px;
  border-radius: 8px;
  background: #f7f4ee;
  color: #111111;
  padding: 16px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

.qr-overlay-panel h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.qr-overlay-panel img {
  width: min(100%, 292px);
  height: auto;
  display: block;
  border-radius: 8px;
  background: #ffffff;
}

.qr-close-button {
  justify-self: end;
  border: 0;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-height: 700px) {
  .camera-shell {
    gap: 0;
  }

  .camera-main {
    gap: 2px;
  }

  .camera-preview {
    margin-top: 18px;
    width: 100vw;
    width: 100dvw;
  }

  .shutter-button {
    width: 74px;
    height: 74px;
  }

  .film-counter {
    height: 58px;
  }

  .last-photo {
    width: 66px;
    height: 66px;
  }
}

/* Public gallery — "il rullino sviluppato" */
.gallery-page {
  position: relative;
  min-height: 100svh;
  padding: 0 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 42%),
    #1b1a18;
  color: #f5f1e8;
}

.gallery-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.05;
  pointer-events: none;
}

.album-cover {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 64px;
  text-align: center;
}

.album-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #8f8a80;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.album-red-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b03a2e;
  box-shadow: 0 0 0 4px rgba(176, 58, 46, 0.2);
}

.album-cover h1 {
  margin: 0;
  color: #f5f1e8;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.album-meta {
  margin: 18px 0 0;
  color: #8f8a80;
  font-size: 15px;
}

.album-cover .album-download {
  display: inline-block;
  margin-top: 28px;
  border: 1px solid rgba(245, 241, 232, 0.28);
  border-radius: 999px;
  color: #f5f1e8;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.album-cover .album-download:hover {
  border-color: #f5f1e8;
  background: #f5f1e8;
  color: #1b1a18;
}

.film-grid {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 30px;
}

.film-frame {
  position: relative;
  margin: 0;
  border-radius: 2px;
  background: #fffdf6;
  padding: 16px 16px 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.photo-tile {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #d8d2c4;
  box-shadow: inset 0 0 0 1px rgba(33, 27, 22, 0.08);
}

.film-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
}

.film-frame-number {
  color: #b03a2e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.film-stamp {
  overflow: hidden;
  color: #b03a2e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-developing {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0 30px;
}

.film-developing-frame {
  width: min(100%, 420px);
}

.film-developing-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(245, 241, 232, 0.1);
  background: #171310;
  padding: 56px 32px;
  text-align: center;
}

.developing-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b03a2e;
}

.film-developing-body h2 {
  margin: 0;
  color: #f7f3ea;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.film-developing-body p {
  margin: 0;
  color: rgba(247, 243, 234, 0.62);
  font-size: 13px;
  line-height: 20px;
}

.album-footer {
  position: relative;
  padding: 64px 24px 40px;
  text-align: center;
}

.album-footer p {
  margin: 0;
  color: #8f8a80;
  font-family: Pacifico, "Brush Script MT", cursive;
  font-size: 20px;
}

@media (min-width: 640px) {
  .film-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .film-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .film-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  padding: 16px;
  background: rgba(0, 0, 0, 0.92);
  color: var(--fg);
  z-index: 10;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lightbox.image-error img {
  display: none;
}

.lightbox.image-error::after {
  content: "Foto non disponibile";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f7f4ee;
  font-weight: 800;
}

.close-lightbox {
  position: absolute;
  top: 16px;
  right: 16px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox p {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.private-gallery-lightbox {
  background: rgba(20, 16, 12, 0.97);
}

.private-gallery-lightbox img {
  padding: 12px;
  background: #171310;
}

.private-gallery-lightbox .lightbox-nav {
  border-color: rgba(247, 243, 234, 0.32);
  background: transparent;
  font-size: 30px;
}

.private-gallery-lightbox .close-lightbox {
  border: 1px solid rgba(247, 243, 234, 0.32);
  border-radius: 999px;
  background: transparent;
  color: #f7f3ea;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
}

.private-gallery-lightbox .lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.private-gallery-lightbox .lightbox-caption p {
  position: static;
  display: block;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
}

.private-gallery-lightbox #lightboxName {
  color: rgba(245, 241, 232, 0.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.private-gallery-lightbox .lightbox-counter {
  color: rgba(247, 243, 234, 0.5);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.dashboard-page {
  min-height: 100svh;
  background: #f5f7f4;
  color: #17201b;
  padding: 24px;
}

.dashboard-hero {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-hero h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.event-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-title-row h1 {
  margin: 0;
}

.title-edit-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #ffffff;
  color: #285f50;
  cursor: pointer;
  flex: 0 0 auto;
}

.title-edit-button:hover {
  border-color: #285f50;
  background: #eef7f2;
}

.title-edit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-hero p {
  max-width: 640px;
  margin: 0;
  color: #58645d;
  line-height: 1.45;
}

.dashboard-kicker {
  margin: 0 0 8px !important;
  color: #447063 !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-badge,
.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e5ece8;
  color: #2d4d42;
  font-size: 13px;
  font-weight: 700;
  text-transform: capitalize;
}

.status-active {
  background: #dff3e2;
  color: #1f6631;
}

.status-draft {
  background: #ece7dd;
  color: #6a5435;
}

.status-pending_payment {
  background: #e0ecf7;
  color: #315d86;
}

.status-expired,
.status-cancelled {
  background: #f1dfdf;
  color: #7b3333;
}

.dashboard-grid,
.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.event-detail-left-column {
  display: grid;
  gap: 18px;
}

.event-detail-left-column .capacity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-detail-left-column .event-details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-detail-left-column .usage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-detail-right-column {
  align-self: start;
}

.dashboard-content {
  max-width: 1180px;
  margin: 0 auto;
}

.dashboard-account-bar {
  max-width: 1180px;
  margin: -10px auto 18px;
  color: #66726b;
  font-size: 13px;
  font-weight: 700;
}

.support-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.support-search-form label {
  display: grid;
  gap: 8px;
}

.support-search-form label span {
  color: #4f5d55;
  font-size: 13px;
  font-weight: 700;
}

.support-search-form input {
  width: 100%;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #fbfcfb;
  color: #17201b;
  padding: 12px;
}

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

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

.support-table div {
  display: grid;
  gap: 3px;
  border-top: 1px solid #e5ece8;
  padding-top: 10px;
}

.support-table span {
  color: #66726b;
  overflow-wrap: anywhere;
}

.support-empty-state {
  display: grid;
  gap: 6px;
}

.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #f5f7f4;
  color: #17201b;
  padding: 20px;
}

.auth-panel {
  width: min(100%, 420px);
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(23, 32, 27, 0.04);
}

.auth-panel h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-panel p {
  margin: 0 0 18px;
  color: #66726b;
  line-height: 1.45;
}

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

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span {
  color: #4f5d55;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #fbfcfb;
  color: #17201b;
  padding: 12px;
}

.auth-secondary-form {
  margin-top: 16px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #285f50;
  padding: 0;
  font-weight: 800;
  cursor: pointer;
}

.dev-code-panel {
  display: grid;
  gap: 4px;
  border-radius: 6px;
  background: #eef7f2;
  color: #17201b;
  margin-bottom: 16px;
  padding: 12px;
}

.dev-code-panel span {
  color: #447063;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dev-code-panel strong {
  font-size: 28px;
  letter-spacing: 0;
}

.dev-code-panel small {
  color: #66726b;
  line-height: 1.35;
}

.public-page {
  min-height: 100svh;
  background: #f7f7f2;
  color: #17201b;
}

.public-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #060606;
  color: #ffffff;
}

.public-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.12));
}

.public-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
}

.public-nav a,
.public-footer a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.public-nav div,
.public-footer div,
.public-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.public-brand {
  font-size: 18px;
}

.public-hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(36px, 9vh, 96px) clamp(18px, 7vw, 96px);
}

.public-hero-content h1,
.pricing-hero h1,
.legal-content h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

.public-hero-content p {
  width: min(100%, 620px);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.45;
}

.public-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0;
}

.public-section-heading {
  width: min(760px, 100%);
  margin-bottom: 22px;
}

.public-section-heading h2,
.public-section-heading h1 {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

.public-section-heading p,
.legal-content p {
  margin: 0 0 14px;
  color: #66726b;
  line-height: 1.55;
}

.public-step-grid,
.public-package-strip,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-step-grid article,
.public-package-strip article,
.pricing-card {
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
}

.public-step-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #17201b;
  color: #ffffff;
  font-weight: 900;
}

.public-step-grid h3,
.public-package-strip h3,
.pricing-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.public-step-grid p,
.public-package-strip p,
.pricing-card p,
.pricing-card li {
  color: #66726b;
  line-height: 1.45;
}

.public-package-strip strong,
.pricing-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1;
}

.public-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #dce4df;
  padding: 22px 0 34px;
  color: #4f5d55;
}

.public-footer span {
  font-weight: 900;
}

.public-simple-page {
  min-height: 100svh;
}

.public-nav-light {
  position: static;
  color: #17201b;
}

.pricing-hero {
  padding-top: 32px;
  padding-bottom: 24px;
}

.pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-card {
  min-height: 100%;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.pricing-card-featured {
  border-color: #285f50;
  box-shadow: inset 0 0 0 1px #285f50;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.legal-content {
  width: min(760px, calc(100% - 36px));
}

.event-builder-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.dashboard-panel,
.event-card,
.empty-dashboard {
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(23, 32, 27, 0.04);
}

.dashboard-panel {
  padding: 18px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading h2,
.event-card h2,
.empty-dashboard h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel-heading p,
.event-card p,
.empty-dashboard p,
.muted-copy {
  margin: 0;
  color: #66726b;
  line-height: 1.45;
}

.create-event-form,
.create-event-form label,
.link-stack,
.link-stack label,
.share-link-row {
  display: grid;
  gap: 10px;
}

.create-event-form label span,
.link-stack label span,
.share-link-row span {
  color: #4f5d55;
  font-size: 13px;
  font-weight: 700;
}

.share-link-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px !important;
  color: #17201b !important;
}

.share-link-heading svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-link-row a {
  color: #145fcf;
  text-decoration: underline;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.create-event-form input,
.create-event-form select,
.builder-field input,
.builder-field select,
.link-stack input,
.link-stack select,
.upgrade-form input,
.upgrade-form select {
  width: 100%;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #fbfcfb;
  color: #17201b;
  padding: 12px;
}

.builder-field input[readonly] {
  background: #edf3ef;
  color: #4f5d55;
}

.builder-field {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.builder-field span {
  color: #4f5d55;
  font-size: 13px;
  font-weight: 700;
}

.field-hint {
  color: #66726b;
  font-size: 13px;
  line-height: 1.35;
}

.builder-panel {
  min-height: 100%;
}

.event-setup-panel {
  display: grid;
  gap: 16px;
}

.event-setup-panel .panel-heading,
.event-setup-panel .builder-field {
  margin-bottom: 0;
}

.builder-section-heading {
  border-top: 1px solid #e5ece8;
  padding-top: 16px;
}

.builder-section-heading h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.builder-section-heading p {
  margin: 0;
  color: #66726b;
  line-height: 1.45;
}

.package-card-grid {
  display: grid;
  gap: 10px;
}

.package-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  min-height: 64px;
  border: 1px solid #d7e1db;
  border-radius: 8px;
  background: #fbfcfb;
  color: #17201b;
  padding: 14px;
  cursor: pointer;
}

.package-card.selected {
  border-color: #285f50;
  background: #eef7f2;
  box-shadow: inset 0 0 0 1px #285f50;
}

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

.package-card-name {
  color: #4f5d55;
  font-size: 15px;
  font-weight: 800;
}

.package-card strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.form-error {
  margin: 0;
  border-radius: 6px;
  background: #f9e6e6;
  color: #7b3333;
  padding: 10px 12px;
  font-weight: 700;
}

.upgrade-box,
.upgrade-form {
  display: grid;
  gap: 12px;
}

.upgrade-box {
  border-top: 1px solid #e5ece8;
  padding-top: 16px;
}

.config-warning {
  margin: 0;
  border-radius: 6px;
  background: #fff4d8;
  color: #6a5435;
  padding: 10px 12px;
  font-weight: 700;
  line-height: 1.35;
}

.dashboard-primary-button,
.dashboard-secondary-button,
.event-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #17201b;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.dashboard-secondary-button,
.event-open-link {
  border: 1px solid #cfd9d3;
  background: #ffffff;
  color: #17201b;
}

.share-action-row {
  grid-template-columns: 1fr;
}

.share-action-button {
  gap: 8px;
  width: 100%;
  min-width: 0;
}

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

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

.event-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.event-card-main,
.event-card-title-row,
.event-links {
  display: flex;
  align-items: start;
  gap: 12px;
}

.event-card-main {
  justify-content: start;
}

.event-card-title-row {
  justify-content: start;
  align-items: center;
}

.event-card-title-row h2 {
  overflow-wrap: anywhere;
}

.event-title-link {
  color: inherit;
  text-decoration: none;
}

.event-title-link:hover {
  color: #285f50;
  text-decoration: underline;
}

.event-metrics,
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

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

.builder-capacity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

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

.event-metrics div,
.capacity-grid div,
.payment-summary div {
  border-radius: 6px;
  background: #f5f7f4;
  padding: 12px;
}

.event-metrics dt,
.capacity-grid dt,
.payment-summary dt {
  margin-bottom: 4px;
  color: #66726b;
  font-size: 12px;
  font-weight: 700;
}

.event-metrics dd,
.capacity-grid dd,
.payment-summary dd {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.event-links {
  justify-content: start;
  flex-wrap: wrap;
}

.back-link {
  color: #285f50;
  font-weight: 800;
  text-decoration: none;
}

.event-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #ffffff;
  color: #17201b;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.event-action-button:hover {
  border-color: #285f50;
  color: #285f50;
}

.event-action-primary {
  border-color: #17201b;
  background: #17201b;
  color: #ffffff;
}

.event-action-primary:hover {
  border-color: #285f50;
  background: #285f50;
  color: #ffffff;
}

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

.back-link::before {
  content: "<";
  display: inline-block;
  margin-right: 7px;
  transform: translateY(-1px);
}

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

.qr-share-box {
  display: grid;
  place-items: center;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #f5f7f4;
  padding: 16px;
}

.qr-share-box img {
  width: min(100%, 220px);
  height: auto;
  display: block;
  border-radius: 6px;
  background: #ffffff;
}

.empty-dashboard {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 34px;
}

.event-detail-hero {
  align-items: end;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
}

.photo-summary-panel {
  max-width: 1180px;
  margin: 18px auto 0;
}

.event-gallery-card {
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 32, 27, 0.54);
  z-index: 20;
}

.modal-backdrop.hidden {
  display: none;
}

.upgrade-modal {
  width: min(520px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  display: grid;
  gap: 16px;
}

.modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.modal-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.modal-close-button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #ffffff;
  color: #17201b;
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer;
}

.app-shell:has(.event-control-page) .event-details-close-button,
.app-shell:has(.event-control-page) .package-modal-close-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border: 1px solid #dedbd6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: #8f8a84;
  padding: 0;
  font-size: 0;
  font-weight: 400;
}

.app-shell:has(.event-control-page) .event-details-close-button::before,
.app-shell:has(.event-control-page) .event-details-close-button::after,
.app-shell:has(.event-control-page) .package-modal-close-button::before,
.app-shell:has(.event-control-page) .package-modal-close-button::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.app-shell:has(.event-control-page) .event-details-close-button::before,
.app-shell:has(.event-control-page) .package-modal-close-button::before {
  transform: rotate(45deg);
}

.app-shell:has(.event-control-page) .event-details-close-button::after,
.app-shell:has(.event-control-page) .package-modal-close-button::after {
  transform: rotate(-45deg);
}

.photo-summary-list {
  display: grid;
  gap: 8px;
}

.photo-summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5ece8;
  padding-top: 8px;
}

.photo-summary-list span {
  color: #66726b;
  font-size: 13px;
}

.summary-action {
  margin-top: 14px;
}

.dashboard-gallery-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.gallery-filter-panel {
  position: sticky;
  top: 16px;
}

.guest-filter-list {
  display: grid;
  gap: 8px;
}

.guest-filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dce4df;
  border-radius: 6px;
  background: #fbfcfb;
  color: #17201b;
  padding: 10px 12px;
  text-decoration: none;
}

.guest-filter-list a.active {
  border-color: #285f50;
  background: #eef7f2;
  box-shadow: inset 0 0 0 1px #285f50;
}

.guest-filter-list span {
  overflow-wrap: anywhere;
}

.guest-filter-list strong {
  color: #66726b;
  font-size: 13px;
}

.gallery-workspace {
  min-height: 360px;
}

.workspace-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  column-gap: 18px;
  row-gap: 30px;
}

.workspace-photo-card {
  position: relative;
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fbfcfb;
}

.workspace-hidden-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(23, 32, 27, 0.86);
  color: #ffffff;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.workspace-photo-card.hidden-from-gallery .workspace-photo-button img {
  opacity: 0.58;
}

.workspace-photo-button {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.workspace-photo-button img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  border-radius: 7px 7px 0 0;
  background: #dce4df;
}

.workspace-photo-meta {
  display: block;
  padding: 10px 12px 6px;
}

.workspace-photo-meta div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workspace-photo-meta strong {
  overflow-wrap: anywhere;
}

.workspace-photo-meta span {
  color: #66726b;
  font-size: 12px;
}

.workspace-photo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
}

.workspace-photo-actions form {
  margin: 0;
}

.workspace-download-link,
.workspace-visibility-button,
.workspace-delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #cfd9d3;
  border-radius: 6px;
  background: #ffffff;
  color: #285f50;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.workspace-visibility-button {
  width: 100%;
  color: #17201b;
  cursor: pointer;
}

.workspace-delete-button {
  grid-column: 1 / -1;
  width: 100%;
  border-color: #e2c2c2;
  color: #8a2d2d;
  cursor: pointer;
}

.workspace-visibility-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gallery-empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
}

@media (max-width: 820px) {
  .public-hero {
    min-height: 88svh;
  }

  .public-hero-image {
    object-position: 60% center;
  }

  .public-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.82));
  }

  .public-nav,
  .public-footer {
    display: grid;
    justify-content: stretch;
  }

  .public-hero-content {
    width: calc(100% - 36px);
    margin: 0 18px 34px;
  }

  .public-hero-content h1,
  .pricing-hero h1,
  .legal-content h1 {
    font-size: 42px;
  }

  .public-hero-content p {
    font-size: 17px;
  }

  .public-step-grid,
  .public-package-strip,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page {
    padding: 16px;
  }

  .dashboard-hero,
  .dashboard-hero-actions,
  .event-card-main,
  .event-card-title-row,
  .event-links,
  .photo-summary-list div {
    display: grid;
    justify-content: stretch;
  }

  .dashboard-grid,
  .detail-layout,
  .event-builder-layout,
  .dashboard-gallery-layout,
  .support-search-form,
  .capacity-grid,
  .button-row {
    grid-template-columns: 1fr;
  }

  .gallery-filter-panel {
    position: static;
  }

  .package-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero h1 {
    font-size: 30px;
  }

  .dashboard-hero-actions form,
  .dashboard-hero-actions .dashboard-primary-button,
  .dashboard-hero-actions .dashboard-secondary-button {
    width: 100%;
  }
}

/* Organizer v1 final overrides for legacy dashboard class names. */
.app-shell .dashboard-panel {
  border: 1px solid #e7e2f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell .dashboard-gallery-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: 240px minmax(0, 1fr);
}

.app-shell .gallery-filter-panel {
  top: 76px;
}

.app-shell .guest-filter-list a {
  border-color: #e7e2f0;
  border-radius: 10px;
  background: #ffffff;
  color: #1a1822;
}

.app-shell .guest-filter-list a.active {
  border-color: #6e56cf;
  background: #eeeafb;
  box-shadow: none;
  color: #6e56cf;
}

.app-shell .workspace-photo-card {
  border-color: #e7e2f0;
  border-radius: 10px;
  background: #ffffff;
}

.app-shell .workspace-photo-button img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  background: #f3f1f6;
}

.app-shell .workspace-download-link,
.app-shell .workspace-visibility-button,
.app-shell .workspace-delete-button {
  border-radius: 8px;
  border-color: #e7e2f0;
  color: #1a1822;
}

.app-shell .workspace-delete-button {
  border-color: #f1caca;
  color: #d14343;
}

@media (max-width: 820px) {
  .app-shell .dashboard-gallery-layout {
    grid-template-columns: 1fr;
  }
}
