@import url('/app/assets/auth-entry-polish.css?v=20260920-authui1');

:root {
  --guest-gate-bg: #07101f;
  --guest-gate-surface: #0b1525;
  --guest-gate-text: #f7f9fc;
  --guest-gate-muted: #aeb8c8;
  --guest-gate-border: #33415a;
  --guest-gate-button: #f7f9fc;
  --guest-gate-button-text: #07101f;
}

html[data-theme="light"] {
  --guest-gate-bg: #f6f7f9;
  --guest-gate-surface: #ffffff;
  --guest-gate-text: #111318;
  --guest-gate-muted: #667085;
  --guest-gate-border: #d5dae3;
  --guest-gate-button: #111318;
  --guest-gate-button-text: #ffffff;
}

.sautilink-guest-profile-locked,
.sautilink-guest-profile-locked body {
  overflow: hidden;
}

.guest-profile-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow-y: auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  min-height: 100dvh;
  padding: 28px 18px;
  background: var(--guest-gate-bg);
  color: var(--guest-gate-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guest-profile-brand {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.guest-profile-brand img {
  width: 82px;
  height: auto;
  display: block;
}

.guest-profile-card {
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid var(--guest-gate-border);
  border-radius: 24px;
  background: var(--guest-gate-surface);
  text-align: center;
  box-shadow: 0 20px 60px rgb(0 0 0 / 16%);
}

.guest-profile-loading,
.guest-profile-copy,
.guest-profile-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.guest-profile-username {
  color: var(--guest-gate-muted);
}

.guest-profile-loading {
  margin: 16px 0;
  font-size: 14px;
}

.guest-profile-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 1px solid var(--guest-gate-border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--guest-gate-surface) 78%, var(--guest-gate-text));
}

.guest-profile-avatar,
.guest-profile-avatar-fallback {
  width: 100%;
  height: 100%;
}

.guest-profile-avatar {
  display: block;
  object-fit: cover;
}

.guest-profile-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.guest-profile-name-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.guest-profile-name {
  overflow: hidden;
  margin: 0;
  color: var(--guest-gate-text);
  font-size: 23px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.guest-profile-username {
  margin: 6px 0 0;
  font-size: 14px;
}

.guest-profile-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 18px;
}

.guest-profile-stat-number {
  color: var(--guest-gate-text);
  font-size: 18px;
  font-weight: 800;
}

.guest-profile-stat-label {
  color: var(--guest-gate-muted);
  font-size: 14px;
}

.guest-profile-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--guest-gate-border);
}

.guest-profile-message {
  text-align: left;
}

.guest-profile-title {
  margin: 0;
  color: var(--guest-gate-text);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.025em;
}

.guest-profile-copy {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.guest-profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.guest-profile-primary,
.guest-profile-secondary {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.guest-profile-primary {
  background: var(--guest-gate-button);
  color: var(--guest-gate-button-text);
}

.guest-profile-secondary {
  border: 1px solid var(--guest-gate-border);
  color: var(--guest-gate-text);
  background: transparent;
}

.guest-profile-primary:focus-visible,
.guest-profile-secondary:focus-visible,
.guest-profile-brand:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Shared account-entry social OAuth controls. Kept in a self-hosted stylesheet so strict CSP remains intact. */
.social-oauth-block {
  display: grid;
  width: 100%;
  gap: 11px;
  margin: 0 0 15px;
}

.social-oauth-button {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 16px;
  border: 1px solid var(--app-line-strong);
  border-radius: 10px;
  background: var(--app-panel-soft);
  color: var(--app-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.social-oauth-button:hover:not(:disabled) {
  border-color: var(--app-muted);
  transform: translateY(-1px);
}

.social-oauth-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, .18);
}

.social-oauth-button:disabled {
  opacity: .58;
  cursor: wait;
  transform: none;
}

.social-oauth-google-icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: none;
}

.social-oauth-google-icon path {
  stroke: none;
}

.social-oauth-label {
  display: inline-block;
  transform: translateY(.25px);
}

.social-oauth-separator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-transform: lowercase;
}

.social-oauth-separator::before,
.social-oauth-separator::after {
  height: 1px;
  background: var(--app-line);
  content: '';
}

.social-oauth-legal {
  margin: -1px 0 0;
  color: var(--app-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.social-oauth-legal a {
  font-weight: 700;
  text-decoration: none;
}

.social-oauth-legal a:hover {
  text-decoration: underline;
}

body.auth-entry .social-oauth-block {
  gap: 11px;
  margin-bottom: 14px;
}

body.auth-entry .social-oauth-button {
  min-height: 48px;
  border-color: #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 680;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

body.auth-entry .social-oauth-button:hover:not(:disabled) {
  border-color: #b8c0cc;
  background: #f9fafb;
  box-shadow: 0 2px 5px rgba(16, 24, 40, .08);
}

body.auth-entry .social-oauth-button:active:not(:disabled) {
  background: #f3f4f6;
  transform: translateY(0);
}

body.auth-entry .social-oauth-separator {
  color: #7a8492;
}

body.auth-entry .social-oauth-separator::before,
body.auth-entry .social-oauth-separator::after {
  background: #e4e7ec;
}

body.auth-entry .social-oauth-legal {
  color: #667085;
}

body.auth-entry .social-oauth-legal a {
  color: #2563eb;
}

@media (max-width: 760px) {
  body.auth-entry .social-oauth-button {
    min-height: 50px;
    font-size: 14px;
  }

  body.auth-entry .social-oauth-block {
    margin-bottom: 15px;
  }
}

@media (max-width: 520px) {
  .guest-profile-gate {
    align-content: start;
    gap: 20px;
    padding-top: max(32px, env(safe-area-inset-top));
  }

  .guest-profile-card {
    padding: 22px 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-profile-gate * {
    scroll-behavior: auto !important;
  }

  .social-oauth-button {
    transition: none;
  }
}


/* Signed-out public post view: content stays readable while SautiLink actions require an account. */
.guest-post-gate {
  align-content: start;
  grid-auto-rows: max-content;
  padding-top: max(26px, env(safe-area-inset-top));
  padding-bottom: max(44px, env(safe-area-inset-bottom));
}

.guest-post-brand {
  margin-top: 4px;
}

.guest-post-card {
  width: min(100%, 680px);
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.guest-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 12px;
}

.guest-post-avatar-wrap {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border: 1px solid var(--guest-gate-border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--guest-gate-surface) 82%, var(--guest-gate-text));
}

.guest-post-avatar,
.guest-post-avatar-fallback {
  width: 100%;
  height: 100%;
}

.guest-post-avatar {
  display: block;
  object-fit: cover;
}

.guest-post-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.guest-post-author-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.guest-post-author-name-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.guest-post-author-name {
  overflow: hidden;
  color: var(--guest-gate-text);
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-post-author-handle {
  color: var(--guest-gate-muted);
  font-size: 13px;
}

.guest-post-badge {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.guest-post-body {
  margin: 0;
  padding: 4px 22px 18px;
  color: var(--guest-gate-text);
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guest-post-media {
  display: grid;
  gap: 2px;
  width: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--guest-gate-surface) 88%, #07101f);
}

.guest-post-media-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.guest-post-media-count-2,
.guest-post-media-count-3,
.guest-post-media-count-4,
.guest-post-media-count-5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-post-media-count-3 .guest-post-media-frame:first-child,
.guest-post-media-count-5 .guest-post-media-frame:first-child {
  grid-row: span 2;
}

.guest-post-media-frame {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #030712;
}

.guest-post-media-count-1 .guest-post-media-frame {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: var(--guest-media-aspect, 16 / 9);
  max-height: min(76vh, 720px);
}

.guest-post-media-frame > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.guest-post-media-count-1 .guest-post-media-frame > img {
  min-height: 0;
  object-fit: contain;
}

.guest-post-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background: color-mix(in srgb, var(--guest-gate-surface) 82%, #13213a);
  color: var(--guest-gate-muted);
  text-align: center;
}

.guest-post-media-fallback[hidden] {
  display: none;
}

.guest-post-media-fallback-logo {
  width: 62px;
  height: auto;
  display: block;
  opacity: .92;
}

.guest-post-media-fallback-label {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.guest-post-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(0 0 0 / 64%);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.guest-post-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--guest-gate-border);
}

.guest-post-action {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--guest-gate-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  opacity: .72;
}

.guest-post-action svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-post-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guest-post-action-count {
  font-variant-numeric: tabular-nums;
}

.guest-post-action:hover,
.guest-post-action:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, var(--guest-gate-surface) 88%, var(--guest-gate-text));
}

.guest-post-join {
  padding: 20px 22px 22px;
}

.guest-post-auth-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guest-action-dialog {
  width: min(calc(100% - 28px), 410px);
  padding: 0;
  border: 1px solid var(--guest-gate-border);
  border-radius: 22px;
  background: var(--guest-gate-surface);
  color: var(--guest-gate-text);
  box-shadow: 0 28px 90px rgb(0 0 0 / 42%);
}

.guest-action-dialog::backdrop {
  background: rgb(0 0 0 / 68%);
  backdrop-filter: blur(5px);
}

.guest-action-panel {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 28px 24px 24px;
  text-align: center;
}

.guest-action-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--guest-gate-muted);
  font-size: 25px;
  cursor: pointer;
}

.guest-action-logo {
  width: 66px;
  height: auto;
  margin-bottom: 14px;
}

.guest-action-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.guest-action-panel p {
  margin: 9px 0 0;
  color: var(--guest-gate-muted);
  font-size: 14px;
  line-height: 1.5;
}

.guest-action-panel .guest-profile-actions {
  width: 100%;
}

@media (max-width: 520px) {
  .guest-post-gate {
    padding-left: 0;
    padding-right: 0;
  }

  .guest-post-brand {
    margin: 0 18px;
  }

  .guest-post-card {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .guest-post-media-frame {
    min-height: 170px;
  }

  .guest-post-media-count-1 .guest-post-media-frame {
    min-height: 0;
    max-height: 68vh;
  }

  .guest-post-actions {
    padding: 5px 4px;
  }

  .guest-post-action {
    gap: 3px;
    padding: 0 2px;
    font-size: 11px;
  }

  .guest-post-auth-actions {
    grid-template-columns: 1fr;
  }
}
