/* Haecceity Profile 2026
   One purpose-built surface for the signed-in profile, public profile, and
   editor. Spacing and tonal fills establish hierarchy; decorative dividers,
   inset shadows, and legacy hardware treatments are intentionally absent. */

.profile-v2 {
  --profile-soft: color-mix(in srgb, var(--card) 72%, var(--bg));
  --profile-soft-strong: color-mix(in srgb, var(--card) 88%, var(--bg));
  --profile-tint: color-mix(in srgb, var(--accent) 8%, var(--card));
  height: 100%;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-system);
  scrollbar-width: thin;
}

.profile-v2 *,
.profile-v2 *::before,
.profile-v2 *::after { box-sizing: border-box; }

.profile-v2 :where(section, article, aside, header, nav, form, details, figure),
.profile-v2-editor :where(section, article, aside, header, nav, form, details, figure) {
  box-shadow: none !important;
}

.profile-v2 .profile-canvas {
  padding: 28px 34px 88px;
  background: var(--bg);
}

.profile-v2 .profile-canvas-inner {
  width: min(1260px, 100%);
  margin: 0 auto;
}

/* Header and high-level actions */
.profile-v2-toolbar {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 2px;
  border: 0 !important;
}

.profile-v2-toolbar > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.profile-v2-toolbar > div > span {
  color: var(--text);
  font-size: 30px !important;
  font-weight: 730;
  letter-spacing: -.04em;
}

.profile-v2-toolbar > div > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-v2-toolbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-v2-toolbar nav a,
.profile-v2-toolbar nav span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 11px;
  background: var(--fill-secondary);
  color: var(--text);
  font-size: 12px !important;
  font-weight: 620;
  text-decoration: none;
}

.profile-v2-toolbar nav a:hover { background: var(--fill-primary); }
.profile-v2-toolbar .profile-v2-toolbar-primary {
  background: var(--accent);
  color: #fff;
}
.profile-v2-toolbar .profile-v2-toolbar-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* Profile and management rail */
.profile-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 18px;
  align-items: start;
  color: var(--text);
}

.profile-v2 .profile-v2-surface,
.profile-public-body .profile-v2-surface {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px;
  background: var(--bg);
  color: var(--text);
}

.profile-v2 .profile-v2-surface::before,
.profile-v2 .profile-v2-surface::after,
.profile-public-body .profile-v2-surface::before,
.profile-public-body .profile-v2-surface::after { display: none !important; content: none !important; }

.profile-v2-cover {
  position: relative;
  height: clamp(240px, 28vw, 350px);
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px;
  background: var(--profile-soft);
}

.profile-v2-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, #000 35%, transparent));
  pointer-events: none;
}

.profile-v2-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.profile-v2-cover-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--bg)), color-mix(in srgb, var(--secondary) 20%, var(--sidebar)));
}

.profile-v2-cover-placeholder span {
  color: color-mix(in srgb, var(--text) 18%, transparent);
  font-size: clamp(64px, 12vw, 120px) !important;
  font-weight: 750;
  letter-spacing: -.08em;
}

.profile-v2-atmosphere {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 15px;
  padding: 6px 10px;
  border: 0 !important;
  border-radius: 999px;
  background: color-mix(in srgb, #000 48%, transparent);
  color: #fff;
  font-size: 10px !important;
  font-weight: 650;
  letter-spacing: .035em;
  backdrop-filter: blur(16px);
}

/* Identity */
.profile-v2 .profile-v2-identity {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: start;
  margin: 0;
  padding: 0 30px 30px;
  border: 0 !important;
  border-radius: 0;
  background: var(--bg);
}

.profile-v2-badge {
  grid-row: 1 / span 4;
  align-self: start;
  width: 94px;
  margin-top: -66px;
  padding: 9px;
  border: 0 !important;
  border-radius: 19px;
  background: var(--bg);
}

.profile-v2 .profile-v2-badge .ident-md,
.profile-public-body .profile-v2-badge .ident-md {
  width: 76px !important;
  height: 95px !important;
}

.profile-v2-intro { min-width: 0; padding-top: 20px; }
.profile-v2-handle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 11px !important;
}
.profile-v2-handle span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--mint-fill);
  color: var(--success);
  font-size: 9px !important;
  font-weight: 700;
}
.profile-v2-intro h1 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(34px, 4.2vw, 52px) !important;
  font-weight: 740;
  line-height: 1;
  letter-spacing: -.055em;
}
.profile-v2-role {
  margin: 9px 0 0;
  color: var(--secondary);
  font-size: 15px !important;
  font-weight: 590;
}
.profile-v2-presence {
  display: inline-flex;
  max-width: 235px;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-top: 21px;
  padding: 9px 11px;
  border-radius: 999px;
  background: var(--fill-secondary);
  color: var(--muted);
  font-size: 11px !important;
  line-height: 1.3;
}
.profile-v2-presence i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}
.profile-v2-presence i.is-online { background: var(--success); }
.profile-v2-bio {
  grid-column: 2 / -1;
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--text);
  font-size: 15px !important;
  line-height: 1.65;
}
.profile-v2-stats {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0;
}
.profile-v2-stats div {
  display: inline-flex;
  min-height: 32px;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--fill-secondary);
}
.profile-v2-stats dt { color: var(--muted); font-size: 10px !important; }
.profile-v2-stats dd { margin: 0; color: var(--text); font-size: 12px !important; font-weight: 690; }

.profile-v2-jumpbar {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 48px);
  margin: 0 24px 18px;
  overflow-x: auto;
  padding: 4px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--fill-secondary);
  scrollbar-width: none;
}
.profile-v2-jumpbar::-webkit-scrollbar { display: none; }
.profile-v2-jumpbar a {
  flex: none;
  padding: 7px 10px;
  border: 0 !important;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px !important;
  font-weight: 610;
  text-decoration: none;
}
.profile-v2-jumpbar a:hover { background: var(--card); color: var(--text); }

/* Modules */
.profile-v2-modules {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 18px 18px;
}
.profile-v2 .profile-v2-module,
.profile-public-body .profile-v2-module {
  margin: 0;
  padding: 27px 26px 29px;
  border: 0 !important;
  border-radius: 20px;
  background: var(--profile-soft);
  scroll-margin-top: 18px;
}
.profile-v2 .profile-v2-moments { background: color-mix(in srgb, var(--card) 58%, var(--bg)); }
.profile-v2 .profile-v2-offerings { background: var(--profile-soft); }
.profile-v2 .profile-v2-watching { background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.profile-v2 .profile-v2-music { background: color-mix(in srgb, var(--success) 5%, var(--card)); }
.profile-v2 .profile-v2-module::before,
.profile-v2 .profile-v2-module::after { display: none !important; content: none !important; }

.profile-v2-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0;
  border: 0 !important;
}
.profile-v2-section-head > div { min-width: 0; }
.profile-v2-section-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 10px !important;
  font-weight: 720;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.profile-v2-section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px !important;
  font-weight: 710;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.profile-v2-section-head > small {
  color: var(--muted);
  font-size: 10px !important;
  white-space: nowrap;
}

/* Links */
.profile-v2 .profile-v2-link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.profile-v2 .profile-v2-link-list > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  min-height: 70px;
  align-items: center;
  padding: 10px;
  border: 0 !important;
  border-radius: 15px;
  background: var(--fill-secondary);
  color: var(--text);
  text-decoration: none;
}
.profile-v2 .profile-v2-link-list > a:hover { background: var(--fill-primary); }
.profile-v2 .profile-v2-link-list .link-image,
.profile-v2 .profile-v2-link-list .link-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px;
  background: var(--profile-tint);
  color: var(--accent);
  font-size: 13px !important;
  font-weight: 700;
}
.profile-v2 .profile-v2-link-list .link-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .profile-v2-link-list a > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.profile-v2 .profile-v2-link-list b { overflow: hidden; font-size: 13px !important; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.profile-v2 .profile-v2-link-list small { overflow: hidden; color: var(--muted); font-size: 10px !important; text-overflow: ellipsis; white-space: nowrap; }
.profile-v2 .profile-v2-link-list a > i { color: var(--accent); font-size: 14px !important; font-style: normal; }

/* Camera roll */
.profile-v2 .moments-bento {
  display: grid !important;
  grid-template-columns: 1.2fr .8fr !important;
  grid-auto-flow: dense;
  grid-auto-rows: 184px !important;
  gap: 10px !important;
  overflow: visible !important;
}
.profile-v2 .moment-card {
  position: relative;
  grid-area: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: var(--fill-secondary);
}
.profile-v2 .moment-card-0 { grid-row: span 2 !important; }
.profile-v2 .moments-bento:has(.moment-card-3):not(:has(.moment-card-4)) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: 164px !important;
}
.profile-v2 .moments-bento:has(.moment-card-3):not(:has(.moment-card-4)) .moment-card-0 {
  grid-column: 1 / -1 !important;
  grid-row: span 2 !important;
}
.profile-v2 .moment-card button { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; background: none; }
.profile-v2 .moment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.profile-v2 .moment-card:hover img { transform: scale(1.015); }
.profile-v2 .moment-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 38px 13px 12px;
  border: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #000 72%, transparent));
  color: #fff;
  pointer-events: none;
}
.profile-v2 .moment-card figcaption strong { display: block; font-size: 12px !important; font-weight: 670; }
.profile-v2 .moment-card figcaption p { display: -webkit-box; margin: 2px 0 0; overflow: hidden; color: color-mix(in srgb, #fff 76%, transparent); font-size: 10px !important; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }

/* Offerings */
.profile-v2 .edition-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: transparent !important; }
.profile-v2 .edition-piece {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 152px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg));
  color: var(--text);
  text-decoration: none;
}
.profile-v2 .edition-piece:hover { background: var(--card); }
.profile-v2 .edition-piece:nth-child(3n) { grid-column: auto; }
.profile-v2 .edition-piece-lead { grid-column: 1 / -1; grid-template-columns: minmax(210px, .85fr) minmax(0, 1.15fr); height: clamp(280px, 30vw, 360px); min-height: 0; }
.profile-v2 .edition-art { min-width: 0; min-height: 100%; overflow: hidden; background: var(--fill-primary); }
.profile-v2 .edition-art > img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .edition-product-ui { display: grid; height: 100%; min-height: 150px; place-content: center; justify-items: center; gap: 5px; color: var(--muted); }
.profile-v2 .edition-product-ui > b { color: var(--accent); font-size: 28px !important; }
.profile-v2 .edition-product-ui > i,
.profile-v2 .edition-product-ui > small { font-size: 9px !important; font-style: normal; text-transform: uppercase; }
.profile-v2 .edition-copy { display: flex; min-width: 0; flex-direction: column; padding: 15px; }
.profile-v2 .edition-copy > small { color: var(--accent); font-size: 9px !important; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.profile-v2 .edition-copy strong { margin-top: 5px; font-size: 17px !important; line-height: 1.2; }
.profile-v2 .edition-copy p { display: -webkit-box; margin: 7px 0 10px; overflow: hidden; color: var(--muted); font-size: 11px !important; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.profile-v2 .edition-copy > em { margin-top: auto; color: var(--text); font-size: 12px !important; font-style: normal; font-weight: 680; }
.profile-v2 .edition-copy > em i { color: var(--accent); font-style: normal; }
.profile-v2 .edition-disclosure { margin: 11px 0 0; color: var(--muted); font-size: 9px !important; }

/* Watching and listening */
.profile-v2 .watching-grid,
.profile-v2 .music-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-v2 .watch-card,
.profile-v2 .music-card {
  display: grid;
  min-height: 164px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 16px;
  background: var(--fill-secondary);
}
.profile-v2 .watch-card { grid-template-columns: 104px minmax(0, 1fr); padding: 0; }
.profile-v2 .watch-screen { width: 104px; height: 100%; min-height: 164px; overflow: hidden; border: 0; border-radius: 0; background: var(--fill-primary); }
.profile-v2 .watch-screen img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .watch-key-art { display: grid; height: 100%; place-content: center; justify-items: center; color: var(--muted); }
.profile-v2 .watch-key-art span { color: var(--accent); font-size: 22px !important; font-weight: 700; }
.profile-v2 .watch-key-art b { margin-top: 4px; font-size: 8px !important; line-height: 1.2; text-align: center; }
.profile-v2 .watch-key-art em { margin-top: 8px; font-style: normal; }
.profile-v2-media-copy { display: flex; min-width: 0; flex-direction: column; padding: 14px; }
.profile-v2-media-copy > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-v2-media-copy > div:first-child span { color: var(--accent); font-size: 9px !important; font-weight: 700; }
.profile-v2-media-copy > div:first-child small { color: var(--muted); font-size: 9px !important; }
.profile-v2-media-copy h3 { margin: 7px 0 0; color: var(--text); font-size: 16px !important; font-weight: 690; line-height: 1.2; }
.profile-v2-media-copy p { display: -webkit-box; margin: 6px 0 0; overflow: hidden; color: var(--muted); font-size: 10px !important; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-v2-media-copy .profile-v2-media-note { color: var(--secondary); }
.profile-v2 .watch-progress { height: 4px; margin-top: 10px; overflow: hidden; border: 0; border-radius: 999px; background: var(--fill-primary); }
.profile-v2 .watch-progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.profile-v2-progress-label { margin-top: 4px; color: var(--muted); font-size: 8px !important; }
.profile-v2-media-copy > a { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 10px !important; font-weight: 630; text-decoration: none; }

.profile-v2 .music-card { grid-template-columns: 120px minmax(0, 1fr); }
.profile-v2 .music-art { position: relative; width: 120px; height: 100%; min-height: 164px; overflow: hidden; border: 0; border-radius: 0; background: var(--fill-primary); }
.profile-v2 .music-art img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .music-art-contextual { display: grid; place-content: center; }
.profile-v2 .music-art-contextual > b { color: var(--accent); font-size: 22px !important; }
.profile-v2 .music-wave { display: none; }
.profile-v2 .music-copy { display: flex; min-width: 0; flex-direction: column; padding: 14px; }
.profile-v2 .music-service-row { display: flex; justify-content: space-between; gap: 8px; }
.profile-v2 .music-service-row > span { color: var(--accent); font-size: 9px !important; font-weight: 700; }
.profile-v2 .music-service-row em { color: var(--muted); font-size: 8px !important; font-style: normal; }
.profile-v2 .music-copy h3 { margin: 8px 0 0; font-size: 16px !important; font-weight: 690; line-height: 1.2; }
.profile-v2 .music-copy > small { margin-top: 3px; color: var(--secondary); font-size: 10px !important; }
.profile-v2 .music-copy p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 10px !important; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-v2 .music-copy a { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 10px !important; font-weight: 630; text-decoration: none; }

/* Notes, places, and personal sections */
.profile-v2-journal-layout { display: grid; grid-template-columns: minmax(190px, .76fr) minmax(0, 1.24fr); gap: 14px; align-items: start; }
.profile-v2 .module-editorial-cover { position: sticky; top: 16px; height: 270px; overflow: hidden; border: 0 !important; border-radius: 16px; background: var(--fill-secondary); }
.profile-v2 .module-editorial-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .module-editorial-cover figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 40px 14px 13px; border: 0; background: linear-gradient(180deg, transparent, color-mix(in srgb, #000 72%, transparent)); color: #fff; }
.profile-v2 .module-editorial-cover span { display: block; color: color-mix(in srgb, #fff 72%, transparent); font-size: 8px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profile-v2 .module-editorial-cover b { display: block; margin-top: 2px; font-size: 12px !important; }
.profile-v2 .journal-timeline { display: grid; gap: 8px; margin: 0; padding: 0; }
.profile-v2 .journal-timeline li { display: block; border: 0 !important; }
.profile-v2 .journal-timeline article { padding: 13px 14px 15px; border: 0 !important; border-radius: 14px; background: var(--fill-secondary); }
.profile-v2 .journal-timeline article > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-v2 .journal-timeline time { color: var(--muted); font-size: 9px !important; font-variant-numeric: tabular-nums; }
.profile-v2 .journal-timeline article span { padding: 3px 7px; border-radius: 999px; background: var(--profile-tint); color: var(--secondary); font-size: 8px !important; }
.profile-v2 .journal-timeline article p { margin: 8px 0 0; color: var(--text); font-size: 12px !important; line-height: 1.5; }
.profile-v2-journal-stream { min-width: 0; }
.profile-v2 .journal-archive { margin-top: 10px; border: 0 !important; }
.profile-v2 .journal-archive > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--fill-primary);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.profile-v2 .journal-archive > summary::-webkit-details-marker { display: none; }
.profile-v2 .journal-archive > summary span { font-size: 11px !important; font-weight: 670; }
.profile-v2 .journal-archive > summary small { color: var(--muted); font-size: 9px !important; }
.profile-v2 .journal-archive[open] > summary { margin-bottom: 8px; }

.profile-v2 .places-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.profile-v2 .place-card { overflow: hidden; border: 0 !important; border-radius: 16px; background: var(--fill-secondary); }
.profile-v2 .place-visual { position: relative; height: 130px; overflow: hidden; border: 0; border-radius: 0; background: var(--fill-primary); }
.profile-v2 .place-visual img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .place-visual-contextual { display: grid; place-content: center; color: var(--accent); }
.profile-v2 .place-card-copy { padding: 13px; }
.profile-v2 .place-card-copy > span { color: var(--accent); font-size: 8px !important; font-weight: 700; text-transform: uppercase; }
.profile-v2 .place-card-copy h3 { margin: 5px 0 0; font-size: 15px !important; font-weight: 690; line-height: 1.25; }
.profile-v2 .place-card-copy > small { display: block; margin-top: 3px; color: var(--secondary); font-size: 9px !important; line-height: 1.35; }
.profile-v2 .place-card-copy p { display: -webkit-box; margin: 8px 0 0; overflow: hidden; color: var(--muted); font-size: 10px !important; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.profile-v2 .place-card-copy a { display: inline-flex; margin-top: 10px; color: var(--accent); font-size: 9px !important; font-weight: 630; text-decoration: none; }

.profile-v2 .story-note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-v2 .story-note { display: grid; grid-template-columns: 108px minmax(0, 1fr); min-height: 148px; overflow: hidden; border: 0 !important; border-radius: 16px; background: var(--fill-secondary); }
.profile-v2 .story-note-art { width: 108px; height: 100%; min-height: 148px; overflow: hidden; border: 0; background: var(--fill-primary); }
.profile-v2 .story-note-art img { width: 100%; height: 100%; object-fit: cover; }
.profile-v2 .story-note-contextual { display: grid; place-content: center; color: var(--muted); text-align: center; }
.profile-v2 .story-note-contextual > b { color: var(--accent); font-size: 24px !important; }
.profile-v2 .story-note-copy { padding: 13px; }
.profile-v2 .story-note-copy h3 { margin: 0; font-size: 15px !important; font-weight: 690; line-height: 1.25; }
.profile-v2 .story-note-copy small { display: block; margin-top: 4px; color: var(--secondary); font-size: 9px !important; }
.profile-v2 .story-note-copy p { margin: 8px 0 0; color: var(--muted); font-size: 10px !important; line-height: 1.45; }

/* Owner and visitor side cards */
.profile-v2-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.profile-v2-control-card,
.profile-v2-theme-card,
.profile-v2-edit-door {
  padding: 18px;
  border: 0 !important;
  border-radius: 17px;
  background: var(--profile-soft);
}
.profile-v2-kicker,
.profile-v2-theme-card header p {
  margin: 0;
  color: var(--accent);
  font-size: 9px !important;
  font-weight: 720;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.profile-v2-control-card > h2,
.profile-v2-theme-card h2 { margin: 5px 0 0; color: var(--text); font-size: 21px !important; font-weight: 710; line-height: 1.18; letter-spacing: -.035em; }
.profile-v2-control-card > p:not(.profile-v2-kicker) { margin: 10px 0 0; color: var(--muted); font-size: 12px !important; line-height: 1.5; }
.profile-v2-public-address { display: block; overflow: hidden; margin-top: 12px; color: var(--muted); font-size: 10px !important; text-overflow: ellipsis; white-space: nowrap; }
.profile-v2-control-card label { display: grid; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 10px !important; font-weight: 650; }
.profile-v2-control-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 0 !important;
  border-radius: 10px;
  background: var(--fill-primary);
  color: var(--text);
  font-size: 11px !important;
}
.profile-v2-copy,
.profile-v2-secondary-action {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 9px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 11px !important;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.profile-v2-secondary-action { justify-content: space-between; background: var(--fill-primary); color: var(--text); }
.profile-v2-text-link { display: inline-flex; margin-top: 12px; color: var(--accent); font-size: 10px !important; font-weight: 620; text-decoration: none; }
.profile-v2-theme-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-v2-theme-card header > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.profile-v2-theme-list { display: grid; gap: 3px; margin-top: 13px; }
.profile-v2-theme-list form { margin: 0; }
.profile-v2-theme-list button {
  appearance: none;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 14px;
  gap: 8px;
  width: 100%;
  min-height: 39px;
  align-items: center;
  padding: 0 8px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}
.profile-v2-theme-list button:hover { background: var(--fill-secondary); color: var(--text); }
.profile-v2-theme-list button.is-active { background: var(--accent-fill); color: var(--text); }
.profile-v2-theme-list button i { display: block; width: 22px; height: 15px; border: 0; border-radius: 5px; background: linear-gradient(135deg, var(--choice-bg) 0 54%, var(--choice-secondary) 54% 74%, var(--choice-accent) 74%); }
.profile-v2-theme-list button span { font-size: 10px !important; }
.profile-v2-theme-list button b { color: var(--accent); font-size: 11px !important; text-align: right; }
.profile-v2-edit-door {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.profile-v2-edit-door span { font-size: 12px !important; font-weight: 680; }
.profile-v2-edit-door small { grid-column: 1; color: var(--muted); font-size: 9px !important; }
.profile-v2-edit-door i { grid-column: 2; grid-row: 1 / 3; color: var(--accent); font-style: normal; }
.profile-v2-edit-door:hover { background: var(--fill-primary); }

/* Editor */
.profile-v2-editor {
  width: 100%;
  margin: 36px 0 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 24px;
  background: color-mix(in srgb, var(--sidebar) 78%, var(--bg));
}
.profile-v2-editor .profile-editor-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px;
  border: 0 !important;
  background: color-mix(in srgb, var(--sidebar) 94%, transparent);
  backdrop-filter: blur(18px);
}
.profile-v2-editor .profile-editor-bar > div { display: grid; gap: 1px; }
.profile-v2-editor .profile-editor-bar b { color: var(--text); font-size: 14px !important; }
.profile-v2-editor .profile-editor-bar span { color: var(--muted); font-size: 10px !important; }
.profile-v2-editor .profile-editor-bar a { color: var(--accent); font-size: 10px !important; font-weight: 660; text-decoration: none; }
.profile-v2-editor .studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px 24px 20px;
  border: 0 !important;
  background: transparent;
}
.profile-v2-editor .studio-intro h2 { margin: 5px 0 0; color: var(--text); font-size: 28px !important; font-weight: 720; letter-spacing: -.04em; }
.profile-v2-editor .studio-intro > div > p:last-child { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 12px !important; line-height: 1.55; }
.profile-v2-editor .studio-shortcuts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.profile-v2-editor .studio-shortcuts a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 10px; border: 0 !important; border-radius: 999px; background: var(--fill-secondary); color: var(--muted); font-size: 9px !important; font-weight: 650; text-decoration: none; text-transform: none; }
.profile-v2-editor .studio-shortcuts a:hover { background: var(--fill-primary); color: var(--text); }
.profile-v2-editor .studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 16px; }
.profile-v2-editor .editor-module {
  min-width: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 17px;
  background: var(--profile-soft);
}
.profile-v2-editor .editor-module-wide { grid-column: 1 / -1; }
.profile-v2-editor .editor-module[open] { border: 0 !important; background: var(--profile-soft-strong); }
.profile-v2-editor .editor-module > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 0 !important;
  list-style: none;
  cursor: pointer;
}
.profile-v2-editor .editor-module > summary::-webkit-details-marker { display: none; }
.profile-v2-editor .editor-module > summary > span { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 10px; min-width: 0; align-items: center; }
.profile-v2-editor .editor-module > summary > span > i { display: grid; grid-row: 1 / 3; width: 30px; height: 30px; place-items: center; border: 0 !important; border-radius: 10px; background: var(--accent-fill); color: var(--accent); font-size: 9px !important; font-style: normal; font-weight: 720; }
.profile-v2-editor .editor-module > summary b { color: var(--text); font-size: 12px !important; font-weight: 680; }
.profile-v2-editor .editor-module > summary small { overflow: hidden; color: var(--muted); font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.profile-v2-editor .editor-module > summary > em { color: var(--muted); font-size: 9px !important; font-style: normal; font-weight: 660; text-transform: capitalize; white-space: nowrap; }
.profile-v2-editor .editor-module[open] > summary > em { color: var(--accent); }
.profile-v2-editor .profile-v2-editor-body { padding: 0 14px 14px; border: 0 !important; }

.profile-v2-editor .profile-v2-identity-editor {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}
.profile-v2-editor .avatar-uploader {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border: 0 !important;
  border-radius: 15px;
  background: var(--fill-secondary);
}
.profile-v2-editor .avatar-upload-current {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}
.profile-v2-editor .avatar-upload-current .profile-badge-preview {
  width: 112px !important;
  height: 140px !important;
}
.profile-v2-editor .avatar-upload-current > span { display: grid; gap: 3px; }
.profile-v2-editor .avatar-upload-current b { color: var(--text); font-size: 14px !important; }
.profile-v2-editor .avatar-upload-current small { max-width: 220px; color: var(--muted); font-size: 10px !important; line-height: 1.45; }
.profile-v2-editor .avatar-uploader > input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.profile-v2-editor .avatar-uploader > button {
  min-height: 44px;
  padding: 0 13px;
  border: 0 !important;
  border-radius: 11px;
  background: var(--accent-fill);
  color: var(--accent);
  font-size: 10px !important;
  font-weight: 680;
}

.profile-v2-editor .editor-form {
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 0 !important;
  border-radius: 15px;
  background: var(--fill-secondary);
}
.profile-v2-editor .editor-form-grid { grid-template-columns: 1fr 1fr; }
.profile-v2-editor .editor-field-wide { grid-column: 1 / -1; }
.profile-v2-editor .editor-form > p {
  margin: 0 0 2px;
  padding: 10px 11px;
  border: 0;
  border-radius: 11px;
  background: var(--accent-fill);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-size: 10px !important;
  line-height: 1.45;
}
.profile-v2-editor .editor-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 650;
}
.profile-v2-editor .editor-form label > small { color: var(--muted); font-size: 8px !important; font-weight: 500; }
.profile-v2-editor .editor-optional-fields {
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px;
  background: var(--fill-primary);
}
.profile-v2-editor .editor-optional-fields > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0 !important;
  list-style: none;
  cursor: pointer;
}
.profile-v2-editor .editor-optional-fields > summary::-webkit-details-marker { display: none; }
.profile-v2-editor .editor-optional-fields > summary span { color: var(--text); font-size: 11px !important; font-weight: 650; }
.profile-v2-editor .editor-optional-fields > summary small { color: var(--muted); font-size: 9px !important; }
.profile-v2-editor .editor-optional-fields[open] > summary { background: var(--profile-tint); }
.profile-v2-editor .editor-optional-fields > div { display: grid; gap: 10px; padding: 12px; }
.profile-v2-editor .editor-form input,
.profile-v2-editor .editor-form select,
.profile-v2-editor .editor-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0 !important;
  border-radius: 11px;
  background: var(--fill-primary);
  color: var(--text);
  font-size: 13px !important;
  outline: 0;
  box-shadow: none !important;
}
.profile-v2-editor .editor-form textarea { min-height: 96px; resize: vertical; line-height: 1.48; }
.profile-v2-editor .editor-form input:focus,
.profile-v2-editor .editor-form select:focus,
.profile-v2-editor .editor-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 1px; }
.profile-v2-editor .editor-form > button,
.profile-v2-editor .new-section-form > button {
  min-height: 46px;
  padding: 0 14px;
  border: 0 !important;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 11px !important;
  font-weight: 680;
}

.profile-v2-editor .editor-record,
.profile-v2-editor .module-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 54px;
  align-items: center;
  margin: 0 14px 7px;
  padding: 8px 10px;
  border: 0 !important;
  border-radius: 12px;
  background: var(--fill-secondary);
}
.profile-v2-editor .media-editor-record,
.profile-v2-editor .rich-record { grid-template-columns: 44px minmax(0, 1fr) auto; }
.profile-v2-editor .editor-record img { width: 44px; height: 44px; border: 0; border-radius: 10px; object-fit: cover; }
.profile-v2-editor .editor-record > span { display: grid; min-width: 0; gap: 2px; }
.profile-v2-editor .editor-record b { overflow: hidden; color: var(--text); font-size: 11px !important; text-overflow: ellipsis; white-space: nowrap; }
.profile-v2-editor .editor-record small { overflow: hidden; color: var(--muted); font-size: 9px !important; text-overflow: ellipsis; white-space: nowrap; }
.profile-v2-editor .editor-record > button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0 !important;
  border-radius: 9px;
  background: var(--fill-secondary);
  color: var(--muted);
}
.profile-v2-editor .editor-record > button:hover { background: var(--pink-fill); color: var(--secondary); }
.profile-v2-editor .editor-content-stack { display: grid; gap: 12px; padding: 0 14px 14px; }
.profile-v2-editor .editor-managed-list { display: grid; gap: 8px; }
.profile-v2-editor .editor-scroll-list { max-height: 500px; overflow-y: auto; padding-right: 3px; overscroll-behavior: contain; scrollbar-width: thin; }
.profile-v2-editor .editor-managed-item { overflow: hidden; border: 0 !important; border-radius: 14px; background: var(--fill-secondary); }
.profile-v2-editor .editor-managed-item .editor-record { margin: 0; border-radius: 0; background: transparent; }
.profile-v2-editor .editor-managed-item .editor-record > button {
  width: auto;
  min-width: 58px;
  padding: 0 10px;
  background: var(--pink-fill);
  color: var(--secondary);
  font-size: 9px !important;
  font-weight: 650;
}
.profile-v2-editor .editor-item-edit { border: 0 !important; }
.profile-v2-editor .editor-item-edit > summary,
.profile-v2-editor .editor-add-panel > summary {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 11px;
  color: var(--accent);
  font-size: 10px !important;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}
.profile-v2-editor .editor-item-edit > summary::-webkit-details-marker,
.profile-v2-editor .editor-add-panel > summary::-webkit-details-marker { display: none; }
.profile-v2-editor .editor-item-edit[open] > summary { background: var(--accent-fill); }
.profile-v2-editor .editor-item-edit .editor-form { margin: 0 8px 8px; background: var(--fill-primary); }
.profile-v2-editor .editor-add-panel { overflow: hidden; border: 0 !important; border-radius: 14px; background: var(--fill-secondary); }
.profile-v2-editor .editor-add-panel > summary { min-height: 48px; padding-inline: 14px; color: var(--text); }
.profile-v2-editor .editor-add-panel > summary small { color: var(--muted); font-size: 9px !important; font-weight: 520; }
.profile-v2-editor .editor-add-panel[open] > summary { color: var(--accent); }
.profile-v2-editor .editor-add-panel > .editor-form { margin: 0 8px 8px; background: var(--fill-primary); }
.profile-v2-editor .editor-cover-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 0 !important;
  border-radius: 14px;
  background: var(--fill-secondary);
}
.profile-v2-editor .editor-cover-preview { display: flex; min-width: 0; align-items: center; gap: 10px; }
.profile-v2-editor .editor-cover-preview > img,
.profile-v2-editor .editor-cover-preview > span { display: grid; width: 54px; height: 54px; flex: none; place-items: center; overflow: hidden; border: 0; border-radius: 11px; background: var(--fill-primary); object-fit: cover; color: var(--accent); font-size: 20px !important; }
.profile-v2-editor .editor-cover-preview > div { display: grid; min-width: 0; gap: 2px; }
.profile-v2-editor .editor-cover-preview b { color: var(--text); font-size: 11px !important; }
.profile-v2-editor .editor-cover-preview small { color: var(--muted); font-size: 9px !important; line-height: 1.4; }
.profile-v2-editor .editor-file-button { display: inline-flex; min-height: 38px; align-items: center; padding: 0 11px; border-radius: 10px; background: var(--fill-primary); color: var(--text); font-size: 9px !important; font-weight: 650; cursor: pointer; }
.profile-v2-editor .editor-file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.profile-v2-editor .editor-cover-form > button { min-height: 38px; padding: 0 11px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 9px !important; font-weight: 680; }
.profile-v2-editor .editor-cover-form > button:disabled { opacity: .38; }
.profile-v2-editor .editor-cover-form .moment-upload-preview { grid-column: 1 / -1; }
.profile-v2-editor .custom-editor > header > form { display: flex; min-width: 0; flex: 1; gap: 6px; }
.profile-v2-editor .custom-editor > header > form label { min-width: 0; flex: 1; }
.profile-v2-editor .custom-editor > header > form input { width: 100%; min-height: 34px; padding: 0 9px; border: 0; border-radius: 8px; background: var(--fill-primary); color: var(--text); font-size: 10px !important; }
.profile-v2-editor .custom-editor > header > form button { min-height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--accent-fill); color: var(--accent); font-size: 9px !important; }
.profile-v2-editor .module-order-list { display: grid; gap: 6px; padding: 0 14px 14px; }
.profile-v2-editor .module-order-row { margin: 0; }
.profile-v2-editor .module-order-row > span { display: flex; align-items: center; gap: 9px; }
.profile-v2-editor .module-order-row > span i { display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 8px; background: var(--fill-primary); color: var(--muted); font-size: 9px !important; font-style: normal; }
.profile-v2-editor .module-order-row > span b { font-size: 11px !important; }
.profile-v2-editor .module-order-row > div { display: flex; gap: 4px; }
.profile-v2-editor .module-order-row button { width: 32px; min-height: 32px; padding: 0; border: 0 !important; border-radius: 9px; background: var(--fill-primary); color: var(--accent); }
.profile-v2-editor .module-order-row button:disabled { opacity: .32; }
.profile-v2-editor .custom-sections-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-v2-editor .custom-editor { overflow: hidden; border: 0 !important; border-radius: 14px; background: var(--fill-secondary); }
.profile-v2-editor .custom-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 0 !important; }
.profile-v2-editor .custom-editor > header b { font-size: 11px !important; }
.profile-v2-editor .custom-editor > header button { min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--pink-fill); color: var(--secondary); font-size: 9px !important; }
.profile-v2-editor .custom-editor .editor-record { margin-inline: 10px; }

/* Crop interface retains a clear, focused modal because cropping is a
   temporary task rather than a second application surface. */
.profile-v2-editor .crop-room[hidden] { display: none !important; }
.profile-v2-editor .crop-room { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, #000 58%, transparent); backdrop-filter: blur(14px); }
.profile-v2-editor .crop-room-panel { width: min(520px, 100%); padding: 16px; border: 0; border-radius: 20px; background: var(--card); }
.profile-v2-editor .crop-room-panel > header,
.profile-v2-editor .crop-room-panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; }
.profile-v2-editor .crop-room-panel button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--fill-primary); color: var(--text); }
.profile-v2-editor .crop-stage { position: relative; width: min(390px, 100%); aspect-ratio: 1; margin: 14px auto; overflow: hidden; border: 0; border-radius: 18px; background: #000; }
.profile-v2-editor .crop-stage canvas { width: 100%; height: 100%; }
.profile-v2-editor .crop-room-panel > label { display: grid; gap: 6px; color: var(--muted); font-size: 10px !important; }
.profile-v2-editor .crop-room-panel > p { color: var(--muted); font-size: 10px !important; text-align: center; }

/* Photo viewer lives with the profile now; the retired profile stylesheet no
   longer owns any part of this interaction. */
body.moment-lightbox-visible { overflow: hidden; }
.moment-lightbox-card { position: fixed; z-index: 200; inset: 0; }
.moment-lightbox { display: grid; width: 100%; height: 100%; place-items: center; padding: clamp(14px,3vw,34px); }
.moment-lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: color-mix(in srgb,#000 78%,transparent); backdrop-filter: blur(18px); }
.moment-lightbox-panel { position: relative; z-index: 1; display: grid; width: min(1180px,100%); max-height: calc(100vh - 32px); overflow: hidden; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); border: 0; border-radius: 24px; background: var(--bg); box-shadow: none; }
.moment-lightbox-close { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; min-height: 38px; place-items: center; border: 0; border-radius: 999px; background: color-mix(in srgb,#000 62%,transparent); color: #fff; font-size: 24px !important; line-height: 1; backdrop-filter: blur(12px); }
.moment-lightbox-image { display: grid; min-height: 520px; max-height: calc(100vh - 32px); place-items: center; overflow: hidden; background: #080a0c; }
.moment-lightbox-image img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.moment-lightbox-story { display: flex; min-width: 0; flex-direction: column; padding: clamp(24px,3vw,38px); background: var(--profile-soft-strong,var(--card)); }
.moment-lightbox-story > header { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.moment-lightbox-story > header > span:last-child { display: grid; min-width: 0; }
.moment-lightbox-story > header small { color: var(--muted); font-size: 10px !important; letter-spacing: .08em; text-transform: uppercase; }
.moment-lightbox-story > header b { margin-top: 2px; overflow: hidden; color: var(--text); font-size: 13px !important; text-overflow: ellipsis; white-space: nowrap; }
.moment-lightbox-story > header em { color: var(--accent); font-size: 11px !important; font-style: normal; }
.moment-lightbox-copy { margin-top: auto; padding: 34px 0; }
.moment-lightbox-copy h2 { max-width: 380px; margin: 0; color: var(--text); font-size: clamp(28px,4vw,46px) !important; font-weight: 730; line-height: 1; letter-spacing: -.045em; }
.moment-lightbox-copy > p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 14px !important; line-height: 1.65; }
.moment-no-context { font-style: italic; }
.moment-lightbox-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.moment-lightbox-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 11px; border-radius: 999px; background: var(--fill-secondary); }
.moment-lightbox-stats b { color: var(--text); font-size: 14px !important; }
.moment-lightbox-stats small { color: var(--muted); font-size: 10px !important; }
.moment-like-form button,.moment-sign-in { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; margin-top: 14px; border: 0; border-radius: 12px; background: var(--fill-secondary); color: var(--accent); font-size: 11px !important; font-weight: 680; text-decoration: none; }
.moment-like-form button:hover,.moment-sign-in:hover,.moment-like-form button.is-liked { background: var(--accent); color: #fff; }

@media (max-width: 760px) {
  .moment-lightbox { align-items: end; padding: 0; }
  .moment-lightbox-panel { max-height: 94vh; overflow-y: auto; grid-template-columns: 1fr; border-radius: 24px 24px 0 0; }
  .moment-lightbox-image { min-height: 0; height: min(54vh,430px); }
  .moment-lightbox-image img { max-height: none; }
  .moment-lightbox-story { padding: 22px 18px 28px; }
  .moment-lightbox-copy { padding: 24px 0; }
}

/* Public profile */
.profile-public-body { background: var(--bg); }
.profile-public-main .profile-v2 { height: auto; overflow: visible; }
.profile-public-main .profile-v2 .profile-canvas { padding-top: 42px; }
.profile-public-main .profile-v2-layout { grid-template-columns: minmax(0, 900px) 286px; justify-content: center; }

@media (max-width: 1120px) {
  .profile-v2-layout,
  .profile-public-main .profile-v2-layout { grid-template-columns: minmax(0, 1fr); }
  .profile-v2-side { position: static; grid-template-columns: 1fr 1fr; }
  .profile-v2-edit-door { grid-column: 1 / -1; }
  .profile-v2-editor .studio-grid { grid-template-columns: 1fr; }
  .profile-v2-editor .editor-module-wide { grid-column: auto; }
}

@media (max-width: 760px) {
  .profile-v2 .profile-canvas { padding: 18px 14px 90px; }
  .profile-v2-toolbar { align-items: flex-start; }
  .profile-v2-toolbar > div > span { font-size: 27px !important; }
  .profile-v2-toolbar nav a:first-of-type { display: none; }
  .profile-v2-cover { height: 220px; border-radius: 18px; }
  .profile-v2 .profile-v2-surface { border-radius: 18px; }
  .profile-v2 .profile-v2-identity { grid-template-columns: 76px minmax(0, 1fr); gap: 8px 13px; padding: 0 16px 22px; }
  .profile-v2-badge { width: 76px; margin-top: -52px; padding: 7px; border-radius: 16px; }
  .profile-v2 .profile-v2-badge .ident-md,
  .profile-public-body .profile-v2-badge .ident-md { width: 62px !important; height: 78px !important; }
  .profile-v2-intro { padding-top: 14px; }
  .profile-v2-intro h1 { font-size: 34px !important; }
  .profile-v2-presence { grid-column: 2; justify-self: start; margin-top: 5px; }
  .profile-v2-bio,
  .profile-v2-stats { grid-column: 1 / -1; }
  .profile-v2-jumpbar { max-width: calc(100% - 28px); margin: 0 14px 14px; }
  .profile-v2-modules { gap: 12px; padding: 0 10px 10px; }
  .profile-v2 .profile-v2-module { padding: 22px 16px 24px; border-radius: 17px; }
  .profile-v2-section-head { align-items: flex-start; }
  .profile-v2-section-head > small { display: none; }
  .profile-v2 .profile-v2-link-list,
  .profile-v2 .watching-grid,
  .profile-v2 .music-grid,
  .profile-v2 .edition-shelf,
  .profile-v2 .places-grid,
  .profile-v2 .story-note-grid { grid-template-columns: 1fr; }
  .profile-v2 .moments-bento { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 150px !important; }
  .profile-v2 .moment-card-0 { grid-column: 1 / -1 !important; grid-row: span 2 !important; }
  .profile-v2 .moment-card-3:last-child { grid-column: 1 / -1 !important; }
  .profile-v2 .edition-piece,
  .profile-v2 .edition-piece-lead { grid-column: auto; height: auto; grid-template-columns: 98px minmax(0, 1fr); min-height: 146px; }
  .profile-v2-journal-layout { grid-template-columns: 1fr; }
  .profile-v2 .module-editorial-cover { position: relative; top: auto; height: 200px; }
  .profile-v2-side { grid-template-columns: 1fr; }
  .profile-v2-editor { border-radius: 19px; }
  .profile-v2-editor .studio-intro { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px 16px; }
  .profile-v2-editor .studio-shortcuts { justify-content: flex-start; }
  .profile-v2-editor .studio-grid { padding: 0 8px 10px; }
  .profile-v2-editor .profile-v2-identity-editor,
  .profile-v2-editor .editor-form-grid,
  .profile-v2-editor .custom-sections-grid { grid-template-columns: 1fr; }
  .profile-v2-editor .editor-field-wide { grid-column: auto; }
  .profile-v2-editor .editor-cover-form { grid-template-columns: 1fr 1fr; }
  .profile-v2-editor .editor-cover-preview { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .profile-v2-toolbar > div > small { display: none; }
  .profile-v2 .profile-v2-identity { grid-template-columns: 68px minmax(0, 1fr); }
  .profile-v2-badge { width: 68px; }
  .profile-v2 .profile-v2-badge .ident-md,
  .profile-public-body .profile-v2-badge .ident-md { width: 54px !important; height: 68px !important; }
  .profile-v2 .watch-card { grid-template-columns: 92px minmax(0, 1fr); }
  .profile-v2 .watch-screen { width: 92px; }
  .profile-v2 .music-card { grid-template-columns: 100px minmax(0, 1fr); }
  .profile-v2 .music-art { width: 100px; }
}
