* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: var(--text-sm) / 1.6 var(--sans);
  background: var(--bg);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: var(--s1);
}
:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  border: 1px solid var(--border);
  background: var(--surface-raised);
  border-radius: var(--r-sm);
  min-height: var(--control);
  padding: var(--s2) var(--s4);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  min-height: var(--control);
  padding: var(--s2) var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-raised);
  font-weight: 600;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.ghost {
  background: transparent;
}
.danger {
  color: var(--danger);
}
button:hover,
.btn:hover {
  filter: brightness(1.1);
}
input,
textarea,
select {
  width: 100%;
  padding: var(--s3);
  border: 1px solid var(--input-border);
  border-radius: var(--r-sm);
  background: var(--bg);
  min-height: var(--control);
}
input[type="checkbox"] {
  width: var(--s4);
  min-height: auto;
  accent-color: var(--accent);
}
input[type="color"] {
  padding: var(--s1);
}
input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}
textarea {
  min-height: var(--s20);
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  font-size: var(--text-xs);
  margin: var(--s4) 0 var(--s2);
}
label.check {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--text-sm);
  font-weight: normal;
}
.hint,
.muted {
  color: var(--muted);
}
.hint {
  font-size: var(--text-xs);
}
h1,
h2,
h3,
p {
  margin: 0 0 var(--s4);
}
h1 {
  font-size: var(--text-display);
  line-height: 1.15;
}
h2 {
  font-size: var(--text-xl);
  line-height: 1.2;
}
h3 {
  font-size: var(--text-lg);
}
.eyebrow {
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: bold;
}
.topbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s6) var(--s8);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.07em;
}
.topbar nav,
.actions,
.row {
  display: flex;
  gap: var(--s3);
  align-items: center;
}
.actions {
  flex-wrap: wrap;
}
.topbar nav a {
  color: var(--muted);
  margin: 0 var(--s2);
}
.topbar .account {
  font-size: var(--text-xs);
}
main {
  max-width: var(--content);
  margin: auto;
  padding: var(--s8);
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s6);
  align-items: center;
  margin-bottom: var(--s8);
}
.page-head h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--s2);
}
.page-head .center {
  text-align: center;
}
.page-head small {
  display: block;
  font-size: var(--text-xs);
  font-weight: normal;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: var(--s1);
  padding: var(--s1);
  background: var(--surface-raised);
  border-radius: var(--r-md);
  margin-bottom: var(--s6);
  overflow: auto;
}
.tabs button {
  background: transparent;
  border: 1px solid transparent;
  flex: 1;
  white-space: nowrap;
  font-size: var(--text-sm);
  min-height: var(--s10);
}
.tabs button[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--accent);
}
.workarea {
  min-height: 40rem;
  padding: var(--s6);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-md);
}
.panel {
  background: var(--surface);
  padding: var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s5);
}
.panel .panel {
  background: var(--bg);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: var(--s8);
}
.editor-preview {
  position: sticky;
  top: var(--s6);
  align-self: start;
  max-height: 80vh;
  overflow: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-bottom: var(--s5);
}
.preview-frame {
  max-width: var(--preview);
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}
.preview-frame.desktop {
  max-width: 100%;
  background: var(--bg);
}
.preview-frame.desktop .profile {
  max-width: var(--phone);
  margin: auto;
}
.preview-pencil {
  position: absolute;
  z-index: 5;
  top: var(--s3);
  display: flex;
  left: var(--s3);
  right: var(--s3);
  justify-content: space-between;
}
.preview-pencil button {
  background: var(--overlay);
  color: var(--white);
  font-size: var(--text-xs);
  border: 0;
  border-radius: var(--r-pill);
  min-height: var(--s8);
  padding: var(--s1) var(--s3);
}
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s5);
  font-size: var(--text-xs);
}
.status-pill {
  border-radius: var(--r-pill);
  padding: var(--s1) var(--s3);
  background: var(--surface-raised);
  color: var(--muted);
}
.link-card {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin: var(--s4) 0;
}
.link-tools {
  display: flex;
  gap: var(--s2);
  align-items: center;
  justify-content: space-between;
  margin: var(--s3) 0;
}
.icon-btn {
  padding: var(--s1) var(--s3);
  min-height: var(--s8);
}
.empty {
  text-align: center;
  padding: var(--s12);
  color: var(--muted);
}
.error {
  color: var(--danger);
  font-size: var(--text-sm);
}
.success {
  color: var(--success);
}
.note {
  background: var(--surface-raised);
  border-radius: var(--r-sm);
  padding: var(--s4);
  font-size: var(--text-xs);
  color: var(--muted);
}
.metric strong {
  display: block;
  font-size: var(--text-display);
  font-weight: 500;
}
.metric span {
  color: var(--muted);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.bars {
  display: flex;
  height: 12rem;
  gap: var(--s2);
  align-items: end;
  padding-top: var(--s4);
  overflow: auto;
}
.bar-column {
  flex: 1;
  min-width: var(--s6);
  text-align: center;
  font-size: var(--text-xs);
}
.bar {
  height: var(--h);
  min-height: var(--s1);
  background: var(--accent);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.bar-column small {
  font-size: 0.6rem;
  display: block;
  color: var(--muted);
  padding-top: var(--s2);
}
.auth {
  max-width: 30rem;
  margin: var(--s12) auto;
}
.auth h1 {
  font-size: var(--text-xl);
}
.auth button {
  margin-top: var(--s5);
}
.auth .actions {
  margin-top: var(--s4);
}
.auth .actions a {
  text-decoration: underline;
}
.domain {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: var(--s5);
}
code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  padding: var(--s3);
  border-radius: var(--r-sm);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: min(92vw, 42rem);
  max-height: 90vh;
  overflow: auto;
  padding: var(--s8);
}
dialog::backdrop {
  background: var(--overlay);
}
.close {
  position: absolute;
  right: var(--s3);
  top: var(--s3);
  font-size: var(--text-lg);
  border: 0;
  background: transparent;
}
.hidden {
  display: none !important;
}
#toast {
  position: fixed;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--s3) var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow);
  z-index: 100;
  display: none;
  max-width: 90vw;
}
.skip {
  position: fixed;
  top: -10rem;
  left: var(--s4);
  z-index: 110;
}
.skip:focus {
  top: var(--s4);
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--s3);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s8);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--muted);
}
.footer nav {
  display: flex;
  gap: var(--s4);
}
/* Public profiles */
.profile {
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--page-font);
  padding: 0 var(--s4) var(--s8);
  text-align: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.profile a {
  transition: transform var(--motion);
}
.profile a:hover {
  transform: translateY(-2px);
}
.profile .cover {
  height: var(--photo-height);
  margin: 0 calc(-1 * var(--s4));
  background: linear-gradient(145deg, var(--page-accent), var(--page-bg));
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  mask-image: linear-gradient(var(--black) 70%, transparent);
}
.profile .cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.initial {
  font: italic 10rem var(--serif);
  opacity: 0.45;
}
.profile-name {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  position: relative;
}
.profile-identity {
  margin-top: var(--name-top);
  position: relative;
  transform: translateY(var(--name-offset));
}
.profile-content {
  position: relative;
  transform: translateY(var(--profile-offset));
}
.profile-handle {
  font-size: var(--text-xs);
  opacity: 0.85;
  margin: var(--s2) 0;
}
.online-dot {
  display: inline-block;
  width: var(--s2);
  height: var(--s2);
  border-radius: var(--r-pill);
  background: var(--page-accent);
  margin: 0 var(--s1);
}
.badge-verified {
  color: var(--page-accent);
  font-size: var(--text-lg);
}
.profile .tagline,
.profile .bio {
  font-size: var(--text-sm);
  white-space: pre-line;
  margin: var(--s3) auto;
  max-width: 36rem;
}
.social-row {
  display: flex;
  justify-content: center;
  gap: var(--s3);
  margin: var(--s5) 0;
}
.social-row a {
  display: grid;
  place-items: center;
  width: var(--s10);
  height: var(--s10);
  border-radius: var(--r-pill);
  background: var(--page-button);
  color: var(--page-button-text);
  font-size: var(--text-lg);
}
.profile-links {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.profile-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  min-height: var(--s16);
  padding: var(--s4) var(--s5);
  border-radius: var(--page-radius);
  background: var(--link-bg, var(--page-button));
  color: var(--page-button-text);
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: 600;
}
.profile-link.outline {
  background: transparent;
  color: var(--page-text);
  border: 1px solid currentColor;
}
.profile-link.premium {
  isolation: isolate;
  min-height: 12rem;
  color: var(--white);
  background: linear-gradient(140deg, var(--page-accent), var(--page-bg));
  align-items: end;
  justify-content: space-between;
}
.profile-link.premium img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.profile-link.premium:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--overlay));
  z-index: 1;
}
.profile-link.premium span {
  position: relative;
  z-index: 2;
}
.section-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: var(--s6) 0 var(--s3);
}
.profile-section summary {
  cursor: pointer;
  padding: var(--s3);
  border-bottom: 1px solid currentColor;
  margin-bottom: var(--s3);
}
.profile-section {
  margin-top: var(--s5);
}
.profile-section .subtitle {
  font-size: var(--text-xs);
  opacity: 0.8;
  margin-bottom: var(--s3);
}
.profile-footer {
  margin-top: var(--s8);
  font-size: var(--text-xs);
  opacity: 0.7;
}
.profile.public {
  max-width: var(--phone);
  margin: auto;
}
.public-body {
  background: var(--bg);
}
.photo-circle .cover {
  width: 10rem;
  height: 10rem;
  margin: var(--s8) auto var(--s5);
  border-radius: var(--r-pill);
  mask-image: none;
}
.photo-text .cover {
  width: 8rem;
  height: 8rem;
  border-radius: var(--r-pill);
  margin: var(--s8) auto var(--s5);
  mask-image: none;
}
.photo-text .cover img {
  display: none;
}
.photo-text .initial {
  font-size: 4rem;
}
.photo-circle .initial {
  font-size: 6rem;
}
.photo-circle .profile-identity,
.photo-text .profile-identity,
.name-below .profile-identity {
  margin-top: var(--s4);
}
.photo-poster .poster-bg {
  position: absolute;
  inset: 0;
  background-image: var(--poster-image);
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.photo-poster:before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: -1;
}
.photo-poster .cover {
  background: transparent;
  height: var(--photo-height);
  mask-image: none;
}
.photo-poster .cover img,
.photo-poster .initial {
  visibility: hidden;
}
.profile-tabs {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  margin: var(--s5);
}
.profile-tabs button {
  color: var(--page-text);
  background: transparent;
  border-color: currentColor;
  min-height: var(--s8);
}
.public-module {
  border-top: 1px solid currentColor;
  margin-top: var(--s8);
  padding-top: var(--s6);
  text-align: left;
}
.public-module input,
.public-module textarea,
.public-module select {
  color: var(--light-text);
  background: var(--white);
}
.public-module button {
  background: var(--page-button);
  color: var(--page-button-text);
}
.wish {
  display: flex;
  text-align: left;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--page-button);
  color: var(--page-button-text);
  border-radius: var(--page-radius);
  margin: var(--s3) 0;
}
.wish img {
  width: var(--s16);
  height: var(--s16);
  object-fit: cover;
  border-radius: var(--r-sm);
}
.slide-card {
  padding: var(--s4);
  border-radius: var(--page-radius);
  background: var(--page-button);
  color: var(--page-button-text);
}
.slide-card label {
  font-size: var(--text-sm);
  margin: 0;
}
.slide-card input {
  accent-color: var(--page-accent);
}
.slide-card a {
  font-size: var(--text-xs);
  text-decoration: underline;
}
.gate {
  max-width: 30rem;
  margin: var(--s16) auto;
  text-align: center;
}
.gate .panel {
  text-align: left;
}
.gate h1 {
  font-size: var(--text-xl);
}
/* Marketing */
.marketing {
  background: var(--light-bg);
  color: var(--light-text);
  --muted: var(--light-muted);
  --accent: var(--light-accent);
  --on-accent: var(--white);
  --surface: var(--white);
  --bg: var(--light-bg);
  --text: var(--light-text);
  --border: #c8c8c8;
  --surface-raised: #e2e2e2;
}
.marketing .topbar {
  max-width: var(--content);
  margin: auto;
  border: 0;
}
.hero {
  text-align: center;
  padding: var(--s16) var(--s6) 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #dcdcdc, transparent 70%);
}
.hero h1 {
  font: normal var(--hero-size) / 1.05 var(--serif);
  letter-spacing: -0.05em;
  margin: var(--s6) auto;
  max-width: 60rem;
}
.hero em {
  color: var(--accent);
}
.hero > p {
  max-width: 42rem;
  margin: var(--s6) auto;
  color: var(--muted);
  font-size: var(--text-base);
}
.hero .btn {
  border-radius: var(--r-pill);
  padding: var(--s4) var(--s8);
}
.phones {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: var(--s8);
  height: 35rem;
  margin: var(--s12) auto 0;
}
.phone-mock {
  width: 17rem;
  flex-shrink: 0;
  overflow: hidden;
  border: var(--s2) solid var(--light-text);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.phone-mock .profile {
  min-height: 40rem;
}
.phone-mock .cover {
  height: 15rem;
}
.phone-mock .profile-name {
  font-size: var(--text-lg);
}
.phone-mock .profile-link {
  font-size: var(--text-xs);
  min-height: var(--s12);
}
.phone-mock.side {
  margin-top: var(--s16);
  transform: rotate(-8deg);
  opacity: 0.75;
}
.phone-mock.right {
  transform: rotate(8deg);
}
.marketing-section {
  max-width: 72rem;
  margin: auto;
  padding: var(--s16) var(--s8);
}
.marketing-section h2 {
  font: normal 3rem/1.15 var(--serif);
  letter-spacing: -0.04em;
}
.marketing-section li {
  margin: var(--s3) 0;
}
.marketing-section .panel {
  padding: var(--s8);
}
.marketing-section .panel h3 {
  font-size: var(--text-xl);
}
.faq details {
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
}
.faq summary {
  font-weight: bold;
  cursor: pointer;
}
.faq p {
  margin-top: var(--s4);
  color: var(--muted);
}
.auth-body {
  background: var(--bg);
}
.loading {
  opacity: 0.6;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: var(--s4);
    height: auto;
    min-height: var(--nav-height);
  }
  .topbar nav {
    display: none;
  }
  .topbar .account {
    max-width: 12rem;
    overflow: hidden;
  }
  .topbar .account .email {
    display: none;
  }
  main {
    padding: var(--s4);
  }
  .page-head {
    gap: var(--s3);
    flex-wrap: wrap;
  }
  .page-head .center {
    text-align: left;
  }
  .page-head > a {
    font-size: var(--text-xs);
  }
  .workarea {
    padding: var(--s3);
  }
  .tabs button {
    min-width: 9rem;
  }
  .editor-grid,
  .two,
  .three {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    display: none;
  }
  .panel {
    padding: var(--s4);
  }
  .preview-frame {
    max-width: 100%;
  }
  .preview-toolbar {
    flex-wrap: wrap;
  }
  .statusbar {
    align-items: start;
    gap: var(--s3);
  }
  .footer {
    padding: var(--s6);
    flex-wrap: wrap;
  }
  .hero {
    padding-top: var(--s8);
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero > p {
    font-size: var(--text-sm);
  }
  .phone-mock.side {
    position: absolute;
    margin-left: -34rem;
  }
  .phone-mock.right {
    margin-left: 34rem;
  }
  .marketing-section {
    padding: var(--s10) var(--s5);
  }
  .marketing-section h2 {
    font-size: 2.25rem;
  }
  .phones {
    height: 30rem;
  }
  .auth {
    margin: var(--s5) auto;
  }
  .row {
    flex-wrap: wrap;
  }
  .preview-frame .profile {
    min-height: 42rem;
  }
  .public-body main {
    padding: 0;
  }
  .gate {
    padding: var(--s4);
    margin: var(--s8) auto;
  }
  .profile.public {
    width: 100%;
  }
}
.product-shot {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: var(--s8);
}
.stat-row > div,
.stat-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .statusbar {
    flex-direction: column;
  }
  .statusbar .actions {
    width: 100%;
  }
  .stat-row select {
    flex: 0 0 8rem;
  }
}
/* Charities stay below the profile content on short and long pages. */
.profile {
  display: flex;
  flex-direction: column;
}
.profile .cover {
  flex-shrink: 0;
}
.profile-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.charities-footer {
  margin-top: auto;
  padding-top: var(--s8);
  text-align: center;
}
.charities-footer summary {
  cursor: pointer;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: var(--s4);
  border-top: 1px solid currentColor;
}
.charities-footer .subtitle {
  font-size: var(--text-xs);
  margin: var(--s3) 0;
}
.gate .actions {
  margin: var(--s5) 0;
}
.gate li {
  margin: var(--s3) 0;
}
/* Editing workspace: one clear canvas, contextual controls, compact help. */
.editor-shell {
  max-width: var(--editor-width);
}
.editor-shell .workarea {
  padding: var(--s5);
}
.editor-shell .editor-grid > div > .panel {
  border: 0;
  padding: var(--s4);
  background: transparent;
}
.editor-help {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--s4);
}
.editor-help summary {
  cursor: pointer;
}
.editor-help p {
  max-width: 60rem;
  line-height: 1.6;
}
.editor-shell .statusbar {
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.editor-shell .link-card {
  background: var(--bg);
  padding: var(--s5);
  margin-block: var(--s5);
}
.editor-shell details > summary {
  cursor: pointer;
  padding: var(--s3) 0;
}
.editor-preview {
  max-width: var(--phone);
  width: 100%;
  justify-self: center;
}
.inline-pencil {
  position: absolute;
  z-index: 6;
  right: var(--s2);
  top: var(--s2);
  background: var(--overlay);
  color: var(--white);
  border: 0;
  border-radius: var(--r-pill);
  min-height: var(--s8);
  width: var(--s8);
  padding: 0;
  font-size: var(--text-sm);
}
.profile-identity > .inline-pencil {
  right: var(--s4);
  top: calc(-1 * var(--s4));
}
.profile-identity > .inline-pencil + .profile-name + .inline-pencil {
  top: var(--s8);
}
.editable-card {
  position: relative;
  min-width: 0;
}
.profile-link {
  color: var(--link-text, var(--page-button-text));
  font-size: calc(var(--text-sm) * var(--link-size, 1));
  position: relative;
  overflow: hidden;
}
.profile-link.premium span {
  color: var(--link-text, var(--white));
}
.profile-link img {
  object-position: var(--image-x, 50%) var(--image-y, 50%);
}
.profile .cover img {
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
}
.profile-name {
  color: var(--name-color, var(--page-text));
  font-size: calc(var(--text-xl) * var(--name-size, 1));
}
.name-shadow {
  text-shadow: var(--name-shadow);
}
.profile-handle {
  color: var(--handle-color, var(--page-text));
}
.online-dot {
  background: var(--dot-color, var(--page-accent));
}
.bio-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bio-clamped.bio-expanded {
  -webkit-line-clamp: unset;
}
.bio-more {
  border: 0;
  background: transparent;
  color: inherit;
  min-height: var(--s8);
  padding: 0;
  font-size: var(--text-xs);
  text-decoration: underline;
}
.followers {
  font-size: var(--text-xs);
  margin-bottom: var(--s4);
}
.followers summary {
  cursor: pointer;
}
.colored-icons a[data-platform="Instagram"] {
  background: var(--social-instagram);
  color: var(--white);
}
.colored-icons a[data-platform="YouTube"] {
  background: var(--social-youtube);
  color: var(--white);
}
.colored-icons a[data-platform="TikTok"] {
  background: var(--social-tiktok);
  color: var(--white);
}
.colored-icons a[data-platform="Facebook"] {
  background: var(--social-facebook);
  color: var(--white);
}
.colored-icons a[data-platform="Telegram"] {
  background: var(--social-telegram);
  color: var(--white);
}
.card-pulse {
  animation: card-breathe var(--pulse-time, 4s) ease-in-out infinite;
}
.card-glow:hover {
  box-shadow: var(--card-glow);
}
.label-shadow span {
  text-shadow: var(--name-shadow);
}
.card-shine:after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-150%);
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22),
    transparent 70%
  );
  animation: card-shine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes card-breathe {
  50% {
    transform: scale(1.025);
  }
}
@keyframes card-shine {
  50%,
  100% {
    transform: translateX(150%);
  }
}
.gate {
  min-height: 100svh;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s6);
}
.gate > .logo {
  font-size: var(--text-sm);
  margin-bottom: var(--s6);
  color: var(--muted);
}
.gate > .panel {
  width: 100%;
  max-width: var(--gate-width);
  padding: var(--s8);
  text-align: center;
  border-radius: var(--r-xl);
}
.gate h1 {
  font-size: var(--text-xl);
  line-height: 1.2;
}
.gate .hint {
  font-size: var(--text-xs);
}
.gate-adult > .panel {
  background: var(--white);
  color: var(--black);
  border: 0;
}
.gate-adult .eyebrow,
.gate-adult .hint {
  color: var(--light-muted);
}
.gate-adult .primary {
  background: var(--black);
  color: var(--white);
  width: 100%;
  margin-block: var(--s5);
}
.gate-adult #gate-back {
  display: block;
  color: var(--black);
  border: 1px solid var(--input-border);
  border-radius: var(--r-md);
  padding: var(--s3);
  font-size: var(--text-sm);
}
.gate-auth .cf-turnstile {
  display: flex;
  justify-content: center;
  margin-block: var(--s5);
}
@media (prefers-reduced-motion: reduce) {
  .card-pulse,
  .card-shine:after {
    animation: none;
  }
}
@media (max-width: 45rem) {
  .editor-shell .page-head {
    gap: var(--s3);
  }
  .editor-shell .page-head .actions {
    justify-content: center;
  }
  .editor-shell .editor-preview {
    display: none;
  }
  .gate > .panel {
    padding: var(--s6);
  }
}
.social-row svg {
  width: var(--social-size);
  height: var(--social-size);
  fill: currentColor;
  display: block;
}
.no-photo .cover {
  height: var(--empty-photo-height);
}
.no-photo .initial {
  font-size: var(--initial-size);
}
.share-card {
  margin-top: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
  max-width: var(--phone);
}
.share-card > img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}
.share-card.landscape > img {
  aspect-ratio: 1.91;
}
.share-card > div {
  padding: var(--s4);
}
.share-card strong,
.share-card small {
  display: block;
}
.share-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 0;
}
@media (min-width: 45.01rem) {
  .workarea:has(#live-preview) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s5);
  }
  .workarea:has(#live-preview) > .editor-help {
    grid-row: 3;
    grid-column: 1/-1;
    margin: 0;
  }
  .workarea:has(#live-preview) > .statusbar {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    padding: 0;
    border: 0;
    justify-content: flex-end;
  }
  .workarea:has(#live-preview) > #save-recovery {
    grid-row: 4;
    grid-column: 1/-1;
  }
  #editor-content:has(#live-preview) {
    display: contents;
  }
  #editor-content:has(#live-preview) > .preview-toolbar {
    grid-row: 1;
    grid-column: 1;
    margin: 0;
  }
  #editor-content:has(#live-preview) > .preview-frame {
    grid-row: 2;
    grid-column: 1/-1;
    width: 100%;
  }
  #editor-content:has(#live-preview) > .hint {
    grid-row: 5;
    grid-column: 1/-1;
    margin: 0 !important;
  }
}
.gate {
  margin: 0;
  position: relative;
}
.gate > .panel {
  margin: 0;
}
.gate > .logo {
  position: absolute;
  bottom: var(--s6);
  margin: 0;
}
.gate-adult h1 {
  font-size: var(--gate-title);
}
.gate-adult .primary {
  margin: var(--s2) 0 var(--s3);
  font-weight: 600;
}
.gate-adult .eyebrow {
  letter-spacing: normal;
  font-size: var(--text-sm);
  margin-bottom: var(--s3);
}

.image-crop-preview {
  position: relative;
  width: 100%;
  max-width: var(--phone);
  aspect-ratio: var(--crop-ratio);
  margin: var(--s4) auto;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg);
}
.image-crop-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
