/* Public presentation follows the same typography and spacing as the profile editor. */
html:has(body.public-profile), body.public-profile {
  display: block; height: auto !important; min-height: 100%; overflow-x: hidden; overflow-y: auto;
  background: #fff !important;
}
body.public-profile {
  --public-bg: #fff; --public-panel: #fff; --public-ink: #18181b;
  --public-muted: #71717a; --public-border: #e4e4e7; --public-soft: #f4f4f5;
  color: var(--public-ink); font: 400 15px/1.65 var(--font-sans, "Inter", system-ui, sans-serif);
}
html.higen-theme-dark:has(body.public-profile), html.higen-theme-dark body.public-profile { background: #000 !important; }
html.higen-theme-dark body.public-profile {
  --public-bg: #000; --public-panel: #18181b; --public-ink: #f4f4f5;
  --public-muted: #a1a1aa; --public-border: #353538; --public-soft: #27272a;
  color: var(--public-ink);
}
body.public-profile *, body.public-profile *::before, body.public-profile *::after { box-sizing: border-box; }
body.public-profile :is(.wrap, .overlay-prof) {
  position: relative !important; inset: auto !important; width: 100%; height: auto !important;
  min-height: 100svh; overflow: visible !important; background: var(--public-bg) !important;
}
body.public-profile .pageProfile.fullsize {
  display: block; position: relative; inset: auto !important; width: min(1180px, 100%);
  max-width: 1180px; height: auto !important; min-height: 100svh; margin: 0 auto !important;
  padding: 0 40px 64px; overflow: visible !important; transform: none !important;
  background: var(--public-bg) !important; color: var(--public-ink);
}
body.public-profile .higen-public-profile-actions {
  position: relative; inset: auto; z-index: 1; display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: 108px; gap: 24px; margin: 0 0 32px;
}
body.public-profile .public-profile-brand {
  display: inline-block; color: var(--public-ink) !important; text-decoration: none;
  font: 500 25px/1.2 var(--font-sans, "Inter", sans-serif); letter-spacing: -.06em;
}
body.public-profile .higen-public-profile-cta,
body.public-profile .recommends ul.clients li.offer-set .offer button {
  position: relative; width: auto !important; min-width: 0; height: auto; min-height: 44px; max-height: none;
  margin: 0; padding: 11px 20px !important; border: 1px solid var(--public-ink) !important; border-radius: 999px;
  background: var(--public-ink) !important; color: var(--public-bg) !important;
  -webkit-text-fill-color: var(--public-bg) !important; box-shadow: none !important;
  font: 400 14px/1.5 var(--font-sans, "Inter", sans-serif); word-spacing: normal; cursor: pointer;
  text-decoration: none; transform: none !important;
}
body.public-profile .higen-public-profile-cta:hover,
body.public-profile .recommends ul.clients li.offer-set .offer button:hover { opacity: .8; }
body.public-profile .pageProfile .profile-editor-center {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: start;
  gap: clamp(32px, 5vw, 64px); width: 100%; height: auto; margin: 0; padding: 0;
}
body.public-profile .pageProfile :is(.persona, .recommends) {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  width: 100%; max-width: none; height: auto; min-width: 0; min-height: 0;
  padding: 0; margin: 0; overflow: visible !important;
}
body.public-profile .pageProfile .recommends { gap: 24px; }
body.public-profile .user-info {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr);
  align-items: center; gap: 20px; width: 100%; margin: 0 0 36px;
}
body.public-profile :is(.containerImageProfile, #resultImage) {
  position: relative; width: 88px; height: 88px; min-width: 0; margin: 0; padding: 0;
  border-radius: 50%; background: var(--public-soft); box-shadow: none !important;
}
body.public-profile #resultImage { overflow: hidden; border: 1px solid var(--public-border); }
body.public-profile #resultImage img { position: static; display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
body.public-profile .person { width: 100%; min-width: 0; margin: 0; }
body.public-profile .person .name {
  width: 100%; margin: 0; padding: 0; color: var(--public-ink) !important;
  font: 500 clamp(28px, 3.4vw, 36px)/1.2 var(--font-sans, "Inter", sans-serif);
  letter-spacing: -.04em; overflow-wrap: anywhere; white-space: normal;
}
body.public-profile .person .profession {
  width: 100%; margin: 10px 0 0; padding: 0; color: var(--public-ink) !important;
  font: 400 17px/1.5 var(--font-sans, "Inter", sans-serif); overflow-wrap: anywhere;
}
body.public-profile .person .geolocation {
  display: block; width: auto; margin: 8px 0 0; padding: 0; border: 0;
  background: transparent !important; color: var(--public-muted) !important;
  font-size: 13px; font-weight: 400; line-height: 1.6; box-shadow: none !important;
}
body.public-profile .person :is(.profession, .geolocation):empty { display: none; }
body.public-profile .members { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; }
body.public-profile .members:empty { display: none; }
body.public-profile .members li { margin: 0 10px 0 0; padding: 0; font-size: 13px; color: var(--public-muted); }
body.public-profile .members .member-name-chip { color: var(--public-ink); font-weight: 400; }
body.public-profile .public-section-title {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; color: var(--public-ink) !important;
  font: 500 18px/1.4 var(--font-sans, "Inter", sans-serif); letter-spacing: -.025em;
}
body.public-profile .bio { width: 100%; margin: 0 0 32px; }
body.public-profile .bio .boxLink { width: 100%; margin: 0; padding: 0; border: 0; background: transparent !important; box-shadow: none !important; overflow: visible; }
body.public-profile .bio .boxLink .text {
  height: auto; color: var(--public-muted) !important; font: 400 16px/1.75 var(--font-sans, "Inter", sans-serif);
  white-space: pre-line; overflow-wrap: anywhere;
}
body.public-profile ul.social-medias { position: static; display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: none; margin: 0 0 32px; padding: 0; }
body.public-profile ul.social-medias li {
  position: relative; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1px solid var(--public-border); border-radius: 50%; background: var(--public-panel) !important;
  box-shadow: none !important; transform: none !important;
}
body.public-profile ul.social-medias li:hover { background: var(--public-soft) !important; }
body.public-profile ul.social-medias li a { display: block; width: 100%; height: 100%; border-radius: inherit; }
body.public-profile ul.social-medias li img { position: absolute; inset: 12px; width: 18px; height: 18px; margin: 0; object-fit: contain; }
body.public-profile .persona > a { display: block; width: 100%; text-decoration: none; }
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) {
  position: relative; display: flex; align-items: center; gap: 20px; width: 100%; max-width: none;
  height: auto; min-height: 100px; margin: 0 0 16px; padding: 20px 24px; float: none;
  border: 1px solid var(--public-border) !important; border-radius: 22px;
  background: var(--public-panel) !important; box-shadow: none !important; transform: none;
}
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf):hover { border-color: var(--public-muted) !important; background: var(--public-panel) !important; }
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) .left { position: relative; min-width: 0; height: auto; padding: 0; }
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) .favicon {
  position: relative; float: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0 0 12px; padding: 8px; border: 0; border-radius: 12px;
  background: var(--public-soft); box-shadow: none;
}
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) :is(.favicon img, .favicon-icon) { position: static; width: 20px; height: 20px; padding: 0; margin: 0; object-fit: contain; }
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) .title-link { color: var(--public-ink) !important; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) .title-link + div { color: var(--public-muted); font-size: 13px !important; line-height: 1.6; overflow-wrap: anywhere; }
body.public-profile .new-double-link.nl.pf .right { width: 40% !important; min-width: 0; height: 140px; padding: 0; }
body.public-profile .new-double-link.nl.pf .left { width: 60% !important; }
body.public-profile .new-double-link.nl.pf .right img.previewImg { position: static; display: block; width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
body.public-profile .book_person.profile-public-video {
  display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: none;
  height: auto !important; min-height: 0 !important; margin: 0; padding: 24px;
  border: 1px solid var(--public-border) !important; border-radius: 24px;
  background: var(--public-panel) !important; box-shadow: none !important; backdrop-filter: none; overflow: hidden;
}
body.public-profile .book_person .public-video-heading { margin: 0; }
body.public-profile .profile-public-video-media { width: 100%; max-width: none; min-height: 0; height: 360px; margin: 0; border-radius: 18px; overflow: hidden; background: var(--public-soft); }
body.public-profile .profile-public-video-card { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: #09090b !important; cursor: pointer; }
body.public-profile .profile-public-video-card :is(img, video) { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
body.public-profile .profile-public-video-transcript { width: 100%; height: auto; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent !important; overflow: visible; }
body.public-profile .profile-public-video-transcript summary { margin: 0 0 10px; color: var(--public-muted) !important; font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; cursor: pointer; }
body.public-profile .profile-public-video-transcript-text { width: 100%; height: auto; max-height: none; overflow: visible; color: var(--public-ink) !important; font-size: 14px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
body.public-profile .public-recommendations-heading { margin: 8px 0 -8px; }
body.public-profile .recommends ul.clients { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; max-width: none; height: auto; padding: 0; margin: 0; }
body.public-profile .recommends ul.clients li { width: 100%; min-width: 0; margin: 0; padding: 0; float: none; list-style: none; }
body.public-profile .recommends ul.clients li .content-video { display: block; width: 100%; }
body.public-profile .recommends ul.clients li .testim { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 24px; box-shadow: none !important; overflow: hidden; }
body.public-profile .recommends ul.clients li .testim :is(.frame, .fusion, video) { border-radius: inherit !important; }
body.public-profile .recommends ul.clients li .profile { padding: 24px; }
body.public-profile .recommends ul.clients li .profile h5 { font-size: 18px; font-weight: 500; line-height: 1.4; }
body.public-profile .recommends ul.clients li .profile p { font-size: 13px; font-weight: 400; line-height: 1.6; }
body.public-profile .recommends ul.clients li.offer-set .offer {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  width: 100%; height: auto; min-height: 220px; padding: 24px; margin: 0;
  border: 1px solid var(--public-border) !important; border-radius: 24px;
  color: var(--public-ink) !important; background: var(--public-panel) !important; box-shadow: none !important;
}
body.public-profile .offer .higen-recommend-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--public-soft); color: var(--public-muted); }
body.public-profile .offer .higen-recommend-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; width: 24px; height: 24px; }
body.public-profile .offer h3 { margin: 0; color: var(--public-ink) !important; font: 500 18px/1.5 var(--font-sans, "Inter", sans-serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
body.public-profile :is(a, button, [role="button"]):focus-visible { outline: 2px solid var(--public-muted); outline-offset: 4px; }
@media (max-width: 1080px) {
  body.public-profile .pageProfile.fullsize { max-width: 760px; padding: 0 32px 48px; }
  body.public-profile .pageProfile .profile-editor-center { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.public-profile .profile-public-video-media { height: 400px; }
  body.public-profile .recommends ul.clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.public-profile .pageProfile.fullsize { padding: 0 24px 40px; }
  body.public-profile .higen-public-profile-actions { min-height: 92px; margin-bottom: 20px; }
  body.public-profile .user-info { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  body.public-profile .person .name { font-size: 32px; }
  body.public-profile .person .profession { font-size: 16px; }
  body.public-profile .book_person.profile-public-video { padding: 20px; gap: 20px; }
  body.public-profile .profile-public-video-media { height: 340px; }
  body.public-profile .recommends ul.clients { grid-template-columns: 1fr; }
  body.public-profile :is(.new-link.nl.pf, .new-double-link.nl.pf) { padding: 20px; gap: 16px; }
  body.public-profile .new-double-link.nl.pf { flex-direction: column; }
  body.public-profile .new-double-link.nl.pf :is(.left, .right) { width: 100% !important; }
}
@media (prefers-reduced-motion: reduce) { body.public-profile * { transition: none !important; animation: none !important; } }

body.public-profile .public-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgb(24 24 27 / .65); color: #fff; pointer-events: none; }
body.public-profile .public-video-play svg { width: 28px; height: 28px; }
body.public-profile .profile-public-video-card.running .public-video-play { display: none; }
body.public-profile .profile-public-video-transcript summary:focus-visible { outline: 2px solid var(--public-muted); outline-offset: 4px; border-radius: 4px; }
/* Keep legacy dark-theme link rules from restoring white cards. */
html.higen-theme-dark body.public-profile .pageProfile .persona :is(.new-link.nl.pf, .new-double-link.nl.pf) {
  background: var(--public-panel) !important; border-color: var(--public-border) !important; box-shadow: none !important;
}
html.higen-theme-dark body.public-profile .pageProfile .persona :is(.new-link.nl.pf, .new-double-link.nl.pf) .title-link { color: var(--public-ink) !important; -webkit-text-fill-color: var(--public-ink) !important; }
html.higen-theme-dark body.public-profile .pageProfile .persona :is(.new-link.nl.pf, .new-double-link.nl.pf) .title-link + div { color: var(--public-muted) !important; -webkit-text-fill-color: var(--public-muted) !important; }
html.higen-theme-dark body.public-profile .pageProfile .higen-public-profile-actions .higen-public-profile-cta {
  background: var(--public-ink) !important; color: var(--public-bg) !important; -webkit-text-fill-color: var(--public-bg) !important; border-color: var(--public-ink) !important; box-shadow: none !important;
}
