/* PMG Media client portal and studio */
.rv-status--delivered { color: #9aa3ad; }
.pt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-bar .btn { padding: 8px 18px; font-size: var(--text-xs); }

.rv-card input[type="email"], .rv-card input[type="password"], .rv-card input[type="date"], .rv-card input[type="file"], .rv-card select {
  width: 100%; font: inherit; font-size: var(--text-sm); color: #fff; background: #07080a;
  border: 1px solid #272c33; border-radius: 12px; padding: 12px 14px; color-scheme: dark;
}
.rv-card select:focus { outline: none; border-color: #0058d8; }
.rv-card input[type="file"] { padding: 10px; }

/* Login */
.pt-login { max-width: 440px; margin: var(--space-8) auto; display: flex; flex-direction: column; gap: 10px; padding: var(--space-8) var(--space-6); }
.pt-login .rv-title { margin: 4px 0 0; }
.pt-login .rv-label { margin-top: 8px; }
.pt-login .btn { margin-top: 14px; justify-content: center; }
.pt-help { margin-top: 10px; }
.pt-help a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Lists and cards */
.pt-list { max-width: 1100px; margin: 0 auto; }
.pt-list > .rv-title { margin: 6px 0 var(--space-6); }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.pt-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: var(--space-5); border-radius: 16px; background: #0e1013; border: 1px solid #272c33; color: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.pt-card:hover { border-color: #0058d8; transform: translateY(-2px); }
.pt-card strong { font-weight: 500; font-size: var(--text-base); }
.pt-back, .pt-linkbtn { font: inherit; font-size: var(--text-sm); color: var(--color-text-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pt-back:hover, .pt-linkbtn:hover { color: #fff; }
.pt-back { margin-bottom: var(--space-3); text-decoration: none; }
.pt-back::before { content: "\2190  "; }

/* Conversation extras */
.rv-note--pmg { border-left: 2px solid #0058d8; padding-left: 12px; }
.rv-note--pmg .rv-note__meta strong { color: #3a80f2; }
.rv-marker--pmg { background: #0058d8; }
.rv-note.is-done { opacity: .55; }
.rv-note__done { color: #3fcf8e; }
.rv-note__actions { display: flex; gap: 14px; margin-top: 6px; }
.rv-note__actions button { font: inherit; font-size: var(--text-xs); color: var(--color-text-muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rv-note__actions button:hover { color: #fff; }
.rv-ok, .pt-ok { color: #3fcf8e; }

/* Player states */
.rv-player.is-link { aspect-ratio: auto; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.rv-stage-link { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: var(--space-8); text-align: center; color: var(--color-text-muted); }
.rv-stage-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-6); text-align: center; color: var(--color-text-muted); }

/* Studio */
.pt-inbox { list-style: none; margin: 0; padding: 0; }
.pt-inbox li + li { border-top: 1px solid #1c2026; }
.pt-inbox a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; color: #fff; text-decoration: none; }
.pt-inbox a:hover strong { color: #3a80f2; }
.pt-inbox strong { font-weight: 500; font-size: var(--text-sm); }
.pt-inbox span { grid-column: 1; color: var(--color-text-muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-inbox em { grid-column: 2; grid-row: 1; font-style: normal; color: var(--color-text-muted); font-size: var(--text-xs); }
.pt-new { max-width: 1100px; }
.pt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.pt-field[hidden] { display: none; }
.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.pt-sub { border-top: 1px solid #1c2026; margin-top: var(--space-4); padding-top: var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.pt-sub > strong { font-weight: 500; }
.pt-sub .btn, .rv-card > form > .btn { align-self: flex-start; }
.pt-inline { flex-direction: row; align-items: center; }
.pt-inline select { flex: 1; }
.pt-people { list-style: none; margin: 0; padding: 0; }
.pt-people li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid #1c2026; font-size: var(--text-sm); color: var(--color-text-muted); }
.pt-people li:first-child { border-top: 0; }
.pt-people strong { color: #fff; font-weight: 500; }
.pt-actions { display: flex; gap: 16px; flex-shrink: 0; }
.pt-cred { margin-top: var(--space-4); padding: var(--space-5); border-radius: 14px; border: 1px solid #0058d8; background: rgba(0, 88, 216, .08); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pt-cred strong { font-weight: 500; }
.pt-cred pre { margin: 0; width: 100%; white-space: pre-wrap; word-break: break-all; font: inherit; font-size: var(--text-sm); color: #fff; background: #07080a; border: 1px solid #272c33; border-radius: 10px; padding: 14px; user-select: all; }
.pt-section { font-weight: 500; font-size: var(--text-lg); margin: var(--space-10, 48px) 0 0; padding-top: var(--space-6); border-top: 1px solid #1c2026; }
.pt-review { margin-top: var(--space-5); }
.pt-manage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-5); align-items: start; }
.pt-danger { margin: var(--space-6) 0 var(--space-8); text-align: right; }
.pt-danger .pt-linkbtn { color: #ff4052; }

@media (max-width: 900px) {
  .pt-manage, .pt-row, .pt-row--3 { grid-template-columns: 1fr; }
  .pt-people li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pt-inline { flex-direction: column; align-items: stretch; }
  .rv-header__label { display: none; }
  .pt-bar { gap: 10px; }
}
@media (max-width: 480px) {
  .pt-login { padding: var(--space-6) var(--space-4); margin-top: var(--space-4); }
  .pt-inbox a { grid-template-columns: 1fr; }
  .pt-inbox em { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .rv-header .header__inner { gap: 10px; }
  .rv-header .logo__img { height: 30px; width: auto; }
  .pt-bar { flex-wrap: nowrap; gap: 12px; }
  .pt-bar .pt-linkbtn { font-size: var(--text-xs); white-space: nowrap; }
  .pt-bar .btn { padding: 7px 14px; white-space: nowrap; }
}

/* ===== Review player ===== */
.rp { --r: 1.7778; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; background: #000; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; outline: none; }
.rp__frame { position: relative; width: min(100%, calc(70vh * var(--r))); aspect-ratio: var(--r); background: #000; cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rp__frame--empty { width: 100%; cursor: default; display: flex; align-items: center; justify-content: center; }
.rp__frame video, .rp__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.rp__pins { position: absolute; inset: 0; pointer-events: none; }
.rp__pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #ff4052; color: #fff; font: inherit; font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.45); cursor: pointer; pointer-events: auto; padding: 0; transition: transform .15s; }
.rp__pin:hover { transform: scale(1.12); }
.rp__pin--pmg { background: #0058d8; }
.rp__pin.is-done { background: #3fcf8e; }
.rp__pin--draft { background: #ff4052; pointer-events: none; animation: rpPulse 1.4s ease-in-out infinite; }
@keyframes rpPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,64,82,.6); } 50% { box-shadow: 0 0 0 10px rgba(255,64,82,0); } }
.rp__mark { position: absolute; right: 14px; bottom: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.38); pointer-events: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.rp__hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(7,8,10,.72); color: #fff; font-size: var(--text-xs); white-space: nowrap; pointer-events: none; backdrop-filter: blur(6px); transition: opacity .3s; }
.rp.is-playing .rp__hint { opacity: 0; }
.rp__big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; background: rgba(0, 88, 216, .92); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s, opacity .2s; }
.rp__big svg { width: 32px; height: 32px; margin-left: 4px; }
.rp__big:hover { transform: scale(1.06); }
.rp.is-playing .rp__big { opacity: 0; pointer-events: none; }
.rp__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-6); text-align: center; color: var(--color-text-muted); }
.rp__frame--empty .rp__msg { position: static; min-height: 240px; }
.rp__bar { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #0b0d10; border-top: 1px solid #1c2026; }
.rp__btn { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rp__btn:hover { background: rgba(255,255,255,.08); }
.rp__btn svg { width: 20px; height: 20px; }
.rp__time { flex: 0 0 auto; font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; min-width: 84px; }
.rp__track { position: relative; flex: 1; height: 28px; cursor: pointer; touch-action: none; outline: none; }
.rp__rail { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.rp__fill { height: 100%; width: 0; background: #0058d8; }
.rp__knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; pointer-events: none; }
.rp__track:focus-visible .rp__knob { box-shadow: 0 0 0 4px rgba(0,88,216,.5); }
.rp__marks { position: absolute; inset: 0; pointer-events: none; }
.rp__mk { position: absolute; top: 50%; width: 10px; height: 10px; margin: -12px 0 0 -5px; border-radius: 50%; background: #ff4052; border: 2px solid #0b0d10; padding: 0; cursor: pointer; pointer-events: auto; }
.rp__mk--pmg { background: #3a80f2; }
.rp:fullscreen { justify-content: center; border-radius: 0; border: 0; }
.rp:fullscreen .rp__frame { width: min(100vw, calc((100vh - 58px) * var(--r))); }
.rp:fullscreen .rp__bar { position: absolute; bottom: 0; }

/* Steps, note box, banners */
.pt-steps { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pt-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #1c2026; border-radius: 14px; background: #0b0d10; font-size: var(--text-xs); color: var(--color-text-muted); }
.pt-steps b { flex: 0 0 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500; color: #fff; background: #0058d8; }
.pt-spot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px dashed #2b313a; color: var(--color-text-muted); font-size: var(--text-xs); margin-bottom: 14px; }
.pt-spot.is-set { border-style: solid; border-color: rgba(255,64,82,.55); background: rgba(255,64,82,.07); color: #fff; }
.pt-spot__dot { width: 22px; height: 22px; border-radius: 50%; background: #ff4052; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.pt-spot .pt-linkbtn { margin-left: auto; font-size: var(--text-xs); }
.rv-note__time { display: inline-flex; align-items: center; gap: 6px; }
.rv-note__n { width: 18px; height: 18px; border-radius: 50%; background: #ff4052; color: #fff; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.rv-note--pmg .rv-note__n { background: #0058d8; }
.rv-note.is-flash { animation: ptFlash 1.6s ease; }
@keyframes ptFlash { 0% { background: rgba(0,88,216,.28); } 100% { background: transparent; } }
.pt-locked { display: flex; gap: 12px; align-items: flex-start; color: var(--color-text-muted); font-size: var(--text-sm); }
.pt-locked svg { flex: 0 0 22px; width: 22px; height: 22px; color: #3a80f2; }
.pt-locked p { margin: 0; }
.pt-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: var(--space-4); border-radius: 14px; border: 1px solid #0058d8; background: rgba(0,88,216,.1); }
.pt-banner[hidden] { display: none; }

/* Studio upload and toggles */
.pt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: var(--space-6); }
.pt-toolbar .rv-versions { margin: 0; }
.pt-upbtn[hidden] { display: none; }
.pt-upslot { margin-top: var(--space-4); }
.pt-upslot[hidden] { display: none; }
.pt-upslot > .pt-linkbtn { margin-top: 10px; }
.pt-drop { border: 2px dashed #2b313a; border-radius: 18px; background: #0b0d10; padding: var(--space-8) var(--space-5); transition: border-color .2s, background .2s; }
.pt-drop.is-over { border-color: #0058d8; background: rgba(0,88,216,.08); }
.pt-drop__face { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pt-drop__face strong { font-weight: 500; font-size: var(--text-lg); }
.pt-drop__icon { width: 40px; height: 40px; color: #3a80f2; }
.pt-drop.has-file .pt-drop__face { display: none; }
.pt-drop__details { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.pt-drop__details[hidden] { display: none; }
.pt-drop__details .btn { align-self: flex-start; }
.pt-drop__details textarea, .pt-drop__details input[type="text"] { width: 100%; font: inherit; font-size: var(--text-sm); color: #fff; background: #07080a; border: 1px solid #272c33; border-radius: 12px; padding: 12px 14px; }
.pt-drop__file { margin: 0 0 8px; color: #fff; font-size: var(--text-sm); word-break: break-all; }
.rv-card .pt-drop { padding: var(--space-5) var(--space-4); }
.rv-card .pt-drop__face strong { font-size: var(--text-base); }
.pt-progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.pt-progress[hidden] { display: none; }
.pt-progress span { display: block; height: 100%; width: 0; background: #0058d8; transition: width .2s; }
.pt-vinfo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: var(--space-4); }
.pt-vinfo__text p { margin: 6px 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.pt-vinfo__acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pt-toggle { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: var(--text-xs); color: var(--color-text-muted); background: none; border: 1px solid #272c33; border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; }
.pt-toggle__sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #272c33; transition: background .2s; }
.pt-toggle__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.pt-toggle.is-on { color: #fff; border-color: rgba(63,207,142,.5); }
.pt-toggle.is-on .pt-toggle__sw { background: #3fcf8e; }
.pt-toggle.is-on .pt-toggle__sw::after { transform: translateX(14px); }

@media (max-width: 900px) {
  .pt-steps { grid-template-columns: 1fr 1fr; }
  .rp__frame { width: min(100%, calc(62vh * var(--r))); }
}
@media (max-width: 480px) {
  .pt-steps { grid-template-columns: 1fr; }
  .rp__bar { gap: 6px; padding: 8px 8px; }
  .rp__time { min-width: 0; font-size: 11px; }
  .rp__hint { font-size: 11px; white-space: normal; width: max-content; max-width: 86%; text-align: center; }
}
.rp[hidden] { display: none; }
@media (max-width: 480px) {
  .pt-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pt-steps li { padding: 10px; gap: 8px; font-size: 11px; line-height: 1.35; }
  .pt-steps b { flex-basis: 22px; height: 22px; font-size: 11px; }
}

.pt-admin-note{border:1px solid rgba(255,64,82,.35);border-radius:12px;padding:12px 16px;margin:0 0 20px;max-width:720px}
.pt-admin-note a{color:#fff;text-decoration:underline}

.pt-steps .pt-step--final b { background: #ff4052; }
.pt-steps .pt-step--final { color: #fff; border-color: rgba(255,64,82,.35); }
.pt-final { border-color: rgba(255,64,82,.35); }
.pt-final__step { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ff4052; margin-bottom: 6px; }
.pt-final__ready { margin: 0 0 12px; }
.pt-rate__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pt-rate__btns .btn { flex: 1 1 160px; text-align: center; justify-content: center; }
.pt-rate__yelp { background: transparent; border: 1px solid #ff4052; color: #fff; }
.pt-rate__yelp:hover { background: #ff4052; }
.rp__msg .pt-ready__title { display: block; font-size: var(--text-lg); font-weight: 500; color: #fff; margin-bottom: 8px; }
.rp__msg .pt-ready__btn { margin-top: 18px; }
@media (max-width: 900px) { .pt-steps .pt-step--final { grid-column: 1 / -1; } }
.rp__msg.pt-ready { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; max-width: 420px; margin: 0 auto; padding: 0 20px; }

.pt-prev { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid #272c33; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; padding: 0; color: #fff; font: inherit; }
.pt-prev:hover { border-color: #0058d8; }
.pt-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pt-prev__play { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: #0058d8; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.pt-prev__play::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.pt-prev__label { position: absolute; left: 10px; bottom: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.6); padding: 4px 8px; border-radius: 999px; }
.pt-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.95); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pt-modal__inner { width: min(1100px, 100%); display: flex; flex-direction: column; gap: 12px; }
.pt-modal__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-weight: 500; }
.pt-modal__close { background: transparent; border: 1px solid #3a3f47; color: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.pt-modal__close:hover { border-color: #ff4052; }
.pt-modal__video { width: 100%; max-height: 72vh; background: #000; border-radius: 12px; }
.pt-modal__bar { display: flex; justify-content: flex-end; }
@media (max-width: 480px) { .pt-modal__bar .btn { width: 100%; } }

.pt-listhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-actions--btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pt-list > .rv-card { margin-top: 18px; max-width: 820px; }
.pt-optin { margin-top: 24px; max-width: 560px; }
.pt-optin .pt-toggle { margin-top: 8px; }
.rv-side .pt-optin { margin-top: 0; max-width: none; }
