:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #111319;
  --muted: #68707c;
  --line: rgba(17, 19, 25, 0.1);
  --accent: #147f88;
  --accent-soft: #e6f4f3;
  --warm: #e4583e;
  --good: #2f9e6d;
  --warn: #cc8519;
  --danger: #c94b4b;
  --shadow: 0 18px 48px rgba(24, 30, 37, 0.12);
  --radius: 8px;
  --page-pad: clamp(14px, 4vw, 28px);
  --app-max-width: 680px;
  --topbar-height: 58px;
  --system-bottom-inset: env(safe-area-inset-bottom, 0px);
  --bottom-space: calc(28px + var(--system-bottom-inset));
  --keyboard-inset: 0px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root.is-android {
  --system-bottom-inset: max(env(safe-area-inset-bottom, 0px), 34px);
}

:root.dark {
  color-scheme: dark;
  --bg: #0d0f14;
  --surface: rgba(25, 28, 35, 0.88);
  --surface-solid: #171a21;
  --ink: #f3f4f1;
  --muted: #a4acb8;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #6fd6c7;
  --accent-soft: rgba(111, 214, 199, 0.14);
  --warm: #ff7f5f;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(20, 127, 136, 0.12), transparent 28rem),
    linear-gradient(145deg, var(--bg), color-mix(in srgb, var(--bg), #ffffff 18%));
  color: var(--ink);
}

body[data-screen="profileScreen"] {
  overflow: hidden;
}

body[data-screen="detailsScreen"] {
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-screen="driveAccessScreen"] {
  overflow: hidden;
}

body[data-screen="howWorksScreen"] {
  overflow-x: hidden;
}

:root.dark body {
  background:
    radial-gradient(circle at 12% 0%, rgba(111, 214, 199, 0.08), transparent 26rem),
    linear-gradient(145deg, #0b0d12, var(--bg));
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.72;
}

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

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--topbar-height) + 10px + env(safe-area-inset-top, 0px)) var(--page-pad) var(--bottom-space);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, var(--app-max-width));
  margin: 0 auto;
  min-height: calc(var(--topbar-height) + env(safe-area-inset-top, 0px));
  padding: calc(7px + env(safe-area-inset-top, 0px)) var(--page-pad) 7px;
  background: color-mix(in srgb, var(--bg), transparent 4%);
  transform: translateZ(0);
}

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

.header-about-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(10, 12, 18, 0.12);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.header-about-button span {
  transform: translateY(-1px);
}

.header-about-button:disabled {
  opacity: 0.4;
}

.topbar h1,
h2,
h3,
p {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.65rem, 6.6vw, 2.25rem);
  line-height: 1;
}

.eyebrow,
.small-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.avatar-button,
.icon-button,
.primary-icon,
.back-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.back-button {
  background: color-mix(in srgb, var(--surface), var(--ink) 10%);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.back-button span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
}

.back-button svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar-button img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.account-button img {
  border: 2px solid color-mix(in srgb, var(--accent), transparent 55%);
}

.account-button:not(.is-signed-in) img {
  border-color: color-mix(in srgb, var(--muted), transparent 66%);
}

.primary-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.scan-button {
  min-height: 44px;
  padding: 0 14px;
}

.details-cta {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
}

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

.screen-stack {
  display: block;
  width: 100%;
}

.screen {
  display: none;
  width: 100%;
  min-width: 0;
}

.screen.is-active {
  display: block;
  padding-bottom: 34px;
}

#detailsScreen.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  height: calc(100dvh - var(--topbar-height) - env(safe-area-inset-top, 0px) - 18px);
  overflow: hidden;
  padding-bottom: 0;
}

#driveAccessScreen.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  height: calc(100dvh - var(--topbar-height) - env(safe-area-inset-top, 0px) - 18px);
  overflow: hidden;
  padding-bottom: 0;
}

.hero-strip,
.event-header,
.panel,
.detail-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-strip {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: clamp(180px, 34vw, 300px);
  padding: clamp(18px, 4.5vw, 28px);
  align-content: end;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.54)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=82") center/cover;
  color: #fff;
}

.hero-info-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  max-width: calc(100% - 28px);
}

.hero-about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.38);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
}

.hero-privacy-button {
  min-height: 29px;
  padding: 0 9px;
  font-size: 0.66rem;
  background: rgba(8, 10, 14, 0.3);
}

.hero-privacy-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-copy {
  padding-top: 40px;
}

.hero-strip .eyebrow {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 950;
}

.hero-strip h2 {
  max-width: min(100%, 18ch);
  margin-top: 6px;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
}

.logged-out-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.logged-out-panel p {
  max-width: 42ch;
  color: var(--muted);
}

.logged-out-panel .primary-button {
  width: 100%;
}

.how-works-hero {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 4vw, 22px);
}

.how-works-hero h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.98;
}

.how-works-hero p:not(.eyebrow) {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 3.4vw, 1.08rem);
  line-height: 1.35;
}

.how-works-flow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.how-works-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
}

.how-works-card > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 950;
}

.how-works-card h3 {
  font-size: 1.08rem;
  line-height: 1.08;
}

.how-works-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 850;
  white-space: nowrap;
}

.primary-button {
  background: var(--ink);
  color: var(--bg);
}

#heroCreateButton {
  justify-self: center;
  width: min(50%, 340px);
  min-width: 220px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff, var(--accent) 12%), transparent 120%),
    var(--accent);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

#heroCreateButton:active {
  transform: translateY(1px);
}

.secondary-button {
  background: color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--accent);
}

.ghost-button {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.danger-button {
  width: 100%;
  background: color-mix(in srgb, var(--danger), transparent 86%);
  color: var(--danger);
}

.compact-button {
  min-height: 38px;
  padding-inline: 14px;
}

.drive-access-header,
.drive-access-list-wrap,
.drive-access-footer {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

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

.drive-access-header h2 {
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  line-height: 1;
}

.drive-access-header p:not(.eyebrow) {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.25;
}

.drive-access-list-wrap {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.drive-warning {
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn), transparent 88%);
  color: color-mix(in srgb, var(--warn), #111319 28%);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
}

.drive-access-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.drive-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.drive-check-button {
  position: relative;
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 2px solid color-mix(in srgb, var(--muted), transparent 35%);
  border-radius: 4px;
  background: var(--surface-solid);
  color: #fff;
}

.drive-check-button::after {
  content: "";
  width: 10px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.drive-check-button.is-checked {
  border-color: var(--accent);
  background: var(--accent);
}

.drive-check-button.is-checked::after {
  opacity: 1;
}

.drive-check-button.is-mixed::after {
  width: 10px;
  height: 0;
  border-width: 0 0 2px;
  opacity: 1;
  transform: none;
}

.drive-access-list {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.drive-access-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 126px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-solid);
}

.drive-access-person {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.drive-access-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.drive-access-person strong,
.drive-access-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-access-person small {
  color: var(--muted);
  font-size: 0.76rem;
}

.drive-member-role {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid), transparent 15%);
  color: var(--ink);
  padding: 3px;
  font-weight: 850;
  pointer-events: none;
}

.drive-member-role button {
  min-height: 28px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  pointer-events: auto;
}

.drive-member-role button.is-selected {
  background: var(--ink);
  color: var(--bg);
}

.drive-access-footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  padding-bottom: calc(10px + var(--system-bottom-inset));
}

.drive-access-footer .primary-button,
.drive-access-footer .secondary-button,
.drive-access-footer .ghost-button {
  pointer-events: auto;
  width: 100%;
  min-height: 42px;
  padding-inline: 10px;
  font-size: 0.78rem;
}

#reviewScreen > .event-header {
  position: relative;
  display: block;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

#reviewScreen > .event-header > div:first-child {
  padding-right: 0;
}

#reviewScreen > .event-header h2 {
  font-size: clamp(1.35rem, 5.4vw, 2rem);
  line-height: 1;
}

#reviewScreen > .event-header p {
  max-width: none;
}

#reviewScreen .scan-button {
  justify-self: start;
  min-width: 0;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
  background: color-mix(in srgb, var(--accent), transparent 86%);
  color: var(--accent);
  box-shadow: none;
  white-space: nowrap;
}

.review-workspace {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid), transparent 7%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.review-shortcut-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 0 2px 2px;
}

.review-done-toggle {
  min-height: 34px;
  max-width: 112px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--warn), transparent 86%);
  color: var(--warn);
  font-size: clamp(0.58rem, 2.1vw, 0.7rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.review-done-toggle.is-complete {
  background: color-mix(in srgb, var(--good), transparent 86%);
  color: var(--good);
}

.review-done-toggle[hidden] {
  display: none;
}

.review-shortcuts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.section-heading,
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 2px 12px;
}

.section-heading span,
.panel-title span,
.event-header p,
.detail-panel span,
.setting-row span,
.invite-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.event-card {
  display: grid;
  grid-template-columns: clamp(92px, 26vw, 124px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 10px 24px rgba(24, 30, 37, 0.08);
}

.event-card * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.event-card-body {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
}

.event-card-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.event-title-copy {
  min-width: 0;
}

.event-card button {
  cursor: pointer;
}

.event-card [data-open-album] {
  cursor: pointer;
}

.event-card img {
  width: 100%;
  height: clamp(126px, 30vw, 168px);
  min-height: 0;
  border-radius: 7px;
  object-fit: contain;
  object-position: left top;
  background: transparent;
}

.event-card h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 4.8vw, 1.45rem);
  line-height: 1.08;
}

.event-card p {
  color: var(--ink);
  line-height: 1.1;
}

.review-description-line {
  max-width: 26rem;
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: clamp(0.88rem, 3.4vw, 0.98rem);
  line-height: 1.24;
}

.event-card-description {
  max-width: 36rem;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--muted) !important;
  font-size: 0.78rem;
  line-height: 1.2 !important;
}

.event-date-line {
  min-width: 0;
  margin-top: 5px;
  white-space: nowrap;
  color: var(--muted) !important;
  font-size: clamp(0.8rem, 3.2vw, 0.95rem);
}

.shared-summary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.event-people-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-height: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
}

.event-people-row[role="button"],
.event-people-row [data-people-event],
.event-people-row .member-avatars {
  cursor: pointer;
}

.event-people-row.is-shared .event-people-label {
  order: 1;
}

.event-people-row.is-shared .member-avatars {
  order: 2;
}

.event-people-row.not-shared .member-avatars {
  order: 1;
}

.event-people-row.not-shared .event-people-label {
  order: 2;
}

.member-avatars {
  display: flex;
  margin-top: 0;
  min-height: 24px;
}

.member-avatars .member-avatar {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  overflow: hidden;
  margin-right: -7px;
  padding: 0;
  border: 2px solid var(--surface-solid);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.member-avatars .member-avatar span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.member-avatars img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: cover;
}

.album-people-row {
  margin-bottom: 0;
}

.album-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.album-status-pill {
  min-height: 22px;
  padding-inline: 8px;
  font-size: 0.66rem;
  text-transform: none;
}

.event-meta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 5px;
  margin: 7px 0 0;
}

.event-meta span:only-child {
  max-width: 11rem;
}

.status-pill,
.photo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

.event-meta span,
.event-meta-button {
  display: grid;
  min-height: 30px;
  align-content: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface), transparent 18%);
  color: var(--muted);
  font-size: clamp(0.66rem, 2vw, 0.74rem);
  font-weight: 850;
  line-height: 1.1;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.event-meta-button {
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.event-meta-button:hover,
.event-meta-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent), transparent 40%);
  color: var(--accent);
}

.status-pill.complete {
  color: var(--good);
  background: color-mix(in srgb, var(--good), transparent 86%);
}

.status-pill.pending {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn), transparent 84%);
}

.status-pill.archived {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted), transparent 82%);
}

.event-card-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1.08fr) minmax(0, 1.18fr) 42px 42px;
  gap: 7px;
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  cursor: default;
}

.event-card-actions.has-drive {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 1.12fr) 40px 40px 40px;
}

.event-action {
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-size: clamp(0.58rem, 1.95vw, 0.7rem);
  font-weight: 900;
  white-space: nowrap;
}

.event-action.primary {
  background: transparent;
  border-color: color-mix(in srgb, var(--accent), transparent 70%);
  color: var(--accent);
}

.event-action:disabled {
  border-color: var(--line);
  color: color-mix(in srgb, var(--muted), transparent 18%);
  opacity: 0.72;
  cursor: not-allowed;
}

.event-icon-action,
.event-drive-action,
.event-share-button {
  display: grid;
  min-width: 0;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.58);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.event-drive-action {
  text-decoration: none;
}

.event-icon-action svg,
.event-drive-action svg,
.event-share-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted), transparent 82%);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.event-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.event-header h2 {
  margin: 4px 0;
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  line-height: 1.04;
}

.album-header-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: flex-start;
}

.album-header-card > div:first-child {
  grid-column: 1;
  min-width: 0;
}

.album-header-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 188px;
}

.album-primary-action {
  order: 2;
  flex: 1 0 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.album-description-line,
.album-photo-count-line {
  max-width: 36rem;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.28;
}

.album-photo-count-line {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: max-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--ink);
  font-weight: 900;
}

.album-icon-button,
.album-drive-shortcut,
.album-share-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.34);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.album-icon-button,
.album-drive-shortcut {
  text-decoration: none;
}

.album-icon-button svg,
.album-drive-shortcut svg,
.album-share-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.details-hero {
  padding: 12px;
  margin: 0;
}

.details-hero.is-readonly,
.details-hero.is-readonly input,
.details-hero.is-readonly textarea {
  -webkit-user-select: none;
  user-select: none;
}

.details-hero.is-readonly input,
.details-hero.is-readonly textarea,
.details-hero.is-readonly button {
  pointer-events: none;
}

.details-hero > div {
  width: 100%;
}

.details-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.details-title-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.details-title-cluster h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.details-title-cluster .status-pill {
  flex: 0 0 auto;
  margin-top: 5px;
}

.details-shortcuts {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.details-shortcut {
  display: grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.34);
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.details-shortcut svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.details-shortcut:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  color: #fff;
}

.details-owner-line {
  margin-top: 4px;
}

.event-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.event-edit-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.event-edit-form .inline-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.event-edit-form label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.event-edit-form input {
  min-height: 40px;
}

.event-edit-form textarea {
  min-height: 58px;
  resize: vertical;
  font-weight: 750;
  line-height: 1.25;
}

.event-description-field {
  grid-column: 1 / -1;
}

.compact-dates {
  margin: 0;
}

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

.inline-date-fields label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.review-album-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  margin-top: 6px;
  padding: 0 10px;
  overflow-wrap: anywhere;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: clamp(0.86rem, 3.5vw, 0.98rem);
  font-weight: 950;
}

.segmented {
  display: flex;
  gap: 6px;
  width: 100%;
  margin: 14px 0;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.segmented button {
  flex: 1 0 auto;
  min-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  padding: 0 12px;
}

.segmented button.is-selected {
  background: var(--ink);
  color: var(--bg);
}

#reviewFilters {
  gap: 3px;
  margin: 0;
  padding: 3px;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--line), var(--accent) 16%);
  background: color-mix(in srgb, var(--surface), var(--accent) 5%);
}

#reviewFilters button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 32px;
  padding: 0 3px;
  font-size: clamp(0.66rem, 2.55vw, 0.78rem);
  line-height: 1;
}

#reviewGrid {
  min-height: 124px;
}

#reviewGrid .day-group {
  margin-top: 4px;
}

#reviewGrid .day-group h3 {
  margin-left: 4px;
}

#reviewGrid .review-empty-panel {
  display: grid;
  min-height: 120px;
  align-content: center;
  margin: 0;
  padding: 18px;
  border-style: dashed;
  background: color-mix(in srgb, var(--surface), var(--accent) 4%);
  box-shadow: none;
}

#reviewGrid .review-empty-panel strong {
  font-size: 1.12rem;
}

#reviewGrid .review-empty-panel p {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.32;
}

#reviewGrid .review-empty-panel ul {
  display: grid;
  gap: 8px;
  max-width: 34rem;
  margin: 10px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.28;
  list-style: none;
}

#reviewGrid .review-empty-panel li {
  position: relative;
  padding-left: 18px;
}

#reviewGrid .review-empty-panel li::before {
  position: absolute;
  top: 0.54em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.day-group {
  margin-top: 20px;
}

.day-group h3 {
  margin: 0 2px 10px;
}

.photo-loading-panel {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-tile {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  background: var(--surface-solid);
}

.photo-open {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-solid);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo-open:active img,
.photo-open:hover img {
  transform: scale(1.04);
}

.photo-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
}

.photo-badge.needs-date {
  background: var(--accent);
  color: #fff;
}

.photo-badge.owner-retracted {
  background: color-mix(in srgb, var(--danger), transparent 18%);
  color: #fff;
}

#albumGrid .photo-badge.album-initials {
  top: 6px;
  bottom: auto;
  left: 6px;
  background: rgba(0, 0, 0, 0.58);
}

#albumGrid .photo-badge.album-date-marker {
  left: 6px;
  bottom: 6px;
  max-width: calc(100% - 12px);
  font-size: 0.7rem;
}

.dialog-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.people-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.people-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.people-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

.people-modal-card {
  position: relative;
  width: min(420px, 100%);
  max-height: min(680px, calc(100dvh - 36px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.people-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.people-modal-card h2 {
  min-width: 0;
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.people-modal-close {
  flex: 0 0 auto;
  min-height: 36px;
  padding-inline: 16px;
  font-size: 0.86rem;
}

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

.people-modal-summary {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.people-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid), var(--bg) 18%);
}

.people-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
}

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

.people-row strong,
.people-row small {
  display: block;
}

.people-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.people-row small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 650;
}

#albumGrid .photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

#albumGrid .photo-tile {
  overflow: visible;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(24, 30, 37, 0.1);
}

#albumGrid .photo-open {
  border-radius: var(--radius);
}

.photo-options {
  position: absolute;
  top: 6px;
  right: 6px;
  left: 6px;
  z-index: 2;
  pointer-events: none;
}

.photo-options summary {
  display: grid;
  width: 32px;
  height: 32px;
  margin-left: auto;
  place-items: center;
  list-style: none;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.26);
  color: rgba(255, 255, 255, 0.94);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  opacity: 0.82;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
  box-shadow: none;
  backdrop-filter: blur(6px);
  cursor: pointer;
  pointer-events: auto;
}

.photo-options summary::-webkit-details-marker {
  display: none;
}

.photo-options[open] summary {
  background: var(--ink);
  color: var(--bg);
  opacity: 1;
  text-shadow: none;
}

.photo-options-panel {
  position: absolute;
  top: 46px;
  right: 0;
  display: grid;
  gap: 6px;
  width: min(220px, calc(100vw - 44px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

#albumGrid .photo-tile:nth-child(odd) .photo-options-panel {
  right: auto;
  left: 0;
}

.photo-author {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.photo-options-panel button {
  min-height: 38px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 86%);
  color: var(--accent);
  font-weight: 900;
  text-align: center;
}

.photo-actions {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  background: var(--surface-solid);
}

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

.photo-actions.actions-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 4px 3px;
}

.photo-actions button {
  min-width: 0;
  min-height: 36px;
  padding: 0 5px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent), transparent 86%);
  color: var(--accent);
  font-size: clamp(0.68rem, 2.4vw, 0.76rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-actions.actions-3 button {
  min-height: 34px;
  padding: 0 2px;
  font-size: clamp(0.6rem, 2vw, 0.7rem);
}

#reviewGrid .photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

#reviewGrid .photo-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(24, 30, 37, 0.08);
}

.review-album-shortcut:disabled,
.review-settings-shortcut:disabled {
  opacity: 0.45;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 14px 0;
}

.detail-panel,
.panel {
  padding: 16px;
}

.panel {
  margin-top: 14px;
}

.empty-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.empty-action-panel span {
  min-width: 0;
}

.hidden-cleanup-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
}

.hidden-cleanup-panel span {
  min-width: 0;
}

.hidden-cleanup-panel p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hidden-cleanup-panel .danger-button {
  width: auto;
  max-width: 100%;
  padding: 0 16px;
}

.empty-action-panel p {
  margin: 2px 0 0;
}

.compact-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 18px;
}

.panel-action {
  width: 100%;
  margin-top: 14px;
}

.panel-title {
  margin: 0 0 12px;
}

.invite-card,
.setting-row,
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-stack {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 760px;
}

.profile-account {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 0;
}

.profile-account img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-account h2 {
  margin: 3px 0 8px;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 7vw, 2.4rem);
  line-height: 1.02;
}

.profile-account strong,
.profile-account span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-account > button {
  grid-column: 1 / -1;
  width: 100%;
}

.profile-settings {
  margin-top: 0;
}

#profileScreen.is-active {
  display: flex;
  height: calc(100dvh - var(--topbar-height) - env(safe-area-inset-top, 0px) - 20px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: var(--bottom-space);
}

.about-hero {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 14px;
}

.about-hero h2 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 5.3vw, 2.35rem);
  line-height: 1;
}

.about-hero p:not(.eyebrow),
.about-card p {
  color: var(--muted);
  line-height: 1.34;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px;
}

.about-card h3 {
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.privacy-card {
  border-color: color-mix(in srgb, var(--accent), transparent 72%);
}

.privacy-card p + p {
  margin-top: 7px;
}

.invite-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.qr {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.invite-card > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.invite-card strong {
  overflow-wrap: anywhere;
  line-height: 1.14;
}

.invite-card p {
  line-height: 1.25;
}

#whatsAppShare {
  justify-self: start;
  margin-top: 2px;
  padding-inline: 18px;
}

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

#detailsScreen .members-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin-top: 0;
  overflow: hidden;
}

#detailsScreen .members-panel .panel-title {
  flex: 0 0 auto;
  margin-bottom: 8px;
}

#detailsScreen .member-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  padding-right: 2px;
  gap: 8px;
}

.member-row {
  justify-content: space-between;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-solid), transparent 0%);
}

.member-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.member-person-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.member-person-avatar img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.member-initials {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.member-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.member-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.76rem;
  text-align: center;
}

.member-done-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted), transparent 90%);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.member-done-toggle.is-complete {
  border-color: color-mix(in srgb, var(--accent), transparent 50%);
  background: color-mix(in srgb, var(--accent), transparent 78%);
  color: var(--accent-strong);
}

.folder-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
  color: var(--ink);
}

.inline-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.folder-map span {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 850;
}

.drive-status {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.event-lifecycle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.event-lifecycle-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  margin-top: 0;
  padding: 0 6px;
}

.event-lifecycle-panel .inline-check {
  margin: 0 0 12px;
  padding: 0 4px;
}

.setting-row {
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.setting-row > div {
  min-width: 0;
}

.setting-row strong,
.setting-row span {
  display: block;
  overflow-wrap: anywhere;
}

.setting-row:last-child {
  border-bottom: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  display: block;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted), transparent 75%);
  padding: 3px;
}

.switch span::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--accent);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.sheet-backdrop,
.viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background: rgba(0, 0, 0, 0.48);
}

.sheet-backdrop.is-open,
.viewer.is-open {
  display: block;
}

.sheet-backdrop.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top, 0px)) var(--page-pad) calc(24px + var(--keyboard-inset) + var(--system-bottom-inset));
}

.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: max(18px, env(safe-area-inset-top, 0px)) var(--page-pad) max(18px, var(--system-bottom-inset));
  background: rgba(0, 0, 0, 0.52);
}

.app-dialog.is-open {
  display: flex;
}

.loading-popup {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: none;
}

.loading-popup.is-open {
  display: flex;
}

.loading-popup-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(300px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface), transparent 2%);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-popup-card strong {
  font-size: 1rem;
  line-height: 1.15;
}

.loading-popup-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid color-mix(in srgb, var(--accent), transparent 72%);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

.qr-presenter {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) var(--page-pad) max(18px, var(--system-bottom-inset));
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(10px);
}

.qr-presenter.is-open {
  display: flex;
}

.qr-presenter-card {
  position: relative;
  display: grid;
  width: min(100%, 520px);
  justify-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-presenter-done {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 36px;
  padding-inline: 16px;
  font-size: 0.86rem;
}

.qr-presenter-card h2 {
  max-width: calc(100% - 104px);
  font-size: clamp(1.6rem, 7vw, 2.25rem);
  line-height: 1.05;
}

.qr-presenter-card img {
  width: min(74vw, 390px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
}

.qr-presenter-card p:not(.eyebrow) {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.84rem;
}

.dialog-card {
  width: min(100%, 520px);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top, 0px) - var(--system-bottom-inset));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog-card h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.05;
}

.dialog-card p:not(.eyebrow) {
  color: var(--muted);
  white-space: pre-line;
}

.dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dialog-actions .secondary-button,
.dialog-actions .primary-button,
.dialog-actions .danger-button {
  width: 100%;
}

.sheet {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 560px);
  max-height: min(82dvh, calc(100dvh - var(--keyboard-inset) - 36px));
  overflow: auto;
  padding: 10px 18px 18px;
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sheet-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sheet-title h2 {
  margin: 2px 0 0;
  line-height: 1.05;
}

.grabber {
  width: 42px;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--muted), transparent 70%);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  padding: 12px;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.sheet-note {
  color: var(--muted);
  font-size: 0.86rem;
}

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

.create-confirm {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  margin: 2px -18px 0;
  padding: 14px 18px calc(16px + var(--system-bottom-inset));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid), transparent 0%);
  box-shadow: 0 -14px 28px rgba(24, 30, 37, 0.08);
}

.create-submit {
  width: 100%;
  min-height: 54px;
  border-radius: var(--radius);
  font-size: 1rem;
}

.field-row,
.drive-choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#connectDriveButton {
  width: 100%;
  margin-bottom: 10px;
}

.viewer {
  z-index: 1500;
  background: #050608;
  color: #fff;
  touch-action: none;
}

.viewer img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  max-height: calc(100dvh - 150px - env(safe-area-inset-top, 0px) - var(--system-bottom-inset));
  object-fit: contain;
  transform: translate(-50%, -50%) translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
  transition: transform 160ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.viewer.is-gesturing img {
  transition: none;
}

.viewer.is-zoomed img {
  cursor: grab;
}

.viewer.is-gesturing.is-zoomed img {
  cursor: grabbing;
}

.viewer-top {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.viewer-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.viewer-top span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.viewer-owner-badge {
  position: absolute;
  top: calc(78px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 2;
  display: grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.viewer-actions {
  position: absolute;
  left: 50%;
  bottom: calc(22px + var(--system-bottom-inset));
  z-index: 2;
  display: flex;
  width: min(calc(100% - 32px), 430px);
  gap: 8px;
  justify-content: center;
  transform: translateX(-50%);
}

.viewer-actions .secondary-button,
.viewer-actions .primary-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.94rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.viewer-actions .secondary-button {
  background: rgba(18, 133, 140, 0.28);
  color: #a9f1f4;
}

.viewer-actions .primary-button {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.viewer-actions button[hidden] {
  display: none;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 68px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
}

.viewer-nav.left {
  left: 8px;
}

.viewer-nav.right {
  right: 8px;
}

.metadata-drawer {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 4;
  width: min(calc(100% - 32px), 440px);
  max-height: min(520px, calc(100dvh - 150px - env(safe-area-inset-top, 0px) - var(--system-bottom-inset)));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.metadata-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.metadata-drawer .grabber {
  display: none;
}

.metadata-action {
  width: 100%;
  margin-top: 12px;
}

dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  margin: 14px 0 0;
}

dt {
  color: var(--muted);
  font-weight: 850;
}

dd {
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  left: var(--page-pad);
  right: var(--page-pad);
  bottom: calc(164px + var(--system-bottom-inset));
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  width: min(calc(100vw - (var(--page-pad) * 2)), 640px);
  margin: 0 auto;
  padding: 12px 10px 12px 14px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.toast button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg), transparent 88%);
  color: var(--bg);
  font-weight: 900;
}

@media (min-width: 560px) {
  .details-grid,
  .field-row,
  .drive-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  #albumGrid .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #reviewGrid .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

}

@media (max-width: 520px) {
  #reviewScreen > .event-header > div:first-child {
    padding-right: 0;
  }

  #reviewScreen > .event-header h2 {
    max-width: calc(100% - 132px);
  }

  #reviewScreen .scan-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .viewer-top {
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 8px;
    right: 8px;
  }

  .viewer-actions {
    bottom: calc(18px + var(--system-bottom-inset));
    width: min(calc(100% - 24px), 390px);
    gap: 7px;
  }

  .viewer-actions .secondary-button,
  .viewer-actions .primary-button {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 0.9rem;
  }
}

@media (min-width: 760px) {
  .event-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero-strip {
    min-height: 246px;
    padding: 18px;
  }

  .hero-info-actions {
    top: 10px;
    right: 10px;
    gap: 5px;
    max-width: calc(100% - 20px);
  }

  .hero-about-button {
    min-height: 27px;
    padding: 0 7px;
    font-size: 0.62rem;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.12);
  }

  .hero-privacy-button {
    min-height: 27px;
    padding: 0 6px;
    font-size: 0.6rem;
  }

  .hero-privacy-button svg {
    width: 11px;
    height: 11px;
  }

  .hero-copy {
    padding-top: 48px;
  }

  .hero-strip .eyebrow {
    max-width: 100%;
    font-size: 0.78rem;
  }

  .hero-strip h2 {
    max-width: 100%;
  }

  #driveAccessScreen.is-active {
    gap: 8px;
    height: calc(100dvh - var(--topbar-height) - env(safe-area-inset-top, 0px) - 12px);
  }

  .drive-access-header {
    padding: 10px;
  }

  .drive-access-header h2 {
    font-size: 1.75rem;
  }

  .drive-access-header p:not(.eyebrow) {
    font-size: 0.84rem;
  }

  .drive-access-list-wrap {
    padding: 10px;
  }

  .drive-warning {
    font-size: 0.78rem;
  }

  .drive-access-controls {
    justify-content: flex-start;
    gap: 8px;
  }

  .drive-access-row {
    grid-template-columns: auto minmax(0, 1fr) 104px;
    gap: 8px;
    padding: 7px 8px;
  }

  .drive-access-person {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .drive-access-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .drive-access-person strong {
    font-size: 0.86rem;
  }

  .drive-access-person small {
    font-size: 0.68rem;
  }

  .drive-member-role {
    min-height: 32px;
  }

  .drive-member-role button {
    min-height: 26px;
    font-size: 0.68rem;
  }

  .drive-access-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    padding-bottom: calc(8px + var(--system-bottom-inset));
  }

  .drive-access-footer .primary-button,
  .drive-access-footer .secondary-button,
  .drive-access-footer .ghost-button {
    min-height: 40px;
    padding-inline: 6px;
    font-size: 0.7rem;
  }

  #heroCreateButton {
    width: min(72%, 280px);
    min-width: 190px;
  }

  .event-card-actions {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.98fr) minmax(0, 1.08fr) 38px 38px;
    gap: 5px;
  }

  .event-card-actions.has-drive {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.95fr) minmax(0, 1.04fr) 36px 36px 36px;
  }

  .event-action {
    min-height: 38px;
    padding: 0 4px;
    font-size: clamp(0.52rem, 2.35vw, 0.63rem);
  }

  .event-icon-action,
  .event-drive-action,
  .event-share-button {
    min-height: 38px;
  }

  .album-header-actions {
    gap: 6px;
    max-width: 132px;
  }

  .album-primary-action {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .album-icon-button,
  .album-drive-shortcut,
  .album-share-button {
    width: 40px;
    height: 40px;
  }

  .event-meta span {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 0.7rem;
  }

  .invite-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
  }

  .qr {
    width: 116px;
    height: 116px;
  }

  .invite-card > div {
    gap: 6px;
  }

  .invite-card strong {
    font-size: 0.95rem;
  }

  .invite-card p {
    font-size: 0.84rem;
    line-height: 1.2;
  }

  #whatsAppShare {
    width: 100%;
    min-height: 40px;
    margin-top: 4px;
    padding-inline: 10px;
  }

  .details-hero {
    padding: 10px;
  }

  #detailsScreen.is-active {
    gap: 8px;
    height: calc(100dvh - var(--topbar-height) - env(safe-area-inset-top, 0px) - 12px);
  }

  .details-title-cluster {
    gap: 8px;
  }

  .details-title-cluster h2 {
    font-size: 1.78rem;
  }

  .details-title-cluster .status-pill {
    margin-top: 3px;
  }

  .details-shortcuts {
    gap: 6px;
  }

  .details-shortcut {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .details-shortcut svg {
    width: 19px;
    height: 19px;
  }

  .review-album-shortcut,
  .review-settings-shortcut {
    width: 38px;
    height: 38px;
  }

  .event-edit-form {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .event-edit-form .inline-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-edit-form .compact-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .event-edit-form .inline-date-fields label {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .event-edit-form label span {
    font-size: 0.66rem;
  }

  .event-edit-form input {
    min-height: 36px;
    padding-inline: 9px;
    border-radius: 10px;
  }

  .event-edit-form textarea {
    min-height: 44px;
    border-radius: 10px;
  }

  #detailsScreen .members-panel {
    padding: 10px;
  }

  #detailsScreen .member-list {
    gap: 6px;
  }

  #detailsScreen .member-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    column-gap: 6px;
    row-gap: 0;
    min-height: 40px;
    padding: 5px 7px;
  }

  #detailsScreen .member-person {
    gap: 0;
    align-items: center;
    min-width: 0;
  }

  #detailsScreen .member-person > span {
    min-width: 0;
    overflow: hidden;
  }

  #detailsScreen .member-person-avatar,
  #detailsScreen .member-person-avatar img,
  #detailsScreen .member-initials {
    display: none;
  }

  #detailsScreen .member-person strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    line-height: 1.05;
  }

  #detailsScreen .member-person small {
    display: none;
  }

  #detailsScreen .member-actions {
    display: grid;
    grid-template-columns: 86px 54px;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 144px;
    max-width: 100%;
  }

  #detailsScreen .member-actions.has-owner {
    width: 144px;
  }

  #detailsScreen .status-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.6rem;
    line-height: 1;
    white-space: nowrap;
  }

  #detailsScreen .status-pill.owner {
    grid-column: 2;
    justify-self: stretch;
    min-width: 0;
  }

  #detailsScreen .status-pill:not(.owner),
  #detailsScreen .member-done-toggle {
    grid-column: 1;
    justify-self: stretch;
    min-width: 0;
  }

  #detailsScreen .member-done-toggle {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.6rem;
    line-height: 1;
  }

  #detailsScreen .member-remove {
    grid-column: 2;
    justify-self: stretch;
    min-height: 24px;
    min-width: 0;
    padding: 0 7px;
    font-size: 0.6rem;
    line-height: 1;
    white-space: nowrap;
  }

  #detailsScreen .event-lifecycle .secondary-button,
  #detailsScreen .event-lifecycle .danger-button {
    min-height: 46px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  #detailsScreen .event-lifecycle-panel {
    padding-bottom: calc(10px + var(--system-bottom-inset));
  }

  @media (max-width: 340px) {
    #detailsScreen .member-row {
      grid-template-columns: minmax(0, 1fr) max-content;
    }

    #detailsScreen .member-actions {
      grid-template-columns: 76px 48px;
      width: 127px;
      gap: 3px;
    }

    #detailsScreen .member-actions.has-owner {
      width: 127px;
    }

    #detailsScreen .member-done-toggle {
      padding-inline: 6px;
      font-size: 0.56rem;
    }

    #detailsScreen .member-remove {
      padding-inline: 5px;
      font-size: 0.56rem;
    }

    #detailsScreen .status-pill {
      min-width: 44px;
      padding-inline: 6px;
      font-size: 0.56rem;
    }
  }

  #reviewScreen > .event-header {
    display: block;
    gap: 10px;
    padding: 10px;
  }

  #reviewScreen > .event-header > div:first-child {
    padding-right: 0;
  }

  #reviewScreen > .event-header h2 {
    font-size: 1.68rem;
  }

  #reviewScreen > .event-header p {
    font-size: 0.84rem;
    line-height: 1.25;
  }

  #reviewScreen .scan-button {
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    white-space: nowrap;
    font-size: 0.88rem;
  }

  .review-workspace {
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
  }

  .review-shortcut-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px;
    padding: 0 2px;
  }

  .review-done-toggle {
    min-height: 30px;
    max-width: 86px;
    padding-inline: 7px;
    font-size: 0.56rem;
  }

  #reviewGrid .review-empty-panel {
    min-height: 104px;
    padding: 14px;
  }

  #reviewGrid .review-empty-panel p {
    font-size: 0.86rem;
    line-height: 1.24;
  }

  #aboutScreen .panel {
    margin-top: 8px;
  }

  #aboutScreen .about-hero {
    padding: 11px;
    gap: 8px;
  }

  #aboutScreen .about-hero h2 {
    font-size: 1.56rem;
    max-width: none;
  }

  #aboutScreen .about-hero p:not(.eyebrow),
  #aboutScreen .about-card p {
    font-size: 0.88rem;
    line-height: 1.24;
  }

  #aboutScreen .about-card {
    padding: 10px;
    gap: 9px;
  }

  #aboutScreen .about-card .panel-action {
    min-height: 38px;
    margin-top: 8px;
  }

  .event-header {
    flex-wrap: wrap;
  }

  .album-header-card {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .details-cta {
    width: 100%;
  }

  .member-row,
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-account {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .profile-account img {
    width: 58px;
    height: 58px;
  }

  #profileScreen.is-active {
    height: calc(100dvh - var(--topbar-height) - env(safe-area-inset-top, 0px) - 12px);
    overflow-y: auto;
    padding-bottom: var(--bottom-space);
  }

  #profileScreen .profile-stack {
    gap: 10px;
  }

  #profileScreen .panel {
    padding: 12px 14px;
    margin-top: 10px;
  }

  #profileScreen .profile-account {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  #profileScreen .profile-account img {
    width: 56px;
    height: 56px;
  }

  #profileScreen .profile-account h2 {
    margin: 2px 0 4px;
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  #profileScreen #authDetail {
    line-height: 1.12;
  }

  #profileScreen .profile-account > button {
    min-height: 40px;
  }

  #profileScreen .panel-title {
    margin-bottom: 4px;
  }

  #profileScreen .setting-row {
    padding: 10px 0;
  }

  #profileScreen .panel-action {
    min-height: 40px;
    margin-top: 10px;
  }

  .member-actions {
    width: 100%;
    justify-content: space-between;
  }

  .setting-row .ghost-button,
  .setting-row .primary-button {
    width: 100%;
  }

  .setting-row .switch {
    align-self: flex-end;
  }
}

@media (min-width: 900px) {
  .event-list {
    grid-template-columns: 1fr;
  }

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

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

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

@media (min-width: 1160px) {
  .event-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
