@import url('fonts.css');
:root {
  font-family: 'DM Sans', sans-serif;
  color: #292b32;
  background: #fff;
  font-synthesis: none;
  --accent: #ed735f;
  --muted: #919299;
  --line: #eeece9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.workspace {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background: #fff;
  overflow: hidden;
}
.rail {
  width: 78px;
  flex-shrink: 0;
  background: #faf8f6;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 28px 12px;
  gap: 18px;
}
.logo {
  font-size: 36px;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}
.rail .icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #89878a;
}
.rail .icon.active {
  background: #fbe5df;
  color: #dc6d59;
}
.rail .spacer {
  flex: 1;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar {
  width: 254px;
  flex-shrink: 0;
  padding: 31px 20px;
  background: #fdfcfa;
  border-right: 1px solid var(--line);
}
.brand {
  font: 800 27px Manrope;
  letter-spacing: -1.5px;
  margin: 0 0 36px 8px;
}
.small {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.primary {
  background: var(--accent);
  color: white;
  border-radius: 11px;
  padding: 13px 19px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.sidebar .primary {
  width: 100%;
  margin: 15px 0 13px;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e9e5e1;
  border-radius: 10px;
  padding: 10px;
  color: #999;
  background: white;
}
.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  min-width: 0;
  font-size: 14px;
  background: none;
}
.searchbox svg {
  width: 17px;
}
.join {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #969299;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.album {
  display: flex;
  text-align: left;
  gap: 12px;
  width: 100%;
  padding: 11px 10px;
  margin: 6px 0;
  border-radius: 12px;
  align-items: center;
}
.album.selected {
  background: #f9eae5;
}
.album img {
  width: 43px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.album strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.album span {
  font-size: 12px;
  color: #969196;
  display: block;
  margin-top: 6px;
}
.sidebar-foot {
  margin-top: 38px;
  padding: 17px;
  background: #f4f0eb;
  border-radius: 12px;
  font-size: 12px;
  color: #8d8781;
  line-height: 1.7;
}
.sidebar-foot strong {
  display: block;
  color: #635c55;
  font-size: 13px;
}
.main {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.crumb {
  font-size: 14px;
  color: #98959a;
  display: flex;
  gap: 13px;
  align-items: center;
}
.crumb strong {
  color: #4f4c50;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 21px;
}
.top-actions .searchbox {
  border: 0;
  background: #f7f7f7;
  width: 200px;
}
.content {
  padding: 32px 36px;
}
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
h1 {
  font: 750 36px Manrope;
  letter-spacing: -1.5px;
  margin: 9px 0 8px;
}
p {
  line-height: 1.6;
}
.subtitle {
  font-size: 14px;
  color: #969299;
  margin: 0;
}
.album-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.outline {
  border: 1px solid #e4e1de;
  border-radius: 10px;
  padding: 11px 15px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: white;
  font-size: 14px;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0 23px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #969299;
}
.members {
  display: flex;
  align-items: center;
  gap: 10px;
}
.faces {
  display: flex;
  padding-left: 7px;
}
.faces img {
  width: 29px;
  height: 29px;
  border: 2px solid white;
  border-radius: 50%;
  margin-left: -7px;
  object-fit: cover;
}
.meta-info {
  display: flex;
  gap: 17px;
  align-items: center;
}
.meta-info span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.meta-info svg {
  width: 15px;
  height: 15px;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-top: 8px;
}
.tabs button {
  padding: 19px 0 15px;
  font-size: 14px;
  color: #929095;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: #dc705b;
  border-color: var(--accent);
  font-weight: 600;
}
.count {
  background: #f4f0ed;
  border-radius: 5px;
  font-size: 11px;
  padding: 2px 6px;
  margin-left: 6px;
}
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  gap: 10px;
}
.filter-group {
  display: flex;
  gap: 9px;
}
.filters select {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23888' viewBox='0 0 12 12'%3E%3Cpath d='m3 4 3 3 3-3'/%3E%3C/svg%3E")
    no-repeat right 11px center;
  border: 1px solid #e9e6e3;
  border-radius: 8px;
  padding: 9px 29px 9px 12px;
  font-size: 13px;
  color: #77747b;
}
.view-switch {
  display: flex;
  gap: 7px;
  color: #9b979b;
}
.view-switch button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 32px;
  border-radius: 6px;
}
.view-switch .active {
  background: #f4eeea;
  color: #6d625d;
}
.day {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 16px;
  font-size: 14px;
  font-weight: 600;
}
.day span {
  font-size: 12px;
  color: #a39d9b;
  font-weight: 400;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.photo {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: #f1eeeb;
  aspect-ratio: 1.22;
  cursor: pointer;
}
.photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.photo:hover > img {
  transform: scale(1.045);
}
.status {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fffe;
  color: #59866e;
  box-shadow: 0 2px 9px #0001;
}
.status svg {
  width: 14px;
  height: 14px;
}
.status.pending {
  color: #b29158;
}
.photo-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 29px 12px 12px;
  background: linear-gradient(transparent, #0008);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 12px;
}
.photo:hover .photo-bottom,
.photo:focus-within .photo-bottom {
  opacity: 1;
}
.photo-actions {
  display: flex;
  gap: 6px;
}
.photo-actions button {
  width: 29px;
  height: 29px;
  background: #fff3;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.photo-actions svg {
  width: 15px;
  height: 15px;
}
.footer-note {
  text-align: center;
  color: #ada7a2;
  font-size: 12px;
  padding: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.footer-note svg {
  width: 14px;
  height: 14px;
}
.empty {
  padding: 70px 15px;
  text-align: center;
  color: #949097;
  grid-column: 1/-1;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #30302e45;
  backdrop-filter: blur(9px);
  display: grid;
  place-items: center;
  padding: 25px;
}
.dialog {
  background: #fffdfa;
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 38px;
  width: 450px;
  max-width: 100%;
  box-shadow: 0 30px 100px #0002;
  position: relative;
}
.dialog h2 {
  font: 750 30px Manrope;
  letter-spacing: -1px;
  margin: 17px 0 10px;
}
.dialog p {
  color: #8c8581;
  font-size: 14px;
}
.dialog .primary {
  width: 100%;
  margin-top: 16px;
}
.dialog .close {
  position: absolute;
  top: 17px;
  right: 17px;
  color: #9d9690;
}
.dialog label.field {
  display: block;
  font-size: 14px;
  margin-top: 17px;
}
.dialog input:not([type='checkbox']) {
  width: 100%;
  border: 1px solid #e3ddd7;
  background: white;
  border-radius: 9px;
  padding: 12px;
  margin-top: 7px;
}
.dialog .alternate {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: #8e8580;
}
.text-button {
  color: #d96e58;
  font-weight: 600;
}
.welcome-art {
  height: 140px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 25px;
}
.welcome-art img {
  width: 111px;
  height: 132px;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 6px 17px #48372725;
  border-radius: 13px;
  transform: rotate(-12deg);
}
.welcome-art img + img {
  transform: rotate(12deg);
  margin-left: -20px;
}
.steps {
  font-size: 12px;
  color: #b28a78;
  letter-spacing: 2px;
}
.checkrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.checkrow input {
  accent-color: var(--accent);
  margin-top: 5px;
}
.checkrow strong {
  display: block;
}
.checkrow span {
  font-size: 13px;
  color: #918980;
  display: block;
  margin-top: 5px;
}
.selfie-drop {
  border: 1px dashed #d9c2b5;
  border-radius: 13px;
  padding: 30px;
  text-align: center;
  background: #fcf4ee;
  color: #a47762;
  margin: 22px 0;
  cursor: pointer;
}
.selfie-drop svg {
  display: block;
  margin: 0 auto 10px;
  width: 32px;
  height: 32px;
}
.preview-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
}
.dialog.lightbox {
  width: 850px;
}
.lightbox img {
  width: 100%;
  object-fit: contain;
  max-height: 70vh;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #343a34;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  z-index: 30;
  font-size: 14px;
  transition: 0.25s;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
}
.list-view {
  grid-template-columns: 1fr 1fr;
}
.hidden {
  display: none !important;
}
.error {
  color: #b04c3a !important;
  font-size: 13px;
}
@media (min-width: 1550px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .content {
    padding: 38px 45px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 220px;
    padding: 28px 14px;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .top-actions .searchbox {
    display: none;
  }
  .grid {
    gap: 12px;
  }
  .heading-actions .outline {
    font-size: 0;
  }
  .heading-actions .outline svg {
    width: 19px;
  }
  h1 {
    font-size: 30px;
  }
}
@media (max-width: 800px) {
  .rail {
    width: 60px;
    padding: 24px 7px;
  }
  .sidebar {
    position: fixed;
    left: 60px;
    top: 0;
    bottom: 0;
    z-index: 5;
    box-shadow: 10px 0 25px #0001;
    overflow: auto;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .meta-info {
    display: none;
  }
  .crumb {
    font-size: 12px;
  }
  .topbar {
    height: 70px;
  }
  .content {
    padding: 22px 18px;
  }
  .heading-actions .outline {
    display: none;
  }
  .filters {
    align-items: flex-start;
  }
  .filter-group {
    flex-wrap: wrap;
    gap: 6px;
  }
  .filters select {
    font-size: 12px;
  }
  .primary {
    padding: 11px 13px;
    font-size: 13px;
  }
  h1 {
    font-size: 26px;
  }
  .album-heading {
    align-items: flex-start;
  }
  .tabs {
    gap: 17px;
  }
  .tabs button {
    font-size: 12px;
  }
}

/* Keep the QR upload glyph square and its button aligned with the search field. */
.searchbox .qr-button {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 6px;
  color: #87838a;
}
.searchbox .qr-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}
.searchbox .qr-button:hover {
  background: #f9eae5;
  color: #dc6d59;
}

/* Desktop transfer activity: anchored, non-modal, and scoped to the current album. */
.transfer-anchor {
  position: relative;
  flex-shrink: 0;
}
.transfer-trigger {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
}
.transfer-trigger:hover,
.transfer-trigger.active {
  background: #fbe5df;
  color: #dc6d59;
}
.transfer-badge {
  position: absolute;
  right: -3px;
  top: -3px;
  background: var(--accent);
  color: white;
  border: 2px solid white;
  border-radius: 20px;
  font-size: 11px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}
.transfer-badge[hidden],
.transfer-popover[hidden] {
  display: none;
}
.transfer-popover {
  position: absolute;
  right: -8px;
  top: 50px;
  width: 440px;
  max-width: calc(100vw - 36px);
  background: #fffdfa;
  border: 1px solid #e9e5e1;
  border-radius: 18px;
  box-shadow: 0 16px 55px #49392c24;
  z-index: 8;
  overflow: hidden;
}
.transfer-heading {
  padding: 22px 24px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.transfer-heading h2 {
  font: 750 21px Manrope;
  margin: 0;
  letter-spacing: -0.5px;
}
.transfer-heading p {
  font-size: 13px;
  color: #969299;
  margin: 5px 0 0;
}
.transfer-heading button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #969299;
  border-radius: 6px;
}
.transfer-heading button:hover {
  background: #f4eeea;
}
.transfer-heading button svg {
  width: 17px;
  height: 17px;
}
.transfer-event {
  margin: 0 24px 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #eeece9;
  border-radius: 12px;
  background: #fff;
}
.transfer-event > svg {
  color: #d77662;
}
.transfer-event strong {
  font-size: 14px;
  font-weight: 600;
  display: block;
}
.transfer-event span {
  font-size: 12px;
  color: #969299;
  display: block;
  margin-top: 4px;
}
.transfer-tabs {
  display: flex;
  gap: 22px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.transfer-tabs button {
  font-size: 14px;
  padding: 0 0 13px;
  color: #929095;
  border-bottom: 2px solid transparent;
}
.transfer-tabs button.active {
  color: #dc705b;
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.transfer-tabs button span {
  font-size: 12px;
  background: #f4eeea;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 5px;
}
.transfer-list {
  max-height: min(410px, calc(100dvh - 350px));
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overscroll-behavior: contain;
}
.transfer-list section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.transfer-list h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
  display: flex;
  justify-content: space-between;
  color: #777078;
}
.transfer-list h3 > span {
  font-size: 12px;
  color: #aaa1a0;
  font-weight: 400;
}
.transfer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f0ebe6;
  border-radius: 12px;
  background: white;
}
.transfer-thumbnail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f5efea;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #b5a396;
}
.transfer-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.transfer-details {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.transfer-details > strong {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transfer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9b8b76;
  line-height: 1.4;
}
.transfer-status svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.transfer-status.complete {
  color: #59866e;
}
.transfer-status.failed {
  color: #bd604c;
}
.transfer-percent {
  margin-left: auto;
}
.transfer-status button {
  font-size: 12px;
  margin-left: auto;
  padding: 0;
}
.transfer-track {
  height: 4px;
  border-radius: 4px;
  background: #f4e7df;
  overflow: hidden;
}
.transfer-track > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}
.transfer-track > span.complete {
  background: #83a28a;
}
.transfer-footer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #faf7f3;
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  font-size: 12px;
  line-height: 1.6;
  color: #9a9089;
}
.transfer-footer svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.transfer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 12px;
  text-align: center;
  color: #969299;
  gap: 10px;
}
.transfer-empty > svg {
  width: 28px;
  height: 28px;
  color: #d99d86;
}
.transfer-empty strong {
  font-size: 15px;
  color: #6f6665;
}
.transfer-empty p {
  font-size: 13px;
  max-width: 250px;
  margin: 0;
}
@media (max-width: 600px) {
  .transfer-popover {
    position: fixed;
    right: 12px;
    top: 66px;
    width: calc(100vw - 24px);
  }
  .transfer-heading,
  .transfer-list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .transfer-event {
    margin-left: 18px;
    margin-right: 18px;
  }
}

.invite-qr {
  display: flex;
  justify-content: center;
  background: white;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin: 18px auto 12px;
  width: 216px;
}
.invite-qr svg {
  width: 190px;
  height: 190px;
  fill: #292b32;
  stroke: none;
  flex-shrink: 1;
}
.invite-code {
  padding: 13px;
  background: #f9eee7;
  text-align: center;
  letter-spacing: 5px;
  border-radius: 10px;
  font-size: 23px;
  font-weight: 700;
}
.invite-link {
  width: 100%;
  justify-content: center;
  margin-top: 9px;
}
.photo-upload-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #a47762;
  text-align: center;
}
.photo-upload-placeholder > svg {
  width: 32px;
  height: 32px;
}
.photo-upload-placeholder > span {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.photo-upload-placeholder > small {
  font-size: 12px;
}

.invite-qr img {
  display: block;
  width: 190px;
  height: 190px;
  image-rendering: pixelated;
}
.invite-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Desktop-to-mobile selfie enrollment. */
.enrollment-layout {
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 20px;
  align-items: center;
  margin: 22px 0 14px;
}
.enrollment-qr {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 12px;
}
.enrollment-qr img {
  display: block;
  width: 150px;
  height: 150px;
  image-rendering: pixelated;
}
.enrollment-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.enrollment-copy > strong {
  font-size: 16px;
}
.enrollment-copy > span {
  font-size: 13px;
  line-height: 1.5;
  color: #8c8581;
}
.enrollment-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #a47762;
  font-size: 13px;
  font-weight: 600;
}
.enrollment-status svg {
  width: 16px;
  height: 16px;
}
.enrollment-status.complete {
  color: #59866e;
}
.enrollment-preview {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}
.enrollment-simulate {
  display: block;
  margin: 13px auto 0;
  font-size: 12px;
}
.enrollment-note {
  font-size: 12px !important;
  margin: 12px 0 0 !important;
}
.dialog .primary:disabled {
  background: #d9d3ce;
  color: #fff;
  opacity: 1;
}
@media (max-width: 520px) {
  .enrollment-layout {
    grid-template-columns: 1fr;
  }
  .enrollment-qr {
    width: 176px;
    margin: auto;
  }
  .enrollment-copy {
    text-align: center;
  }
  .enrollment-status {
    justify-content: center;
  }
}

/* Centered share card opened from a photo's share action. */
.dialog.share-dialog {
  width: 520px;
}
.share-dialog > p {
  margin: 4px 0 20px;
}
.share-friends-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: #e8f5f1;
  color: #087c69;
  border-radius: 13px;
  text-align: left;
}
.share-friends-card:hover {
  background: #dcefe9;
}
.share-friends-card > svg:first-child {
  width: 23px;
  height: 23px;
}
.share-friends-card > svg:last-child {
  margin-left: auto;
  width: 17px;
  height: 17px;
}
.share-friends-card span {
  display: block;
  flex: 1;
}
.share-friends-card strong {
  display: block;
  font-size: 15px;
}
.share-friends-card small {
  display: block;
  font-size: 12px;
  margin-top: 3px;
  color: #4c8278;
}
.share-destinations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 16px 0;
}
.share-destinations button {
  border: 1px solid #e7e3df;
  border-radius: 12px;
  padding: 14px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  background: #fff;
}
.share-destinations button:hover {
  background: #f7f4f1;
}
.share-destinations b {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #f0eeec;
  display: grid;
  place-items: center;
  font-size: 17px;
}
.share-copy-card {
  width: 100%;
  justify-content: center;
}
@media (max-width: 520px) {
  .share-destinations {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Photo sharing stays in context: hover or focus the share control to reveal its menu. */
.share-control {
  position: relative;
  display: grid;
  place-items: center;
}
.share-menu {
  position: absolute;
  right: -4px;
  bottom: 36px;
  width: 214px;
  padding: 12px;
  background: #fffdfa;
  color: #292b32;
  border: 1px solid #e9e5e1;
  border-radius: 14px;
  box-shadow: 0 14px 34px #2f241e2b;
  display: none;
  z-index: 6;
  text-align: left;
}
.share-control:hover .share-menu,
.share-control:focus-within .share-menu {
  display: block;
}
.share-menu > strong {
  display: block;
  font-size: 12px;
  color: #918b88;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 1px 3px 9px;
}
.share-menu button {
  color: #3b3b40 !important;
  background: transparent !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 9px !important;
  text-align: left;
}
.share-menu button:hover {
  background: #f4f1ee !important;
}
.share-menu button svg {
  width: 17px;
  height: 17px;
}
.share-menu button span {
  font-size: 13px;
}
.share-menu button small {
  font-size: 10px;
  color: #74847f;
  margin-left: auto;
}
.share-menu .share-friends {
  background: #e8f5f1 !important;
  color: #087c69 !important;
}
.share-menu .share-friends:hover {
  background: #dcefe9 !important;
}
.share-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 6px 0;
}
.share-platforms button b {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: #f0eeec;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.share-menu .share-copy {
  border-top: 1px solid #ece8e5;
  border-radius: 0 !important;
  padding-top: 11px !important;
  margin-top: 4px;
}
.photo-actions {
  overflow: visible;
}
.photo-bottom {
  overflow: visible;
}

/* Account settings live behind the profile avatar; onboarding remains a separate two-step flow. */
.avatar[role='button'] {
  cursor: pointer;
  outline-offset: 4px;
}
.avatar[role='button']:hover {
  box-shadow: 0 0 0 4px #fbe5df;
}
.dialog.account-dialog {
  width: 560px;
  max-height: min(860px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 32px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 4px 20px;
}
.account-profile > img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}
.account-profile h2 {
  font-size: 25px;
  margin: 0 0 3px;
  letter-spacing: -0.5px;
}
.account-profile p {
  font-size: 14px;
  margin: 0 0 3px;
  color: #78807e;
}
.account-profile .text-button {
  font-size: 13px;
  padding: 0;
}
.account-card {
  border: 1px solid #e3e7e3;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 24px;
}
.account-row,
.account-toggle {
  width: 100%;
  min-height: 66px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-bottom: 1px solid #e7ebe7;
}
.account-card > :last-child {
  border-bottom: 0;
}
.account-row:hover {
  background: #fbf8f5;
}
.account-row-icon {
  color: #178978;
  display: grid;
  place-items: center;
}
.account-row > span:nth-child(2),
.account-toggle > span {
  flex: 1;
  min-width: 0;
}
.account-row strong,
.account-toggle strong {
  font-size: 15px;
  font-weight: 650;
  display: block;
}
.account-row small,
.account-toggle small {
  font-size: 13px;
  color: #7c8582;
  display: block;
  margin-top: 3px;
}
.account-row > svg {
  width: 17px;
  height: 17px;
  color: #73807c;
}
.account-section-title {
  font: 650 16px 'DM Sans';
  margin: 0 0 10px 2px;
  color: #253431;
}
.account-toggle {
  cursor: pointer;
}
.account-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.account-toggle i {
  width: 42px;
  height: 24px;
  border-radius: 24px;
  background: #e7ebe6;
  position: relative;
  transition: 0.2s;
}
.account-toggle i:after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px #0002;
  transition: 0.2s;
}
.account-toggle input:checked + i {
  background: #178978;
}
.account-toggle input:checked + i:after {
  transform: translateX(18px);
}
.account-toggle input:focus-visible + i {
  outline: 2px solid #292b32;
  outline-offset: 3px;
}
.account-note {
  font-size: 12px !important;
  color: #8f918f !important;
  margin: 0 2px;
}
@media (max-width: 600px) {
  .dialog.account-dialog {
    padding: 26px 20px;
  }
  .account-row,
  .account-toggle {
    padding: 13px 14px;
  }
}

/* Keep the invite/share action available in narrow embedded previews. */
@media (max-width: 800px) {
  .heading-actions .outline {
    display: inline-flex;
    font-size: 0;
    padding: 11px;
  }
  .heading-actions .outline svg {
    width: 19px;
    height: 19px;
  }
}

.selfie-current {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce8e1;
  background: #eef7f2;
  color: #59866e;
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 18px;
}
.selfie-current > svg {
  width: 20px;
  height: 20px;
}
.selfie-current span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.selfie-current strong {
  font-size: 14px;
}
.selfie-current small {
  font-size: 12px;
  color: #74857c;
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}
.manage-action {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 800px) {
  .album-heading {
    flex-wrap: wrap;
    gap: 14px;
  }
  .album-heading > div:first-child {
    flex-basis: 100%;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions button {
    white-space: nowrap;
  }
  .filters {
    flex-wrap: wrap;
    gap: 12px;
  }
  .filter-group {
    flex-wrap: wrap;
  }
  .footer-note {
    flex-wrap: wrap;
  }
}
