/* Share menu + Publish to YouTube dialog (js/share-review.js, js/youtube-publish.js). Stage tokens only. */

/* header buttons in the ws-actions slot: compact pills that never wrap the title row */
.ws-actions .psh-btn { height: 34px; min-height: 34px; padding: 0 14px; gap: 6px; font-size: 13px; white-space: nowrap; }
.ws-actions .psh-btn.btn--ghost { background: var(--s-card); color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-line); }
.ws-actions .psh-btn.btn--ghost:hover { background: var(--s-canvas); }
.psh-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--s-peri-soft); color: var(--dk-tx-s-peri-deep, var(--s-peri-deep)); font: 600 11px/1 var(--v-font);
}
@media (max-width: 599px) {
  .ws-actions:has(.psh-btn) { margin-left: 0; }   /* start the row at the gutter so the More button stays beside it */
  .ws-actions .psh-btn { height: 32px; min-height: 32px; padding: 0 11px; }
}
.smenu-hint { overflow-wrap: anywhere; }

/* the old blocks stay empty and take no space */
#rvShare:empty, #rvPublish:empty, #rvShare[hidden], #rvPublish[hidden] { display: none; }

/* comments dialog */
.psh-comments { list-style: none; margin: 0; padding: 0; display: grid; }
.psh-comment { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--s-hair); color: var(--s-ink); }
.psh-comment:first-child { border-top: 0; }
.psh-at {
  flex: none; border: 0; border-radius: 999px; padding: 2px 8px; background: var(--s-peri-soft); color: var(--dk-tx-s-peri-deep, var(--s-peri-deep));
  font: 500 12px/1.4 var(--v-font); font-variant-numeric: tabular-nums; cursor: pointer;
}
.psh-at:hover { background: var(--s-peri); color: var(--s-card); }
.psh-tx { font: 400 13px/1.5 var(--v-font); }

/* publish dialog */
.ytp-note {
  display: grid; gap: 2px; padding: 12px 14px; margin: 0 0 16px; border-radius: 12px;
  background: var(--s-peri-soft); color: var(--s-ink); font: 400 13px/1.45 var(--v-font);
}
.ytp-note span { color: var(--s-ink-2); }
.ytp-note--warn { background: var(--s-canvas); }
.ytp-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.ytp-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ytp-field { display: grid; gap: 6px; min-width: 0; }
.ytp-set { border: 0; margin: 0; padding: 0; }
.ytp-set legend, .ytp-lab { font: 500 13px/1.3 var(--v-font); color: var(--s-ink); padding: 0; margin-bottom: 6px; }
.ytp-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; }
.ytp-count { font: 400 12px/1.3 var(--v-font); color: var(--s-ink-2); font-variant-numeric: tabular-nums; }
.ytp-count.ytp-over { color: var(--dk-tx-st-fail, var(--st-fail)); font-weight: 500; }
.ytp-desc { min-height: 168px; resize: vertical; font: 400 13px/1.5 var(--v-font); }
.sdlg-body p.ytp-hint, .ytp-hint { margin: 0; font: 400 12px/1.45 var(--v-font); color: var(--s-ink-2); }
.ytp-bad { color: var(--dk-tx-st-fail, var(--st-fail)); }
.ytp-chapters { list-style: none; margin: 0; padding: 4px 0; display: grid; max-height: 156px; overflow: auto; }
.ytp-chapters li { display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid var(--s-hair); font: 400 13px/1.4 var(--v-font); color: var(--s-ink); }
.ytp-chapters li:first-child { border-top: 0; }
.ytp-at { flex: none; width: 52px; color: var(--dk-tx-s-peri-deep, var(--s-peri-deep)); font-variant-numeric: tabular-nums; }
.ytp-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ytp-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: var(--s-canvas); box-shadow: inset 0 0 0 1px var(--s-line); }
.ytp-thumb input { position: absolute; opacity: 0; pointer-events: none; }
.ytp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ytp-thumb-none { display: grid; place-items: center; height: 100%; font: 400 12px/1.3 var(--v-font); color: var(--s-ink-2); }
.ytp-thumb:has(input:checked) { box-shadow: 0 0 0 2px var(--s-ink); }
.ytp-thumb:has(input:focus-visible) { outline: 2px solid var(--s-peri); outline-offset: 2px; }
.ytp-privacy { display: grid; gap: 2px; }
.ytp-opt { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px; cursor: pointer; font: 400 13px/1.3 var(--v-font); color: var(--s-ink); }
.ytp-opt:has(input:checked) { background: var(--s-canvas); }
.ytp-opt:has(input:disabled) { opacity: .55; cursor: default; }
.ytp-opt input { accent-color: var(--s-ink); margin: 0; }
.ytp-opt strong { font-weight: 500; }
.ytp-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--s-hair); display: grid; gap: 8px; }
.ytp-pv-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font: 500 13px/1.4 var(--v-font); color: var(--s-ink); }
.ytp-checks { margin: 0; padding-left: 18px; font: 400 12px/1.5 var(--v-font); color: var(--s-ink); }
.ytp-sum { margin: 0; display: grid; }
.ytp-sum > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--s-hair); }
.ytp-sum > div:first-child { border-top: 0; }
.ytp-sum dt { font: 400 12px/1.5 var(--v-font); color: var(--s-ink-2); }
.ytp-sum dd { margin: 0; font: 400 13px/1.5 var(--v-font); color: var(--s-ink); overflow-wrap: anywhere; }
.ytp-dev summary { cursor: pointer; font: 400 12px/1.5 var(--v-font); color: var(--s-ink-2); }
.ytp-dev .ytp-pre { margin-top: 8px; }
@media (max-width: 600px) { .ytp-sum > div { grid-template-columns: 1fr; gap: 2px; } }
.ytp-pre {
  margin: 0; padding: 12px 14px; max-height: 260px; overflow: auto; border-radius: 10px; background: var(--s-canvas); color: var(--s-ink);
  font: 400 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
.ytp-status:empty { display: none; }
.ytp-status { margin: 12px 0 0; font: 400 12px/1.45 var(--v-font); color: var(--s-ink-2); }
.ytp-up p, .ytp-done-line { margin: 0 0 12px; color: var(--s-ink); font: 400 14px/1.5 var(--v-font); }
.ytp-done { display: grid; gap: 4px; }
.ytp-bar { position: relative; height: 4px; border-radius: 999px; background: var(--s-peri-soft); overflow: hidden; }
.ytp-bar span { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: inherit; background: var(--s-peri-deep); animation: ytp-slide 1.4s var(--s-ease) infinite; }
@keyframes ytp-slide { from { left: -34%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .ytp-bar span { animation: none; width: 100%; opacity: .5; } }
@media (max-width: 720px) { .ytp-grid { grid-template-columns: 1fr; } }
