.pk-clip-preview.is-playing .pk-clip-play::before { left: 18px; top: 16px; box-sizing: content-box; width: 6px; height: 20px; border-top: 0; border-bottom: 0; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
/*
 * The composer, step by step: the destination you can touch, a step label with ticks,
 * steps that move in the direction you are going, a takeover that grows from its opener,
 * a keyboard that never covers Next or Post, and the small things the tray gained
 * (a clip's first frame, Retake, a description, a Cancel while photos and videos go up).
 * Loads after composer.css.
 */

/* ---- The destination line is a button ---- */
button.pk-composer-destination { appearance: none; border: 0; background: none; font-family: inherit; line-height: inherit; text-align: left; cursor: pointer; color: inherit; }
button.pk-composer-destination::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .55em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.14em) rotate(45deg); opacity: .7; }
@media (hover: hover) { button.pk-composer-destination:hover:not(:disabled) { filter: brightness(1.08); } }
button.pk-composer-destination:focus-visible { outline: var(--pk-focus-width) solid var(--pk-focus); outline-offset: var(--pk-focus-offset); border-radius: 6px; }

/* ---- One line beside a control that is off, saying why ---- */
.pk-composer-reason { margin: 6px 0 0; color: #9aa6ab; font-size: 12.5px; line-height: 1.45; }
.pk-composer-reason a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pk-composer-reason[hidden] { display: none; }
.pk-composer-takeover.is-active .pk-composer-reason--next { width: min(100%, 920px); margin: 0 auto; padding: 0 32px 4px; text-align: right; }
.pk-composer-takeover.is-active .pk-composer-reason--formats { grid-column: 1 / -1; grid-row: 5; margin: 6px 0 0; text-align: center; }

/* ---- The step label, with three ticks instead of a fraction ---- */
.pk-composer-progress { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pk-composer-stage-label { color: #f2f5f4; font-size: 17px; font-weight: var(--pk-weight-bold); letter-spacing: -.02em; }
.pk-composer-ticks { display: inline-flex; gap: 5px; flex: none; }
.pk-composer-ticks i { display: block; width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .18); }
.pk-composer-ticks i.is-done { background: rgba(255, 255, 255, .55); }
.pk-composer-ticks i.is-on { background: var(--pk-accent); }
.pk-composer-ticks i.is-skipped { background: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* The takeover heading: close and the quiet "New post" crumb, the step label, the destination, the formats. */
body.pk-composing .pk-composer-takeover.is-active .pk-composer-heading { grid-template-rows: auto auto auto auto auto; }
body.pk-composing .pk-composer-takeover.is-active .pk-composer-title { grid-column: 2 / -1; grid-row: 1; color: #8d999f; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
body.pk-composing .pk-composer-takeover.is-active .pk-composer-progress { grid-column: 2 / -1; grid-row: 2; margin: 0; color: #f2f5f4; font-size: 17px; white-space: normal; }
body.pk-composing .pk-composer-takeover.is-active .pk-composer-destination { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
body.pk-composing .pk-composer-takeover.is-active .pk-composer-formats { grid-row: 4; }
body.pk-composing .pk-composer-takeover.is-active .pk-composer-close { grid-row: 1 / span 2; align-self: start; }
@media (max-width: 759px) {
  body.pk-composing .pk-composer-takeover.is-active .pk-composer-title { font-size: 11px; }
  body.pk-composing .pk-composer-takeover.is-active .pk-composer-progress,
  body.pk-composing .pk-composer-takeover.is-active .pk-composer-stage-label { font-size: 16px; }
}

/* ---- Steps move the way you are going; the takeover grows from its opener ---- */
@keyframes pk-compose-screen-back { from { opacity: .55; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.pk-composer-takeover.is-active[data-dir=back] [data-composer-stage] { animation-name: pk-compose-screen-back; }
@keyframes pk-compose-grow { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.pk-composer-takeover.is-arriving { animation: pk-compose-grow .18s cubic-bezier(.2, .7, .2, 1) both; transform-origin: var(--pk-from-x, 50%) var(--pk-from-y, 100%); }
@media (prefers-reduced-motion: reduce) {
  .pk-composer-takeover.is-active[data-dir=back] [data-composer-stage], .pk-composer-takeover.is-arriving { animation: none; }
}

/* ---- The soft keyboard: the takeover is as tall as what can be seen (set from visualViewport) ---- */
body.pk-composing .pk-composer.pk-composer-takeover.is-active { top: var(--pk-vv-top, 0px); bottom: auto; height: var(--pk-vv-h, 100dvh); }

/* ---- Footer: Post names its place, and Cancel shows while photos and videos go up ---- */
.pk-composer-journey-actions .pk-composer-share { max-width: min(100%, 22rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-composer-cancel { flex: none; }
.pk-composer-cancel[hidden] { display: none; }
.pk-composer-takeover.is-uploading [data-composer-step-controls] { display: none; }

/* ---- A restored draft says so ---- */
.pk-composer-note--restored { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 14px; border-radius: 12px; color: #c4cdd0; font-size: 13px; }
.pk-composer-note--restored[hidden] { display: none; }
.pk-composer-note-action { flex: none; min-height: 36px; padding: 6px 12px; border: 1px solid #ffffff24; border-radius: 99px; background: none; color: #edf1f0; font: var(--pk-weight-semibold) 13px var(--fs-font); cursor: pointer; }
.pk-composer-note-action:focus-visible { outline: var(--pk-focus-width) solid var(--pk-focus); outline-offset: var(--pk-focus-offset); }

/* ---- A clip shows its first frame; a real button plays it ---- */
.pk-clip-preview { position: absolute; inset: 0; display: block; }
.pk-clip-preview[hidden] { display: none; }
.pk-clip-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050607; }
.pk-clip-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 13, 15, .64); color: #fff; cursor: pointer; transition: opacity .18s; }
.pk-clip-play::before { content: ""; position: absolute; left: 21px; top: 15px; border-left: 16px solid currentColor; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.pk-clip-preview.is-playing .pk-clip-play { opacity: 0; }
.pk-clip-preview.is-playing .pk-clip-play:focus-visible { opacity: 1; }
@media (hover: hover) { .pk-clip-preview.is-playing:hover .pk-clip-play { opacity: 1; } }
.pk-clip-preview.is-playing .pk-clip-play::before { left: 18px; top: 16px; width: 5px; height: 20px; border: 0; border-left: 5px solid currentColor; border-right: 5px solid currentColor; box-sizing: content-box; width: 6px; }
.pk-clip-play:focus-visible { outline: var(--pk-focus-width) solid var(--pk-focus); outline-offset: var(--pk-focus-offset); }
.pk-composer-preview .pk-clip-preview { position: relative; flex: none; width: 110px; height: 90px; }
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo] [data-composer-stage=caption] .pk-composer-preview .pk-clip-preview { position: absolute; inset: 0; width: auto; height: auto; }

/* ---- The tray: a flagged tile, a quiet description ---- */
.pk-tray-item.is-flagged { border-color: #b4543f; }
.pk-tray-item.is-flagged .pk-tray-thumb { opacity: .72; }
.pk-tray-item.is-flagged .pk-tray-error { color: #ffb4a3; }
.pk-tray-thumb .pk-tray-kind[hidden], .pk-tray-name:empty { display: none; }

/* ---- Retake, Edit and Add description sit together on the big preview ---- */
.pk-composer-preview-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pk-composer-preview-tools button { min-height: 44px; min-width: 44px; padding: 10px 15px; border: 1px solid #ffffff24; border-radius: 99px; background: #0a0d0fd9; color: #edf1f0; font: var(--pk-weight-semibold) 13px var(--fs-font); cursor: pointer; }
.pk-composer-preview-tools button:focus-visible { outline: var(--pk-focus-width) solid var(--pk-focus); outline-offset: var(--pk-focus-offset); }
.pk-composer-preview-tools button:disabled { opacity: .5; cursor: wait; }
/* On the caption step the picture takes what is left and the buttons sit under it, never over it. */
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo] [data-composer-stage=caption] .pk-composer-preview { display: flex; flex-direction: column; gap: 10px; }
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo] [data-composer-stage=caption] .pk-composer-preview > img,
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo] [data-composer-stage=caption] .pk-composer-preview > .pk-clip-preview { position: relative; inset: auto; flex: 1 1 0; width: 100%; height: auto; min-height: 0; }
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo] [data-composer-stage=caption] .pk-composer-preview-tools { position: static; flex: none; justify-content: center; }
/* The count sits top left of the picture so the buttons below it have the row to themselves. */
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo] [data-composer-stage=caption] .pk-composer-preview>span { top: 10px; bottom: auto; }
body.pk-composing .pk-composer-takeover.is-active[data-kind=photo][data-media-count="1"] [data-composer-stage=caption] .pk-composer-preview>span { display: none; }
/* On the last step only Edit photo and Remove stay; the rest belong to the steps before. */
.pk-composer-final .pk-composer-preview-tools { margin-left: auto; }
.pk-composer-final .pk-composer-preview-tools button:not([data-composer-preview-edit]):not([data-composer-preview-remove]) { display: none; }

/* ---- The description dialog ---- */
.pk-alt-dialog { width: min(92vw, 420px); padding: 20px; border: 1px solid #ffffff24; border-radius: 16px; background: #0f1315; color: #edf1f0; }
.pk-alt-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.pk-alt-dialog h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.02em; }
.pk-alt-dialog textarea { width: 100%; min-height: 96px; resize: vertical; }
.pk-alt-dialog .pk-hint { margin: 10px 0 16px; }
.pk-alt-dialog button { min-height: 44px; margin-right: 10px; padding: 8px 20px; border: 1px solid #ffffff24; border-radius: 99px; background: none; color: inherit; font: var(--pk-weight-semibold) 14px var(--fs-font); cursor: pointer; }
.pk-alt-dialog [data-alt-save] { border-color: transparent; background: var(--pk-accent); color: #fff; }

/* ---- @mention suggestions (mention-suggest.js): under the caret, or above it when there is no room ---- */
.pk-mention-list { position: fixed; left: var(--pk-mention-x, 8px); top: var(--pk-mention-y, 0px); width: var(--pk-mention-w, 280px); z-index: 2200; display: grid; gap: 2px; max-height: min(44vh, 288px); padding: 6px; overflow: auto; border: 1px solid #3b4142; border-radius: 12px; background: #1a1e1f; box-shadow: 0 16px 36px #000a; }
.pk-mention-list[hidden] { display: none; }
.pk-mention-option { display: grid; gap: 2px; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--pk-ink); font: 14px/1.2 var(--fs-font); text-align: left; cursor: pointer; }
.pk-mention-option[aria-selected=true] { background: #2b3131; }
.pk-mention-handle { font-weight: 600; }
.pk-mention-option small { color: var(--pk-muted); font-size: 12px; }
.pk-mention-mirror { position: absolute; top: 0; left: -9999px; height: auto; overflow: hidden; visibility: hidden; white-space: pre-wrap; overflow-wrap: break-word; }

/* ---- N1: what are you after? Asked at the caption step ---- */
.pk-ask { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; flex: none; }
.pk-ask-legend { margin: 0 0 2px; padding: 0; color: #9aa6ab; font-size: 12.5px; }
.pk-ask .pk-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-ask-craft { display: grid; gap: 6px; color: #9aa6ab; font-size: 12.5px; }
.pk-ask-craft[hidden] { display: none; }
.pk-ask-status { margin: 0; color: #c4cdd0; font-size: 13px; line-height: 1.4; }
.pk-ask-status[hidden] { display: none; }

/* ---- N3: a still that was made smaller says so ---- */
.pk-tray-note { margin: 0; color: var(--pk-muted); font-size: 11px; line-height: 1.3; }
.pk-tray-note[hidden] { display: none; }

/* ---- N6: choosing a clip's cover frame ---- */
.pk-cover-dialog { width: min(92vw, 460px); padding: 20px; border: 1px solid #ffffff24; border-radius: 16px; background: #0f1315; color: #edf1f0; }
.pk-cover-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.pk-cover-dialog h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.02em; }
.pk-cover-video { display: block; width: 100%; max-height: 50dvh; border-radius: 12px; background: #050607; object-fit: contain; }
.pk-cover-range { width: 100%; margin: 14px 0 0; accent-color: var(--pk-accent); }
.pk-cover-dialog .pk-hint { margin: 8px 0 16px; }
.pk-cover-dialog button { min-height: 44px; margin-right: 10px; padding: 8px 20px; border: 1px solid #ffffff24; border-radius: 99px; background: none; color: inherit; font: var(--pk-weight-semibold) 14px var(--fs-font); cursor: pointer; }
.pk-cover-dialog [data-cover-save] { border-color: transparent; background: var(--pk-accent); color: #fff; }

/* ---- Remove: every photo or clip can be taken off on every step (a 44px target, a real button) ---- */
.pk-composer .pk-tray-tools button[data-tray-remove] { min-height: 44px; min-width: 44px; padding: 8px 14px; }
.pk-composer-preview-strip { display: flex; flex-wrap: wrap; gap: 10px; flex: none; margin: 0; padding: 0; list-style: none; }
.pk-composer-preview-strip[hidden] { display: none; }
.pk-composer-strip-item { position: relative; flex: none; width: 80px; height: 80px; }
.pk-composer-strip-item img, .pk-composer-strip-tile { display: block; width: 100%; height: 100%; border-radius: 10px; background: #06090a; object-fit: cover; }
.pk-composer-strip-tile { display: grid; place-items: center; color: #a4b2b9; font-size: 12px; }
.pk-composer-strip-remove { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #edf1f0; cursor: pointer; }
.pk-composer-strip-remove::before { content: ""; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: #0a0d0fd9; box-shadow: inset 0 0 0 1px #ffffff2e; }
.pk-composer-strip-remove::after { content: ""; position: absolute; top: 11px; right: 11px; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transform: rotate(45deg); }
.pk-composer-strip-remove:focus-visible { outline: var(--pk-focus-width) solid var(--pk-focus); outline-offset: var(--pk-focus-offset); border-radius: 12px; }
.pk-composer-strip-remove:disabled { opacity: .5; cursor: wait; }
