/* Kaptain Stream: sharing and receiving one collection (the share sheet, the shared-collection preview). */

/* The sheet sits inside the Studio overlay, so its own layer only has to clear the Studio screens (token, never above the toast). */
.ps-cur-overlay {
  z-index: var(--z-above-title, 21000);
}
.ps-cur-sheet .kap-av-head h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ps-cur-sheet .kap-av-body {
  min-height: 0;
}
.ps-cur-sheet .ps-share-choice[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.ps-cur-live {
  min-height: 1.2em;
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--accent, #00f5a0);
}
#ps-cur-linkfield {
  width: 100%;
  margin-top: 8px;
}

/* Share screen: the list of rows under "Share one collection". */
.ps-cur-rowlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}
.ps-cur-rowpick {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Receive: a 2x2 mosaic of the first four covers, then the folder names. */
.ps-cur-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: min(360px, 100%);
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
}
.ps-cur-mosaic img,
.ps-cur-mosaic span {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}
.ps-cur-mosaic.is-portrait img,
.ps-cur-mosaic.is-portrait span {
  aspect-ratio: 2 / 3;
}
.ps-cur-folders {
  max-height: 240px;
  overflow-y: auto;
  margin: 0 0 12px;
  padding-left: 18px;
}
.ps-cur-folders li {
  padding: 3px 0;
}
.ps-cur-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 12px;
}
.ps-cur-need {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}
.ps-cur-need::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted, #8b93a7);
}
.ps-cur-need.is-present::before {
  background: var(--accent, #00f5a0);
}
.ps-cur-filepick {
  margin-top: 14px;
}
.ps-pub .ps-setup-row textarea {
  resize: vertical;
  min-height: 72px;
}
.ps-pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 12px 0;
  padding: 0;
}
.ps-pub-tags legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.ps-pub-tag {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ps-pub-tag[aria-pressed='true'] {
  border-color: rgba(0, 245, 160, 0.6);
  background: rgba(0, 245, 160, 0.1);
}
.ps-pub-what {
  margin: 8px 0 12px;
}
.ps-pub-what h4 {
  margin: 0 0 4px;
}
.ps-pub-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.ps-pub-consent input {
  width: 20px;
  height: 20px;
}
.ps-pub-turnstile:empty {
  display: none;
}
.ps-cur-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.ps-cur-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.ps-cur-like[aria-pressed='true'] svg path {
  fill: currentColor;
}
.ps-cur-report-btn {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--text-muted, #8b93a7);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.ps-cur-report-btn:disabled {
  cursor: default;
  text-decoration: none;
}
.ps-cur-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ps-cur-reasons .ps-btn {
  min-height: 44px;
}

@media (max-width: 767px) {
  .ps-cur-sheet {
    width: 100%;
    max-height: 100%;
    border-radius: 14px;
  }
}
