/* Curator Lounge — universal share surface */
.tvc-share-ui,
.tvc-share-ui * { box-sizing: border-box; }

.tvc-share-ui {
  --share-bg: #1c1b1a;
  --share-panel: #242321;
  --share-panel-raised: #302e2b;
  --share-ink: #f5f2ec;
  --share-muted: #aaa69f;
  --share-line: rgba(245, 242, 236, .13);
  --share-accent: #c29b4d;
  --share-focus: #e2bd70;
  color: var(--share-ink);
  color-scheme: dark;
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: inherit;
}
dialog.tvc-share-ui:not([open]) { display: none; }
.tvc-share-ui::backdrop { background: transparent; }

.tvc-share-ui[data-theme="light"] {
  --share-bg: #f5f1e9;
  --share-panel: #fffdf8;
  --share-panel-raised: #f0ece3;
  --share-ink: #292722;
  --share-muted: #716d65;
  --share-line: rgba(41, 39, 34, .15);
  --share-accent: #9b7126;
  --share-focus: #7d5a1f;
  color-scheme: light;
}

.tvc-share-ui__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13, 12, 11, .72);
  backdrop-filter: blur(8px);
  animation: tvc-share-fade-in .18s ease-out both;
}

.tvc-share-ui__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(90dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--share-line);
  border-radius: 18px;
  background: var(--share-bg);
  color: var(--share-ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  padding: 27px 28px 24px;
  animation: tvc-share-rise-in .24s cubic-bezier(.2,.75,.25,1) both;
}

.tvc-share-ui__topline,
.tvc-share-ui__heading,
.tvc-share-ui__item,
.tvc-share-ui__item-copy,
.tvc-share-ui__row,
.tvc-share-ui__row-main,
.tvc-share-ui__actions {
  display: flex;
  align-items: center;
}

.tvc-share-ui__topline { justify-content: space-between; margin-bottom: 23px; }
.tvc-share-ui__eyebrow {
  margin: 0;
  color: var(--share-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.tvc-share-ui__heading { gap: 14px; justify-content: space-between; }
.tvc-share-ui__title {
  margin: 0;
  font-size: clamp(23px, 5vw, 29px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 750;
}
.tvc-share-ui__close,
.tvc-share-ui__icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--share-muted);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.tvc-share-ui__close:hover,
.tvc-share-ui__icon-button:hover { background: var(--share-panel-raised); color: var(--share-ink); }
.tvc-share-ui__close:active,
.tvc-share-ui__icon-button:active { transform: scale(.94); }
.tvc-share-ui__close svg { width: 19px; height: 19px; }
.tvc-share-ui__item {
  gap: 15px;
  min-width: 0;
  margin-top: 24px;
  padding: 0 0 23px;
  border-bottom: 1px solid var(--share-line);
}
.tvc-share-ui__thumb {
  display: grid;
  flex: 0 0 66px;
  width: 66px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--share-line);
  border-radius: 10px;
  background: var(--share-panel-raised);
  color: var(--share-accent);
}
.tvc-share-ui__thumb img { width: 100%; height: 100%; object-fit: contain; }
.tvc-share-ui__thumb svg { width: 27px; height: 27px; }
.tvc-share-ui__item-copy { min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
.tvc-share-ui__item-title {
  overflow: hidden;
  width: 100%;
  color: var(--share-ink);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tvc-share-ui__item-meta {
  overflow: hidden;
  width: 100%;
  color: var(--share-muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tvc-share-ui__section-label {
  margin: 23px 0 4px;
  color: var(--share-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.tvc-share-ui__row {
  width: 100%;
  min-height: 82px;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid var(--share-line);
  padding: 14px 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.tvc-share-ui__row--button { cursor: pointer; }
.tvc-share-ui__row--button:hover .tvc-share-ui__row-title { color: var(--share-focus); }
.tvc-share-ui__row--button:hover .tvc-share-ui__row-chevron { transform: translateX(3px); color: var(--share-focus); }
.tvc-share-ui__row-icon {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  color: var(--share-ink);
}
.tvc-share-ui__row-icon svg { width: 21px; height: 21px; }
.tvc-share-ui__row-main { flex: 1; min-width: 0; justify-content: space-between; gap: 14px; }
.tvc-share-ui__row-copy { min-width: 0; }
.tvc-share-ui__row-title { display: block; font-size: 16px; font-weight: 720; transition: color .16s ease; }
.tvc-share-ui__row-description { display: block; margin-top: 4px; color: var(--share-muted); font-size: 13px; line-height: 1.4; }
.tvc-share-ui__row-chevron { width: 19px; height: 19px; color: var(--share-muted); transition: transform .16s ease, color .16s ease; }
.tvc-share-ui__link-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 14px;
  border: 1px solid var(--share-line);
  border-radius: 10px;
  padding: 8px 8px 8px 12px;
  background: var(--share-panel);
}
.tvc-share-ui__url {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--share-muted);
  font: inherit;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tvc-share-ui__link-actions { display: flex; gap: 5px; }
.tvc-share-ui__link-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--share-line);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--share-panel-raised);
  color: var(--share-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.tvc-share-ui__link-actions button:hover { background: var(--share-panel); }
.tvc-share-ui__link-actions button:active { transform: scale(.97); }
.tvc-share-ui__link-actions svg { width: 15px; height: 15px; }
.tvc-share-ui__revoke {
  margin: 12px 0 0 40px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--share-muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
}
.tvc-share-ui__revoke:hover { color: #df8b7b; text-decoration-color: currentColor; }
.tvc-share-ui__export-note {
  margin: 11px 0 0 40px;
  color: var(--share-muted);
  font-size: 12px;
  line-height: 1.5;
}
.tvc-share-ui__status {
  min-height: 19px;
  margin: 15px 0 0 40px;
  color: var(--share-muted);
  font-size: 12px;
  line-height: 1.5;
}
.tvc-share-ui__status[data-tone="error"] { color: #e59a89; }
.tvc-share-ui__status[data-tone="success"] { color: #b7d29b; }
.tvc-share-ui [disabled] { opacity: .55; cursor: wait !important; }
.tvc-share-ui :focus-visible { outline: 2px solid var(--share-focus); outline-offset: 3px; }
.tvc-share-ui__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;
}

@keyframes tvc-share-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tvc-share-rise-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 600px) {
  .tvc-share-ui { align-items: end; padding: 0; }
  .tvc-share-ui__dialog {
    width: 100%;
    max-height: min(90dvh, 800px);
    border: 1px solid var(--share-line);
    border-bottom: 0;
    border-radius: 19px 19px 0 0;
    padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    animation-name: tvc-share-sheet-in;
  }
  .tvc-share-ui__dialog::before {
    position: absolute;
    top: 9px;
    left: calc(50% - 18px);
    width: 36px;
    height: 4px;
    border-radius: 10px;
    background: var(--share-muted);
    content: "";
    opacity: .45;
  }
  .tvc-share-ui__topline { margin-bottom: 18px; }
}
@keyframes tvc-share-sheet-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .tvc-share-ui *, .tvc-share-ui__scrim { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
