:root {
  --psg-blue: #25aae3;
  --psg-blue-dark: #006dc4;
  --psg-blue-soft: #e9f7fd;
  --psg-ink: #112033;
  --psg-muted: #607086;
  --psg-line: #d8e8f2;
  --psg-bg: #e6ebf2;
  --psg-card: #ffffff;
  --psg-warm: #fff4db;
  --psg-radius: 24px;
  --psg-shadow: 0 18px 50px rgba(0, 63, 115, .12);
}

.psg-shell,
.psg-shell * {
  box-sizing: border-box;
}

.psg-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
  color: var(--psg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.psg-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  background:
    radial-gradient(circle at top right, rgba(37, 170, 227, .35), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f2fbff 50%, #dff4ff 100%);
  border: 1px solid rgba(37, 170, 227, .2);
  border-radius: 34px;
  box-shadow: var(--psg-shadow);
}

.psg-hero:after {
  content: "";
  position: absolute;
  inset: auto -8% -28% 42%;
  height: 220px;
  background: linear-gradient(90deg, rgba(0, 109, 196, .12), rgba(37, 170, 227, .28));
  transform: rotate(-5deg);
  border-radius: 999px;
}

.psg-hero__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  background: var(--psg-blue);
  color: #fff;
  font-size: 82px;
  line-height: 1;
  font-weight: 800;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(37, 170, 227, .36);
}

.psg-hero > div:not(.psg-hero__mark) {
  position: relative;
  z-index: 1;
}

.psg-kicker {
  margin: 0 0 8px;
  color: var(--psg-blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.psg-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -.055em;
  line-height: .95;
}

.psg-hero__text {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--psg-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}


.psg-video-rail {
  margin: 20px 0 8px;
  padding: 18px 0 4px;
}

.psg-video-rail__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.psg-video-rail__head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
}

.psg-video-rail__head span {
  flex: 0 0 auto;
  color: var(--psg-blue-dark);
  font-size: 13px;
  font-weight: 850;
  background: var(--psg-blue-soft);
  border: 1px solid rgba(37, 170, 227, .22);
  border-radius: 999px;
  padding: 8px 11px;
}

.psg-video-rail__kicker {
  margin: 0 0 6px;
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.psg-video-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 190px);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.psg-video-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(0, 109, 196, .15);
  border-radius: 24px;
  background: linear-gradient(135deg, #dff4ff, #ffffff);
  color: #fff;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: 0 14px 34px rgba(0, 63, 115, .11);
  padding: 0;
  text-align: left;
}

.psg-video-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0c1826;
}

.psg-video-tile__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 19, 35, .08), rgba(6, 19, 35, .74));
}

.psg-video-tile__play {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--psg-blue-dark);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.psg-video-tile__meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
}

.psg-video-tile__meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.05;
}

.psg-video-tile__meta em {
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.psg-video-tile__privacy {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 62px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(37, 170, 227, .88);
  color: #fff;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.psg-video-empty-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6px;
  border: 1px dashed rgba(0, 109, 196, .28);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #edf9ff);
  padding: 18px;
  color: var(--psg-ink);
  scroll-snap-align: start;
}

.psg-video-empty-card strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

.psg-video-empty-card span {
  color: var(--psg-muted);
  font-size: 14px;
  line-height: 1.35;
}


.psg-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 14px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--psg-line);
  border-radius: 22px;
}

.psg-tab {
  border: 0;
  border-radius: 16px;
  padding: 15px 14px;
  background: transparent;
  color: var(--psg-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.psg-tab.is-active {
  background: var(--psg-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 170, 227, .28);
}

.psg-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 26px;
}

.psg-category-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.psg-chip {
  border: 1px solid var(--psg-line);
  background: #fff;
  color: var(--psg-muted);
  border-radius: 999px;
  padding: 10px 14px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 750;
}

.psg-chip.is-active {
  background: var(--psg-ink);
  border-color: var(--psg-ink);
  color: #fff;
}

.psg-button,
.psg-shell a.psg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.psg-button:hover {
  transform: translateY(-1px);
}

.psg-button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.psg-button--primary {
  background: linear-gradient(135deg, var(--psg-blue), var(--psg-blue-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 170, 227, .25);
}

.psg-button--ghost {
  background: #fff;
  color: var(--psg-blue-dark);
  border-color: rgba(0, 109, 196, .2);
}

.psg-button--soft {
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark);
  border-color: rgba(37, 170, 227, .2);
}

.psg-button--plain {
  background: transparent;
  color: var(--psg-muted);
}

.psg-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 18px;
}

.psg-section-head h2,
.psg-group-hero h2,
.psg-create h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.04em;
}

.psg-section-head p,
.psg-create p {
  margin: 0;
  color: var(--psg-muted);
  font-size: 17px;
}

.psg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.psg-card,
.psg-post,
.psg-composer,
.psg-create,
.psg-login-card,
.psg-join-prompt {
  background: #fff;
  border: 1px solid var(--psg-line);
  border-radius: var(--psg-radius);
  box-shadow: 0 12px 34px rgba(0, 63, 115, .08);
}

.psg-card {
  min-height: 310px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.psg-card__top,
.psg-card__actions,
.psg-composer__head,
.psg-composer__footer,
.psg-record-row,
.psg-create__actions,
.psg-post__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.psg-card__top,
.psg-card__actions,
.psg-composer__head,
.psg-composer__footer,
.psg-create__actions {
  justify-content: space-between;
}

.psg-card h3 {
  margin: 18px 0 10px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.psg-card p {
  flex: 1;
  margin: 0;
  color: var(--psg-muted);
  line-height: 1.52;
}

.psg-tag,
.psg-privacy {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.psg-tag {
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark);
}

.psg-privacy {
  background: #f3f5f8;
  color: var(--psg-muted);
}

.psg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  color: var(--psg-muted);
  font-size: 13px;
  font-weight: 800;
}

.psg-meta span {
  border: 1px solid var(--psg-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
}

.psg-meta--light span {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.psg-group-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(135deg, var(--psg-blue-dark), var(--psg-blue));
  color: #fff;
  border-radius: 30px;
  box-shadow: var(--psg-shadow);
}

.psg-back {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: inherit;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 850;
}

.psg-group-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  line-height: 1.48;
  color: rgba(255, 255, 255, .88);
}

.psg-composer,
.psg-join-prompt {
  margin: 18px 0;
  padding: 24px;
}

.psg-composer h3,
.psg-join-prompt h3 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.psg-composer p,
.psg-join-prompt p {
  margin: 0;
  color: var(--psg-muted);
}

.psg-toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--psg-bg);
  border-radius: 999px;
}

.psg-toggle button,
.psg-pixels button,
.psg-reactions button,
.psg-link-button {
  border: 0;
  background: transparent;
  color: var(--psg-muted);
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.psg-toggle button.is-active,
.psg-pixels button.is-active {
  background: #fff;
  color: var(--psg-blue-dark);
  box-shadow: 0 8px 20px rgba(0, 63, 115, .08);
}

.psg-composer__body {
  margin-top: 18px;
}

.psg-textarea,
.psg-create textarea,
.psg-create input,
.psg-create select,
.psg-comment-form input {
  width: 100%;
  border: 1px solid var(--psg-line);
  background: #fbfdff;
  color: var(--psg-ink);
  border-radius: 18px;
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

.psg-textarea:focus,
.psg-create textarea:focus,
.psg-create input:focus,
.psg-create select:focus,
.psg-comment-form input:focus {
  border-color: var(--psg-blue);
  box-shadow: 0 0 0 4px rgba(37, 170, 227, .14);
}

.psg-textarea {
  min-height: 132px;
  resize: vertical;
}

.psg-textarea--small {
  min-height: 88px;
}

.psg-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--psg-muted);
  font-weight: 800;
}

.psg-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--psg-blue);
}

.psg-recorder {
  margin-top: 15px;
}

.psg-recorder__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  padding: 14px;
  background: var(--psg-bg);
  border: 1px solid var(--psg-line);
  border-radius: 24px;
}

.psg-recorder__preview {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(0, 109, 196, .15), rgba(37, 170, 227, .22)),
    #dff4ff;
  border-radius: 18px;
}

.psg-recorder__preview video[data-camera-video] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.psg-recorder__preview canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.psg-camera-placeholder {
  position: absolute;
  color: var(--psg-blue-dark);
  font-weight: 850;
  text-align: center;
  padding: 20px;
}

.psg-recorder__controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.psg-pixels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--psg-line);
}

.psg-record-row {
  flex-wrap: wrap;
}

.psg-recorder__timer {
  color: var(--psg-muted);
  font-size: 14px;
  font-weight: 850;
}

.psg-video-ready {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 170, 227, .24);
  border-radius: 20px;
  background: #fff;
}

.psg-video-ready video,
.psg-post__video {
  width: 100%;
  max-height: 520px;
  border-radius: 18px;
  background: #000;
}

.psg-feed {
  display: grid;
  gap: 16px;
}

.psg-post {
  padding: 22px;
}

.psg-post__head {
  margin-bottom: 14px;
}

.psg-post__head span {
  display: block;
  color: var(--psg-muted);
  font-size: 13px;
  font-weight: 750;
}

.psg-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--psg-blue), var(--psg-blue-dark));
  color: #fff;
  font-weight: 900;
}

.psg-post__content {
  color: var(--psg-ink);
  font-size: 17px;
  line-height: 1.55;
}

.psg-post__content p {
  margin: 0 0 12px;
}

.psg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--psg-line);
}

.psg-reactions button {
  background: var(--psg-bg);
}

.psg-link-button {
  margin-left: auto;
  color: #a14d52 !important;
}

.psg-comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.psg-comment {
  padding: 12px 14px;
  background: var(--psg-bg);
  border-radius: 16px;
  color: var(--psg-muted);
}

.psg-comment strong {
  display: block;
  margin-bottom: 4px;
  color: var(--psg-ink);
}

.psg-comment p {
  margin: 0;
}

.psg-comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.psg-create,
.psg-login-card {
  padding: 28px;
}

.psg-create .psg-back {
  margin-bottom: 20px;
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark);
}

.psg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}

.psg-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--psg-muted);
  font-weight: 850;
}

.psg-form-full {
  grid-column: 1 / -1;
}

.psg-create textarea {
  min-height: 120px;
  resize: vertical;
}

.psg-create__actions {
  margin-top: 22px;
}

.psg-empty,
.psg-loading,
.psg-error {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--psg-line);
  border-radius: var(--psg-radius);
  color: var(--psg-muted);
}

.psg-empty strong,
.psg-login-card h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--psg-ink);
  font-size: 24px;
  letter-spacing: -.03em;
}

.psg-empty p,
.psg-login-card p {
  margin: 0 0 18px;
  color: var(--psg-muted);
}

.psg-error {
  border-color: rgba(197, 74, 84, .35);
  color: #9b2c35;
}

.psg-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  background: var(--psg-ink);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 750;
}

.psg-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .psg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psg-recorder__panel,
  .psg-group-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .psg-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .psg-hero {
    grid-template-columns: 1fr;
    padding: 26px;
    border-radius: 28px;
  }

  .psg-hero__mark {
    width: 70px;
    height: 70px;
    font-size: 66px;
    border-radius: 22px;
  }

  .psg-tabs {
    gap: 5px;
    padding: 6px;
  }

  .psg-tab {
    padding: 12px 8px;
    font-size: 13px;
  }

  .psg-actionbar,
  .psg-section-head,
  .psg-composer__head,
  .psg-composer__footer,
  .psg-card__actions,
  .psg-create__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .psg-grid,
  .psg-form-grid {
    grid-template-columns: 1fr;
  }

  .psg-card {
    min-height: auto;
  }

  .psg-recorder__preview {
    min-height: 260px;
  }

  .psg-comment-form {
    grid-template-columns: 1fr;
  }

  .psg-link-button {
    margin-left: 0;
  }
}

/* v0.1.4: defensive clickability layer for themes/builders/admin-bar scripts that get ambitious. */
.psg-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.psg-tabs,
.psg-actionbar,
.psg-view,
.psg-card,
.psg-card__actions,
.psg-group-hero,
.psg-composer,
.psg-create,
.psg-feed,
.psg-post,
.psg-comment-form {
  position: relative;
  z-index: 3;
}

.psg-hero:after {
  pointer-events: none;
  z-index: 0;
}

.psg-shell button,
.psg-shell a,
.psg-shell input,
.psg-shell textarea,
.psg-shell select,
.psg-shell video,
.psg-shell canvas,
.psg-shell [data-action],
.psg-shell [data-tab],
.psg-shell [data-category] {
  pointer-events: auto !important;
}

/* v06 event reliability */
.psg-shell [data-action],
.psg-shell [data-tab],
.psg-shell [data-category] {
  touch-action: manipulation !important;
  user-select: none;
}

/* v0.1.7: product layer: search, readiness, and first moderation-friendly side rail. */
.psg-actionbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.psg-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(280px, 36vw);
}

.psg-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.psg-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--psg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--psg-ink);
  padding: 10px 16px;
  font: inherit;
  font-weight: 750;
  outline: none;
}

.psg-search input:focus {
  border-color: var(--psg-blue);
  box-shadow: 0 0 0 4px rgba(37, 170, 227, .14);
}

.psg-readiness {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.psg-readiness article {
  min-height: 118px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #f3fbff);
  border: 1px solid rgba(37, 170, 227, .22);
  border-radius: 22px;
}

.psg-readiness strong {
  display: block;
  margin-bottom: 7px;
  color: var(--psg-blue-dark);
  font-size: 16px;
  letter-spacing: -.02em;
}

.psg-readiness span {
  display: block;
  color: var(--psg-muted);
  line-height: 1.42;
  font-size: 14px;
  font-weight: 700;
}

.psg-group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.psg-group-main {
  min-width: 0;
}

.psg-side-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.psg-side-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--psg-line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(0, 63, 115, .06);
}

.psg-side-card--safety {
  background: linear-gradient(135deg, #fff, #fff7e8);
  border-color: rgba(217, 151, 36, .22);
}

.psg-side-kicker {
  margin: 0 0 7px !important;
  color: var(--psg-blue-dark) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.psg-side-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.psg-side-card p:last-child {
  margin: 0;
  color: var(--psg-muted);
  line-height: 1.5;
  font-weight: 650;
}

.psg-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
  padding: 0 3px;
}

.psg-feed-head strong {
  display: block;
  font-size: 22px;
  letter-spacing: -.03em;
}

.psg-feed-head span {
  display: block;
  margin-top: 3px;
  color: var(--psg-muted);
  font-size: 13px;
  font-weight: 800;
}

.psg-create-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.psg-create-principles span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 170, 227, .22);
  border-radius: 999px;
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.psg-recorder-note {
  margin: 0;
  color: var(--psg-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 750;
}

@media (max-width: 980px) {
  .psg-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psg-group-layout {
    grid-template-columns: 1fr;
  }

  .psg-side-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .psg-actionbar__right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .psg-search {
    min-width: 0;
    width: 100%;
  }

  .psg-readiness,
  .psg-side-panel {
    grid-template-columns: 1fr;
  }
}

.psg-pwa-bar {
  position: relative;
  margin: 18px 0 4px;
  z-index: 2;
}

.psg-pwa-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 170, 227, .22);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(0, 63, 115, .08);
  backdrop-filter: blur(12px);
}

.psg-pwa-card strong {
  display: block;
  margin: 0 0 3px;
  font-size: 15px;
  color: var(--psg-ink);
}

.psg-pwa-card span {
  display: block;
  color: var(--psg-muted);
  font-size: 13px;
  line-height: 1.35;
}

.psg-pwa-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.psg-pwa-pill {
  display: inline-flex !important;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(37, 170, 227, .18);
  border-radius: 999px;
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark) !important;
  font-size: 12px !important;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.psg-notification-btn {
  position: relative;
}

.psg-notification-panel {
  margin: 10px 0 0;
  padding: 18px;
  border: 1px solid rgba(0, 109, 196, .16);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0, 63, 115, .10);
}

.psg-notification-panel > strong {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
}

.psg-notification-panel > p {
  margin: 0 0 14px;
  color: var(--psg-muted);
}

.psg-notification-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.psg-notification-panel__head strong {
  display: block;
  font-size: 18px;
}

.psg-notification-panel__head span {
  display: block;
  color: var(--psg-muted);
  font-size: 13px;
}

.psg-notification-list {
  display: grid;
  gap: 8px;
}

.psg-notification-item {
  padding: 13px 14px;
  border: 1px solid var(--psg-line);
  border-radius: 18px;
  background: #fff;
}

.psg-notification-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.psg-notification-item.is-unread {
  border-color: rgba(37, 170, 227, .36);
  background: linear-gradient(135deg, #f2fbff, #fff);
}

.psg-notification-item strong {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
}

.psg-notification-item p {
  margin: 0 0 5px;
  color: var(--psg-muted);
  font-size: 13px;
  line-height: 1.35;
}

.psg-notification-item span {
  color: #8a99aa;
  font-size: 12px;
}

.psg-notification-empty {
  margin: 0;
  color: var(--psg-muted);
  font-size: 14px;
}

.psg-post--focused {
  outline: 3px solid rgba(37, 170, 227, .45);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .psg-pwa-card {
    align-items: stretch;
    flex-direction: column;
  }

  .psg-pwa-actions {
    justify-content: flex-start;
  }

  .psg-pwa-actions .psg-button,
  .psg-pwa-pill {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.psg-install-help {
  margin: 10px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 109, 196, .16);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f3fbff);
  box-shadow: 0 18px 42px rgba(0, 63, 115, .08);
}

.psg-install-help strong {
  display: block;
  margin: 0 0 5px;
  color: var(--psg-ink);
  font-size: 16px;
}

.psg-install-help p {
  margin: 0 0 10px;
  color: var(--psg-muted);
  font-size: 14px;
  line-height: 1.45;
}

.psg-install-help ol {
  margin: 0;
  padding-left: 20px;
  color: var(--psg-ink);
  font-size: 14px;
  line-height: 1.5;
}

.psg-install-help li + li {
  margin-top: 4px;
}

/* v15: reduce first-fold bulk and keep discovery tools inside Explore only. */
.psg-pwa-bar:empty {
  display: none;
}

.psg-pwa-bar {
  margin: 0 0 8px;
}

.psg-pwa-card--compact {
  padding: 8px 10px;
  border-radius: 18px;
  box-shadow: none;
  background: rgba(255,255,255,.78);
}

.psg-pwa-card--compact .psg-pwa-card__mini {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.psg-pwa-card--compact .psg-pwa-card__mini strong {
  margin: 0;
  font-size: 13px;
  letter-spacing: -.01em;
}

.psg-pwa-card--compact .psg-pwa-card__mini span {
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.psg-pwa-card--compact .psg-pwa-actions {
  gap: 6px;
}

.psg-pwa-card--compact .psg-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 12px;
}

.psg-explore-tools {
  margin: 0 0 18px;
}

.psg-explore-tools .psg-video-rail {
  margin: 0 0 10px;
  padding: 4px 0 0;
}

.psg-explore-tools .psg-actionbar {
  margin: 10px 0 16px;
}

.psg-section-head--compact {
  margin-top: 4px;
  margin-bottom: 16px;
}

.psg-section-head--compact h2 {
  font-size: clamp(24px, 3vw, 36px);
}

@media (max-width: 760px) {
  .psg-pwa-card--compact {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
  }

  .psg-pwa-card--compact .psg-pwa-card__mini {
    flex: 0 0 auto;
  }

  .psg-pwa-card--compact .psg-pwa-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .psg-pwa-card--compact .psg-pwa-actions .psg-button {
    flex: 0 0 auto;
  }

  .psg-explore-tools .psg-video-rail__head h2 {
    font-size: 20px;
  }

  .psg-explore-tools .psg-video-rail__head span {
    display: none;
  }

  .psg-explore-tools .psg-video-strip {
    grid-auto-columns: minmax(126px, 150px);
    gap: 10px;
    padding-bottom: 10px;
  }

  .psg-explore-tools .psg-video-tile,
  .psg-explore-tools .psg-video-empty-card {
    min-height: 178px;
    border-radius: 20px;
  }

  .psg-explore-tools .psg-actionbar {
    gap: 10px;
  }
}

/* v16: quick-glance video previews open in a full-screen viewer instead of dumping users into a group. Revolutionary: clicking a video plays the video. */
.psg-video-lightbox[aria-hidden="true"] {
  display: none;
}

.psg-video-lightbox[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 28px);
}

.psg-video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 35, .86);
  backdrop-filter: blur(14px);
}

.psg-video-lightbox__panel {
  position: relative;
  width: min(980px, 100%);
  height: min(86vh, 760px);
  overflow: hidden;
  border-radius: clamp(22px, 4vw, 36px);
  background: #061323;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

.psg-video-lightbox__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #061323;
}

.psg-video-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--psg-ink);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
}

.psg-image-lightbox[aria-hidden="true"] {
  display: none !important;
}

.psg-image-lightbox[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 34px);
}

.psg-image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 19, 35, .88);
  backdrop-filter: blur(14px);
}

.psg-image-lightbox__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  display: grid;
  place-items: center;
  gap: 12px;
  border-radius: clamp(18px, 4vw, 32px);
  background: rgba(6, 19, 35, .82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.psg-image-lightbox__panel img {
  display: block;
  width: 100%;
  max-height: min(82vh, 760px);
  object-fit: contain;
  background: #061323;
}

.psg-image-lightbox__panel p {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0 !important;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff !important;
  background: rgba(6, 19, 35, .62);
  font-size: 13px !important;
  font-weight: 800;
}

.psg-image-lightbox__close,
.psg-image-lightbox__nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #101820 !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24) !important;
  cursor: pointer;
}

.psg-image-lightbox__close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 30px !important;
  line-height: 1 !important;
}

.psg-image-lightbox__nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
}

.psg-image-lightbox__nav--prev {
  left: 14px;
}

.psg-image-lightbox__nav--next {
  right: 14px;
}

.psg-video-lightbox__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 19, 35, 0), rgba(6, 19, 35, .88));
  pointer-events: none;
}

.psg-video-lightbox__overlay > * {
  pointer-events: auto;
}

.psg-video-lightbox__kicker {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.psg-video-lightbox__overlay h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 44px);
  line-height: .96;
  letter-spacing: -.045em;
}

.psg-video-lightbox__overlay p:not(.psg-video-lightbox__kicker) {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 750;
}

.psg-video-lightbox__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.psg-video-lightbox__actions span {
  border-radius: 999px;
  background: rgba(37, 170, 227, .92);
  color: #fff;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .psg-video-lightbox[aria-hidden="false"] {
    padding: 0;
    align-items: stretch;
  }

  .psg-video-lightbox__panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .psg-video-lightbox__overlay {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 72px 16px 18px;
  }

  .psg-video-lightbox__actions {
    justify-content: space-between;
  }

  .psg-video-lightbox__actions .psg-button {
    flex: 1 1 auto;
  }
}

/* v17: group stewards. User-created groups should have real local responsibility, not just a shiny title. */
.psg-steward-card {
  border-color: rgba(37, 170, 227, .34);
  background: linear-gradient(180deg, #ffffff, #f5fbff);
}

.psg-steward-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.psg-steward-stats span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(0, 109, 196, .14);
  border-radius: 16px;
  background: #fff;
  padding: 10px 12px;
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 800;
}

.psg-steward-stats strong {
  color: var(--psg-blue-dark);
  font-size: 22px;
  line-height: 1;
}

.psg-steward-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.psg-steward-list > strong {
  color: var(--psg-ink);
  font-size: 13px;
  letter-spacing: .02em;
}

.psg-steward-item,
.psg-member-row {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 109, 196, .14);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
}

.psg-steward-item b,
.psg-member-row b {
  display: block;
  color: var(--psg-ink);
  font-size: 13px;
}

.psg-steward-item p,
.psg-member-row span,
.psg-member-row em,
.psg-muted {
  margin: 4px 0 0;
  color: var(--psg-muted);
  font-size: 12px;
  line-height: 1.45;
}

.psg-member-row em {
  display: inline-flex;
  justify-self: start;
  border-radius: 999px;
  background: rgba(37, 170, 227, .12);
  color: var(--psg-blue-dark);
  padding: 6px 9px;
  font-style: normal;
  font-weight: 900;
}

.psg-steward-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psg-steward-actions .psg-button,
.psg-steward-actions .psg-link-button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 12px;
}

@media (min-width: 980px) {
  .psg-steward-actions {
    justify-content: flex-start;
  }
}

/* v18: community profiles. People can be visible without turning the platform into a biography contest. */
.psg-profile-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--psg-ink);
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.psg-profile-link:hover {
  color: var(--psg-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.psg-profile-link--post {
  display: block;
}

.psg-avatar--image {
  object-fit: cover;
  background: #dff3ff;
}

.psg-profile-page {
  display: grid;
  gap: 18px;
}

.psg-profile-hero,
.psg-profile-editor,
.psg-profile-card,
.psg-profile-stats article {
  border: 1px solid rgba(0, 109, 196, .13);
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--psg-shadow-soft);
}

.psg-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
}

.psg-profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 14px 34px rgba(0, 109, 196, .15);
}

.psg-profile-hero h2 {
  margin: 2px 0 8px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: .95;
  letter-spacing: -.05em;
  color: var(--psg-ink);
}

.psg-profile-hero p:not(.psg-side-kicker) {
  margin: 0;
  color: var(--psg-muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 760px;
}

.psg-profile-since {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(37, 170, 227, .12);
  color: var(--psg-blue-dark);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.psg-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.psg-profile-stats article {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.psg-profile-stats strong {
  color: var(--psg-blue-dark);
  font-size: 32px;
  line-height: 1;
}

.psg-profile-stats span {
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.psg-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
}

.psg-profile-card,
.psg-profile-editor {
  padding: 22px;
}

.psg-profile-card h3,
.psg-profile-editor h3 {
  margin: 0 0 12px;
  color: var(--psg-ink);
  font-size: 20px;
}

.psg-topic-list,
.psg-profile-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.psg-topic-list span {
  border-radius: 999px;
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.psg-profile-groups {
  display: grid;
}

.psg-profile-groups button {
  width: 100%;
  border: 1px solid rgba(0, 109, 196, .12);
  background: var(--psg-bg);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.psg-profile-groups button:hover {
  border-color: rgba(37, 170, 227, .45);
  background: #fff;
}

.psg-profile-groups strong,
.psg-profile-groups span {
  display: block;
}

.psg-profile-groups strong {
  color: var(--psg-ink);
  font-size: 14px;
}

.psg-profile-groups span {
  margin-top: 3px;
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 800;
}

.psg-profile-editor {
  display: grid;
  gap: 16px;
}

.psg-profile-editor p {
  margin: 4px 0 0;
  color: var(--psg-muted);
}

.psg-member-row .psg-profile-link {
  font-size: 13px;
}

@media (max-width: 760px) {
  .psg-profile-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .psg-profile-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
  }

  .psg-profile-stats,
  .psg-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .psg-profile-grid {
    grid-template-columns: 1fr;
  }

  .psg-profile-card,
  .psg-profile-editor {
    padding: 18px;
  }
}

.psg-video-author {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: clamp(24px, 4vw, 44px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.psg-video-author:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* v19: friendship layer. Connections without open DMs, because restraint is apparently a feature now. */
.psg-connections-page {
  display: grid;
  gap: 18px;
}

.psg-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.psg-connection-card--wide {
  grid-column: 1 / -1;
}

.psg-connection-card h3 {
  margin: 0 0 12px;
}

.psg-connection-row,
.psg-friend-tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 109, 196, 0.1);
}

.psg-connection-row:first-of-type,
.psg-friend-tile:first-of-type {
  border-top: 0;
}

.psg-connection-person {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.psg-connection-person img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  background: #eaf6fd;
  flex: 0 0 auto;
}

.psg-connection-person span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.psg-connection-person strong {
  color: #102235;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.psg-connection-person em {
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
}

.psg-connection-actions,
.psg-profile-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.psg-profile-actions {
  margin-top: 12px;
}

.psg-connection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff8ff;
  color: #006dc4;
  font-weight: 800;
  font-size: 0.8rem;
  border: 1px solid rgba(37, 170, 227, 0.22);
}

.psg-friend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

@media (max-width: 760px) {
  .psg-connection-grid,
  .psg-friend-grid {
    grid-template-columns: 1fr;
  }

  .psg-connection-row,
  .psg-friend-tile {
    align-items: flex-start;
    flex-direction: column;
  }

  .psg-connection-actions,
  .psg-profile-actions {
    width: 100%;
  }

  .psg-connection-actions .psg-button,
  .psg-profile-actions .psg-button {
    flex: 1 1 auto;
  }
}

/* v20: mobile app shell. Bottom nav takes the heavy links off the first fold, because tiny screens are not warehouse storage. */
.psg-tabs {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.psg-bottom-nav {
  display: none;
}

.psg-app-drawer {
  padding: 14px;
  border: 1px solid rgba(0, 109, 196, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(0, 63, 115, .18);
  backdrop-filter: blur(16px);
}

.psg-app-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.psg-app-drawer__head strong,
.psg-app-drawer__head span {
  display: block;
}

.psg-app-drawer__head strong {
  color: var(--psg-ink);
  font-size: 16px;
  letter-spacing: -.02em;
}

.psg-app-drawer__head span {
  color: var(--psg-muted);
  font-size: 13px;
}

.psg-app-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.psg-profile-app-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.psg-profile-app-card h3 {
  margin: 0 0 6px;
}

.psg-profile-app-card p {
  margin: 0;
  color: var(--psg-muted);
}

.psg-profile-app-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .psg-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 0px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

  .psg-tabs {
    display: none;
  }

  .psg-bottom-nav {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 99990;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    min-height: 72px;
    padding: 8px;
    border: 1px solid rgba(0, 109, 196, .14);
    border-radius: 26px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 54px rgba(0, 63, 115, .22);
    backdrop-filter: blur(18px);
  }

  .psg-bottom-nav__item {
    appearance: none;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #607086;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 7px 2px;
    min-width: 0;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: -.01em;
    -webkit-tap-highlight-color: transparent;
  }

  .psg-bottom-nav__item.is-active {
    background: var(--psg-blue-soft);
    color: var(--psg-blue-dark);
  }

  .psg-bottom-nav__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
  }

  .psg-bottom-nav__icon i {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--psg-blue-dark);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
  }

  .psg-bottom-nav__create {
    color: var(--psg-blue-dark);
  }

  .psg-bottom-nav__plus {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--psg-blue), var(--psg-blue-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 170, 227, .28);
    font-size: 25px;
    font-weight: 850;
    line-height: 1;
  }

  .psg-pwa-bar {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 99991;
    margin: 0;
    max-height: min(64vh, 560px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .psg-app-drawer {
    border-radius: 24px;
  }

  .psg-notification-panel,
  .psg-install-help {
    max-height: 44vh;
    overflow: auto;
    box-shadow: none;
  }

  .psg-profile-app-card {
    align-items: stretch;
    flex-direction: column;
  }

  .psg-profile-app-actions {
    justify-content: stretch;
  }

  .psg-profile-app-actions .psg-button,
  .psg-app-drawer__actions .psg-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .psg-video-lightbox[aria-hidden="false"] {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* v21: home landing aggregation. Explore can be a directory instead of pretending every first screen needs a thesis statement. */
.psg-home {
  display: grid;
  gap: 22px;
}

.psg-video-rail--home {
  margin-top: 4px;
  padding-top: 4px;
}

.psg-home-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .8fr);
  gap: 16px;
  align-items: stretch;
}

.psg-home-card {
  border: 1px solid rgba(0, 109, 196, .13);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(0, 63, 115, .08);
}

.psg-home-card--lead {
  padding: clamp(20px, 3vw, 30px);
}

.psg-home-card--lead h2 {
  max-width: 760px;
  margin: 0 0 10px;
  color: var(--psg-ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}

.psg-home-card--lead p:not(.psg-side-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--psg-muted);
  font-size: 16px;
  line-height: 1.5;
}

.psg-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.psg-home-card--stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  background: rgba(0, 109, 196, .09);
}

.psg-home-card--stats div {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 18px;
  background: rgba(255, 255, 255, .96);
}

.psg-home-card--stats strong {
  color: var(--psg-blue-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -.05em;
}

.psg-home-card--stats span {
  margin-top: 5px;
  color: var(--psg-muted);
  font-size: 13px;
  font-weight: 850;
}

.psg-home-section {
  border: 1px solid rgba(0, 109, 196, .11);
  border-radius: 28px;
  background: rgba(255, 255, 255, .72);
  padding: clamp(16px, 2.4vw, 24px);
}

.psg-home-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.psg-home-section__head h3 {
  margin: 0;
  color: var(--psg-ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
}

.psg-home-group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.psg-home-group-list--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.psg-home-group-card {
  appearance: none;
  border: 1px solid rgba(0, 109, 196, .12);
  border-radius: 22px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 9px;
  min-height: 180px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(0, 63, 115, .06);
}

.psg-home-group-card:hover,
.psg-home-topic-strip button:hover {
  border-color: rgba(37, 170, 227, .45);
  transform: translateY(-1px);
}

.psg-home-group-card strong {
  color: var(--psg-ink);
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.psg-home-group-card em {
  color: var(--psg-muted);
  display: -webkit-box;
  font-style: normal;
  font-size: 14px;
  line-height: 1.38;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.psg-home-group-card small {
  align-self: end;
  color: var(--psg-blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.psg-home-topic-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 220px);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.psg-home-topic-strip button {
  appearance: none;
  border: 1px solid rgba(0, 109, 196, .12);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 11px 14px;
  scroll-snap-align: start;
  text-align: left;
}

.psg-home-topic-strip strong {
  color: var(--psg-ink);
  font-size: 14px;
}

.psg-home-topic-strip span {
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .psg-home-summary {
    grid-template-columns: 1fr;
  }

  .psg-home-group-list,
  .psg-home-group-list--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .psg-home {
    gap: 16px;
  }

  .psg-video-rail--home .psg-video-rail__head h2 {
    font-size: 20px;
  }

  .psg-video-rail--home .psg-video-rail__head span {
    display: none;
  }

  .psg-video-rail--home .psg-video-strip {
    grid-auto-columns: minmax(120px, 100px);
    gap: 10px;
    padding-bottom: 10px;
  }

  .psg-video-rail--home .psg-video-tile,
  .psg-video-rail--home .psg-video-empty-card {
    min-height: 178px;
    border-radius: 20px;
  }

  .psg-home-card--lead {
    padding: 18px;
    border-radius: 24px;
  }

  .psg-home-card--lead h2 {
    font-size: 26px;
  }

  .psg-home-card--lead p:not(.psg-side-kicker) {
    font-size: 14px;
  }

  .psg-home-card--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 22px;
  }

  .psg-home-card--stats div {
    min-height: 74px;
    padding: 10px 6px;
    text-align: center;
  }

  .psg-home-card--stats strong {
    font-size: 22px;
  }

  .psg-home-card--stats span {
    font-size: 10px;
  }

  .psg-home-section {
    padding: 14px;
    border-radius: 24px;
  }

  .psg-home-section__head {
    align-items: start;
    margin-bottom: 10px;
  }

  .psg-home-section__head h3 {
    font-size: 22px;
  }

  .psg-home-group-list,
  .psg-home-group-list--compact {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 75vw);
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
  }

  .psg-home-group-card {
    min-height: 160px;
    scroll-snap-align: start;
  }

  .psg-home-topic-strip {
    grid-auto-columns: minmax(145px, 190px);
  }
}

/* v22: home becomes the aggregation feed, and Create sits in the center like it always should have. */
.psg-home-feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin: 0 0 14px;
  border: 1px solid rgba(0, 109, 196, .12);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 63, 115, .06);
}

.psg-home-feed-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.psg-home-feed-head p {
  margin: 0;
  color: var(--psg-muted);
  max-width: 680px;
}

.psg-feed--home {
  margin-bottom: 20px;
}

.psg-feed--home .psg-post {
  position: relative;
}

.psg-post-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px 58px;
}

.psg-post-context button {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  border-radius: 999px;
  padding: 8px 10px;
}

.psg-post-context__group {
  color: var(--psg-blue-dark);
  background: var(--psg-blue-soft);
  border: 1px solid rgba(0, 109, 196, .18);
}

.psg-post-context__category {
  color: #50637a;
  background: #fff;
  border: 1px solid var(--psg-line);
}

@media (max-width: 760px) {
  .psg-home-feed-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    border-radius: 24px;
  }

  .psg-post-context {
    margin-left: 0;
  }

  .psg-bottom-nav__plus {
    background: #fff;
    color: var(--psg-blue-dark);
    border: 2px solid rgba(0, 109, 196, .22);
    box-shadow: none;
  }

  .psg-bottom-nav__create {
    color: var(--psg-blue-dark);
  }

  .psg-bottom-nav__create .psg-bottom-nav__plus {
    transform: translateY(-1px);
  }
}


/* v23: mobile containment, explicit button state control, compact profiles, and theme-hijack prevention. */
.psg-shell { overflow-x: clip; max-width: 100%; isolation: isolate; }
.psg-view, .psg-home, .psg-feed, .psg-feed--home, .psg-post, .psg-home-section, .psg-home-summary, .psg-video-rail, .psg-video-strip { min-width: 0; max-width: 100%; }
.psg-shell button, .psg-shell input[type="button"], .psg-shell input[type="submit"], .psg-shell .psg-button, .psg-shell .psg-link-button, .psg-shell .psg-tab, .psg-shell .psg-chip, .psg-shell .psg-bottom-nav__item, .psg-shell .psg-video-tile, .psg-shell .psg-post-context button, .psg-shell .psg-reactions button, .psg-shell .psg-profile-link, .psg-shell .psg-video-author {
  appearance: none !important; -webkit-appearance: none !important; box-sizing: border-box !important; cursor: pointer !important; font-family: inherit !important; text-transform: none !important; letter-spacing: inherit; text-decoration: none !important; outline-offset: 3px; -webkit-tap-highlight-color: transparent !important; pointer-events: auto !important;
}
.psg-shell button::before, .psg-shell button::after, .psg-shell .psg-bottom-nav__item::before, .psg-shell .psg-bottom-nav__item::after { pointer-events: none !important; }
.psg-bottom-nav, .psg-bottom-nav * { box-sizing: border-box !important; }
.psg-bottom-nav__item, .psg-bottom-nav__item:hover, .psg-bottom-nav__item:focus, .psg-bottom-nav__item:active { width: auto !important; height: auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; line-height: 1.05 !important; box-shadow: none !important; transform: none !important; }
.psg-bottom-nav__item > span { pointer-events: none !important; }
.psg-bottom-nav__plus, .psg-bottom-nav__plus:hover, .psg-bottom-nav__plus:focus, .psg-bottom-nav__plus:active { transform: none !important; box-shadow: none !important; }
.psg-reactions button, .psg-reactions button:hover, .psg-reactions button:focus, .psg-reactions button:active { border: 1px solid var(--psg-line) !important; border-radius: 999px !important; background: var(--psg-bg) !important; color: var(--psg-ink) !important; min-height: 38px !important; padding: 8px 11px !important; font-size: 13px !important; font-weight: 850 !important; line-height: 1 !important; box-shadow: none !important; transform: none !important; }
.psg-reactions .psg-link-button, .psg-reactions .psg-link-button:hover, .psg-reactions .psg-link-button:focus, .psg-reactions .psg-link-button:active { margin-left: auto !important; color: #a14d52 !important; background: #fff !important; }
.psg-video-author { display: inline-flex; align-items: center; width: fit-content; border: 0 !important; padding: 0 !important; background: transparent !important; color: #fff !important; font-size: clamp(22px, 4vw, 38px) !important; font-weight: 950 !important; line-height: .95 !important; letter-spacing: -.04em !important; text-align: left !important; }
.psg-profile-stats--compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--psg-line); border-radius: 22px; overflow: hidden; background: #fff; }
.psg-profile-stats--compact article { box-shadow: none; border: 0; border-radius: 0; border-right: 1px solid var(--psg-line); min-height: 70px; padding: 12px 10px; text-align: center; }
.psg-profile-stats--compact article:last-child { border-right: 0; }
.psg-profile-stats--compact strong { font-size: clamp(22px, 5vw, 34px); }
.psg-profile-stats--compact span { font-size: 11px; white-space: nowrap; }
@media (max-width: 760px) {
  .psg-shell { width: 100% !important; padding-left: 10px; padding-right: 10px; overflow-x: hidden; }
  .psg-view, .psg-home, .psg-feed--home, .psg-post {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    background-color: #eef4fb;
  }
  .psg-home-feed-head { width: 100%; max-width: 100%; overflow: hidden; }
  .psg-home-section, .psg-home-summary, .psg-home-card--stats, .psg-feed--home .psg-post { width: 100%; max-width: 100%; }
  .psg-video-rail--home .psg-video-strip, .psg-home-topic-strip, .psg-home-group-list, .psg-home-group-list--compact { width: 100%; max-width: 100%; margin-left: 0; margin-right: 0; overscroll-behavior-inline: contain; }
  .psg-feed--home .psg-post { padding: 16px; border-radius: 22px; }
  .psg-post__head { align-items: flex-start; flex-wrap: nowrap; min-width: 0; }
  .psg-post__head > div:last-child { min-width: 0; }
  .psg-profile-link--post, .psg-post__head strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .psg-post-context { max-width: 100%; gap: 6px; }
  .psg-post-context button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .psg-reactions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .psg-reactions button { width: 100% !important; min-width: 0 !important; justify-content: center !important; white-space: nowrap; padding-left: 8px !important; padding-right: 8px !important; font-size: 12px !important; }
  .psg-reactions .psg-link-button { grid-column: 1 / -1; margin-left: 0 !important; }
  .psg-profile-stats--compact { border-radius: 18px; }
  .psg-profile-stats--compact article { min-height: 58px; padding: 9px 4px; }
  .psg-profile-stats--compact strong { font-size: 22px; }
  .psg-profile-stats--compact span { font-size: 10px; letter-spacing: .02em; }
  .psg-profile-grid { gap: 12px; }
  .psg-profile-card { padding: 14px; border-radius: 20px; }
  .psg-bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 7px; overflow: hidden; }
  .psg-bottom-nav__item { position: relative; z-index: 1; padding: 7px 0 !important; border-radius: 16px !important; background: transparent !important; color: #607086 !important; }
  .psg-bottom-nav__item.is-active { background: var(--psg-blue-soft) !important; color: var(--psg-blue-dark) !important; }
  .psg-bottom-nav__create { z-index: 2; }
  .psg-bottom-nav__create .psg-bottom-nav__plus { width: 32px; height: 32px; background: #fff !important; color: var(--psg-blue-dark) !important; border: 2px solid rgba(0, 109, 196, .24) !important; }
}

/* v24 post composer overhaul */
.psg-composer[data-composer] {
  padding: 0;
  overflow: hidden;
}

.psg-composer-landing,
.psg-composer-form {
  padding: 22px;
}

.psg-composer-landing__top,
.psg-composer-form__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.psg-composer-landing__top h3,
.psg-composer-form__top h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.psg-compose-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.psg-compose-choice {
  display: grid;
  gap: 7px;
  text-align: left;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(37, 170, 227, .22) !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #fff, #f7fbff) !important;
  color: var(--psg-ink) !important;
  cursor: pointer;
  min-height: 142px;
}

.psg-compose-choice span {
  justify-self: start;
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--psg-blue-soft);
  color: var(--psg-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.psg-compose-choice strong {
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.psg-compose-choice em {
  font-style: normal;
  color: var(--psg-muted);
  font-size: 14px;
  line-height: 1.4;
}

.psg-approval-pill,
.psg-post-approval-note {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7df;
  color: #8a5a00;
  border: 1px solid rgba(221, 163, 30, .28);
  font-weight: 900;
  font-size: 12px;
}

.psg-approval-pill { padding: 8px 11px; white-space: nowrap; }
.psg-post-approval-note { padding: 10px 12px; margin-bottom: 14px; border-radius: 16px; }

.psg-composer-field {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: var(--psg-ink);
}

.psg-composer-field > span {
  font-size: 13px;
  color: var(--psg-muted);
}

.psg-composer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}

.psg-checkbox--card {
  background: #f7fbff;
  border: 1px solid var(--psg-line);
  border-radius: 999px;
  padding: 9px 12px;
}

.psg-char-count {
  color: var(--psg-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.psg-composer-preview {
  margin-top: 12px;
  border: 1px dashed rgba(0, 109, 196, .22);
  border-radius: 20px;
  background: #fbfdff;
  padding: 14px;
}

.psg-composer-preview span {
  display: block;
  color: var(--psg-blue-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.psg-composer-preview p {
  color: var(--psg-muted);
  line-height: 1.45;
  white-space: pre-wrap;
}

.psg-composer__footer--actions {
  margin-top: 16px;
  justify-content: flex-end;
  border-top: 1px solid var(--psg-line);
  padding-top: 16px;
}

.psg-video-privacy-panel {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--psg-line);
  background: #f7fbff;
  border-radius: 22px;
}

.psg-video-privacy-panel strong,
.psg-video-privacy-panel span {
  display: block;
}

.psg-video-privacy-panel span {
  margin-top: 4px;
  color: var(--psg-blue-dark);
  font-weight: 900;
}

.psg-video-ready > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.psg-video-ready span {
  color: var(--psg-blue-dark);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 820px) {
  .psg-composer-landing,
  .psg-composer-form {
    padding: 16px;
  }

  .psg-composer-landing__top,
  .psg-composer-form__top,
  .psg-composer-meta-row,
  .psg-composer__footer--actions,
  .psg-video-ready > div {
    align-items: stretch;
    flex-direction: column;
  }

  .psg-compose-choices,
  .psg-video-privacy-panel {
    grid-template-columns: 1fr;
  }

  .psg-compose-choice {
    min-height: auto;
    padding: 16px;
  }

  .psg-composer-form__top .psg-button,
  .psg-composer__footer--actions .psg-button {
    width: 100%;
  }

  .psg-recorder__panel {
    grid-template-columns: 1fr !important;
  }

  .psg-recorder__preview {
    min-height: 240px;
  }
}

/* v25: single group page polish */
.psg-group-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.psg-group-hero--polished {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(0, 63, 115, .16);
}

.psg-group-hero__navrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.psg-group-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.psg-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  color: #fff;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .02em;
}

.psg-group-hero--polished .psg-tag {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}

.psg-group-hero--polished h2 {
  margin-bottom: 10px;
  max-width: 850px;
}

.psg-group-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.psg-group-stats span {
  display: grid;
  min-width: 96px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.13);
}

.psg-group-stats strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.psg-group-stats em {
  margin-top: 4px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.psg-group-meta-row {
  margin: 10px 0 0;
}

.psg-group-hero--polished .psg-group-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 154px;
}

.psg-group-hero--polished .psg-button--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
}

.psg-group-hero--polished .psg-button--soft {
  color: #fff;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.16);
}

.psg-group-quickbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.psg-group-quickbar > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--psg-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,63,115,.045);
}

.psg-group-quickbar strong,
.psg-group-quickbar span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psg-group-quickbar strong {
  color: var(--psg-ink);
  font-size: 14px;
  font-weight: 950;
}

.psg-group-quickbar span {
  margin-top: 3px;
  color: var(--psg-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.psg-group-layout--polished {
  gap: 20px;
}

.psg-feed-head--group {
  align-items: flex-end;
  gap: 12px;
}

.psg-feed-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.psg-feed-filter {
  appearance: none !important;
  border: 1px solid var(--psg-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--psg-muted) !important;
  padding: 9px 12px !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.psg-feed-filter.is-active,
.psg-feed-filter:hover,
.psg-feed-filter:focus-visible {
  border-color: rgba(37,170,227,.35) !important;
  background: var(--psg-blue-soft) !important;
  color: var(--psg-blue-dark) !important;
}

.psg-side-card--glance {
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.psg-glance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.psg-glance-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--psg-line);
  border-radius: 15px;
  background: #fff;
}

.psg-glance-grid strong,
.psg-glance-grid span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psg-glance-grid strong {
  color: var(--psg-ink);
  font-size: 17px;
  line-height: 1.05;
  font-weight: 950;
}

.psg-glance-grid span {
  margin-top: 4px;
  color: var(--psg-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.psg-feed--group .psg-post {
  border-radius: 24px;
}

.psg-feed--group .psg-post__head {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 980px) {
  .psg-group-hero--polished {
    grid-template-columns: 1fr;
  }
  .psg-group-hero--polished .psg-group-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .psg-group-quickbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psg-side-panel--group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .psg-group-page {
    gap: 12px;
  }
  .psg-group-hero--polished {
    padding: 18px;
    border-radius: 22px;
  }
  .psg-group-hero__navrow {
    align-items: flex-start;
  }
  .psg-group-hero__badges {
    max-width: 58%;
  }
  .psg-status-pill,
  .psg-group-hero--polished .psg-tag {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .psg-group-hero--polished h2 {
    font-size: clamp(28px, 8vw, 38px);
  }
  .psg-group-hero p {
    font-size: 15px;
  }
  .psg-group-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .psg-group-stats span {
    min-width: 0;
    padding: 10px 8px;
    border-radius: 15px;
  }
  .psg-group-stats strong {
    font-size: 20px;
  }
  .psg-group-stats em {
    font-size: 10px;
  }
  .psg-group-meta-row {
    gap: 6px;
  }
  .psg-group-meta-row span {
    max-width: 100%;
    padding: 6px 8px;
    font-size: 11px;
  }
  .psg-group-hero--polished .psg-group-hero__actions .psg-button {
    flex: 1 1 130px;
  }
  .psg-group-quickbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .psg-group-quickbar > div {
    padding: 11px 12px;
    border-radius: 15px;
  }
  .psg-feed-head--group {
    align-items: flex-start;
    flex-direction: column;
  }
  .psg-feed-filters {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .psg-feed-filter {
    flex: 0 0 auto;
    font-size: 12px !important;
    padding: 9px 11px !important;
  }
  .psg-glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* v26 moderation/reporting */
.psg-steward-item--report small {
  display: block;
  color: #6b7b8c;
  font-size: 12px;
  margin-top: 6px;
}
.psg-comment__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.psg-link-button--tiny {
  font-size: 12px !important;
  padding: 2px 4px !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
}
.psg-profile-actions--quiet {
  margin-top: 8px;
}
.psg-steward-card .psg-steward-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .psg-steward-card .psg-steward-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .psg-steward-item--report .psg-steward-actions,
  .psg-steward-item .psg-steward-actions {
    width: 100%;
  }
}

/* v27: Profile/settings center. The account area finally stopped being a junk drawer with buttons. */
.psg-settings-center {
  gap: 18px;
  padding: 15px !important;
}
.psg-profile-hero--settings {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
}
.psg-profile-hero--public {
  align-items: center;
}
.psg-profile-stats--line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--psg-line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.psg-profile-stats--line article {
  min-height: 62px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--psg-line);
  box-shadow: none;
  text-align: center;
}
.psg-profile-stats--line article:last-child {
  border-right: 0;
}
.psg-profile-stats--line strong {
  display: block;
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1;
}
.psg-profile-stats--line span {
  display: block;
  margin-top: 5px;
  color: #637587;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.psg-settings-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.psg-settings-nav::-webkit-scrollbar {
  display: none;
}
.psg-settings-nav button {
  flex: 0 0 auto;
  border: 1px solid var(--psg-line) !important;
  background: #fff !important;
  color: #29445c !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.psg-settings-nav button.is-active,
.psg-settings-nav button:active {
  background: #eaf7ff !important;
  border-color: rgba(37,170,227,.45) !important;
  color: #006dc4 !important;
}
.psg-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.psg-settings-card--wide {
  grid-column: 1 / -1;
}
.psg-setting-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}
.psg-setting-list .psg-checkbox {
  border: 1px solid var(--psg-line);
  border-radius: 16px;
  padding: 11px 12px;
  background: #f9fcff;
}
.psg-profile-posts {
  display: grid;
  gap: 14px;
}
.psg-profile-posts .psg-post {
  box-shadow: none;
}
.psg-connection-grid--settings {
  margin-top: 0;
}
.psg-install-help--inline {
  margin-top: 14px;
}
.psg-install-help--inline .psg-install-help {
  padding: 0;
  border: 0;
  background: transparent;
}
@media (max-width: 760px) {
  .psg-profile-hero--settings,
  .psg-profile-hero--public {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 14px;
    border-radius: 20px;
  }
  .psg-profile-hero--settings .psg-profile-avatar,
  .psg-profile-hero--public .psg-profile-avatar {
    width: 54px;
    height: 54px;
  }
  .psg-profile-hero--settings h2,
  .psg-profile-hero--public h2 {
    font-size: 22px;
  }
  .psg-profile-hero--settings p:not(.psg-side-kicker),
  .psg-profile-hero--public p:not(.psg-side-kicker) {
    font-size: 13px;
  }
  .psg-profile-stats--line article {
    min-height: 52px;
    padding: 8px 4px;
  }
  .psg-profile-stats--line strong {
    font-size: 21px;
  }
  .psg-profile-stats--line span {
    font-size: 9.5px;
  }
  .psg-settings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .psg-settings-nav {
    margin-left: -2px;
    margin-right: -2px;
  }
  .psg-settings-nav button {
    font-size: 12px !important;
    padding: 9px 11px !important;
  }
  .psg-profile-app-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .psg-setting-list .psg-checkbox {
    font-size: 13px;
    line-height: 1.35;
  }
}

/* v28 first-time onboarding */
.psg-onboarding-modal[aria-hidden="true"] {
  display: none;
}

.psg-onboarding-modal[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 22px;
  box-sizing: border-box;
}

.psg-onboarding__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 33, 55, 0.52);
  backdrop-filter: blur(10px);
}

.psg-onboarding__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(37, 170, 227, 0.2);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 40, 70, 0.22);
  padding: 24px;
  box-sizing: border-box;
}

.psg-onboarding__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.psg-onboarding__topline span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #006dc4;
  font-weight: 900;
}

.psg-onboarding__progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.psg-onboarding__progress i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #d9ecf8;
}

.psg-onboarding__progress i.is-active {
  background: #25aae3;
}

.psg-onboarding__panel h2 {
  margin: 4px 0 10px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #102c44;
}

.psg-onboarding__panel > p:not(.psg-side-kicker) {
  margin: 0 0 20px;
  color: #41566a;
  font-size: 16px;
  line-height: 1.55;
}

.psg-onboarding__points {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}

.psg-onboarding__points article {
  border: 1px solid rgba(37, 170, 227, 0.17);
  background: #f6fbff;
  border-radius: 18px;
  padding: 13px 14px;
}

.psg-onboarding__points strong {
  display: block;
  color: #20384f;
  font-size: 14px;
  line-height: 1.35;
}

.psg-onboarding__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.psg-onboarding__actions .psg-button {
  min-width: 120px !important;
}

.psg-intro-settings-card p {
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .psg-onboarding-modal[aria-hidden="false"] {
    align-items: end;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .psg-onboarding__panel {
    width: 100%;
    max-height: calc(92vh - env(safe-area-inset-bottom));
    border-radius: 24px;
    padding: 18px;
  }
  .psg-onboarding__panel h2 {
    font-size: 31px;
  }
  .psg-onboarding__panel > p:not(.psg-side-kicker) {
    font-size: 14px;
  }
  .psg-onboarding__actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #ffffff 70%, rgba(255,255,255,0));
    padding-top: 18px;
  }
  .psg-onboarding__actions .psg-button {
    flex: 1 1 auto;
    min-width: 0 !important;
  }
}

/* v29 design polish: tighter, calmer app shell. Less brochure furniture, more actual mobile product. */
.psg-shell {
  --psg-radius: 22px;
  --psg-shadow: 0 10px 30px rgba(0, 63, 115, .07);
  --psg-shadow-soft: 0 6px 18px rgba(0, 63, 115, .055);
  --psg-border-soft: rgba(0, 109, 196, .12);
  --psg-focus: 0 0 0 4px rgba(37, 170, 227, .18);
  color: #102033;
}

.psg-shell .psg-view {
  animation: psgViewIn .18s ease-out both;
}

@keyframes psgViewIn {
  from { opacity: .72; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.psg-shell button:focus-visible,
.psg-shell a:focus-visible,
.psg-shell input:focus-visible,
.psg-shell textarea:focus-visible,
.psg-shell select:focus-visible {
  outline: 0 !important;
  box-shadow: var(--psg-focus) !important;
}

.psg-card,
.psg-post,
.psg-composer,
.psg-create,
.psg-login-card,
.psg-join-prompt,
.psg-home-card,
.psg-home-section,
.psg-profile-hero,
.psg-profile-card,
.psg-profile-editor,
.psg-group-hero--polished,
.psg-group-quickbar,
.psg-side-card,
.psg-steward-card,
.psg-settings-card,
.psg-profile-app-card {
  border-color: var(--psg-border-soft) !important;
  box-shadow: var(--psg-shadow-soft) !important;
}

.psg-button,
.psg-shell a.psg-button,
.psg-link-button,
.psg-chip,
.psg-tab,
.psg-feed-filter,
.psg-settings-nav button,
.psg-bottom-nav__item {
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

.psg-button:hover,
.psg-chip:hover,
.psg-tab:hover,
.psg-feed-filter:hover,
.psg-settings-nav button:hover {
  transform: translateY(-1px) !important;
}

.psg-button:active,
.psg-chip:active,
.psg-tab:active,
.psg-feed-filter:active,
.psg-settings-nav button:active {
  transform: translateY(0) !important;
}

.psg-button--primary {
  background: var(--psg-blue-dark) !important;
  color: #fff !important;
  border-color: var(--psg-blue-dark) !important;
  box-shadow: 0 10px 20px rgba(0, 109, 196, .14) !important;
}

.psg-button--primary:hover {
  background: #005fb0 !important;
  border-color: #005fb0 !important;
}

.psg-button--ghost,
.psg-button--soft,
.psg-chip,
.psg-tab,
.psg-feed-filter,
.psg-settings-nav button {
  box-shadow: none !important;
}

.psg-button--ghost:hover,
.psg-button--soft:hover,
.psg-chip:hover,
.psg-feed-filter:hover,
.psg-settings-nav button:hover {
  border-color: rgba(37, 170, 227, .42) !important;
}

.psg-tabs {
  padding: 8px !important;
  border: 1px solid rgba(0, 109, 196, .1) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.72) !important;
  box-shadow: 0 8px 24px rgba(0, 63, 115, .05) !important;
  backdrop-filter: blur(12px);
}

.psg-tab {
  border-radius: 18px !important;
  min-height: 48px !important;
}

.psg-tab.is-active {
  background: #eaf7ff !important;
  color: var(--psg-blue-dark) !important;
  border-color: rgba(37, 170, 227, .28) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.68) !important;
}

.psg-home {
  gap: 18px !important;
}

.psg-video-rail__head h2,
.psg-home-feed-head h2,
.psg-section-head h2,
.psg-group-hero--polished h2,
.psg-profile-hero h2,
.psg-create h2 {
  letter-spacing: -.045em !important;
}

.psg-video-rail__head span,
.psg-status-pill,
.psg-tag,
.psg-post-context button,
.psg-approval-pill,
.psg-group-meta-row span {
  box-shadow: none !important;
}

.psg-video-strip,
.psg-home-topic-strip,
.psg-category-wrap,
.psg-settings-nav,
.psg-feed-filters {
  scrollbar-width: none !important;
}

.psg-video-strip::-webkit-scrollbar,
.psg-home-topic-strip::-webkit-scrollbar,
.psg-category-wrap::-webkit-scrollbar,
.psg-settings-nav::-webkit-scrollbar,
.psg-feed-filters::-webkit-scrollbar {
  display: none;
}

.psg-video-tile {
  box-shadow: 0 10px 26px rgba(0, 63, 115, .09) !important;
}

.psg-video-tile:hover {
  transform: translateY(-2px) !important;
}

.psg-home-feed-head {
  padding: 16px 18px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #fff, #fbfdff) !important;
}

.psg-home-feed-head h2 {
  font-size: clamp(23px, 3.5vw, 32px) !important;
}

.psg-home-feed-head p {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.psg-feed {
  gap: 14px !important;
}

.psg-post {
  padding: 18px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #fff 0%, #fcfeff 100%) !important;
}

.psg-post__head {
  gap: 12px !important;
}

.psg-post__avatar,
.psg-comment__avatar,
.psg-profile-avatar {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 8px 18px rgba(0, 63, 115, .08) !important;
}

.psg-post__body {
  color: #22384d !important;
  line-height: 1.55 !important;
}

.psg-post-context {
  margin-bottom: 12px !important;
}

.psg-post-context button {
  border-radius: 999px !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.psg-reactions {
  border-top: 1px solid rgba(0, 109, 196, .08);
  padding-top: 12px;
  margin-top: 14px;
}

.psg-reactions button,
.psg-reactions button:hover,
.psg-reactions button:focus,
.psg-reactions button:active {
  background: #f7fbff !important;
  border-color: rgba(0, 109, 196, .11) !important;
}

.psg-reactions button:hover {
  background: #eaf7ff !important;
  color: var(--psg-blue-dark) !important;
}

.psg-reactions button.is-active,
.psg-reactions button[aria-pressed="true"] {
  background: var(--psg-blue-soft) !important;
  color: var(--psg-blue-dark) !important;
  border-color: rgba(37, 170, 227, .38) !important;
}

.psg-comments {
  border-radius: 20px !important;
  background: #f8fbfe !important;
  border: 1px solid rgba(0, 109, 196, .08) !important;
  padding: 12px !important;
}

.psg-comment {
  border-radius: 16px !important;
  background: #fff !important;
  border: 1px solid rgba(0, 109, 196, .07) !important;
  padding: 10px !important;
}

.psg-composer,
.psg-composer[data-composer] {
  border-radius: 24px !important;
  background: linear-gradient(180deg, #fff, #f9fcff) !important;
}

.psg-compose-choice {
  box-shadow: none !important;
}

.psg-compose-choice:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(37, 170, 227, .48) !important;
  background: #fff !important;
}

.psg-composer textarea,
.psg-create input,
.psg-create textarea,
.psg-create select,
.psg-profile-editor input,
.psg-profile-editor textarea,
.psg-profile-editor select,
.psg-comment-form input,
.psg-comment-form textarea,
.psg-search input,
.psg-shell input[type="text"],
.psg-shell input[type="search"],
.psg-shell textarea,
.psg-shell select {
  border: 1px solid rgba(0, 109, 196, .14) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--psg-ink) !important;
  box-shadow: none !important;
}

.psg-composer textarea:focus,
.psg-create input:focus,
.psg-create textarea:focus,
.psg-create select:focus,
.psg-profile-editor input:focus,
.psg-profile-editor textarea:focus,
.psg-profile-editor select:focus,
.psg-comment-form input:focus,
.psg-comment-form textarea:focus,
.psg-search input:focus,
.psg-shell input[type="text"]:focus,
.psg-shell input[type="search"]:focus,
.psg-shell textarea:focus,
.psg-shell select:focus {
  border-color: rgba(37, 170, 227, .52) !important;
}

.psg-group-hero--polished {
  background: linear-gradient(135deg, #ffffff 0%, #f6fbff 100%) !important;
  border-radius: 28px !important;
}

.psg-group-quickbar > div,
.psg-side-card,
.psg-steward-card {
  background: rgba(255,255,255,.86) !important;
}

.psg-feed-filter.is-active,
.psg-settings-nav button.is-active,
.psg-chip.is-active {
  background: var(--psg-blue-dark) !important;
  border-color: var(--psg-blue-dark) !important;
  color: #fff !important;
}

.psg-profile-hero--settings,
.psg-profile-hero--public {
  border-radius: 26px !important;
}

.psg-profile-stats--line,
.psg-profile-stats--compact {
  border-color: rgba(0, 109, 196, .1) !important;
}

.psg-profile-stats--line article,
.psg-profile-stats--compact article {
  background: #fff !important;
}

.psg-profile-stats--line span,
.psg-profile-stats--compact span {
  color: #667789 !important;
}

.psg-settings-nav {
  padding-bottom: 10px !important;
}

.psg-settings-card,
.psg-profile-card,
.psg-profile-editor {
  border-radius: 22px !important;
  background: #fff !important;
}

.psg-bottom-nav {
  box-shadow: 0 12px 36px rgba(0, 63, 115, .18) !important;
}

.psg-bottom-nav__item,
.psg-bottom-nav__item:hover,
.psg-bottom-nav__item:focus,
.psg-bottom-nav__item:active {
  border: 1px solid transparent !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

.psg-bottom-nav__item.is-active {
  border-color: rgba(37, 170, 227, .22) !important;
}

.psg-bottom-nav__create .psg-bottom-nav__plus,
.psg-bottom-nav__create .psg-bottom-nav__plus:hover,
.psg-bottom-nav__create .psg-bottom-nav__plus:focus,
.psg-bottom-nav__create .psg-bottom-nav__plus:active {
  background: var(--psg-blue-dark) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 8px 18px rgba(0, 109, 196, .18) !important;
}

.psg-empty,
.psg-empty-state,
.psg-video-empty-card,
.psg-join-prompt,
.psg-login-card {
  border-style: solid !important;
  background: linear-gradient(180deg, #fff, #f7fbff) !important;
}

.psg-onboarding__panel {
  border-radius: 30px !important;
  box-shadow: 0 24px 80px rgba(0, 40, 70, .22) !important;
}

.psg-onboarding__points article {
  background: #f7fbff !important;
  border-color: rgba(0, 109, 196, .1) !important;
}

.psg-notification-panel,
.psg-install-help,
.psg-app-drawer {
  border-color: rgba(0, 109, 196, .12) !important;
  box-shadow: 0 14px 36px rgba(0, 63, 115, .14) !important;
}

.psg-loading,
.psg-skeleton {
  position: relative;
  overflow: hidden;
  background: #eef7fd !important;
}

.psg-loading:after,
.psg-skeleton:after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: psgShimmer 1.2s linear infinite;
}

@keyframes psgShimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 760px) {
  .psg-shell {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  .psg-home {
    gap: 14px !important;
  }

  .psg-video-rail {
    margin-top: 6px !important;
  }

  .psg-video-rail__head {
    align-items: flex-start !important;
    margin-bottom: 9px !important;
  }

  .psg-home-feed-head {
    padding: 14px !important;
    gap: 6px !important;
  }

  .psg-home-feed-head h2 {
    font-size: 22px !important;
  }

  .psg-home-feed-head p {
    font-size: 13px !important;
  }

  .psg-post {
    padding: 14px !important;
    border-radius: 21px !important;
  }

  .psg-post__avatar,
  .psg-comment__avatar {
    flex: 0 0 auto !important;
  }

  .psg-reactions {
    padding-top: 10px !important;
    margin-top: 12px !important;
  }

  .psg-reactions button,
  .psg-reactions button:hover,
  .psg-reactions button:focus,
  .psg-reactions button:active {
    min-height: 36px !important;
    border-radius: 14px !important;
  }

  .psg-composer-landing,
  .psg-composer-form {
    padding: 15px !important;
  }

  .psg-compose-choices {
    grid-template-columns: 1fr !important;
  }

  .psg-compose-choice {
    min-height: 112px !important;
    padding: 14px !important;
    border-radius: 19px !important;
  }

  .psg-group-hero--polished,
  .psg-profile-hero--settings,
  .psg-profile-hero--public,
  .psg-create,
  .psg-profile-card,
  .psg-profile-editor,
  .psg-settings-card {
    border-radius: 20px !important;
  }

  .psg-group-quickbar > div,
  .psg-side-card,
  .psg-steward-card {
    border-radius: 18px !important;
  }

  .psg-bottom-nav {
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    min-height: 68px !important;
    border-radius: 24px !important;
    padding: 7px !important;
  }

  .psg-bottom-nav__item {
    min-height: 52px !important;
    font-size: 10.5px !important;
  }

  .psg-bottom-nav__icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 17px !important;
  }

  .psg-bottom-nav__plus {
    width: 34px !important;
    height: 34px !important;
  }

  .psg-onboarding__panel {
    border-radius: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psg-shell .psg-view,
  .psg-button,
  .psg-chip,
  .psg-tab,
  .psg-feed-filter,
  .psg-video-tile,
  .psg-compose-choice {
    animation: none !important;
    transition: none !important;
  }
}


/* v30: QA fixes. Less accidental tapping, fewer giant cards, actual images, and buttons that stop borrowing theme drama. */
.psg-shell, .psg-shell * { box-sizing: border-box !important; }
.psg-shell button, .psg-shell a.psg-button, .psg-shell .psg-link-button, .psg-shell .psg-bottom-nav__item, .psg-shell .psg-video-tile, .psg-shell .psg-profile-link, .psg-shell .psg-video-author {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-clip: padding-box !important;
  text-decoration: none !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  outline-offset: 3px !important;
}
.psg-shell button:focus-visible, .psg-shell a.psg-button:focus-visible, .psg-shell .psg-link-button:focus-visible, .psg-shell .psg-bottom-nav__item:focus-visible {
  outline: 3px solid rgba(37,170,227,.45) !important;
}
.psg-bottom-nav { pointer-events: auto !important; }
.psg-bottom-nav__item { min-height: 54px !important; }
.psg-bottom-nav__item > * { pointer-events: none !important; }

.psg-video-rail { margin-top: 0 !important; padding-top: 0 !important; }
.psg-video-rail__head { display: none !important; }
.psg-video-tile__privacy { display: none !important; }
.psg-video-tile__play { top: 50% !important; left: 50% !important; right: auto !important; transform: translate(-50%, -50%) !important; width: 46px !important; height: 46px !important; background: rgba(255,255,255,.9) !important; }
.psg-video-tile__play svg { width: 23px; height: 23px; fill: var(--psg-blue-dark); margin-left: 2px; }
.psg-video-tile__meta strong { max-width: 100%; font-size: 13px !important; line-height: 1.1 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psg-video-tile__meta em { font-size: 11px !important; }

.psg-group-card--image { padding: 0 !important; overflow: hidden; }
.psg-group-card__image { position: relative; display: block; width: 100%; min-height: 150px; border: 0; padding: 0; text-align: left; background: linear-gradient(135deg,#006dc4,#25aae3); background-image: var(--psg-group-image, linear-gradient(135deg,#006dc4,#25aae3)); background-size: cover; background-position: center; cursor: pointer; }
.psg-group-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,19,35,.05) 0%, rgba(6,19,35,.78) 100%); }
.psg-group-card__image-content { position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff; display: grid; gap: 7px; }
.psg-group-card__image-content .psg-tag { justify-self: start; background: rgba(255,255,255,.92) !important; color: var(--psg-blue-dark) !important; }
.psg-group-card__title { display: block; margin: 0 !important; color: #fff !important; font-size: 19px !important; line-height: 1.08 !important; font-weight: 850; }
.psg-group-card__image-content small { color: rgba(255,255,255,.86); font-weight: 850; }
.psg-group-card--image > p { margin: 14px 16px 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px !important; }
.psg-card__actions--split { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; padding: 14px 16px 16px !important; }
.psg-card__actions--split .psg-button { width: 100% !important; }

.psg-group-hero--cover { position: relative; overflow: hidden; color: #fff; background-image: linear-gradient(180deg, rgba(4,19,35,.42), rgba(4,19,35,.82)), var(--psg-group-image, linear-gradient(135deg,#006dc4,#25aae3)) !important; background-size: cover !important; background-position: center !important; }
.psg-group-hero--cover h2, .psg-group-hero--cover p { color: #fff !important; }
.psg-group-hero--cover .psg-tag, .psg-group-hero--cover .psg-status-pill { background: rgba(255,255,255,.92) !important; color: var(--psg-blue-dark) !important; }

.psg-profile-avatar, .psg-avatar, .psg-avatar--image, .psg-post__avatar, .psg-comment__avatar, .psg-connection-person img, .psg-friend-tile img { border-radius: 999px !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; }
.psg-profile-stats--line { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)) !important; border-radius: 16px !important; }
.psg-profile-stats--line article { min-height: 46px !important; padding: 7px 4px !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 6px !important; }
.psg-profile-stats--line strong { font-size: 18px !important; line-height: 1 !important; }
.psg-profile-stats--line span { margin: 0 !important; font-size: 10px !important; letter-spacing: .04em !important; }
.psg-notification-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.psg-notification-actions .psg-button { min-height: 34px !important; padding: 8px 12px !important; }
.psg-shell .psg-notification-link {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  text-align: left !important;
}

@media (max-width: 720px) {
  .psg-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .psg-group-card__image { min-height: 135px; }
  .psg-group-card--image > p { font-size: 13px !important; }
  .psg-card__actions--split { padding: 12px 14px 14px !important; }
  .psg-profile-stats--line article { min-height: 40px !important; }
  .psg-profile-stats--line strong { font-size: 16px !important; }
  .psg-profile-stats--line span { font-size: 9px !important; }
  .psg-video-tile__meta { left: 10px !important; right: 10px !important; bottom: 10px !important; }
}
.psg-home-group-card--image { position: relative; overflow: hidden; min-height: 126px; color: #fff !important; background-image: linear-gradient(180deg, rgba(4,19,35,.08), rgba(4,19,35,.78)), var(--psg-group-image, linear-gradient(135deg,#006dc4,#25aae3)) !important; background-size: cover !important; background-position: center !important; align-content: end !important; }
.psg-home-group-card--image .psg-home-group-card__shade { display: none; }
.psg-home-group-card--image strong { color: #fff !important; }
.psg-home-group-card--image small { color: rgba(255,255,255,.88) !important; }
.psg-home-group-card--image .psg-tag { background: rgba(255,255,255,.93) !important; color: var(--psg-blue-dark) !important; justify-self: start; }

/* v31: app-shell refinement and interaction stability pass */
:root {
  --psg-blue: #0B7AE1;
  --psg-blue-dark: #075fb0;
  --psg-blue-soft: #EAF4FF;
  --psg-bg: #F2F5F8;
  --psg-line: #DFE6EE;
  --psg-shadow: 0 8px 24px rgba(17, 32, 51, .06);
  --psg-radius: 20px;
}

.psg-shell { background: transparent; font-weight: 400; touch-action: pan-y; }
.psg-shell h1,
.psg-shell h2,
.psg-shell h3,
.psg-shell strong { font-weight: 650; }
.psg-shell p { line-height: 1.45; }
.psg-shell button,
.psg-shell [role="button"] { touch-action: manipulation !important; -webkit-tap-highlight-color: transparent; }
.psg-shell input,
.psg-shell textarea,
.psg-shell select { font-size: 16px !important; }

.psg-card,
.psg-post,
.psg-login-card,
.psg-profile-card,
.psg-settings-panel,
.psg-create,
.psg-group-main,
.psg-group-side,
.psg-home-feed-head,
.psg-home-card,
.psg-home-section,
.psg-empty,
.psg-error {
  background: #fff !important;
  border: 1px solid rgba(17, 32, 51, .08) !important;
  box-shadow: 0 8px 24px rgba(17, 32, 51, .045) !important;
}

.psg-home-feed-head {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px 2px 16px !important;
}
.psg-home-feed-head .psg-side-kicker { display: none !important; }
.psg-home-feed-head h2 { font-size: clamp(22px, 5vw, 32px) !important; font-weight: 650 !important; letter-spacing: -.025em !important; }
.psg-home-feed-head p { color: #5f6f7f !important; font-size: 14px !important; }
.psg-button--full { width: 100% !important; justify-content: center !important; }

.psg-button--primary,
.psg-bottom-nav__create {
  background: #0B7AE1 !important;
  color: #fff !important;
  border-color: #0B7AE1 !important;
  background-image: none !important;
  font-weight: 600 !important;
}
.psg-button,
.psg-link-button,
.psg-chip,
.psg-feed-filter,
.psg-compose-choice,
.psg-bottom-nav__item { font-weight: 560 !important; }

.psg-video-rail { margin-top: 0 !important; padding-top: 0 !important; }
.psg-video-tile__play svg { display: none !important; }
.psg-video-tile__play img { width: 38px; height: 38px; object-fit: contain; display: block; filter: drop-shadow(0 8px 22px rgba(0,0,0,.35)); }
.psg-video-tile__meta { gap: 3px !important; max-width: calc(100% - 18px); }
.psg-video-tile__meta strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px !important;
  font-weight: 560 !important;
  letter-spacing: 0 !important;
}
.psg-video-tile__meta em { font-size: 11px !important; font-weight: 400 !important; }
.psg-video-lightbox[aria-hidden="true"] { display: none !important; }
.psg-video-lightbox__close { z-index: 20 !important; }
.psg-video-author { font-size: clamp(18px, 5vw, 28px) !important; font-weight: 600 !important; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psg-video-lightbox__kicker { color: rgba(255,255,255,.72) !important; font-weight: 500 !important; }

.psg-post {
  border-radius: 18px !important;
  padding: 16px !important;
}
.psg-post__head {
  position: relative;
  align-items: center !important;
  gap: 10px !important;
}
.psg-profile-link--post,
.psg-post__head strong { font-size: 14px !important; font-weight: 600 !important; }
.psg-post__head span { font-size: 12px !important; font-weight: 400 !important; color: #8290a0 !important; }
.psg-avatar { width: 38px !important; height: 38px !important; min-width: 38px !important; border-radius: 999px !important; overflow: hidden !important; }
.psg-avatar--image { object-fit: cover !important; }
.psg-post-menu { margin-left: auto; position: relative; }
.psg-post-menu summary { list-style: none; cursor: pointer; color: #7b8794; font-size: 20px; line-height: 1; padding: 7px 8px; border-radius: 999px; }
.psg-post-menu summary::-webkit-details-marker { display: none; }
.psg-post-menu[open] summary { background: #f2f5f8; }
.psg-post-menu > div { position: absolute; right: 0; top: 34px; min-width: 130px; background: #fff; border: 1px solid rgba(17,32,51,.1); box-shadow: 0 14px 34px rgba(17,32,51,.14); border-radius: 14px; padding: 6px; z-index: 10; }
.psg-post-menu button { width: 100%; text-align: left; background: transparent !important; border: 0 !important; color: #25364a !important; padding: 10px 12px !important; border-radius: 10px !important; font-size: 13px !important; }
.psg-post-context { margin: 12px 0 8px !important; }
.psg-post-context button { font-size: 11px !important; font-weight: 560 !important; }
.psg-reactions--compact { display: flex !important; flex-wrap: nowrap !important; gap: 6px !important; padding: 8px 0 0 !important; border-top: 1px solid rgba(17,32,51,.07); }
.psg-reactions--compact button { flex: 1 1 0; min-width: 0; display: inline-flex !important; justify-content: center; align-items: center; gap: 4px; background: transparent !important; border: 0 !important; color: #5f6f7f !important; padding: 9px 4px !important; border-radius: 999px !important; font-size: 11px !important; font-weight: 500 !important; }
.psg-reactions--compact button:hover,
.psg-reactions--compact button:focus { background: rgba(11,122,225,.08) !important; color: #0B7AE1 !important; }
.psg-reactions--compact span { color: #0B7AE1; font-size: 14px; }
.psg-reactions--compact em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psg-reactions--compact b { font-weight: 600; }

.psg-category-wrap,
.psg-settings-nav { scroll-snap-type: none !important; touch-action: pan-x !important; overscroll-behavior-x: contain; }
.psg-category-wrap .psg-chip,
.psg-settings-nav button { flex: 0 0 auto; }
.psg-search input:focus { outline: 2px solid rgba(11,122,225,.18) !important; }

.psg-create { box-shadow: none !important; }
.psg-create > p { color: #607086 !important; max-width: 620px; }
.psg-create-principles { display: none !important; }
.psg-image-picker { display: grid !important; gap: 8px; border: 1px dashed rgba(11,122,225,.35); border-radius: 18px; padding: 16px; background: #f9fcff; cursor: pointer; }
.psg-image-picker input { width: 100%; }
.psg-image-picker em { color: #0B7AE1; font-style: normal; font-weight: 600; font-size: 13px; }

.psg-group-hero,
.psg-group-panel,
.psg-steward-panel,
.psg-guidelines,
.psg-boundary { box-shadow: none !important; }
.psg-group-hero {
  border-radius: 0px 0px 20px 20px !important;
}
.psg-group-meta, .psg-group-stats { font-size: 12px !important; font-weight: 500 !important; }
.psg-composer-head h3,
.psg-composer-head p { display: none !important; }
.psg-compose-options { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
.psg-compose-choice { min-width: 0 !important; width: 100% !important; }
.psg-compose-choice strong { font-size: 14px !important; }
.psg-compose-choice span { font-size: 12px !important; }

.psg-loading { display: grid !important; place-items: center !important; gap: 12px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.psg-loading:after { display: none !important; }
.psg-loading img { width: 44px; height: 44px; object-fit: contain; animation: psgSpin 1.1s linear infinite; }
.psg-loading span { color: #607086; font-size: 13px; font-weight: 500; }
@keyframes psgSpin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .psg-video-strip { gap: 10px !important; }
  .psg-video-tile { width: 118px !important; min-width: 118px !important; border-radius: 18px !important; }
  .psg-home-feed-head { display: block !important; }
  .psg-home-feed-head .psg-button { margin-top: 12px; }
  .psg-grid { grid-template-columns: 1fr !important; gap: 12px !important; padding: 30px 0px 40px 0px;
    background-color: #EBF1F6;}
  .psg-group-card { min-height: 0 !important; }
  .psg-group-card__image { min-height: 168px !important; }
  .psg-group-card p { font-size: 13px !important; line-height: 1.35 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .psg-card__actions--split { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .psg-post { padding: 14px !important; }
  .psg-reactions--compact button { font-size: 10.5px !important; }
  .psg-compose-options { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .psg-compose-choice { padding: 12px !important; }
}


@media (max-width: 720px) {
  .psg-shell {
    width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}




/* v32: focused app interaction + loader + compact metadata fixes */
:root {
  --psg-blue: #0B7AE1;
  --psg-blue-dark: #0B7AE1;
  --psg-blue-soft: #EAF4FF;
  --psg-bg: #F3F6FA;
  --psg-line: #E2E8F0;
}

.psg-video-tile__play,
.psg-video-tile__play--center {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  width: 54px !important;
  height: 54px !important;
  padding: 0 !important;
}
.psg-video-tile__play img,
.psg-video-tile__play--center img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.42)) !important;
}

.psg-video-tile__meta strong {
  font-size: 12.5px !important;
  font-weight: 520 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
}
.psg-video-tile__meta em {
  font-size: 11.5px !important;
  font-weight: 450 !important;
}

.psg-post__byline {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.psg-post__byline > span {
  display: block !important;
  min-width: 0;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #7B8794 !important;
  line-height: 1.25;
}
.psg-post-meta__group,
.psg-post-meta__category {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #263547 !important;
  font: inherit !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-decoration: none !important;
}
.psg-post-meta__category {
  color: #0B7AE1 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}
.psg-post-context--quiet {
  margin: 6px 0 10px 48px !important;
  gap: 0 !important;
}
.psg-post-context--quiet button {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  color: #0B7AE1 !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
}

.psg-loading {
  min-height: 100vh !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.psg-loading img {
  width: min(260px, 55vw) !important;
  height: auto !important;
  object-fit: contain !important;
  animation: none !important;
}
.psg-loading span {
  display: none !important;
}

.psg-upload-card {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 12px !important;
  border: 1.5px dashed rgba(11, 122, 225, .35) !important;
  border-radius: 22px !important;
  background: #fff !important;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.psg-upload-card:hover {
  border-color: rgba(11, 122, 225, .65) !important;
  background: #F8FBFF !important;
}
.psg-upload-card input[type="file"] {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.psg-upload-card__preview {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 20px;
  background: linear-gradient(135deg, #EAF4FF, #fff);
  background-size: cover;
  background-position: center;
  color: #0B7AE1;
  overflow: hidden;
}
.psg-upload-card__preview.has-image {
  color: #fff;
}
.psg-upload-card__plus {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #0B7AE1;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  font-weight: 300;
}
.psg-upload-card__preview.has-image > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 12px;
  font-weight: 520;
}
.psg-upload-card__text {
  display: grid;
  gap: 4px;
}
.psg-upload-card__text strong {
  color: #172638;
  font-size: 15px;
  font-weight: 620;
}
.psg-upload-card__text em {
  color: #6D7A89;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.psg-button,
.psg-link-button,
.psg-chip,
.psg-bottom-nav__item,
.psg-video-tile,
.psg-post-menu summary,
.psg-post-menu button,
.psg-compose-choice,
.psg-profile-link,
.psg-settings-nav button {
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
.psg-video-strip,
.psg-category-wrap,
.psg-settings-nav {
  touch-action: pan-x !important;
}

@media (max-width: 720px) {
  .psg-loading img { width: 55vw !important; max-width: 260px !important; }
  .psg-upload-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 114px;
  }
  .psg-upload-card__preview {
    width: 92px;
    height: 92px;
    border-radius: 18px;
  }
  .psg-post-context--quiet { margin-left: 48px !important; }
}


/* v33: asset plumbing fix. The actual uploaded images are now exposed to JS and the initial loader. */
.psg-loading,
.psg-loading--initial {
  min-height: 100vh !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.psg-loading img,
.psg-loading--initial img {
  display: block !important;
  width: min(55vw, 240px) !important;
  max-width: 55vw !important;
  height: auto !important;
  object-fit: contain !important;
}

.psg-loading span,
.psg-loading--initial span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #6B7684 !important;
}

.psg-video-tile__play,
.psg-video-tile__play--center {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.psg-video-tile__play img,
.psg-video-tile__play--center img {
  display: block !important;
  width: 54px !important;
  height: 54px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* v34: image/fallback and form diagnostics pass */
.psg-video-tile__play img,
.psg-video-tile__play--center img {
  width: 72px !important;
  height: 72px !important;
  max-width: 42% !important;
  max-height: 42% !important;
}
@media (max-width: 720px) {
  .psg-video-tile__play img,
  .psg-video-tile__play--center img {
    width: 74px !important;
    height: 74px !important;
  }
}
.psg-form-errors {
  display: none;
  grid-column: 1 / -1;
  margin: 2px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff5f5;
  border: 1px solid rgba(210, 65, 65, .18);
  color: #9d2828;
  font-size: 13px;
  line-height: 1.35;
}
.psg-form-errors.is-visible { display: grid; gap: 4px; }
.psg-form-errors p { margin: 0 !important; font-weight: 500 !important; }
.psg-upload-card--group,
.psg-upload-card--avatar {
  position: relative;
  border-style: solid !important;
  border-color: rgba(11, 122, 225, .16) !important;
  box-shadow: 0 10px 30px rgba(17, 34, 51, .045) !important;
}
.psg-upload-card--avatar {
  grid-template-columns: 84px minmax(0,1fr);
  min-height: 104px;
}
.psg-upload-card__preview--avatar,
.psg-upload-card--avatar .psg-upload-card__preview {
  width: 84px;
  height: 84px;
  border-radius: 999px !important;
  background-size: cover !important;
  background-position: center !important;
}
.psg-upload-card--group .psg-upload-card__preview {
  background-image: linear-gradient(135deg, rgba(11,122,225,.14), rgba(255,255,255,.98)), var(--psg-group-image, none);
}
.psg-loading,
.psg-loading--initial {
  min-height: 100vh !important;
  min-height: 100dvh !important;
}
.psg-loading img,
.psg-loading--initial img {
  width: min(55vw, 280px) !important;
}
@media (max-width: 720px) {
  .psg-loading img,
  .psg-loading--initial img {
    width: 55vw !important;
    max-width: 280px !important;
  }
}

/* v35: stabilize create-group transport and restore visible play icon sizing */
.psg-video-tile__play--center {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: 96px !important;
  height: 96px !important;
  max-width: none !important;
  max-height: none !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
.psg-video-tile__play--center img {
  width: 92px !important;
  height: 92px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: .96 !important;
}
@media (max-width: 720px) {
  .psg-video-tile__play--center {
    width: 86px !important;
    height: 86px !important;
  }
  .psg-video-tile__play--center img {
    width: 82px !important;
    height: 82px !important;
  }
}
.psg-create .psg-form-errors p:empty { display: none !important; }

/* v38: app confirmations + simplified single group screen */
.psg-app-confirm {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease;
}
.psg-app-confirm.is-open {
  opacity: 1;
  pointer-events: auto;
}
.psg-app-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 31, .46);
  backdrop-filter: blur(6px);
}
.psg-app-confirm__card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(17,32,51,.08);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(5,16,31,.24);
  padding: 22px;
  transform: translateY(8px) scale(.985);
  transition: transform .14s ease;
}
.psg-app-confirm.is-open .psg-app-confirm__card {
  transform: translateY(0) scale(1);
}
.psg-app-confirm__card h3 {
  margin: 0 0 8px !important;
  color: var(--psg-ink) !important;
  font-size: 20px !important;
  line-height: 1.12 !important;
  font-weight: 650 !important;
  letter-spacing: -.02em !important;
}
.psg-app-confirm__card p {
  margin: 0 !important;
  color: #607086 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
}
.psg-app-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.psg-button--danger {
  background: #d94040 !important;
  border-color: #d94040 !important;
  color: #fff !important;
}
.psg-report-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.psg-report-field span {
  color: #607086;
  font-size: 12px;
  font-weight: 650;
}
.psg-report-field input,
.psg-report-field textarea {
  width: 100%;
  border: 1px solid rgba(17,32,51,.12) !important;
  border-radius: 15px !important;
  background: #f9fbfd !important;
  color: var(--psg-ink) !important;
  padding: 12px 13px !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  outline: none !important;
  box-shadow: none !important;
}
.psg-report-field textarea { min-height: 92px; resize: vertical; }
.psg-report-field input:focus,
.psg-report-field textarea:focus {
  border-color: rgba(11,122,225,.45) !important;
  box-shadow: 0 0 0 4px rgba(11,122,225,.09) !important;
}

.psg-group-page--clean { gap: 14px !important; }
.psg-group-page--clean .psg-group-hero--minimal {
  box-shadow: none !important;
  border: 0 !important;
  min-height: 250px;
}
.psg-group-page--clean .psg-group-stats--two {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 112px)) !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
}
.psg-group-page--clean .psg-group-stats--two span {
  min-width: 0 !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
}
.psg-group-page--clean .psg-group-stats--two strong { font-weight: 650 !important; }
.psg-group-page--clean .psg-group-stats--two em { font-weight: 560 !important; letter-spacing: .04em !important; }
.psg-group-page--clean .psg-group-layout--clean {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  gap: 16px !important;
  padding: 10px 15px;
}
.psg-group-page--clean .psg-group-main--clean {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.psg-group-page--clean .psg-side-panel--clean { margin-top: 0 !important; }
.psg-group-page--clean .psg-side-card {
  box-shadow: none !important;
  border-color: rgba(17,32,51,.08) !important;
}
.psg-group-page--clean .psg-composer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}
.psg-composer-landing--minimal {
  background: #fff !important;
  border: 1px solid rgba(17,32,51,.08) !important;
  border-radius: 20px !important;
  padding: 12px !important;
  box-shadow: none !important;
}
.psg-compose-choices--inline {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
.psg-compose-choice--simple {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 50px !important;
  padding: 13px 12px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  background: #f8fbff !important;
  border: 1px solid rgba(17,32,51,.1) !important;
  box-shadow: none !important;
}
.psg-compose-choice--simple strong {
  font-size: 14px !important;
  font-weight: 650 !important;
  color: var(--psg-ink) !important;
  margin: 0 !important;
}
.psg-compose-choice--simple.is-active,
.psg-compose-choice--simple:focus-visible {
  border-color: rgba(11,122,225,.45) !important;
  background: rgba(11,122,225,.08) !important;
}
.psg-feed-head--clean {
  margin: 10px 0 10px !important;
  padding: 0 !important;
}
.psg-feed-head--clean strong { font-size: 16px !important; font-weight: 650 !important; }
.psg-feed-head--clean span { font-size: 12px !important; font-weight: 400 !important; }

@media (max-width: 720px) {
  .psg-app-confirm { padding: 16px; align-items: end; }
  .psg-app-confirm__card { border-radius: 24px 24px calc(24px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-bottom)); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .psg-group-page--clean .psg-group-hero--minimal { min-height: 230px; }
  .psg-group-page--clean .psg-group-stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .psg-compose-choices--inline { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .psg-compose-choice--simple { min-height: 48px !important; padding: 12px 8px !important; }
}


/* v40 public profile redesign */
.psg-public-profile{max-width:720px;margin:0 auto;padding:0 0 96px;color:#101820}.psg-public-profile__hero{overflow:hidden;border-radius:30px;background:linear-gradient(180deg,rgba(11,122,225,.22) 0%,rgba(255,255,255,.96) 44%,#fff 100%);padding:20px 18px 22px;border:1px solid rgba(11,122,225,.09)}.psg-public-profile__topbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.psg-public-profile__name,.psg-public-profile__menu{appearance:none;border:0;background:transparent!important;color:#101820;font-weight:650;padding:8px 0;box-shadow:none!important}.psg-public-profile__name{font-size:18px}.psg-public-profile__name span{font-size:13px;color:#667085}.psg-public-profile__top-actions{display:flex;align-items:center;gap:12px}.psg-public-profile__edit{appearance:none;border:0;border-radius:999px;background:#fff!important;color:#101820!important;padding:11px 22px;font-weight:650;box-shadow:0 8px 24px rgba(11,122,225,.11)!important}.psg-public-profile__menu{font-size:30px;line-height:1;letter-spacing:-4px;transform:rotate(90deg);width:42px;text-align:center}.psg-public-profile__identity{text-align:center;padding:34px 0 18px}.psg-public-profile__avatar{width:128px;height:128px;border-radius:50%;object-fit:cover;background:#eaf4ff;border:4px solid rgba(255,255,255,.75);box-shadow:0 14px 36px rgba(11,122,225,.13)}.psg-public-profile__identity h2{margin:18px 0 3px;font-size:28px;line-height:1.05;font-weight:720}.psg-public-profile__identity p{margin:0;color:#8a9099;font-size:16px}.psg-public-profile__bio{max-width:420px;margin:10px auto 0!important;color:#4d5865!important}.psg-public-profile__stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(16,24,32,.08);border-bottom:1px solid rgba(16,24,32,.08);margin:8px 0 18px}.psg-public-profile__stats article{text-align:center;padding:16px 8px}.psg-public-profile__stats strong{display:block;font-size:23px;font-weight:720;color:#101820}.psg-public-profile__stats span{display:block;font-size:14px;color:#8a9099;margin-top:3px}.psg-public-profile__story-row{display:flex;gap:12px;overflow-x:auto;padding:6px 0 2px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}.psg-public-story,.psg-tattoo-tile{flex:0 0 92px;width:92px;height:108px;border-radius:22px;border:0;background:#f6f8fa!important;overflow:hidden;position:relative;box-shadow:none!important}.psg-public-story{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;color:#101820!important}.psg-public-story__placeholder{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#0B7AE1;color:#fff;font-size:28px;line-height:1}.psg-public-story__text{font-size:12px;line-height:1.25;color:#334155;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.psg-public-story em{font-style:normal;font-size:12px;color:#8a9099;margin-top:8px}.psg-tattoo-gallery{display:flex;gap:12px}.psg-tattoo-tile{display:block;background:#f3f5f7!important;border:1px dashed rgba(16,24,32,.16)}.psg-tattoo-tile.has-image{background-size:cover!important;background-position:center!important;border:0}.psg-public-profile__tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:0px;border-bottom:1px solid rgba(16,24,32,.12); background-color: #ebf1f6;}.psg-public-profile__tabs button{appearance:none;border:0;background:transparent!important;padding:16px 8px;color:#8a9099!important;font-weight:650;font-size:17px;box-shadow:none!important}.psg-public-profile__tabs button.is-active{color:#101820!important;box-shadow:inset 0 -2px 0 #101820!important}

.psg-public-profile__content {
  padding: 18px 15px;
  background-color: #ebf1f6;
}
.psg-public-profile__story-card{background:#fff;border-radius:24px;padding:22px;border:1px solid rgba(16,24,32,.06)}.psg-public-profile__story-card h3{font-size:18px;margin:0 0 8px;font-weight:700}.psg-public-profile__story-card p{margin:0;color:#334155;line-height:1.55}.psg-public-profile__empty{padding:28px;text-align:center;background:#fff;border-radius:24px}.psg-settings-view-profile{margin-top:12px}.psg-upload-card--tattoos{align-items:center}.psg-upload-card__tattoos{display:flex;gap:10px;min-height:82px}.psg-upload-card__tattoos i{display:block;width:72px;height:72px;border-radius:18px;background:#f3f5f7;border:1px dashed rgba(16,24,32,.16);background-size:cover;background-position:center}.psg-upload-card__tattoos i.has-image{border:0}@media(max-width:640px){.psg-public-profile{padding:0 0 calc(92px + env(safe-area-inset-bottom))}.psg-public-profile__hero{border-radius:0 0 28px 28px;border-left:0;border-right:0;border-top:0;padding:18px 16px 22px}.psg-public-profile__avatar{width:112px;height:112px}.psg-public-profile__identity h2{font-size:25px}.psg-public-profile__stats strong{font-size:21px}.psg-public-story,.psg-tattoo-tile{flex-basis:86px;width:86px;height:102px}.psg-profile-avatar{border-radius:50%!important}}

/* v42 story-style video posting flow */
.psg-video-story-flow .psg-composer-form__top,
.psg-video-story-flow .psg-video-privacy-panel,
.psg-video-story-flow .psg-recorder { display: none !important; }
.psg-video-story-flow {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.psg-video-note-field { margin-bottom: 12px !important; }
.psg-composer-meta-row--quiet {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 8px 0 14px !important;
}
.psg-story-video-actions {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 12px 0 !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 2px !important;
}
.psg-story-upload-box {
  appearance: none !important;
  width: 118px !important;
  min-width: 118px !important;
  height: 118px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(16, 24, 32, .07) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  color: #0B7AE1 !important;
  padding: 12px !important;
  cursor: pointer !important;
  text-align: center !important;
  -webkit-tap-highlight-color: transparent !important;
}
.psg-story-upload-box:hover,
.psg-story-upload-box:focus-visible {
  transform: none !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(11, 122, 225, .13) !important;
}
.psg-story-upload-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  color: #0B7AE1 !important;
}
.psg-story-upload-icon svg { width: 38px !important; height: 38px !important; display: block !important; }
.psg-story-upload-icon--record { color: #EF4444 !important; }
.psg-story-upload-box em {
  font-style: normal !important;
  color: #667085 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: lowercase !important;
}
.psg-story-video-preview { margin: 12px 0 !important; }
.psg-video-ready--story {
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: #fff !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 26px rgba(16, 24, 32, .08) !important;
}
.psg-video-ready--story video {
  display: block !important;
  width: 100% !important;
  max-height: 420px !important;
  border-radius: 0 !important;
  background: #000 !important;
}
.psg-video-ready__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 14px !important;
}
.psg-video-ready__meta span {
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.psg-composer-preview--quiet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 8px !important;
}
.psg-composer-preview--quiet span { font-size: 12px !important; font-weight: 500 !important; color: #667085 !important; }
.psg-composer-preview--quiet p { font-size: 14px !important; color: #344054 !important; }

.psg-camera-view {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #000 !important;
  z-index: 999999 !important;
  display: none !important;
}
.psg-camera-view.is-open { display: block !important; }
.psg-camera-preview-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
}
.psg-camera-preview,
.psg-camera-canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.psg-camera-preview {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.psg-camera-canvas {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}
.psg-camera-header {
  position: absolute !important;
  top: env(safe-area-inset-top, 0) !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 18px !important;
  z-index: 10 !important;
}
.psg-camera-close {
  appearance: none !important;
  border: 0 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.34) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: none !important;
}
.psg-camera-close svg { width: 24px !important; height: 24px !important; }
.psg-camera-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  padding: 24px 0 calc(env(safe-area-inset-bottom, 0) + 28px) !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.68) 100%) !important;
}
.psg-pixelation-control {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  padding: 0 clamp(18px, 6vw, 48px) !important;
  color: #fff !important;
}
.psg-pixelation-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
.psg-pixelation-meta label {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.72) !important;
  margin: 0 !important;
}
.psg-pixelation-meta span {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
}
.psg-pixel-slider {
  display: block !important;
  width: 100% !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.28) !important;
  border: 0 !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.psg-pixel-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #0B7AE1 !important;
  box-shadow: 0 2px 12px rgba(11,122,225,.45) !important;
}
.psg-pixel-slider::-moz-range-thumb {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #0B7AE1 !important;
  border: 0 !important;
  box-shadow: 0 2px 12px rgba(11,122,225,.45) !important;
}
.psg-record-controls {
  display: grid !important;
  grid-template-columns: 1fr 86px 1fr !important;
  align-items: center !important;
  padding: 0 20px !important;
}
.psg-record-timer,
.psg-record-spacer {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  letter-spacing: .03em !important;
}
.psg-record-timer { justify-self: end !important; padding-right: 8px !important; min-width: 48px !important; }
.psg-record-btn {
  appearance: none !important;
  width: 82px !important;
  height: 82px !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  place-items: center !important;
}
.psg-record-circle { width: 82px !important; height: 82px !important; display: block !important; }
.psg-record-bg { fill: none !important; stroke: rgba(255,255,255,.45) !important; stroke-width: 4 !important; }
.psg-record-progress { fill: none !important; stroke: #EF4444 !important; stroke-width: 4 !important; transform: rotate(-90deg) !important; transform-origin: center !important; transition: stroke-dasharray .08s linear !important; }
.psg-record-inner { fill: #EF4444 !important; transition: all .2s ease !important; }
.psg-record-center { fill: #fff !important; transition: all .2s ease !important; }
.psg-record-btn.is-recording .psg-record-center { fill: #EF4444 !important; }
.psg-record-btn.is-recording .psg-record-inner { r: 22 !important; }

@media (max-width: 640px) {
  .psg-story-upload-box { width: 108px !important; min-width: 108px !important; height: 108px !important; border-radius: 20px !important; }
  .psg-story-upload-icon, .psg-story-upload-icon svg { width: 34px !important; height: 34px !important; }
  .psg-video-story-flow .psg-composer__footer--actions { grid-template-columns: 1fr 1fr !important; }
}

/* v43 full-screen composer and video post transport cleanup */
body.psg-post-cover-open {
  overflow: hidden !important;
  touch-action: none !important;
}
.psg-post-cover {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999990 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f6f8fb !important;
  color: var(--psg-ink) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-rows: auto 1fr auto !important;
  overflow: hidden !important;
}
.psg-post-cover__top {
  height: calc(64px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: 72px 1fr 72px !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 1px solid rgba(15, 23, 42, .08) !important;
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
.psg-post-cover__top strong {
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  font-weight: 700 !important;
  color: #101828 !important;
}
.psg-post-cover__cancel {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--psg-blue) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  padding: 10px 0 !important;
  text-align: left !important;
  min-height: 44px !important;
  cursor: pointer !important;
}
.psg-post-cover__body {
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.psg-post-cover__body--video {
  gap: 16px !important;
}
.psg-post-cover__field,
.psg-post-cover__field textarea {
  width: 100% !important;
}
.psg-post-cover__textarea {
  min-height: calc(100dvh - 180px) !important;
  resize: none !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 20px !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: #101828 !important;
}
.psg-post-cover__textarea::placeholder,
.psg-post-cover .psg-textarea::placeholder {
  color: #98a2b3 !important;
}
.psg-post-cover__footer {
  min-height: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: rgba(255,255,255,.96) !important;
  border-top: 1px solid rgba(15, 23, 42, .08) !important;
}
.psg-post-cover__footer .psg-char-count {
  font-size: 12px !important;
  color: #667085 !important;
  font-weight: 500 !important;
}
.psg-post-cover__footer .psg-button {
  min-width: 112px !important;
  min-height: 46px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}
.psg-post-cover .psg-story-video-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.psg-post-cover .psg-story-upload-box {
  min-height: 128px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(11,122,225,.18) !important;
  background: #fff !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  color: #101828 !important;
}
.psg-post-cover .psg-story-upload-icon {
  width: 48px !important;
  height: 48px !important;
  color: var(--psg-blue) !important;
}
.psg-post-cover .psg-story-video-preview {
  min-height: 0 !important;
}
.psg-post-cover .psg-video-ready--story,
.psg-post-cover .psg-video-ready {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.psg-post-cover .psg-video-ready video {
  width: 100% !important;
  max-height: 42vh !important;
  border-radius: 24px !important;
  background: #000 !important;
}
.psg-post-cover .psg-video-ready__meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 2px 0 !important;
}
.psg-post-cover .psg-video-note-field span,
.psg-post-cover .psg-composer-preview,
.psg-post-cover .psg-composer-meta-row {
  display: none !important;
}
.psg-post-cover .psg-video-note-field .psg-textarea {
  min-height: 112px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}
@media (max-width: 640px) {
  .psg-post-cover__body { padding: 14px !important; }
  .psg-post-cover .psg-story-video-actions { grid-template-columns: 1fr 1fr !important; }
  .psg-post-cover .psg-story-upload-box { min-height: 104px !important; padding: 16px 10px !important; }
  .psg-post-cover__textarea { font-size: 18px !important; min-height: calc(100dvh - 165px) !important; }
}


/* v44: keep the posting/video interface above the app. No more feed cards or bottom nav covering the camera/preview. */
html.psg-post-cover-open,
html.psg-camera-open,
body.psg-post-cover-open,
body.psg-camera-open {
  overflow: hidden !important;
  height: 100% !important;
}

body.psg-post-cover-open .psg-bottom-nav,
body.psg-camera-open .psg-bottom-nav,
html.psg-post-cover-open .psg-bottom-nav,
html.psg-camera-open .psg-bottom-nav {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body.psg-post-cover-open .psg-shell,
body.psg-camera-open .psg-shell {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100vw !important;
}

body.psg-post-cover-open [data-composer] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

body.psg-post-cover-open .psg-post-cover {
  z-index: 2147483001 !important;
  isolation: isolate !important;
}

body.psg-camera-open .psg-camera-view,
html.psg-camera-open .psg-camera-view,
.psg-camera-view.is-open {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483600 !important;
  background: #000 !important;
  isolation: isolate !important;
}

body.psg-camera-open .psg-camera-view *,
html.psg-camera-open .psg-camera-view * {
  visibility: visible !important;
}

body.psg-camera-open .psg-post,
body.psg-camera-open .psg-feed,
body.psg-camera-open .psg-group-side,
body.psg-camera-open .psg-group-hero,
body.psg-camera-open .psg-guidelines,
body.psg-camera-open .psg-boundary {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.psg-camera-open [data-composer],
body.psg-camera-open .psg-post-cover,
body.psg-camera-open .psg-camera-view,
body.psg-camera-open .psg-camera-view * {
  visibility: visible !important;
  pointer-events: auto !important;
}

.psg-camera-header,
.psg-camera-controls {
  z-index: 2147483601 !important;
}

/* v45: bring Groups video composer back to the Story Recorder interaction model */
.psg-post-cover .psg-story-media-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2px 2px 10px !important;
  margin: 0 0 10px !important;
  scroll-snap-type: x proximity !important;
}
.psg-story-box-wrap,
.psg-story-video-preview-slot {
  flex: 0 0 auto !important;
  width: 120px !important;
  min-width: 120px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  scroll-snap-align: start !important;
}
.psg-post-cover .psg-story-upload-box {
  width: 120px !important;
  height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  border-radius: 0 !important;
  border: 1px solid rgba(11, 122, 225, .16) !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(16, 24, 32, .05) !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  color: #88A3CB !important;
}
.psg-post-cover .psg-story-upload-box:active,
.psg-post-cover .psg-story-upload-box:focus-visible {
  border-color: rgba(11,122,225,.32) !important;
  box-shadow: 0 4px 14px rgba(11,122,225,.1) !important;
}
.psg-post-cover .psg-story-upload-icon,
.psg-post-cover .psg-story-upload-icon svg {
  width: 34px !important;
  height: 34px !important;
  color: #88A3CB !important;
}
.psg-story-record-dot {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #EF4444 !important;
  display: block !important;
}
.psg-story-upload-label {
  display: block !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  color: #88A3CB !important;
  text-transform: lowercase !important;
  text-align: center !important;
}
.psg-story-video-preview-slot:not(.has-video) {
  display: none !important;
}
.psg-story-preview-box {
  position: relative !important;
  width: 120px !important;
  height: 120px !important;
  overflow: hidden !important;
  background: #000 !important;
  border: 1px solid rgba(11,122,225,.16) !important;
  box-shadow: 0 2px 8px rgba(16,24,32,.05) !important;
}
.psg-story-preview-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  max-height: none !important;
}
.psg-story-preview-remove {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.psg-story-preview-play {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 48px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(0,0,0,.45) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 24px !important;
  pointer-events: none !important;
}
.psg-post-cover__body--video {
  padding-bottom: 92px !important;
}
.psg-post-cover .psg-video-note-field .psg-textarea {
  min-height: 132px !important;
  border: 1px solid rgba(11,122,225,.14) !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.psg-post-cover__footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
}
.psg-post-cover__footer .psg-button {
  background: #0B7AE1 !important;
  color: #fff !important;
}
@media (max-width: 640px) {
  .psg-story-box-wrap,
  .psg-story-video-preview-slot,
  .psg-post-cover .psg-story-upload-box,
  .psg-story-preview-box {
    width: 112px !important;
    min-width: 112px !important;
    height: 112px !important;
    min-height: 112px !important;
    max-width: 112px !important;
    max-height: 112px !important;
  }
  .psg-post-cover .psg-story-media-row {
    gap: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* v47: Home returns to group discovery model instead of a post/blog feed. */
.psg-home--pivot {
  display: grid;
  gap: 0;
}

.psg-home--pivot .psg-video-rail--home {
  margin-bottom: 0 !important;
}

.psg-home-pivot-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 calc(var(--psg-pad, 0px) * -1);
  background: var(--psg-blue);
  border-radius: 0;
  min-height: 60px;
  position: relative;
  overflow: visible;
}

.psg-home-pivot-tabs button {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  background: var(--psg-blue) !important;
  color: rgba(255, 255, 255, .8) !important;
  cursor: pointer;
  display: grid;
  gap: 0px;
  place-items: center;
  min-height: 86px;
  padding: 12px 6px 14px !important;
  position: relative;
  text-align: center;
  touch-action: manipulation;
}

.psg-home-pivot-tabs button + button {
  border-left: 1px solid rgba(255, 255, 255, .16) !important;
}

.psg-home-pivot-tabs button span {
  color: inherit;
  display: block;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 650;
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psg-home-pivot-tabs button strong {
  color: inherit !important;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 650 !important;
  line-height: 1;
}

.psg-home-pivot-tabs button.is-active {
  background: #fff !important;
  color: #202b36 !important;
}

.psg-home-pivot-tabs button.is-active strong {
  color: #3A444E !important;
}

.psg-home-pivot-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -19px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 19px solid transparent;
  border-right: 19px solid transparent;
  border-top: 20px solid #fff;
  z-index: 4;
}

.psg-home-pivot-content {
  background: var(--psg-bg);
  padding: 36px 0 calc(110px + env(safe-area-inset-bottom));
  min-height: 42vh;
}

.psg-home-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 calc(var(--psg-pad, 0px) * -1);
}

.psg-home-channel-card {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #e4eef7 !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.2), rgba(8,24,44,.56)), var(--psg-channel-image, linear-gradient(135deg, #dbe8f3, #f8fbff)) !important;
  background-position: center !important;
  background-size: cover !important;
  color: #fff !important;
  cursor: pointer;
  display: grid;
  min-height: 188px;
  overflow: hidden;
  padding: 18px 14px 20px !important;
  place-content: end center;
  position: relative;
  text-align: center;
  touch-action: pan-y;
}

.psg-home-channel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 122, 225, .12);
  pointer-events: none;
}

.psg-home-channel-card strong {
  color: #fff !important;
  font-size: clamp(20px, 4.8vw, 30px) !important;
  font-weight: 650 !important;
  letter-spacing: .025em;
  line-height: 1.05;
  max-width: 100%;
  position: relative;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,.38);
  z-index: 2;
}

.psg-home-channel-card__count {
  color: rgba(255,255,255,.86) !important;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
  position: relative;
  text-shadow: 0 2px 12px rgba(0,0,0,.32);
  z-index: 2;
}

.psg-home-list-panel {
  display: grid;
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 34px);
}

.psg-home-list-panel h3 {
  color: #768797 !important;
  font-size: clamp(15px, 4vw, 17px) !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  margin: 22px 0 2px !important;
  text-transform: uppercase;
}

.psg-home-group-list-modern {
  display: grid;
  gap: 12px;
}

.psg-home-list-group-card {
  appearance: none !important;
  -webkit-appearance: none !important;
  align-items: center;
  background: #fff !important;
    background-clip: border-box;
  border: none !important;
  border-radius: 0px !important;
  box-shadow: 0 8px 20px rgba(22, 42, 65, 0.05) !important;
  color: #101a26 !important;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 60px !important;
  padding: 0 18px 0 0 !important;
  text-align: left;
  touch-action: manipulation;
}

.psg-home-list-group-card__image {
  align-self: stretch;
  background-image: linear-gradient(180deg, rgba(255,255,255,.05), rgba(6,19,35,.2)), var(--psg-group-image, linear-gradient(135deg,#dcebf6,#f8fbff));
  background-position: center;
  background-size: cover;
  display: block;
  min-height: 104px;
}

.psg-home-list-group-card__text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.psg-home-list-group-card__text strong {
  color: #101a26 !important;
  font-size: clamp(17px, 4vw, 23px) !important;
  font-weight: 500 !important;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psg-home-list-group-card__text small {
  color: #71869c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.psg-home-create-pill {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
    background-clip: border-box;
  border: 1px solid rgba(75, 118, 154, .55) !important;
  border-radius: 999px !important;
  color: #7c9ab5 !important;
  cursor: pointer;
  font-size: clamp(15px, 4vw, 16px);
  font-weight: 500 !important;
  letter-spacing: .02em;
  min-height: 40px;
  padding: 7px 20px !important;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

.psg-home-inline-empty {
  margin: 0 0 10px;
}

.psg-home-pivot-empty {
  padding: 0 clamp(18px, 5vw, 34px);
}

.psg-inline-loader {
  align-items: center;
  color: #64798c;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 120px;
}

.psg-inline-loader img {
  height: 42px;
  width: 42px;
  object-fit: contain;
}

@media (max-width: 720px) {
  .psg-home-pivot-tabs { min-height: 82px; }
  .psg-home-pivot-tabs button { min-height: 82px; }
  .psg-home-pivot-content { padding-top: 32px; }
  .psg-home-channel-card { min-height: 196px; }
  .psg-home-list-group-card { grid-template-columns: 86px minmax(0, 1fr); min-height: 96px; }
  .psg-home-list-group-card__image { min-height: 70px; }
}

.psg-video-rail--home{background-color:#ffffff; padding: 10px 0px 10px 10px !important

}
/* v48: home pivot spacing pass from QA */
.psg-home--pivot {
  --psg-home-edge: clamp(18px, 4.8vw, 32px);
  gap: 0 !important;
}
.psg-home--pivot .psg-video-rail--home {
  padding-left: var(--psg-home-edge) !important;
  padding-right: var(--psg-home-edge) !important;
  margin-bottom: 0 !important;
}
.psg-home--pivot .psg-video-rail--home .psg-video-strip {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.psg-home--pivot .psg-video-rail--home .psg-video-tile,
.psg-home--pivot .psg-video-rail--home .psg-video-empty-card {
  border-radius: 0 !important;
}
.psg-home-pivot-tabs {
  margin: 0 var(--psg-home-edge) !important;
  width: auto !important;
  min-height: 82px !important;
  z-index: 3 !important;
}
.psg-home-pivot-tabs button {
  min-height: 82px !important;
  padding: 11px 6px 13px !important;
}
.psg-home-pivot-tabs button.is-active::after {
  bottom: -18px !important;
  border-left-width: 18px !important;
  border-right-width: 18px !important;
  border-top-width: 19px !important;
  z-index: 10 !important;
}
.psg-home-pivot-content {
  padding: 0 var(--psg-home-edge) calc(110px + env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}
.psg-home-channel-grid {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 0 !important;
}
.psg-home-channel-card {
  min-height: 176px !important;
  padding: 15px 10px 17px !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,.36), rgba(11,122,225,.16) 34%, rgba(5,23,43,.68)), var(--psg-channel-image, linear-gradient(135deg, #dbe8f3, #f8fbff)) !important;
}
.psg-home-channel-card::before {
  background: rgba(11, 122, 225, .18) !important;
}
.psg-home-channel-card strong {
  font-size: clamp(17px, 4.1vw, 24px) !important;
  letter-spacing: .02em !important;
  line-height: 1.04 !important;
}
.psg-home-channel-card__count {
  font-size: 11px !important;
  margin-bottom: 6px !important;
}
.psg-home-list-panel,
.psg-home-pivot-empty {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media (max-width: 720px) {
  .psg-home--pivot { --psg-home-edge: 24px; }
  .psg-home-pivot-tabs { min-height: 80px !important; }
  .psg-home-pivot-tabs button { min-height: 80px !important; }
  .psg-home-pivot-tabs button span { font-size: 13px !important; }
  .psg-home-pivot-tabs button strong { font-size: 26px !important; }
  .psg-home-channel-card { min-height: 190px !important; }
  .psg-home-channel-card strong { font-size: clamp(18px, 5.5vw, 27px) !important; }
}


/* v49: correct Home pivot alignment. One gutter, smaller channel titles, no tab/content gap. */
.psg-home--pivot {
  --psg-home-edge: 24px !important;
  gap: 0 !important;
}
@media (max-width: 480px) {
  .psg-home--pivot { --psg-home-edge: 24px !important; }
}
.psg-home--pivot .psg-video-rail--home,
.psg-home--pivot .psg-video-rail {
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin: 0 !important;
}
.psg-home--pivot .psg-video-rail--home .psg-video-strip {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.psg-home-pivot-tabs {
  margin: 0px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 60px !important;
  overflow: visible !important;
  z-index: 8 !important;
}
.psg-home-pivot-tabs button {
  min-width: 0 !important;
  min-height: 60px !important;
  padding: 5px 6px 5px !important;
}
.psg-home-pivot-tabs button span {
  font-size: 13px !important;
  font-weight: 500 !important;
}
.psg-home-pivot-tabs button strong {
  font-size: 18px !important;
  font-weight: 600 !important;
}
.psg-home-pivot-tabs button.is-active::after {
  bottom: -20px !important;
  border-left-width: 20px !important;
  border-right-width: 20px !important;
  border-top-width: 21px !important;
  z-index: 20 !important;
}
.psg-home-pivot-content {
  margin: 0 !important;
  padding: 0 var(--psg-home-edge) calc(110px + env(safe-area-inset-bottom)) !important;
  background: #e6ebf2 !important;
  position: relative !important;
  z-index: 1 !important;
}
.psg-home-channel-grid {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 0 !important;
}
.psg-home-list-panel {
  padding: 0 !important;
  margin: 0 !important;
}
.psg-feed--home-posts {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.psg-home-channel-card {
  min-height: 178px !important;
  padding: 16px 10px 18px !important;
  background-image: linear-gradient(180deg, rgba(11,122,225,.18), rgba(4,19,35,.68)), var(--psg-channel-image, linear-gradient(135deg, #dbe8f3, #f8fbff)) !important;
}
.psg-home-channel-card::before {
  background: rgba(11, 122, 225, .18) !important;
}
.psg-home-channel-card strong {
  font-size: clamp(17px, 4.2vw, 22px) !important;
  font-weight: 650 !important;
  letter-spacing: .02em !important;
  line-height: 1.05 !important;
}
.psg-home-channel-card__count {
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-bottom: 6px !important;
}
@media (max-width: 390px) {
  .psg-home--pivot { --psg-home-edge: 22px !important; }
  .psg-home-channel-card strong { font-size: 16px !important; }
  .psg-home-pivot-tabs button span { font-size: 13px !important; }
  .psg-home-pivot-tabs button strong { font-size: 24px !important; }
}

/* v50: remove horizontal padding from Home pivot content per QA. */
.psg-home-pivot-content {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* v51: real Channel screens + revised app nav */
.psg-channel-page {
  padding: 0px max(0px, env(safe-area-inset-left)) calc(108px + env(safe-area-inset-bottom));
  background: var(--psg-bg, #f4f7fb);
}
.psg-channel-hero {
  min-height: 210px;
  border-radius: 0;
  margin: 0 0 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(11,122,225,.18), rgba(4,19,35,.78)), var(--psg-channel-image, linear-gradient(135deg, #0B7AE1, #074d8f));
  background-size: cover;
  background-position: center;
}
.psg-channel-hero .psg-back {
  align-self: flex-start;
  background: rgba(255,255,255,.92) !important;
  color: #0f1c2e !important;
}
.psg-channel-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1;
  color: #fff;
  letter-spacing: .01em;
}
.psg-channel-hero p {
  max-width: 680px;
  margin: 0 0 8px;
  color: rgba(255,255,255,.92);
  font-weight: 450;
}
.psg-channel-hero small {
  color: rgba(255,255,255,.9);
  font-weight: 600;
}
.psg-channel-create-container {
  margin: 15px 15px 0px;
}
.psg-channel-create {
  width: 100%;
  margin: 0;
}
.psg-channel-groups {
  gap: 12px;
  padding: 20px 15px !important;
}
.psg-alerts-page { padding: 18px 18px calc(108px + env(safe-area-inset-bottom)); }
.psg-search-tools .psg-actionbar { box-shadow: none; border: 0; background: transparent; padding: 30px 15px 0px 15px}
.psg-admin-channel-form { border: 1px solid #dcdcde; border-radius: 8px; padding: 14px 16px; margin: 12px 0 18px; max-width: 720px; background: #f8fafc; }

@media (max-width: 720px) {
  .psg-tabs .psg-tab[data-tab="connections"],
  .psg-tabs .psg-tab[data-tab="settings"] { display: none !important; }
}

/* v52: real channel icons centered on channel tiles */
@media (min-width: 900px) {
  .psg-home-channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
.psg-home-pivot-content--channels {
  padding-top: 0 !important;
}
.psg-home-pivot-content--channels .psg-home-channel-grid {
  margin-top: 0 !important;
}
.psg-home-pivot-content--groups,
.psg-home-pivot-content--posts {
 padding: 40px 15px !important;
}
.psg-home-channel-card {
  place-content: center !important;
  padding: 18px 12px 18px !important;
}
.psg-home-channel-card__icon {
  width: 54px;
  height: 54px;
  background-color: #fff;
  -webkit-mask: var(--psg-channel-icon, url('../icons/channel-default.svg')) center / contain no-repeat;
  mask: var(--psg-channel-icon, url('../icons/channel-default.svg')) center / contain no-repeat;
  display: block;
  margin: 0 auto 18px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 10px rgba(255,255,255,.24));
}
.psg-home-channel-card__count {
  order: 3;
  margin: 0px 0 0 !important;
}
.psg-home-channel-card strong {
  order: 2;
}
@media (max-width: 640px) {
  .psg-home-channel-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
  }
  .psg-home-channel-card strong {
    font-size: 15px !important;
    line-height: 1.08 !important;
  }
}

/* v53: profile polish and story/tattoo display fixes */
.psg-public-profile {
  max-width: 720px !important;
  margin: 0 auto !important;
  color: #101820 !important;
  background-color: #ebf1f6;
}   
.psg-public-profile__hero {
  border: 0 !important;
  border-radius: 30px !important;
  background: radial-gradient(circle at 50% 8%, rgba(255,255,255,.74) 0, rgba(255,255,255,.42) 26%, transparent 48%), linear-gradient(180deg, #0C7CE4 0%, #0C7CE440 34%, #fff 68%) !important;
  box-shadow: inset 0 -1px 0 rgba(16,24,32,.06) !important;
  padding: 26px 26px 28px !important;
}
.psg-public-profile__topbar {
  align-items: center !important;
  gap: 14px !important;
}
.psg-public-profile__name {
  align-items: center !important;
  display: inline-flex !important;
  gap: 9px !important;
  font-size: 21px !important;
  font-weight: 760 !important;
  color: #101820 !important;
}
.psg-public-profile__chevron {
  width: 10px !important;
  height: 10px !important;
  border-right: 3px solid currentColor !important;
  border-bottom: 3px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
}
.psg-public-profile__edit {
  min-height: 35px !important;
  padding: 5px 20px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.psg-public-profile__menu {
  display: inline-grid !important;
  gap: 8px !important;
  place-content: center !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}
.psg-public-profile__menu span {
  display: block !important;
  width: 32px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #101820 !important;
}
.psg-public-profile__identity {
  padding: 44px 0 20px !important;
}
.psg-public-profile__avatar {
  width: 138px !important;
  height: 138px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid rgba(255,255,255,.72) !important;
  box-shadow: 0 18px 42px rgba(16,24,32,.14) !important;
}
.psg-public-profile__identity h2 {
  margin-top: 22px !important;
  font-size: clamp(28px, 6vw, 38px) !important;
  font-weight: 820 !important;
  letter-spacing: 0 !important;
}
.psg-public-profile__identity p {
  font-size: 18px !important;
  color: #8d9298 !important;
}
.psg-public-profile__stats {
  margin: 18px 0 24px !important;
  border-color: rgba(16,24,32,.08) !important;
}
.psg-public-profile__stats article {
  padding: 20px 8px !important;
}
.psg-public-profile__stats strong {
  font-size: 27px !important;
  font-weight: 820 !important;
}
.psg-public-profile__stats span {
  font-size: 15px !important;
  color: #8d9298 !important;
}
.psg-public-profile__story-row {
  gap: 14px !important;
  padding: 14px 0 4px !important;
}
.psg-public-story,
.psg-tattoo-tile {
  flex: 0 0 116px !important;
  width: 116px !important;
  height: 138px !important;
  border-radius: 22px !important;
}
.psg-public-story {
  background: rgb(243, 245, 247) !important;
  box-shadow: ;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 10px !important;
}
.psg-public-story__avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background-color: #eaf4ff !important;
  background-position: center !important;
  background-size: cover !important;
  display: block !important;
  border: 2px solid #fff;
}
.psg-public-story__add {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  margin-top: -32px !important;
  margin-left: 42px !important;
  border-radius: 999px !important;
  background: #26e0c0 !important;
  color: #101820 !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(16,24,32,.14) !important;
}
.psg-public-story em {
  margin: 0 !important;
  color: #858a91 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.psg-tattoo-gallery {
  gap: 14px !important;
}
.psg-tattoo-tile {
  appearance: none !important;
  background-size: cover !important;
  background-position: center !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: default;
  padding: 0 !important;
}
.psg-tattoo-tile.has-image {
  background-image: var(--psg-tattoo-image) !important;
  background-color: #f3f5f7 !important;
  background-size: cover !important;
  background-position: center !important;
  cursor: zoom-in;
}
.psg-public-profile__tabs {
  padding-top: 20px !important;
}
.psg-public-profile__tabs button {
  font-size: 20px !important;
  padding: 18px 8px !important;
}
.psg-public-profile__story-card {
  border: 0 !important;
  border-radius: 26px !important;
  padding: 24px !important;
  box-shadow: 0 10px 28px rgba(16,24,32,.06) !important;
}
.psg-upload-card--tattoos {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
}
.psg-upload-card__tattoos {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  min-height: 0 !important;
  width: 100% !important;
}
.psg-upload-card__tattoos i {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 96px !important;
  border-radius: 20px !important;
  background-color: #f3f7fb !important;
  background-position: center !important;
  background-size: cover !important;
}
.psg-upload-card__tattoos i.has-image {
  background-image: var(--psg-tattoo-image) !important;
  background-color: #f3f5f7 !important;
}
.psg-upload-card--tattoos .psg-upload-card__text {
  order: -1 !important;
}
@media (max-width: 640px) {
  .psg-public-profile__hero {
    border-radius: 0 0 30px 30px !important;
    padding: 22px 18px 24px !important;
  }
  .psg-public-profile__avatar {
    width: 150px !important;
    height: 150px !important;
  }
  .psg-public-story,
  .psg-tattoo-tile {
    flex-basis: 104px !important;
    width: 104px !important;
    height: 126px !important;
  }
  .psg-upload-card__tattoos {
    grid-template-columns: repeat(3, minmax(82px, 1fr)) !important;
  }
}

/* v53: in-app PWA auth */
html.psg-auth-open,
body.psg-auth-open {
  overflow: hidden !important;
  touch-action: none;
}
.psg-auth-cover[aria-hidden="true"] {
  display: none;
}
.psg-auth-cover[aria-hidden="false"] {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: #f7f9fc;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.psg-auth-panel {
  width: min(100%, 520px);
  min-height: 100dvh;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom));
  background: #fff;
  color: #111827;
  box-sizing: border-box;
}
.psg-auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.psg-auth-head img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.psg-auth-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.psg-auth-message {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(11, 122, 225, .08);
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}
.psg-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 18px;
  border: 1px solid #d7e5f5;
  border-radius: 16px;
  overflow: hidden;
}
.psg-auth-tabs button {
  appearance: none !important;
  border: 0 !important;
  background: #eef6ff !important;
  color: #24506f !important;
  padding: 12px !important;
  font-size: 14px !important;
  font-weight: 550 !important;
}
.psg-auth-tabs button.is-active {
  background: #0B7AE1 !important;
  color: #fff !important;
}
.psg-auth-form {
  display: grid;
  gap: 14px;
}
.psg-auth-form label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 520;
}
.psg-auth-form input[type="text"],
.psg-auth-form input[type="email"],
.psg-auth-form input[type="password"] {
  width: 100%;
  border: 1px solid #d7e5f5;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}
.psg-auth-form input:focus {
  outline: 2px solid rgba(11, 122, 225, .18);
  border-color: #0B7AE1;
}
.psg-auth-submit {
  width: 100%;
  margin-top: 4px;
}
.psg-auth-note {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}
.psg-auth-avatar-upload {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  border: 1px dashed #bcd8f5;
  border-radius: 18px;
  padding: 12px;
  background: #f8fbff;
  cursor: pointer;
}
.psg-auth-avatar-upload input {
  display: none;
}
.psg-auth-avatar-preview {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #eaf4ff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.psg-auth-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.psg-auth-avatar-upload b {
  font-size: 14px;
  font-weight: 560;
  color: #0f172a;
}
.psg-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.psg-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (min-width: 700px) {
  .psg-auth-cover[aria-hidden="false"] {
    align-items: center;
    padding: 32px;
  }
  .psg-auth-panel {
    min-height: auto;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .16);
  }
}

/* v54: bottom-sheet post creation flow */
.psg-composer-sheet {
  position: relative !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(17,32,51,.08) !important;
  background: #fff !important;
  box-shadow: 0 16px 44px rgba(16,24,32,.08) !important;
}
.psg-compose-choices--sheet,
.psg-composer-sheet .psg-compose-choices--inline {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(11,122,225,.14) !important;
  border-radius: 18px !important;
  background: #f4f8fc !important;
}
.psg-compose-choices--sheet .psg-compose-choice--simple,
.psg-composer-sheet .psg-compose-choice--simple {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 13px 10px !important;
}
.psg-compose-choices--sheet .psg-compose-choice--simple + .psg-compose-choice--simple,
.psg-composer-sheet .psg-compose-choice--simple + .psg-compose-choice--simple {
  border-left: 1px solid rgba(11,122,225,.14) !important;
}
.psg-compose-choices--sheet .psg-compose-choice--simple strong,
.psg-composer-sheet .psg-compose-choice--simple strong {
  font-size: 15px !important;
  font-weight: 780 !important;
}
.psg-compose-choices--sheet .psg-compose-choice--simple.is-active,
.psg-composer-sheet .psg-compose-choice--simple.is-active {
  background: #0B7AE1 !important;
}
.psg-compose-choices--sheet .psg-compose-choice--simple.is-active strong,
.psg-composer-sheet .psg-compose-choice--simple.is-active strong {
  color: #fff !important;
}
body.psg-post-cover-open [data-composer] {
  background: rgba(15,23,42,.22) !important;
  display: grid !important;
  align-items: end !important;
}
body.psg-post-cover-open .psg-composer__body {
  width: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  overflow: visible !important;
}
.psg-composer-sheet--chooser.is-open {
  width: min(100%, 760px) !important;
  margin: 0 auto !important;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: 28px 28px 0 0 !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 14px !important;
}
.psg-composer-sheet--chooser.is-open .psg-post-cover__top {
  margin: 0 -16px !important;
  border-radius: 28px 28px 0 0 !important;
}
.psg-post-cover--sheet {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 10px) !important;
  border-radius: 28px 28px 0 0 !important;
  background: #f5f8fb !important;
  grid-template-rows: auto minmax(0, auto) !important;
  overflow: hidden !important;
  animation: psgComposerSheetFade .16s ease-out both !important;
  transform: none !important;
}
@keyframes psgComposerSheetFade {
  from { opacity: .96; }
  to { opacity: 1; }
}
.psg-post-cover--sheet .psg-post-cover__top {
  height: auto !important;
  min-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px !important;
  border-radius: 28px 28px 0 0 !important;
  background: #fff !important;
}
.psg-post-cover--sheet .psg-post-cover__body {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  gap: 12px !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}
.psg-post-cover--sheet .psg-post-cover__textarea {
  min-height: 172px !important;
  border: 1px solid rgba(11,122,225,.12) !important;
  border-radius: 20px !important;
}
.psg-post-cover--video-sheet .psg-post-cover__body {
  padding-bottom: 14px !important;
}
.psg-post-cover--video-sheet .psg-story-video-preview-slot {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}
.psg-post-cover--video-sheet .psg-story-video-preview-slot:not(.has-video)::before {
  content: "Record a video to preview it here.";
  display: grid;
  min-height: 96px;
  place-items: center;
  border: 1px dashed rgba(11,122,225,.2);
  border-radius: 18px;
  color: #667085;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
}
.psg-post-cover--video-sheet .psg-story-preview-box {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(11,122,225,.16) !important;
  background: #000 !important;
  box-shadow: 0 12px 28px rgba(16,24,32,.1) !important;
}
.psg-post-cover--video-sheet .psg-story-preview-box video {
  width: 100% !important;
  height: auto !important;
  max-height: 38dvh !important;
  aspect-ratio: 9 / 12 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.psg-post-cover--video-sheet .psg-story-upload-label {
  display: none !important;
}
.psg-post-cover--video-sheet .psg-video-note-field .psg-textarea {
  width: 100% !important;
  min-height: 118px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(11,122,225,.14) !important;
  padding: 16px !important;
  font-size: 17px !important;
  background: #fff !important;
}
.psg-post-cover--sheet .psg-post-cover__footer {
  position: static !important;
  flex: 0 0 auto !important;
  min-height: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
.psg-post-cover--sheet .psg-post-cover__footer .psg-button {
  min-width: 132px !important;
}
.psg-post-cover--sheet .psg-post-cover__footer {
  display: none !important;
}
.psg-post-cover__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.psg-post-cover__actions .psg-char-count {
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
.psg-post-cover__actions .psg-button {
  min-width: 132px !important;
  min-height: 50px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
.psg-camera-controls .psg-pixelation-meta label {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.75) !important;
}
.psg-camera-controls .psg-pixelation-meta span {
  color: #fff !important;
  font-weight: 900 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.75) !important;
}
body.psg-camera-open .psg-camera-view,
html.psg-camera-open .psg-camera-view,
body.psg-camera-open .psg-post-cover--sheet .psg-camera-view {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  transform: none !important;
}
body.psg-post-cover-open:not(.psg-camera-open) {
  touch-action: auto !important;
}
@media (max-width: 640px) {
  .psg-post-cover--sheet {
    height: auto !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px) !important;
  }
  .psg-post-cover--video-sheet .psg-story-preview-box video {
    max-height: 24dvh !important;
  }
  .psg-post-cover--sheet .psg-post-cover__textarea {
    min-height: 168px !important;
  }
  .psg-post-cover--video-sheet .psg-video-note-field .psg-textarea {
    min-height: 104px !important;
  }
}

/* v55: dedicated post creation screens, no bottom sheet */
.psg-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.psg-group-composer-prompt {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(16,24,32,.08) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 28px rgba(16,24,32,.07) !important;
}
.psg-group-composer-prompt__avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  background: #e8f2ff !important;
}
.psg-group-composer-prompt__field {
  appearance: none !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f0f2f5 !important;
  color: #606770 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 20px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  text-align: left !important;
  box-shadow: none !important;
}
.psg-group-composer-prompt__field:focus-visible,
.psg-group-composer-prompt__icon:focus-visible {
  outline: 3px solid rgba(11,122,225,.28) !important;
  outline-offset: 2px !important;
}
.psg-group-composer-prompt__actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.psg-group-composer-prompt__icon {
  appearance: none !important;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  color: #0b7ae1 !important;
  box-shadow: none !important;
}
.psg-group-composer-prompt__icon svg {
  width: 28px !important;
  height: 28px !important;
}
.psg-group-composer-prompt__icon--record {
  color: #e11d48 !important;
}
.psg-group-composer-prompt__icon--upload {
  color: #22a65a !important;
}
.psg-group-composer-prompt__icon:hover,
.psg-group-composer-prompt__field:hover {
  background: #e9edf2 !important;
}
.psg-compose-screen {
  min-height: calc(100dvh - 92px) !important;
  padding: 18px clamp(16px, 4vw, 28px) calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  background: #f5f8fb !important;
  color: #101828 !important;
}
.psg-compose-screen__header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
}
.psg-compose-screen__header .psg-back {
  flex: 0 0 auto !important;
}
.psg-compose-screen__header div {
  min-width: 0 !important;
}
.psg-compose-screen__header span {
  display: block !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
.psg-compose-screen__header h2 {
  margin: 2px 0 0 !important;
  color: #101828 !important;
  font-size: clamp(28px, 7vw, 42px) !important;
  line-height: 1.05 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}
.psg-compose-screen__body,
.psg-compose-screen__choices {
  width: min(100%, 760px) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
.psg-compose-screen__intro {
  width: min(100%, 760px) !important;
  display: grid !important;
  gap: 4px !important;
  margin: 0 0 2px !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #0f66c9, #113f8c) !important;
  color: #fff !important;
  box-shadow: 0 18px 42px rgba(15, 102, 201, .22) !important;
}
.psg-compose-screen__intro strong {
  font-size: clamp(20px, 4.8vw, 30px) !important;
  line-height: 1.1 !important;
  font-weight: 880 !important;
}
.psg-compose-screen__intro span {
  color: rgba(255,255,255,.84) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}
.psg-compose-screen--choice .psg-compose-screen__choices {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.psg-compose-screen__choice {
  appearance: none !important;
  width: 100% !important;
  min-height: 178px !important;
  border: 1px solid rgba(11,122,225,.16) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(17, 32, 51, .08) !important;
  color: #101828 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 20px !important;
  text-align: left !important;
}
.psg-compose-screen__choice i {
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 18px !important;
  background: #e8f2ff !important;
  color: #0b7ae1 !important;
  font-style: normal !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
.psg-compose-screen__choice--record i {
  background: #fff1f2 !important;
  color: #e5484d !important;
}
.psg-compose-screen__choice--upload i {
  background: #ecfdf3 !important;
  color: #12805c !important;
}
.psg-compose-screen__choice strong {
  font-size: 20px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
}
.psg-compose-screen__choice span {
  color: #667085 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}
.psg-upload-panel {
  width: min(100%, 560px) !important;
  display: grid !important;
  gap: 16px !important;
  padding: 22px !important;
  border: 1px solid rgba(11,122,225,.16) !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(17, 32, 51, .08) !important;
}
.psg-upload-panel__icon {
  display: grid !important;
  place-items: center !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 20px !important;
  background: #ecfdf3 !important;
  color: #12805c !important;
  font-size: 30px !important;
  font-weight: 900 !important;
}
.psg-upload-panel strong {
  display: block !important;
  color: #101828 !important;
  font-size: 24px !important;
  line-height: 1.12 !important;
  font-weight: 850 !important;
}
.psg-upload-panel span {
  display: block !important;
  margin-top: 4px !important;
  color: #667085 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}
.psg-pixelation-control--upload {
  width: 100% !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #f4f8fc !important;
  border: 1px solid rgba(11,122,225,.12) !important;
}
.psg-upload-video-button {
  width: 100% !important;
}
.psg-upload-preview-tools {
  width: min(100%, 560px) !important;
  display: grid !important;
  gap: 8px !important;
}
.psg-upload-preview-tools p {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.psg-upload-panel__status {
  min-height: 20px !important;
  margin: 0 !important;
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.psg-upload-review-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 2147483500 !important;
  background: #000 !important;
  color: #fff !important;
  overflow: hidden !important;
}
html.psg-upload-review-open,
body.psg-upload-review-open {
  overflow: hidden !important;
  background: #000 !important;
  width: 100% !important;
  max-width: 100% !important;
  touch-action: pan-y !important;
  overscroll-behavior: none !important;
}
body.psg-upload-review-open .psg-bottom-nav,
html.psg-upload-review-open .psg-bottom-nav {
  display: none !important;
}
body.psg-upload-review-open .psg-shell {
  background: #000 !important;
}
body.psg-upload-review-open [data-upload-review-screen],
body.psg-upload-review-open [data-upload-review-screen] * {
  visibility: visible !important;
}
.psg-upload-review-stage {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  background: #000 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}
.psg-upload-review-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
  z-index: 1 !important;
}
.psg-upload-review-stage.is-vertical-video .psg-upload-review-video {
  object-fit: cover !important;
}
.psg-upload-review-close {
  position: absolute !important;
  top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
  right: 18px !important;
  z-index: 2147483502 !important;
  pointer-events: auto !important;
}
.psg-upload-review-play {
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2147483502 !important;
  width: 76px !important;
  height: 76px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(16,24,32,.58) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.28) !important;
  pointer-events: auto !important;
}
.psg-upload-review-play svg {
  width: 34px !important;
  height: 34px !important;
}
.psg-upload-review-play__pause {
  display: none !important;
}
.psg-upload-review-play.is-playing .psg-upload-review-play__play {
  display: none !important;
}
.psg-upload-review-play.is-playing .psg-upload-review-play__pause {
  display: block !important;
}
.psg-upload-review-controls {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483501 !important;
  pointer-events: auto !important;
  display: grid !important;
  gap: 12px !important;
  padding: 24px clamp(18px, 6vw, 48px) calc(env(safe-area-inset-bottom, 0px) + 24px) !important;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.78)) !important;
}
.psg-pixelation-control--upload-review {
  padding: 0 !important;
}
.psg-upload-review-caption {
  display: block !important;
  width: 100% !important;
}
.psg-upload-review-caption .psg-textarea {
  width: 100% !important;
  min-height: 54px !important;
  max-height: 96px !important;
  resize: vertical !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  color: #101828 !important;
  padding: 13px 15px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  -webkit-text-size-adjust: 100% !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
}
.psg-upload-review-caption .psg-textarea::placeholder {
  color: #667085 !important;
}
.psg-upload-review-controls p {
  margin: -4px 0 0 !important;
  color: rgba(255,255,255,.76) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.psg-upload-review-actions {
  display: grid !important;
  grid-template-columns: minmax(56px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 10px !important;
}
.psg-upload-review-actions .psg-char-count {
  color: rgba(255,255,255,.8) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}
.psg-upload-review-actions .psg-button {
  min-height: 46px !important;
  border-radius: 999px !important;
  font-weight: 850 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
}
.psg-upload-review-screen.is-submitting .psg-upload-review-video {
  pointer-events: none !important;
}
.psg-upload-review-screen.is-submitting .psg-upload-review-caption .psg-textarea,
.psg-upload-review-screen.is-submitting .psg-pixel-slider {
  opacity: .78 !important;
}
.psg-upload-review-screen.is-submitting .psg-upload-review-controls p {
  color: rgba(255,255,255,.9) !important;
}
.psg-compose-field {
  display: block !important;
  width: 100% !important;
}
.psg-compose-textarea {
  width: 100% !important;
  min-height: 220px !important;
  border: 1px solid rgba(11,122,225,.14) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #101828 !important;
  padding: 18px !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  resize: vertical !important;
}
.psg-compose-textarea--caption {
  min-height: 128px !important;
}
.psg-compose-actions {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
}
.psg-compose-actions .psg-char-count {
  color: #667085 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}
.psg-compose-actions .psg-button {
  min-height: 50px !important;
  min-width: 118px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
.psg-button.is-busy,
.psg-button:disabled,
.psg-auth-submit.is-busy,
.psg-auth-submit:disabled {
  opacity: .72 !important;
  cursor: wait !important;
  pointer-events: none !important;
}
.psg-compose-video-preview {
  width: min(100%, 420px) !important;
}
.psg-compose-video-preview .psg-story-preview-box {
  width: 100% !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #000 !important;
  border: 1px solid rgba(11,122,225,.16) !important;
}
.psg-compose-video-preview .psg-story-preview-box--pixelate {
  position: relative !important;
}
.psg-upload-pixel-preview {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  opacity: 0 !important;
  pointer-events: none !important;
  background: transparent !important;
  display: block !important;
}
.psg-upload-review-stage.is-vertical-video .psg-upload-pixel-preview {
  object-fit: cover !important;
}
.psg-upload-pixel-preview.is-visible {
  opacity: 1 !important;
}
.psg-story-preview-box--pixelate .psg-story-preview-remove,
.psg-story-preview-box--pixelate .psg-story-preview-play {
  z-index: 3 !important;
}
.psg-compose-video-preview video {
  display: block !important;
  width: 100% !important;
  max-height: 42dvh !important;
  object-fit: cover !important;
}
.psg-compose-record-now {
  width: min(100%, 360px) !important;
}
@media (max-width: 640px) {
  .psg-compose-screen {
    min-height: calc(100dvh - 76px) !important;
    padding: 14px 16px calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .psg-compose-textarea {
    min-height: 210px !important;
  }
  .psg-compose-textarea--caption {
    min-height: 118px !important;
  }
  .psg-compose-actions {
    align-items: stretch !important;
  }
  .psg-compose-actions .psg-button {
    min-width: 108px !important;
  }
  .psg-compose-screen--choice .psg-compose-screen__choices {
    grid-template-columns: 1fr !important;
  }
  .psg-group-composer-prompt {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
  }
  .psg-group-composer-prompt__avatar {
    width: 46px !important;
    height: 46px !important;
  }
  .psg-group-composer-prompt__field {
    min-height: 48px !important;
    padding: 0 16px !important;
    font-size: 16px !important;
  }
  .psg-group-composer-prompt__actions {
    grid-column: 2 !important;
    justify-content: flex-end !important;
  }
  .psg-compose-screen__choice {
    min-height: 116px !important;
    border-radius: 20px !important;
    padding: 18px !important;
  }
  .psg-upload-panel {
    padding: 18px !important;
    border-radius: 22px !important;
  }
  .psg-upload-review-controls {
    gap: 10px !important;
    padding: 18px 16px calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
  }
  .psg-upload-review-play {
    width: 66px !important;
    height: 66px !important;
  }
  .psg-upload-review-caption .psg-textarea {
    min-height: 48px !important;
    max-height: 78px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
  }
  .psg-upload-review-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  .psg-upload-review-actions .psg-char-count {
    grid-column: 1 / -1 !important;
  }
  .psg-upload-review-actions .psg-button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* v56: social-style post cards */
.psg-feed .psg-post,
.psg-profile-posts .psg-post,
.psg-home-list-panel .psg-post {
  border: 0 !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(17, 32, 51, .08) !important;
  padding: 20px !important;
  overflow: visible !important;
}
.psg-post__head {
  display: grid !important;
  grid-template-columns: 54px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 16px !important;
}
.psg-post__head .psg-avatar {
  width: 54px !important;
  height: 54px !important;
}
.psg-post__byline {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.psg-profile-link--post,
.psg-profile-link--post, .psg-post__byline strong {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #a1adc2 !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  text-align: left !important;
}
.psg-post__byline > span {
  display: block !important;
  color: #b9c2d2 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.psg-post-follow {
  appearance: none !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f3f7ff !important;
  color: #0B7AE1 !important;
  min-width: 96px !important;
  min-height: 46px !important;
  padding: 10px 18px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}
.psg-post__content {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: #101828 !important;
  font-size: clamp(20px, 4.8vw, 28px) !important;
  line-height: 1.35 !important;
  font-weight: 760 !important;
  margin: 0 0 16px !important;
}
.psg-post__content p {
  margin: 0 !important;
}
.psg-post-video-frame {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #111827 !important;
  margin: 8px 0 16px !important;
}
.psg-post-video-frame .psg-post__video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  background: #111827 !important;
  box-shadow: none !important;
}
.psg-post-video-play {
  appearance: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  background: rgba(0,0,0,.08) !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.psg-post-video-play img {
  width: clamp(68px, 18vw, 118px) !important;
  height: clamp(68px, 18vw, 118px) !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.32)) !important;
}
.psg-post-video-play.is-playing {
  opacity: 0 !important;
}
.psg-post-video-frame:hover .psg-post-video-play.is-playing,
.psg-post-video-play.is-playing:focus-visible {
  opacity: 1 !important;
}
.psg-post-actions {
  display: flex !important;
  align-items: center !important;
  gap: 22px !important;
  color: #98a2b3 !important;
  padding-top: 2px !important;
}
.psg-post-action,
.psg-post-action:hover,
.psg-post-action:focus {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #98a2b3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 4px 0 !important;
  min-height: 32px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
.psg-post-action span {
  font-size: 22px !important;
  line-height: 1 !important;
}
.psg-post-action svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
}
.psg-post-action--time {
  font-size: 16px !important;
  white-space: nowrap !important;
}
.psg-post-actions .psg-post-menu {
  margin-left: auto !important;
  position: relative !important;
}
.psg-post-actions .psg-post-menu summary {
  list-style: none !important;
  color: #98a2b3 !important;
  font-size: 30px !important;
  line-height: .65 !important;
  min-width: 42px !important;
  min-height: 32px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border-radius: 999px !important;
}
.psg-post-actions .psg-post-menu summary::-webkit-details-marker {
  display: none !important;
}
.psg-post > .psg-reactions,
.psg-post-context {
  display: none !important;
}
.psg-post > .psg-comments {
  display: grid !important;
  gap: 10px !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(148, 163, 184, .18) !important;
}
.psg-post > .psg-comments:empty {
  display: none !important;
}
.psg-post > .psg-comments .psg-comment {
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: rgba(241, 245, 249, .76) !important;
  box-shadow: none !important;
}
.psg-post > .psg-comments .psg-comment__head {
  margin: 0 0 4px !important;
}
.psg-post > .psg-comments .psg-comment__head strong,
.psg-post > .psg-comments .psg-profile-link {
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
.psg-post > .psg-comments .psg-comment > div:last-child {
  color: #475569 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
.psg-post > .psg-comments .psg-comment-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}
.psg-post > .psg-comments .psg-comment-form input {
  min-height: 42px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
}
.psg-post > .psg-comments .psg-comment-form .psg-button {
  min-height: 42px !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
}
@media (max-width: 640px) {
  .psg-feed .psg-post,
  .psg-profile-posts .psg-post,
  .psg-home-list-panel .psg-post {
    padding: 16px !important;
    border-radius: 22px !important;
  }
  .psg-post__head {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }
  .psg-post__head .psg-avatar {
    width: 45px !important;
    height: 45px !important;
  }
  .psg-post-follow {
    min-width: 82px !important;
    min-height: 42px !important;
    padding: 9px 14px !important;
    font-size: 15px !important;
  }
  .psg-post-video-frame {
    aspect-ratio: 16 / 10.5 !important;
  }
  .psg-post-actions {
    gap: 16px !important;
  }
}

/* v57: group feed videos autoplay inline, then open into a vertical full-screen video stack. */
.psg-video-lightbox__stack {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scroll-snap-type: y mandatory !important;
  overscroll-behavior: contain !important;
  background: #061323 !important;
  scrollbar-width: none !important;
}
.psg-video-lightbox__stack::-webkit-scrollbar {
  display: none !important;
}
.psg-video-lightbox__slide {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  overflow: hidden !important;
  background: #061323 !important;
}
.psg-video-lightbox__slide .psg-video-lightbox__player {
  width: 100% !important;
  height: 100% !important;
}
.psg-video-lightbox__slide:not(.is-active) .psg-video-lightbox__overlay {
  opacity: .55 !important;
}
.psg-video-lightbox__slide.is-active .psg-video-lightbox__overlay {
  opacity: 1 !important;
}
.psg-feed--group .psg-post-video-frame .psg-post__video,
.psg-feed--group .psg-post-video-play {
  cursor: pointer !important;
}
.psg-feed--group .psg-post-video-play.is-playing {
  opacity: 0 !important;
}

/* v58: mobile form focus guard. Keep iOS/Safari from zooming and shoving the app sideways. */
.psg-shell {
  max-width: 100% !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

.psg-view,
.psg-post,
.psg-comments,
.psg-comment-form {
  max-width: 100% !important;
}

@media (max-width: 820px) {
  .psg-shell input[type="text"],
  .psg-shell input[type="search"],
  .psg-shell input[type="email"],
  .psg-shell input[type="password"],
  .psg-shell input[type="tel"],
  .psg-shell input[type="url"],
  .psg-shell input[type="number"],
  .psg-shell textarea,
  .psg-shell select,
  .psg-auth-form input[type="text"],
  .psg-auth-form input[type="email"],
  .psg-auth-form input[type="password"],
  .psg-report-field input,
  .psg-report-field textarea,
  .psg-post > .psg-comments .psg-comment-form input {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    transform: none !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  .psg-comment-form {
    min-width: 0 !important;
  }
}

/* v60: bottom app menu refresh from fixed-menu mockup. */
.psg-bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(12px, env(safe-area-inset-bottom)) !important;
  z-index: 99990 !important;
  width: min(calc(100% - 26px), 680px) !important;
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 1.28fr 1fr 1fr !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(92, 150, 197, .22) !important;
  border-radius: 30px !important;
  background: rgba(250, 253, 255, .96) !important;
  box-shadow: 0 16px 42px rgba(8, 42, 76, .22) !important;
  backdrop-filter: blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
  overflow: visible !important;
  transform: translateX(-50%) !important;
}

.psg-bottom-nav__item,
.psg-bottom-nav__item:hover,
.psg-bottom-nav__item:focus,
.psg-bottom-nav__item:active {
  position: relative !important;
  min-width: 0 !important;
  min-height: 68px !important;
  display: grid !important;
  grid-template-rows: 38px auto !important;
  place-items: center !important;
  align-content: center !important;
  gap: 4px !important;
  padding: 8px 2px 7px !important;
  border: 1px solid transparent !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: #65738a !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

.psg-bottom-nav__item.is-active {
  border-color: rgba(11, 122, 225, .12) !important;
  background: rgba(232, 245, 255, .92) !important;
  color: #4e9bd1 !important;
  box-shadow: inset 0 0 0 1px rgba(11, 122, 225, .08) !important;
}

.psg-bottom-nav__icon {
  position: relative !important;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  color: currentColor !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  font-size: 0 !important;
}

.psg-bottom-nav__icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
  overflow: visible !important;
}

.psg-bottom-nav__label {
  display: block !important;
  color: currentColor !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.psg-bottom-nav__create,
.psg-bottom-nav__create:hover,
.psg-bottom-nav__create:focus,
.psg-bottom-nav__create:active,
.psg-bottom-nav__create.is-active {
  min-height: 78px !important;
  margin-top: -8px !important;
  padding: 11px 8px 9px !important;
  border: 0 !important;
  border-radius: 25px !important;
  background: #0B7AE1 !important;
  color: #fff !important;
  box-shadow: 0 11px 24px rgba(11, 122, 225, .32) !important;
}

.psg-bottom-nav__create .psg-bottom-nav__plus,
.psg-bottom-nav__create .psg-bottom-nav__plus:hover,
.psg-bottom-nav__create .psg-bottom-nav__plus:focus,
.psg-bottom-nav__create .psg-bottom-nav__plus:active {
  width: 42px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

.psg-bottom-nav__create .psg-bottom-nav__icon,
.psg-bottom-nav__create .psg-bottom-nav__icon svg {
  width: 42px !important;
  height: 38px !important;
}

.psg-bottom-nav__create .psg-bottom-nav__label {
  color: #fff !important;
}

.psg-bottom-nav__badge,
.psg-bottom-nav__icon i {
  position: absolute !important;
  top: -5px !important;
  right: -8px !important;
  min-width: 20px !important;
  height: 20px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #EF2D3A !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(239, 45, 58, .28) !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

@media (max-width: 390px) {
  .psg-bottom-nav {
    width: min(calc(100% - 18px), 680px) !important;
    min-height: 82px !important;
    gap: 4px !important;
    padding: 8px 9px !important;
    border-radius: 26px !important;
  }

  .psg-bottom-nav__item,
  .psg-bottom-nav__item:hover,
  .psg-bottom-nav__item:focus,
  .psg-bottom-nav__item:active {
    min-height: 64px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
  }

  .psg-bottom-nav__icon,
  .psg-bottom-nav__icon svg {
    width: 34px !important;
    height: 34px !important;
  }

  .psg-bottom-nav__label {
    font-size: 12px !important;
  }
}

body.psg-post-cover-open .psg-bottom-nav,
body.psg-camera-open .psg-bottom-nav,
body.psg-upload-review-open .psg-bottom-nav,
html.psg-post-cover-open .psg-bottom-nav,
html.psg-camera-open .psg-bottom-nav,
html.psg-upload-review-open .psg-bottom-nav {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* v61: clear follow states after user interaction. */
.psg-post-follow,
.psg-post-follow:hover,
.psg-post-follow:focus,
.psg-post-follow:active {
  border: 1px solid rgba(11, 122, 225, .16) !important;
  background: #eef7ff !important;
  color: #0B7AE1 !important;
}

.psg-post-follow--pending,
.psg-post-follow--pending:hover,
.psg-post-follow--pending:focus,
.psg-post-follow--pending:active,
.psg-connection-pill--pending {
  border-color: rgba(194, 122, 16, .22) !important;
  background: #fff6df !important;
  color: #9a5d00 !important;
}

.psg-post-follow--following,
.psg-post-follow--following:hover,
.psg-post-follow--following:focus,
.psg-post-follow--following:active,
.psg-connection-pill--following {
  border-color: rgba(34, 151, 112, .24) !important;
  background: #e8fbf4 !important;
  color: #08744d !important;
}

.psg-post-follow--respond,
.psg-post-follow--respond:hover,
.psg-post-follow--respond:focus,
.psg-post-follow--respond:active,
.psg-connection-pill--incoming {
  border-color: rgba(11, 122, 225, .22) !important;
  background: #eaf4ff !important;
  color: #075ca8 !important;
}

/* v62: live presence dot on member avatars. */
.psg-presence-avatar {
  position: relative !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  max-width: max-content !important;
  line-height: 0 !important;
  border-radius: 999px !important;
  overflow: visible !important;
  color: inherit !important;
}

.psg-presence-avatar > img {
  display: block !important;
  object-fit: cover !important;
}

.psg-presence-avatar__dot {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 12px !important;
  height: 12px !important;
  display: none !important;
  transform: translate(18%, -18%) !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #24d366 !important;
  box-shadow: 0 0 0 1px rgba(7, 116, 77, .18), 0 4px 10px rgba(7, 116, 77, .28) !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

.psg-presence-avatar.is-online .psg-presence-avatar__dot {
  display: block !important;
}

.psg-presence-avatar--post .psg-presence-avatar__dot,
.psg-presence-avatar--composer .psg-presence-avatar__dot {
  width: 14px !important;
  height: 14px !important;
  border-width: 2px !important;
}

.psg-presence-avatar--public-profile .psg-presence-avatar__dot {
  width: 20px !important;
  height: 20px !important;
  border-width: 3px !important;
  top: 8px !important;
  right: 8px !important;
  transform: translate(18%, -18%) !important;
}

.psg-presence-avatar--settings-profile .psg-presence-avatar__dot {
  width: 16px !important;
  height: 16px !important;
  border-width: 3px !important;
  top: 4px !important;
  right: 4px !important;
}

.psg-presence-avatar--story .psg-public-story__avatar {
  object-fit: cover !important;
}

.psg-presence-avatar--story .psg-presence-avatar__dot,
.psg-presence-avatar--connection .psg-presence-avatar__dot {
  width: 11px !important;
  height: 11px !important;
}

.psg-connection-person .psg-presence-avatar {
  flex: 0 0 auto !important;
}

.psg-connection-person .psg-presence-avatar > img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: #eaf6fd !important;
}

/* v63: compact group post cards and dedicated post detail comments panel. */
.psg-feed .psg-post.psg-post--compact,
.psg-profile-posts .psg-post.psg-post--compact,
.psg-home-list-panel .psg-post.psg-post--compact {
  border: 0 !important;
  border-radius: 28px !important;
  background: #f7f7f8 !important;
  box-shadow: 0 10px 30px rgba(16, 24, 32, .05) !important;
  padding: 18px !important;
  overflow: visible !important;
}

.psg-post--compact .psg-post__head {
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
}

.psg-post--compact .psg-post__head .psg-avatar {
  width: 46px !important;
  height: 46px !important;
}

.psg-post--compact .psg-profile-link--post,
.psg-post--compact .psg-post__byline strong {
  color: #05070a !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

.psg-post--compact .psg-post__byline > span {
  color: #9a9da3 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.psg-post--compact .psg-post__open {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
}

.psg-post--compact .psg-post__open:focus-visible {
  outline: 3px solid rgba(11, 122, 225, .28) !important;
  outline-offset: 6px !important;
  border-radius: 18px !important;
}

.psg-post--compact .psg-post__content {
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin: 0 0 16px !important;
  color: #05070a !important;
  font-size: clamp(21px, 4.8vw, 30px) !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
}

.psg-post--compact .psg-post__content p {
  margin: 0 !important;
}

.psg-post--compact .psg-post-video-frame {
  aspect-ratio: 16 / 8.8 !important;
  border-radius: 22px !important;
  margin: 2px 0 14px !important;
}

.psg-post--compact .psg-post-actions {
  justify-content: flex-end !important;
  gap: 18px !important;
  padding: 0 !important;
  min-height: 34px !important;
}

.psg-post--compact .psg-post-action,
.psg-post--compact .psg-post-action:hover,
.psg-post--compact .psg-post-action:focus,
.psg-post--compact .psg-post-action:active {
  color: #b8bbc1 !important;
  gap: 7px !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 2px !important;
  font-size: 15px !important;
}

.psg-post--compact .psg-post-action svg {
  width: 29px !important;
  height: 29px !important;
}

.psg-post--compact .psg-post-action--heart.is-active,
.psg-post-detail__heart.is-active {
  color: #0B7AE1 !important;
}

.psg-post--compact .psg-post-menu--top summary {
  color: #9a9da3 !important;
  font-size: 30px !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  min-width: 38px !important;
  min-height: 30px !important;
}

.psg-post-menu,
.psg-comment-menu {
  position: relative !important;
}

.psg-post-menu summary {
  cursor: pointer !important;
  list-style: none !important;
}

.psg-post-menu summary::-webkit-details-marker {
  display: none !important;
}

.psg-post-menu > div,
.psg-comment-menu > div {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 10 !important;
  min-width: 132px !important;
  display: grid !important;
  gap: 2px !important;
  padding: 8px !important;
  border: 1px solid rgba(16, 24, 32, .08) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 36px rgba(16, 24, 32, .14) !important;
}

.psg-post-menu > div button,
.psg-comment-menu > div button {
  appearance: none !important;
  width: 100% !important;
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 0 10px !important;
}

.psg-post-menu > div button:hover,
.psg-comment-menu > div button:hover {
  background: #f5f7f9 !important;
}

.psg-post-detail-shell[aria-hidden="true"] {
  display: none !important;
}

.psg-post-detail-shell {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100100 !important;
  display: grid !important;
  place-items: stretch end !important;
}

.psg-post-detail__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(8, 15, 26, .34) !important;
  backdrop-filter: blur(8px) !important;
}

.psg-post-detail {
  position: relative !important;
  width: min(100%, 560px) !important;
  height: 100dvh !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  background: #fff !important;
  color: #05070a !important;
  box-shadow: -20px 0 50px rgba(16, 24, 32, .18) !important;
  overflow: hidden !important;
}

.psg-post-detail__top {
  display: grid !important;
  grid-template-columns: 46px 54px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: calc(16px + env(safe-area-inset-top)) 22px 14px !important;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid rgba(16, 24, 32, .06) !important;
}

.psg-post-detail__back {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #05070a !important;
  box-shadow: none !important;
  font-size: 34px !important;
  line-height: 1 !important;
  padding: 0 !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

.psg-post-detail__avatar,
.psg-detail-comment__image {
  width: 46px !important;
  height: 46px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  background: #eaf4ff !important;
}

.psg-post-detail__author {
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
}

.psg-post-detail__author .psg-profile-link,
.psg-post-detail__author strong {
  color: #05070a !important;
  font-size: 19px !important;
  font-weight: 850 !important;
  text-align: left !important;
}

.psg-post-detail__author span {
  color: #9a9da3 !important;
  font-size: 15px !important;
}

.psg-post-detail__body {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 24px 22px 18px !important;
}

.psg-post-detail__content {
  margin: 0 0 24px !important;
  padding: 24px !important;
  border-radius: 28px !important;
  background: #f7f7f8 !important;
  color: #05070a !important;
  font-size: clamp(25px, 5.6vw, 36px) !important;
  line-height: 1.28 !important;
  font-weight: 500 !important;
}

.psg-post-detail__content p {
  margin: 0 0 12px !important;
}

.psg-post-detail__content p:last-child {
  margin-bottom: 0 !important;
}

.psg-post-detail__video {
  margin: 0 0 22px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #05070a !important;
}

.psg-post-detail__video video {
  display: block !important;
  width: 100% !important;
  max-height: 58vh !important;
  background: #05070a !important;
}

.psg-post-detail__summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 4px 0 20px !important;
}

.psg-post-detail__summary > div strong {
  display: block !important;
  color: #7b7f87 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.psg-post-detail__summary > div span {
  display: block !important;
  color: #05070a !important;
  font-size: 22px !important;
  font-weight: 850 !important;
}

.psg-post-detail__heart {
  appearance: none !important;
  min-width: 94px !important;
  min-height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: #f1f1f2 !important;
  color: #8f9399 !important;
  box-shadow: none !important;
  font-size: 17px !important;
  font-weight: 650 !important;
}

.psg-post-detail__heart svg {
  width: 32px !important;
  height: 32px !important;
}

.psg-post-detail__heart span {
  display: inline-grid !important;
  place-items: center !important;
  color: inherit !important;
  font-size: 0 !important;
}

.psg-detail-comments {
  display: grid !important;
  gap: 18px !important;
  padding-bottom: 18px !important;
}

.psg-detail-comments__head {
  display: grid !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

.psg-detail-comments__head span {
  color: #7b7f87 !important;
  font-size: 17px !important;
}

.psg-detail-comments__head strong {
  color: #05070a !important;
  font-size: 22px !important;
}

.psg-detail-comment {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 12px !important;
  margin-left: calc(var(--psg-comment-depth, 0) * 28px) !important;
}

.psg-detail-comment__image {
  width: 42px !important;
  height: 42px !important;
}

.psg-detail-comment__main {
  min-width: 0 !important;
}

.psg-detail-comment__meta {
  display: flex !important;
  align-items: baseline !important;
  gap: 9px !important;
  min-width: 0 !important;
}

.psg-detail-comment__meta .psg-profile-link,
.psg-detail-comment__meta strong {
  max-width: 65% !important;
  overflow: hidden !important;
  color: #6f7278 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.psg-detail-comment__meta span {
  color: #9a9da3 !important;
  font-size: 15px !important;
}

.psg-detail-comment__content {
  margin-top: 5px !important;
  color: #05070a !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.psg-detail-comment__content p {
  margin: 0 !important;
}

.psg-detail-comment__actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-top: 7px !important;
}

.psg-detail-comment__actions button,
.psg-comment-menu summary {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #8a8e96 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  padding: 0 !important;
}

.psg-comment-menu summary {
  font-size: 22px !important;
  line-height: 1 !important;
  list-style: none !important;
}

.psg-comment-menu summary::-webkit-details-marker {
  display: none !important;
}

.psg-detail-comment__replies {
  display: grid !important;
  gap: 16px !important;
  margin-top: 16px !important;
}

.psg-detail-comments__empty {
  margin: 20px 0 !important;
  color: #8a8e96 !important;
}

.psg-post-detail__composer {
  padding: 12px 22px calc(14px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(16, 24, 32, .07) !important;
  background: rgba(255, 255, 255, .97) !important;
}

.psg-comment-replying {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 8px !important;
  color: #6f7278 !important;
  font-size: 14px !important;
}

.psg-comment-replying button {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #0B7AE1 !important;
  box-shadow: none !important;
  font-weight: 750 !important;
  padding: 0 !important;
}

.psg-detail-comment-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 46px !important;
  align-items: end !important;
  gap: 10px !important;
  border: 1px solid rgba(16, 24, 32, .10) !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 8px 8px 8px 20px !important;
  box-shadow: 0 8px 24px rgba(16, 24, 32, .06) !important;
}

.psg-detail-comment-form textarea {
  width: 100% !important;
  min-height: 40px !important;
  max-height: 130px !important;
  resize: none !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #05070a !important;
  box-shadow: none !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  padding: 8px 0 !important;
}

.psg-detail-comment-form button {
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f1f1f2 !important;
  color: #8a8e96 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.psg-detail-comment-form button svg {
  width: 27px !important;
  height: 27px !important;
}

body.psg-post-detail-open .psg-bottom-nav,
html.psg-post-detail-open .psg-bottom-nav {
  display: none !important;
}

@media (max-width: 640px) {
  .psg-feed .psg-post.psg-post--compact,
  .psg-profile-posts .psg-post.psg-post--compact,
  .psg-home-list-panel .psg-post.psg-post--compact {
    padding: 16px !important;
    border-radius: 26px !important;
  }

  .psg-post-detail {
    width: 100% !important;
  }

  .psg-post-detail__body {
    padding: 22px 18px 16px !important;
  }

  .psg-post-detail__content {
    padding: 22px !important;
    border-radius: 26px !important;
  }

  .psg-detail-comment {
    margin-left: calc(var(--psg-comment-depth, 0) * 18px) !important;
  }

  .psg-detail-comment__content {
    font-size: 19px !important;
  }
}

/* v64: video posters + profile return affordance */
.psg-public-profile__top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.psg-public-profile__back {
  appearance: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .82) !important;
  color: #101820 !important;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 15px !important;
  font-weight: 750 !important;
  min-height: 42px;
  padding: 9px 15px !important;
  box-shadow: 0 8px 22px rgba(16, 24, 32, .08) !important;
}

.psg-public-profile__name-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #101820;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.1;
}

.psg-video-tile,
.psg-post-video-frame,
.psg-post-detail__video,
.psg-video-lightbox__slide {
  isolation: isolate;
  position: relative;
}

.psg-video-tile::before,
.psg-post-video-frame::before,
.psg-post-detail__video::before,
.psg-video-lightbox__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 18%, rgba(37, 170, 227, .42), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(11, 122, 225, .42), transparent 42%),
    linear-gradient(145deg, #102235 0%, #1b3d5c 44%, #0b1220 100%);
}

.psg-video-tile video,
.psg-post-video-frame video,
.psg-post-detail__video video,
.psg-video-lightbox__slide video {
  position: relative;
  z-index: 1;
  transition: opacity .22s ease, filter .22s ease;
}

.psg-video-tile:not(.has-video-poster) video[data-video-thumb],
.psg-post-video-frame:not(.has-video-poster) video[data-video-thumb] {
  opacity: .62;
  filter: saturate(.78) contrast(.94);
}

.psg-post-detail__video:not(.has-video-poster) video[data-video-thumb],
.psg-video-lightbox__slide:not(.has-video-poster) video[data-video-thumb] {
  opacity: .88;
  background: transparent !important;
}

.psg-video-tile.has-video-poster video,
.psg-post-video-frame.has-video-poster video,
.psg-post-detail__video.has-video-poster video,
.psg-video-lightbox__slide.has-video-poster video {
  opacity: 1;
  filter: none;
}

.psg-video-tile__shade,
.psg-video-tile__play,
.psg-video-tile__meta,
.psg-post-video-play,
.psg-video-lightbox__overlay,
.psg-video-lightbox__close {
  z-index: 3;
}

/* v65: compact group room shell, sheets, and photo posts */
body.psg-group-room-open,
html.psg-group-room-open {
  background: #f4f8fc !important;
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
}

body.psg-group-room-open .psg-bottom-nav,
html.psg-group-room-open .psg-bottom-nav {
  display: none !important;
}

body.psg-group-room-open .psg-shell {
  position: fixed !important;
  inset: 0 !important;
  top: var(--psg-visual-offset-top, 0px) !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--psg-visual-viewport-width, 100vw) !important;
  height: var(--psg-visual-viewport-height, 100dvh) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.psg-group-room-open .psg-view {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.psg-shell .psg-group-page--clean.psg-group-room {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.psg-group-room {
  --psg-group-header-height: calc(58px + env(safe-area-inset-top, 0px));
  --psg-group-composer-height: calc(68px + env(safe-area-inset-bottom, 0px));
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  background: #f4f8fc !important;
  overflow: hidden !important;
}

.psg-group-room::before {
  content: none !important;
}

.psg-group-room__header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 70 !important;
  display: grid !important;
  grid-template-columns: 44px 42px minmax(0, 1fr) auto 44px !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: var(--psg-group-header-height) !important;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(148, 180, 214, .22) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 10px 24px rgba(16, 40, 72, .08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.psg-group-room__back,
.psg-group-room__more,
.psg-group-room__rules,
.psg-group-fixed-composer__plus,
.psg-group-fixed-composer__send {
  appearance: none !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.psg-group-room__back,
.psg-group-room__more {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #122033 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.psg-group-room__more {
  font-size: 30px !important;
  padding-bottom: 8px !important;
}

.psg-group-room__avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  background:
    linear-gradient(180deg, rgba(8, 29, 48, .04), rgba(8, 29, 48, .12)),
    var(--psg-group-room-avatar, var(--psg-group-cover, none)) center / cover no-repeat,
    #dfeefa !important;
  box-shadow: 0 8px 20px rgba(16, 40, 72, .12) !important;
}

.psg-group-room__title {
  appearance: none !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #101820 !important;
  padding: 0 !important;
  text-align: left !important;
}

.psg-group-room__title strong,
.psg-group-room__title em {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-style: normal !important;
}

.psg-group-room__title strong {
  font-size: 17px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

.psg-group-room__title em {
  color: #6e7b8e !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.psg-group-room__rules {
  min-height: 42px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0B7AE1 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  padding: 0 8px !important;
}

.psg-group-room__main {
  position: absolute !important;
  top: var(--psg-group-header-height) !important;
  bottom: var(--psg-group-composer-height) !important;
  left: 0 !important;
  right: 0 !important;
  width: min(100%, 780px) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 16px 16px 26px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.psg-group-room--readonly .psg-group-room__main {
  bottom: 0 !important;
  padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)) !important;
}

.psg-group-room__feed-head {
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.psg-group-room__feed-head > div:first-child strong {
  color: #101820 !important;
  font-size: 20px !important;
  font-weight: 850 !important;
}

.psg-group-room__feed-head > div:first-child span {
  color: #728197 !important;
  font-size: 14px !important;
}

.psg-group-room .psg-feed--group {
  gap: 14px !important;
}

.psg-group-fixed-composer {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 75 !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) !important;
  border: 0 !important;
  border-top: 1px solid rgba(148, 180, 214, .24) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 -10px 24px rgba(16, 40, 72, .10) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.psg-group-fixed-composer__plus,
.psg-group-fixed-composer__send {
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.psg-group-fixed-composer__plus {
  background: transparent !important;
  color: #0B7AE1 !important;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: .9 !important;
}

.psg-group-fixed-composer__send {
  background: transparent !important;
  color: #0B7AE1 !important;
}

.psg-group-fixed-composer__send.is-busy,
.psg-group-fixed-composer__send:disabled {
  opacity: .62 !important;
  cursor: wait !important;
}

.psg-group-fixed-composer__send svg {
  width: 26px !important;
  height: 26px !important;
}

.psg-group-fixed-composer__field {
  display: block !important;
  min-width: 0 !important;
}

.psg-group-fixed-composer__field input {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid rgba(148, 180, 214, .28) !important;
  border-radius: 0 !important;
  background: #f2f6fb !important;
  box-shadow: none !important;
  color: #101820 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  outline: 0 !important;
  padding: 0 18px !important;
}

.psg-group-fixed-composer__field input::placeholder {
  color: #7a8797 !important;
  opacity: 1 !important;
}

.psg-group-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .18s ease !important;
}

.psg-group-sheet.is-open {
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.psg-group-sheet__shade {
  appearance: none !important;
  position: absolute !important;
  inset: 0 !important;
  border: 0 !important;
  background: rgba(7, 18, 33, .34) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.psg-group-sheet__panel {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(760px, 100%) !important;
  max-height: min(82dvh, 760px) !important;
  margin: 0 auto !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  border-radius: 32px 32px 0 0 !important;
  background: #fff !important;
  box-shadow: 0 -24px 70px rgba(8, 24, 44, .24) !important;
  transform: translateY(28px) !important;
  transition: transform .24s ease !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.psg-group-sheet.is-open .psg-group-sheet__panel {
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.psg-group-sheet.is-open .psg-group-sheet__panel,
.psg-group-sheet.is-open .psg-group-sheet__panel * {
  opacity: 1 !important;
  visibility: visible !important;
}

.psg-group-sheet__panel--info {
  max-height: min(90dvh, 860px) !important;
}

.psg-group-sheet__handle {
  width: 52px !important;
  height: 5px !important;
  margin: 11px auto 0 !important;
  border-radius: 999px !important;
  background: #d9e1ec !important;
}

.psg-group-sheet__head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 22px 16px !important;
  border-bottom: 1px solid rgba(16, 24, 32, .07) !important;
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.psg-group-sheet__head span {
  color: #0B7AE1 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

.psg-group-sheet__head h3 {
  margin: 3px 0 0 !important;
  color: #101820 !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
}

.psg-group-sheet__head button {
  appearance: none !important;
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #edf3fa !important;
  box-shadow: none !important;
  color: #101820 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  padding: 0 0 3px !important;
}

.psg-group-sheet__body {
  display: grid !important;
  gap: 16px !important;
  padding: 20px 22px 28px !important;
}

.psg-group-info-hero {
  position: relative !important;
  min-height: 230px !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: var(--psg-group-image, linear-gradient(135deg, #dceeff, #f8fbff)) center / cover no-repeat !important;
  padding: 24px !important;
  color: #fff !important;
}

.psg-group-info-hero__shade {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(4, 14, 26, .05), rgba(4, 14, 26, .76)) !important;
}

.psg-group-info-hero > div {
  position: relative !important;
  z-index: 1 !important;
}

.psg-group-info-hero strong {
  display: block !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
}

.psg-group-info-hero p {
  margin: 8px 0 0 !important;
  color: rgba(255, 255, 255, .88) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.psg-group-info-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.psg-group-info-stats span,
.psg-group-info-block {
  border: 1px solid rgba(148, 180, 214, .22) !important;
  border-radius: 22px !important;
  background: #f7fbff !important;
  box-shadow: none !important;
}

.psg-group-info-stats span {
  min-height: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 14px !important;
  text-align: center !important;
}

.psg-group-info-stats strong {
  color: #101820 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.psg-group-info-stats em {
  color: #728197 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.psg-group-info-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.psg-group-info-actions .psg-button {
  min-height: 52px !important;
  border-radius: 999px !important;
}

.psg-group-info-block {
  padding: 18px !important;
}

.psg-group-info-block h4 {
  margin: 0 0 8px !important;
  color: #101820 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.psg-group-info-block p {
  margin: 0 !important;
  color: #5f6f84 !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.psg-group-info-block--safety {
  background: #fff7ed !important;
  border-color: rgba(238, 129, 43, .24) !important;
}

.psg-member-row--sheet {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(16, 24, 32, .06) !important;
}

.psg-member-row--sheet:last-child {
  border-bottom: 0 !important;
}

.psg-member-row--sheet div {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.psg-member-row--sheet .psg-profile-link {
  color: #101820 !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  text-align: left !important;
}

.psg-member-row--sheet span,
.psg-member-row--sheet em {
  color: #738195 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 700 !important;
}

.psg-post-tool-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 2px 22px 22px !important;
}

.psg-post-tool-grid button {
  appearance: none !important;
  min-height: 126px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid rgba(148, 180, 214, .25) !important;
  border-radius: 22px !important;
  background: #f6fbff !important;
  box-shadow: none !important;
  color: #101820 !important;
  text-align: center !important;
  padding: 16px 10px !important;
}

.psg-post-tool-grid i {
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 18px !important;
  background: #0B7AE1 !important;
  color: #fff !important;
  font-style: normal !important;
}

.psg-post-tool-grid svg {
  width: 28px !important;
  height: 28px !important;
}

.psg-post-tool-grid strong {
  color: #101820 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.psg-post-tool-grid span {
  color: #728197 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.psg-group-post-tools .psg-upload-panel__status {
  min-height: 22px !important;
  margin: -8px 22px 20px !important;
  color: #65758b !important;
  font-size: 13px !important;
}

.psg-image-review {
  position: relative !important;
  width: min(100%, 520px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  background: #0e1826 !important;
  box-shadow: 0 16px 42px rgba(16, 40, 72, .14) !important;
}

.psg-image-review img {
  display: block !important;
  width: 100% !important;
  max-height: min(54dvh, 560px) !important;
  object-fit: contain !important;
  background: #0e1826 !important;
}

.psg-post-image-frame {
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #eef4fa !important;
  box-shadow: none !important;
  margin: 8px 0 16px !important;
  padding: 0 !important;
}

.psg-post-image-frame img {
  display: block !important;
  width: 100% !important;
  max-height: 520px !important;
  object-fit: cover !important;
}

.psg-post-detail__image {
  width: 100% !important;
  margin: 0 0 18px !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: #edf4fb !important;
}

.psg-post-detail__image img {
  display: block !important;
  width: 100% !important;
  max-height: 62dvh !important;
  object-fit: contain !important;
  background: #101820 !important;
}

@media (max-width: 640px) {
  .psg-group-room {
    --psg-group-header-height: calc(56px + env(safe-area-inset-top, 0px));
    --psg-group-composer-height: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .psg-group-room__header {
    grid-template-columns: 42px 40px minmax(0, 1fr) auto 42px !important;
    gap: 7px !important;
    min-height: var(--psg-group-header-height) !important;
  }

  .psg-group-room__back,
  .psg-group-room__more,
  .psg-group-room__avatar {
    width: 42px !important;
    height: 42px !important;
  }

  .psg-group-room__title strong {
    font-size: 16px !important;
  }

  .psg-group-room__rules {
    min-height: 40px !important;
    padding: 0 6px !important;
    font-size: 13px !important;
  }

  .psg-group-room__main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .psg-group-fixed-composer {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    padding-top: 9px !important;
  }

  .psg-group-fixed-composer__plus,
  .psg-group-fixed-composer__send {
    width: 44px !important;
    height: 44px !important;
  }

  .psg-group-fixed-composer__field input {
    min-height: 44px !important;
    font-size: 16px !important;
    padding: 0 15px !important;
  }

  .psg-group-sheet__panel {
    border-radius: 28px 28px 0 0 !important;
  }

  .psg-group-sheet__head,
  .psg-group-sheet__body {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .psg-group-info-hero {
    min-height: 205px !important;
    border-radius: 24px !important;
    padding: 20px !important;
  }

  .psg-group-info-stats {
    gap: 8px !important;
  }

  .psg-group-info-stats span {
    min-height: 78px !important;
    padding: 10px 8px !important;
  }

  .psg-post-tool-grid {
    grid-template-columns: 1fr !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .psg-post-tool-grid button {
    min-height: 84px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 14px !important;
  }

  .psg-post-tool-grid button strong,
  .psg-post-tool-grid button span {
    display: block !important;
  }
}

/* v66: app canvas + per-screen background hooks */
.psg-shell {
  --psg-bg: #e6ebf2;
  --psg-app-bg: #fff;
  --psg-container-bg: #e6ebf2;
  background: var(--psg-app-bg) !important;
}

.psg-view {
  background: var(--psg-app-bg) !important;
}

.psg-view:is(
  .home_container,
  .search_container,
  .groups_container,
  .group_container,
  .channel_container,
  .my_groups_container,
  .my_posts_container,
  .profile_container,
  .profile_loading_container,
  .profile_settings_container,
  .alerts_container,
  .connections_container,
  .create_group_container,
  .compose_container,
  .text_post_container,
  .image_post_container,
  .video_upload_container,
  .loading_container,
  .login_container,
  .error_container
),
:is(
  .home_container,
  .search_container,
  .groups_container,
  .group_container,
  .channel_container,
  .my_groups_container,
  .my_posts_container,
  .profile_container,
  .profile_loading_container,
  .profile_settings_container,
  .alerts_container,
  .connections_container,
  .create_group_container,
  .compose_container,
  .text_post_container,
  .image_post_container,
  .video_upload_container,
  .loading_container,
  .login_container,
  .error_container
) {
  background: var(--psg-container-bg, #e6ebf2) !important;
}

body.psg-group-room-open,
html.psg-group-room-open {
  background: var(--psg-app-bg, #fff) !important;
}

.psg-group-room {
  background: var(--psg-container-bg, #e6ebf2) !important;
}

/* v67: mockup-inspired bottom navigation with attached Create action */
.psg-bottom-nav,
.psg-bottom-nav * {
  box-sizing: border-box !important;
}

.psg-bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 10px)) !important;
  z-index: 99990 !important;
  width: min(calc(100vw - 28px), 620px) !important;
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(84px, 23vw, 122px) !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
}

.psg-bottom-nav__pill {
  position: relative !important;
  z-index: 2 !important;
  min-width: 0 !important;
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 4px !important;
  margin-right: -25px !important;
  padding: 9px 32px 9px 9px !important;
  border: 1px solid rgba(184, 218, 246, .78) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 12px 34px rgba(15, 40, 68, .16) !important;
  overflow: hidden !important;
}

.psg-bottom-nav__pill .psg-bottom-nav__item,
.psg-bottom-nav__pill .psg-bottom-nav__item:hover,
.psg-bottom-nav__pill .psg-bottom-nav__item:focus,
.psg-bottom-nav__pill .psg-bottom-nav__item:active {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  min-height: 62px !important;
  display: grid !important;
  grid-template-rows: 28px auto !important;
  place-items: center !important;
  align-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 7px 2px 6px !important;
  border: 1px solid transparent !important;
  border-radius: 22px !important;
  background: transparent !important;
  color: #6d7a8e !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

.psg-bottom-nav__pill .psg-bottom-nav__item.is-active,
.psg-bottom-nav__pill .psg-bottom-nav__item.is-active:hover,
.psg-bottom-nav__pill .psg-bottom-nav__item.is-active:focus,
.psg-bottom-nav__pill .psg-bottom-nav__item.is-active:active {
  border-color: #cfe7fa !important;
  background: #eaf6ff !important;
  color: #4fa4dd !important;
  box-shadow: inset 0 0 0 1px rgba(79, 164, 221, .1) !important;
}

.psg-bottom-nav__pill .psg-bottom-nav__icon,
.psg-bottom-nav__create .psg-bottom-nav__plus,
.psg-bottom-nav__create .psg-bottom-nav__icon {
  position: relative !important;
  width: 29px !important;
  height: 29px !important;
  display: grid !important;
  place-items: center !important;
  color: currentColor !important;
  line-height: 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.psg-bottom-nav__pill .psg-bottom-nav__icon svg,
.psg-bottom-nav__create .psg-bottom-nav__icon svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  color: currentColor !important;
  overflow: visible !important;
}

.psg-bottom-nav__pill .psg-bottom-nav__label,
.psg-bottom-nav__create .psg-bottom-nav__label {
  display: block !important;
  max-width: 100% !important;
  color: currentColor !important;
  font-size: 13px !important;
  font-weight: 520 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.psg-bottom-nav__create,
.psg-bottom-nav__create:hover,
.psg-bottom-nav__create:focus,
.psg-bottom-nav__create:active,
.psg-bottom-nav__create.is-active {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  min-height: 82px !important;
  display: grid !important;
  grid-template-rows: 32px auto !important;
  place-items: center !important;
  align-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 9px 11px 9px 34px !important;
  border: 0 !important;
  border-radius: 0 27px 27px 0 !important;
  background: #0b83e9 !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(11, 122, 225, .3) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

.psg-bottom-nav__create .psg-bottom-nav__plus,
.psg-bottom-nav__create .psg-bottom-nav__icon {
  width: 31px !important;
  height: 31px !important;
}

.psg-bottom-nav__create .psg-bottom-nav__icon svg {
  width: 28px !important;
  height: 28px !important;
}

.psg-bottom-nav__icon--create svg path {
  stroke-width: 3.4 !important;
}

.psg-bottom-nav__create .psg-bottom-nav__label {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 760 !important;
}

.psg-bottom-nav__item > *,
.psg-bottom-nav__create > *,
.psg-bottom-nav__plus > * {
  pointer-events: none !important;
}

.psg-bottom-nav__badge,
.psg-bottom-nav__icon i {
  position: absolute !important;
  top: -4px !important;
  right: -7px !important;
  min-width: 19px !important;
  height: 19px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 5px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #ef2d3a !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(239, 45, 58, .28) !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

@media (max-width: 390px) {
  .psg-bottom-nav {
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important;
    width: min(calc(100vw - 20px), 620px) !important;
    min-height: 74px !important;
    grid-template-columns: minmax(0, 1fr) 80px !important;
  }

  .psg-bottom-nav__pill {
    min-height: 74px !important;
    gap: 2px !important;
    margin-right: -22px !important;
    padding: 8px 28px 8px 8px !important;
    border-radius: 25px !important;
  }

  .psg-bottom-nav__pill .psg-bottom-nav__item,
  .psg-bottom-nav__pill .psg-bottom-nav__item:hover,
  .psg-bottom-nav__pill .psg-bottom-nav__item:focus,
  .psg-bottom-nav__pill .psg-bottom-nav__item:active {
    min-height: 56px !important;
    grid-template-rows: 26px auto !important;
    border-radius: 20px !important;
    padding: 6px 1px 5px !important;
  }

  .psg-bottom-nav__pill .psg-bottom-nav__icon,
  .psg-bottom-nav__create .psg-bottom-nav__plus,
  .psg-bottom-nav__create .psg-bottom-nav__icon {
    width: 29px !important;
    height: 29px !important;
  }

  .psg-bottom-nav__pill .psg-bottom-nav__icon svg,
  .psg-bottom-nav__create .psg-bottom-nav__icon svg {
    width: 23px !important;
    height: 23px !important;
  }

  .psg-bottom-nav__pill .psg-bottom-nav__label,
  .psg-bottom-nav__create .psg-bottom-nav__label {
    font-size: 12px !important;
  }

  .psg-bottom-nav__create,
  .psg-bottom-nav__create:hover,
  .psg-bottom-nav__create:focus,
  .psg-bottom-nav__create:active,
  .psg-bottom-nav__create.is-active {
    min-height: 74px !important;
    grid-template-rows: 29px auto !important;
    border-radius: 0 25px 25px 0 !important;
    padding: 8px 8px 8px 28px !important;
  }

  .psg-bottom-nav__create .psg-bottom-nav__plus,
  .psg-bottom-nav__create .psg-bottom-nav__icon {
    width: 28px !important;
    height: 28px !important;
  }

  .psg-bottom-nav__create .psg-bottom-nav__icon svg {
    width: 26px !important;
    height: 26px !important;
  }
}

body.psg-post-cover-open .psg-bottom-nav,
body.psg-camera-open .psg-bottom-nav,
body.psg-upload-review-open .psg-bottom-nav,
body.psg-post-detail-open .psg-bottom-nav,
body.psg-group-room-open .psg-bottom-nav,
html.psg-post-cover-open .psg-bottom-nav,
html.psg-camera-open .psg-bottom-nav,
html.psg-upload-review-open .psg-bottom-nav,
html.psg-post-detail-open .psg-bottom-nav,
html.psg-group-room-open .psg-bottom-nav {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* v68: page-level sections should cover at least one viewport. */
.psg-shell {
  min-height: 100vh !important;
  min-height: 100svh !important;
}

.psg-view {
  min-height: 100vh !important;
  min-height: 100svh !important;
}

@supports (min-height: 100dvh) {
  .psg-shell,
  .psg-view {
    min-height: 100dvh !important;
  }
}

.psg-view:is(
  .home_container,
  .search_container,
  .groups_container,
  .group_container,
  .channel_container,
  .my_groups_container,
  .my_posts_container,
  .profile_container,
  .profile_loading_container,
  .profile_settings_container,
  .alerts_container,
  .connections_container,
  .create_group_container,
  .compose_container,
  .text_post_container,
  .image_post_container,
  .video_upload_container,
  .video_record_container,
  .video_review_container,
  .video_upload_review_container,
  .loading_container,
  .login_container,
  .error_container
),
:is(
  .home_container,
  .search_container,
  .groups_container,
  .group_container,
  .channel_container,
  .my_groups_container,
  .my_posts_container,
  .profile_container,
  .profile_loading_container,
  .profile_settings_container,
  .alerts_container,
  .connections_container,
  .create_group_container,
  .compose_container,
  .text_post_container,
  .image_post_container,
  .video_upload_container,
  .video_record_container,
  .video_review_container,
  .video_upload_review_container,
  .loading_container,
  .login_container,
  .error_container
) {
  min-height: 100vh !important;
  min-height: 100svh !important;
}

@supports (min-height: 100dvh) {
  .psg-view:is(
    .home_container,
    .search_container,
    .groups_container,
    .group_container,
    .channel_container,
    .my_groups_container,
    .my_posts_container,
    .profile_container,
    .profile_loading_container,
    .profile_settings_container,
    .alerts_container,
    .connections_container,
    .create_group_container,
    .compose_container,
    .text_post_container,
    .image_post_container,
    .video_upload_container,
    .video_record_container,
    .video_review_container,
    .video_upload_review_container,
    .loading_container,
    .login_container,
    .error_container
  ),
  :is(
    .home_container,
    .search_container,
    .groups_container,
    .group_container,
    .channel_container,
    .my_groups_container,
    .my_posts_container,
    .profile_container,
    .profile_loading_container,
    .profile_settings_container,
    .alerts_container,
    .connections_container,
    .create_group_container,
    .compose_container,
    .text_post_container,
    .image_post_container,
    .video_upload_container,
    .video_record_container,
    .video_review_container,
    .video_upload_review_container,
    .loading_container,
    .login_container,
    .error_container
  ) {
    min-height: 100dvh !important;
  }
}

body.psg-group-room-open .psg-shell,
html.psg-group-room-open .psg-shell,
body.psg-group-room-open .psg-view,
html.psg-group-room-open .psg-view {
  min-height: 0 !important;
}
