.pms-dialog{--pms-bg:#fff;--pms-fg:#171717;--pms-soft:#f1f3f4;--pms-soft-hover:#e8eaed;--pms-soft-active:#dadce0;--pms-muted:#5f6368;--pms-shimmer:rgba(0,0,0,.06);color:var(--pms-fg);background:var(--pms-bg);width:min(880px,calc(100vw - 32px));max-height:90dvh;margin:auto;padding:0;border:0;border-radius:24px;box-shadow:0 24px 80px #0005;font:inherit}.pms-dialog::backdrop{background:#0008}.pms-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;position:sticky;top:0;background:var(--pms-bg);z-index:2}.pms-dialog h2{margin:0;font-size:22px;font-weight:500}.pms-body{padding:0 28px 28px;display:grid;gap:20px}.pms-body h3{margin:0;line-height:1.5;font-size:15px;font-weight:500}.pms-body p{margin:0;line-height:1.5}.pms-status{margin:0;font-size:13.5px;line-height:1.5;color:var(--pms-muted)}.pms-status:empty{display:none}.pms-status.is-error{color:#d93025}.pms-field{display:grid;gap:8px;position:relative;min-width:0}.pms-field>span,.pms-field>label{font-size:14px;font-weight:400;color:var(--pms-muted)}.pms-field input,.pms-field textarea{font:inherit;color:inherit;background:var(--pms-bg);border:1px solid #8885;border-radius:10px;padding:12px 14px;box-sizing:border-box;width:100%}.pms-field textarea{min-height:100px;resize:none}.pms-button{appearance:none;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.25;min-height:40px;padding:10px 20px;border-radius:999px;background:var(--pms-soft,#f1f3f4);color:var(--pms-fg,#202124);font:inherit;font-size:14px;font-weight:500;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .15s ease,opacity .15s ease}.pms-button:hover{background:var(--pms-soft-hover,#e8eaed)}.pms-button:active{background:var(--pms-soft-active,#dadce0)}.pms-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}.pms-button:disabled{opacity:.5;pointer-events:none}.pms-button.is-primary{background:var(--pms-fg);color:var(--pms-bg)}.pms-button.is-primary:hover{background:var(--pms-fg);opacity:.9}.pms-button.is-primary:active{background:var(--pms-fg);opacity:.82}.pms-select{border-radius:10px;justify-content:space-between;text-align:left;min-height:48px;font-weight:400}.pms-select:after{content:'';width:22px;height:22px;background:currentColor;mask:url('/icons/v1/material/expand_more.svg') center/contain no-repeat;flex-shrink:0}.pms-options{background:var(--pms-bg);position:absolute;top:100%;left:0;right:0;max-height:260px;overflow:auto;padding:8px;box-shadow:0 10px 28px #0004;border-radius:12px;z-index:5}.pms-options[hidden]{display:none}.pms-options .pms-button{position:relative;display:flex;width:100%;border-radius:8px;justify-content:flex-start;padding-right:42px;background:transparent;text-align:left;font-weight:400}.pms-options .pms-button:hover{background:var(--pms-soft)}.pms-options [aria-selected=true]::after{content:'';position:absolute;right:14px;width:18px;height:18px;background:currentColor;mask:url('/check_700dp_000000_FILL0_wght400_GRAD0_opsz24.png') center / contain no-repeat;-webkit-mask:url('/check_700dp_000000_FILL0_wght400_GRAD0_opsz24.png') center / contain no-repeat}.pms-actions,.pms-season{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.pms-actions{justify-content:flex-end}.pms-season .pms-field{flex:1}.pms-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #8883}.pms-row>div,.pms-row>strong{flex-basis:100%;font-weight:500}
.pms-col-list{display:grid;gap:4px}
.pms-col-check-row{display:flex;flex-wrap:nowrap;align-items:center;gap:14px;padding:12px;border-radius:12px;border-bottom:1px solid #8882;cursor:pointer;transition:background-color .14s ease;user-select:none}
.pms-col-check-row:last-child{border-bottom:0}
.pms-col-check-row:hover{background:var(--pms-soft)}
.pms-checkbox{position:relative;display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 22px;isolation:isolate}
.pms-checkbox::before{content:'';position:absolute;inset:-8px;border-radius:50%;background:rgba(135,135,135,.16);opacity:0;transform:scale(.88);transition:opacity .2s ease,transform .2s ease;pointer-events:none;z-index:-1}
.pms-col-check-row:hover .pms-checkbox::before,.pms-checkbox:has(.pms-checkbox-input:focus-visible)::before{opacity:1;transform:scale(1)}
.pms-checkbox-input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0;pointer-events:none}
.pms-checkbox-box{width:20px;height:20px;border-radius:6px;border:1.5px solid rgba(135,135,135,.55);background:transparent;color:transparent;display:grid;place-items:center;box-sizing:border-box;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.pms-checkbox-box svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0;transform:scale(.7);transition:opacity .14s ease,transform .14s ease}
.pms-checkbox-input:checked+.pms-checkbox-box{background:var(--pms-fg);border-color:var(--pms-fg);color:var(--pms-bg)}
.pms-checkbox-input:checked+.pms-checkbox-box svg{opacity:1;transform:scale(1)}
.pms-col-check-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pms-col-check-copy strong{font-weight:500;font-size:14.5px;line-height:1.4;color:var(--pms-fg);flex-basis:auto}
.pms-muted{color:var(--pms-muted);font-size:13.5px;font-weight:400}
.pms-skeleton{position:relative;overflow:hidden;border-radius:8px;background:var(--pms-soft);display:block}
.pms-skeleton::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,var(--pms-shimmer,rgba(0,0,0,.06)) 50%,transparent 80%);animation:pms-shimmer-sweep 1.6s ease-in-out infinite}
@keyframes pms-shimmer-sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.pms-skeleton-group{display:grid;gap:14px}
.pms-skeleton-pill{height:40px;width:168px;border-radius:999px}
.pms-skeleton-field{height:48px;width:100%;border-radius:10px}
.pms-skeleton-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #8882}
.pms-skeleton-row:last-child{border-bottom:0}
.pms-skeleton-check{width:20px;height:20px;border-radius:6px;flex:0 0 20px}
.pms-skeleton-lines{flex:1;display:grid;gap:8px;min-width:0}
.pms-skeleton-line{height:13px;border-radius:6px}
.pms-skeleton-line.is-title{width:56%}
.pms-skeleton-line.is-sub{height:10px;width:32%}
.pms-skeleton-action{width:84px;height:36px;border-radius:999px;flex:0 0 84px}
:root[data-theme=dark] .pms-dialog,body.dark-mode .pms-dialog,body[data-theme=dark] .pms-dialog{--pms-bg:#262626;--pms-fg:#fff;--pms-soft:#343639;--pms-soft-hover:#3e4145;--pms-soft-active:#484c52;--pms-muted:#b8b8b8;--pms-shimmer:rgba(255,255,255,.08)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .pms-dialog{--pms-bg:#262626;--pms-fg:#fff;--pms-soft:#343639;--pms-soft-hover:#3e4145;--pms-soft-active:#484c52;--pms-muted:#b8b8b8;--pms-shimmer:rgba(255,255,255,.08)}}
@media(prefers-reduced-motion:reduce){.pms-button,.pms-checkbox::before,.pms-checkbox-box,.pms-checkbox-box svg{transition:none}.pms-skeleton::after{animation:none}}
@media(max-width:600px){.pms-dialog>header{padding:20px}.pms-body{padding:0 20px 20px}.pms-actions .pms-button{flex:1}.pms-dialog h2{font-size:20px}}

.pms-dialog::backdrop {
    background: #0008
}

.pms-dialog>header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    position: sticky;
    top: 0;
    background: var(--pms-bg);
    z-index: 2
}

.pms-dialog h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 500
}

.pms-body {
    padding: 0 28px 28px;
    display: grid;
    gap: 20px
}

.pms-series-dialog[open] {
    display: flex;
    flex-direction: column;
    overflow: clip
}

.pms-series-dialog > header,
.pms-gallery > header {
    position: static;
    flex-shrink: 0;
    border-bottom: 1px solid #8884
}

.pms-series-dialog > .pms-body {
    min-height: 0;
    padding-top: 20px;
    align-content: start;
    overflow: auto;
    overscroll-behavior: none
}

:is(html, body):has(.pms-series-dialog[open]) {
    overflow: hidden;
    overscroll-behavior: none
}

.pms-body h3 {
    margin: 0;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 500
}

.pms-body p {
    margin: 0;
    line-height: 1.5
}

.pms-status {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--pms-muted)
}

.pms-status:empty {
    display: none
}

.pms-status.is-error {
    color: #d93025
}

.pms-field {
    display: grid;
    gap: 8px;
    position: relative;
    min-width: 0
}

.pms-field>span,
.pms-field>label {
    font-size: 14px;
    font-weight: 400;
    color: var(--pms-muted)
}

.pms-field input,
.pms-field textarea {
    font: inherit;
    color: inherit;
    background: var(--pms-bg);
    border: 1px solid #8885;
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
    width: 100%
}

.pms-field textarea {
    min-height: 100px;
    resize: none
}

.pms-button {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.25;
    min-height: 40px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--pms-soft, #f1f3f4);
    color: var(--pms-fg, #202124);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, opacity .15s ease
}

.pms-button:hover {
    background: var(--pms-soft-hover, #e8eaed)
}

.pms-button:active {
    background: var(--pms-soft-active, #dadce0)
}

.pms-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px
}

.pms-button:disabled {
    opacity: .5;
    pointer-events: none
}

.pms-button.is-primary {
    background: var(--pms-fg);
    color: var(--pms-bg)
}

.pms-button.is-primary:hover {
    background: var(--pms-fg);
    opacity: .9
}

.pms-button.is-primary:active {
    background: var(--pms-fg);
    opacity: .82
}

.pms-select {
    border-radius: 10px;
    justify-content: space-between;
    text-align: left;
    min-height: 48px;
    font-weight: 400
}

.pms-select:after {
    content: '';
    width: 22px;
    height: 22px;
    background: currentColor;
    mask: url('/icons/v1/material/expand_more.svg') center/contain no-repeat;
    flex-shrink: 0
}

.pms-options {
    background: var(--pms-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
    box-shadow: 0 10px 28px #0004;
    border-radius: 12px;
    z-index: 5
}

.pms-options[hidden] {
    display: none
}

.pms-options .pms-button[role=option] {
    display: flex;
    width: 100%;
    border-radius: 8px;
    justify-content: flex-start;
    background: transparent;
    text-align: left;
    font-weight: 400;
    transition: none !important
}

.pms-options .pms-button:hover {
    background: var(--pms-soft)
}

.pms-options .pms-button:focus-visible {
    outline: none;
    text-decoration: underline;
    text-underline-offset: .2em
}

.pms-actions,
.pms-season {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap
}

.pms-actions {
    justify-content: flex-end
}

.pms-season .pms-field {
    flex: 1
}

.pms-row {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid #8883
}

.pms-row>div,
.pms-row>strong {
    flex-basis: 100%;
    font-weight: 500
}

.pms-col-list {
    display: grid;
    gap: 4px
}

.pms-col-check-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    border-bottom: 1px solid #8882;
    cursor: pointer;
    transition: background-color .14s ease;
    user-select: none
}

.pms-col-check-row:last-child {
    border-bottom: 0
}

.pms-col-check-row:hover {
    background: var(--pms-soft)
}

.pms-checkbox {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    isolation: isolate
}

.pms-checkbox::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(135, 135, 135, .16);
    opacity: 0;
    transform: scale(.88);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    z-index: -1
}

.pms-col-check-row:hover .pms-checkbox::before,
.pms-checkbox:has(.pms-checkbox-input:focus-visible)::before {
    opacity: 1;
    transform: scale(1)
}

.pms-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none
}

.pms-checkbox-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(135, 135, 135, .55);
    background: transparent;
    color: transparent;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease
}

.pms-checkbox-box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .14s ease, transform .14s ease
}

.pms-checkbox-input:checked+.pms-checkbox-box {
    background: var(--pms-fg);
    border-color: var(--pms-fg);
    color: var(--pms-bg)
}

.pms-checkbox-input:checked+.pms-checkbox-box svg {
    opacity: 1;
    transform: scale(1)
}

.pms-col-check-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px
}

.pms-col-check-copy strong {
    font-weight: 500;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--pms-fg);
    flex-basis: auto
}

.pms-muted {
    color: var(--pms-muted);
    font-size: 13.5px;
    font-weight: 400
}

.pms-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--pms-soft);
    display: block
}

.pms-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, var(--pms-shimmer, rgba(0, 0, 0, .06)) 50%, transparent 80%);
    animation: pms-shimmer-sweep 1.6s ease-in-out infinite
}

@keyframes pms-shimmer-sweep {
    from {
        transform: translateX(-100%)
    }

    to {
        transform: translateX(100%)
    }
}

.pms-skeleton-group {
    display: grid;
    gap: 14px
}

.pms-skeleton-pill {
    height: 40px;
    width: 168px;
    border-radius: 999px
}

.pms-skeleton-field {
    height: 48px;
    width: 100%;
    border-radius: 10px
}

.pms-skeleton-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #8882
}

.pms-skeleton-row:last-child {
    border-bottom: 0
}

.pms-skeleton-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    flex: 0 0 20px
}

.pms-skeleton-lines {
    flex: 1;
    display: grid;
    gap: 8px;
    min-width: 0
}

.pms-skeleton-line {
    height: 13px;
    border-radius: 6px
}

.pms-skeleton-line.is-title {
    width: 56%
}

.pms-skeleton-line.is-sub {
    height: 10px;
    width: 32%
}

.pms-skeleton-action {
    width: 84px;
    height: 36px;
    border-radius: 999px;
    flex: 0 0 84px
}

:root[data-theme=dark] .pms-dialog,
body.dark-mode .pms-dialog,
body[data-theme=dark] .pms-dialog {
    --pms-bg: #262626;
    --pms-fg: #fff;
    --pms-soft: #343639;
    --pms-soft-hover: #3e4145;
    --pms-soft-active: #484c52;
    --pms-muted: #b8b8b8;
    --pms-shimmer: rgba(255, 255, 255, .08)
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme=light]) .pms-dialog {
        --pms-bg: #262626;
        --pms-fg: #fff;
        --pms-soft: #343639;
        --pms-soft-hover: #3e4145;
        --pms-soft-active: #484c52;
        --pms-muted: #b8b8b8;
        --pms-shimmer: rgba(255, 255, 255, .08)
    }
}

@media(prefers-reduced-motion:reduce) {

    .pms-button,
    .pms-checkbox::before,
    .pms-checkbox-box,
    .pms-checkbox-box svg {
        transition: none
    }

    .pms-skeleton::after {
        animation: none
    }
}

@media(max-width:600px) {
    .pms-dialog>header {
        padding: 20px
    }

    .pms-body {
        padding: 0 20px 20px
    }

    .pms-actions .pms-button {
        flex: 1
    }

    .pms-dialog h2 {
        font-size: 20px
    }
}

.pms-dialog .pms-button,
#pms-open-series,
#pms-open-collections {
    transform: none !important;
    animation: none !important;
    transition: background-color 65ms ease-out, opacity 65ms ease-out !important
}

.pms-dialog .pms-button:is(:hover, :active, :focus-visible),
#pms-open-series:is(:hover, :active, :focus-visible),
#pms-open-collections:is(:hover, :active, :focus-visible) {
    transition-duration: 0s !important
}

.labs-studio-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto
}

.labs-studio-secondary-btn {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 24px;
    background: #f1f3f4;
    color: #202124;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    transition: background-color .14s ease
}

.labs-studio-secondary-btn:hover {
    background: #e8eaed;
    color: #202124
}

.labs-studio-secondary-btn:active {
    background: #dadce0;
    color: #202124
}

.labs-studio-secondary-btn:focus-visible {
    outline: 2px solid #202124;
    outline-offset: 2px
}

:root[data-theme=dark] .labs-studio-secondary-btn,
body.dark-mode .labs-studio-secondary-btn,
body[data-theme=dark] .labs-studio-secondary-btn {
    background: #2b2d30;
    color: #e8eaed
}

:root[data-theme=dark] .labs-studio-secondary-btn:hover,
body.dark-mode .labs-studio-secondary-btn:hover,
body[data-theme=dark] .labs-studio-secondary-btn:hover {
    background: #35383c;
    color: #e8eaed
}

:root[data-theme=dark] .labs-studio-secondary-btn:active,
body.dark-mode .labs-studio-secondary-btn:active,
body[data-theme=dark] .labs-studio-secondary-btn:active {
    background: #3f4348;
    color: #e8eaed
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme=light]) .labs-studio-secondary-btn {
        background: #2b2d30;
        color: #e8eaed
    }

    :root:not([data-theme=light]) .labs-studio-secondary-btn:hover {
        background: #35383c;
        color: #e8eaed
    }

    :root:not([data-theme=light]) .labs-studio-secondary-btn:active {
        background: #3f4348;
        color: #e8eaed
    }
}

.pms-editor {
    --pms-bg: var(--bg-color, #fff);
    --pms-fg: #202124;
    --pms-soft: #f1f3f4;
    --pms-soft-hover: #e8eaed;
    --pms-soft-active: #dadce0;
    --pms-muted: #5f6368;
    border: 1px solid rgba(128, 128, 128, .22);
    border-radius: 16px;
    padding: 20px 22px;
    margin: 18px 0 24px;
    color: inherit
}

.pms-editor [hidden],
#labs-title-treatment-section[hidden],
#pms-episode-frame[hidden],
#pms-frame-hint[hidden],
#pms-title-hint[hidden] {
    display: none !important
}

.pms-check,
.pms-role label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5
}

.pms-check {
    font-weight: 400;
    font-size: 15px;
    letter-spacing: -.01em;
    color: var(--pms-fg)
}

.pms-editor .yt-radio-container {
    margin-top: 2px
}

.pms-editor .yt-radio-container input {
    appearance: none
}

.pms-role {
    border: 0;
    margin: 20px 0;
    padding: 0;
    display: grid;
    gap: 14px
}

.pms-role legend {
    padding: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--pms-muted)
}

.pms-role strong {
    display: block;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--pms-fg)
}

.pms-role small {
    display: block;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--pms-muted)
}

.pms-editor-fields {
    display: grid;
    gap: 16px;
    margin-top: 14px
}

.pms-pavira-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--pms-soft);
    margin-top: 4px
}

.pms-pavira-copy {
    display: grid;
    gap: 2px;
    font-size: 13px;
    color: var(--pms-muted);
    line-height: 1.45
}

.pms-pavira-copy strong {
    font-weight: 500;
    color: var(--pms-fg);
    font-size: 13.5px
}

.pms-pavira-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px
}

.pms-pavira-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pms-bg);
    border: 1px solid rgba(128, 128, 128, .22);
    font-size: 12px;
    color: var(--pms-fg)
}

.pms-pavira-lang-grid {
    display: grid;
    gap: 12px;
    margin-top: 8px
}

.pms-pavira-lang-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    align-items: center
}

@media(max-width:560px) {
    .pms-pavira-lang-row {
        grid-template-columns: 1fr;
        gap: 6px
    }
}

.pms-text-count {
    display: block;
    color: var(--pms-muted, #747775);
    font-size: 12px;
    line-height: 1.3;
    text-align: right;
    font-weight: 500
}

.pms-counted-title {
    padding-bottom: 20px
}

.pms-counted-title>.pms-text-count {
    position: absolute;
    right: 16px;
    bottom: 0
}

.pms-counted-title>.floating-label {
    top: calc(50% - 10px)
}

.pms-editor .labs-short-description-field textarea {
    padding-bottom: 36px
}

.pms-role .is-unavailable {
    color: var(--pms-muted);
    cursor: default
}

.pms-role .is-unavailable .yt-radio-custom {
    display: none
}

.pms-role .is-unavailable .yt-radio-container,
.pms-role .is-unavailable input {
    cursor: default !important
}

.pms-role-lock {
    width: 20px;
    height: 20px;
    display: block;
    background: currentColor;
    mask: url('/lock_700dp_000000_FILL0_wght400_GRAD200_opsz24.png') center/contain no-repeat
}

/* Visual series selection uses the same saved artwork and placement as catalog cards. */
.pms-gallery {
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100dvh - 64px);
    margin: auto;
    overflow: hidden
}

.pms-gallery[open] {
    display: flex;
    flex-direction: column
}

.pms-gallery>header {
    align-items: flex-start;
    padding-bottom: 12px
}

.pms-gallery header p {
    margin: 8px 0 0;
    line-height: 1.5
}

.pms-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 28px;
    padding: 12px 28px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0
}

.pms-series-dialog .pms-gallery-grid {
    padding: 8px 0 0;
    overflow: visible
}

.pms-gallery-card {
    appearance: none;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transform: none !important;
    transition: none !important
}

.pms-gallery-card:focus {
    outline: none
}

.pms-gallery-card:focus-visible .pms-gallery-name {
    text-decoration: underline;
    text-underline-offset: .2em
}

.pms-gallery-card::before {
    content: '';
    position: absolute;
    inset: -12px;
    z-index: -1;
    border-radius: 16px;
    background: var(--pms-soft);
    pointer-events: none;
    opacity: 0;
    transition: opacity 65ms ease-out
}

.pms-gallery-card:active::before {
    opacity: 1;
    transition-duration: 0s
}

@media(hover:hover) {
    .pms-gallery-card:hover::before {
        opacity: 1;
        transition-duration: 0s
    }
}

.pms-gallery-card:active::before {
    background: color-mix(in srgb, var(--pms-soft), black 12%)
}

.pms-gallery-close {
    appearance: none;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: -4px -4px 0 12px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    transform: none
}

.pms-gallery-close::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: rgba(135, 135, 135, .17);
    opacity: 0;
    transform: scale(.9);
    transition: opacity 65ms ease-out, transform 65ms ease-out
}

.pms-gallery-close:focus-visible::before,
.pms-gallery-close:active::before {
    opacity: 1;
    transform: scale(1);
    transition-duration: 0s
}

.pms-gallery-close:active::before {
    background: rgba(135, 135, 135, .28)
}

@media(hover:hover) {
    .pms-gallery-close:hover::before {
        opacity: 1;
        transform: scale(1);
        transition-duration: 0s
    }
}

.pms-gallery-close-icon {
    display: block;
    width: 24px;
    height: 24px;
    background: currentColor;
    mask: url('/icons/v2/material-rounded/close.svg') center/contain no-repeat;
    pointer-events: none
}

.pms-gallery-art {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--pms-soft)
}

.pms-gallery-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.pms-gallery-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--pms-muted);
    font-size: 14px
}

.pms-gallery-art [hidden] {
    display: none !important
}

.pms-gallery-selected {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    border-radius: 999px;
    padding: 5px 9px;
    background: #202020d9;
    color: #fff;
    font-size: 12px
}

.pms-gallery-name {
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.pms-gallery-meta,
.pms-gallery-description {
    color: var(--pms-muted);
    font-size: 13px;
    line-height: 1.5
}

.pms-gallery-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

body:has(.pms-gallery[open]) {
    overflow: hidden
}

@media(max-width:900px) {
    .pms-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(max-width:680px) {
    .pms-gallery {
        width: calc(100vw - 24px);
        max-height: calc(100dvh - 32px)
    }

    .pms-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 20px;
        padding: 8px 20px 20px
    }

    .pms-gallery-card::before {
        inset: -8px
    }

    .pms-gallery h2 {
        font-size: 20px
    }

    .pms-gallery-name {
        font-size: 14px
    }

    .pms-gallery header p {
        font-size: 14px
    }
}

@media(prefers-reduced-motion:reduce) {

    .pms-gallery-card::before,
    .pms-gallery-close::before {
        transition: none;
        transform: none
    }
}

.pms-editor textarea {
    resize: none
}

.pms-editor p {
    line-height: 1.5;
    margin: 0
}

.pms-editor-footer {
    padding-top: 16px
}

.pms-editor [role=status]:empty {
    display: none
}

.pms-editor [role=status] {
    padding-top: 10px
}

.pms-collection {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.pms-collection[hidden],
.pms-collection [hidden] {
    display: none !important;
}

.pms-series-dialog .pms-collection {
    padding-block: 16px;
    border-block: 1px solid #8884;
}

.pms-collection-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    cursor: pointer;
}

.pms-collection-toggle strong {
    font-weight: 550;
}

.pms-collection-toggle:has(input:disabled) {
    cursor: default;
    opacity: .6;
}

.pms-collection-toggle .pms-checkbox-input:focus-visible + .pms-checkbox-box {
    outline: 2px solid var(--pms-fg);
    outline-offset: 3px;
}

.pms-collection-settings {
    display: grid;
    gap: 14px;
    padding-top: 6px;
}

.pms-collection-settings > .pms-button {
    justify-self: start;
}

.pms-collection-picker .pms-select,
.pms-series-dialog .pms-select {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #8886;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
}

.pms-collection-picker .pms-select {
    width: 100%;
}

.pms-collection-picker .pms-select:focus-visible {
    outline: 2px solid var(--pms-fg);
    outline-offset: 2px;
}

.pms-select[aria-expanded=true]::after {
    rotate: 180deg;
}

.pms-options {
    box-sizing: border-box;
}

.pms-options.opens-up {
    top: auto;
    bottom: calc(100% - var(--pms-picker-offset));
}

.pms-press-fill {
    position: relative;
    isolation: isolate;
}

.pms-press-fill > :not(.pms-press-layer),
.pms-press-fill.pms-select::after {
    position: relative;
    z-index: 1;
}

.pms-press-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    opacity: 1;
    transition: opacity 155ms ease-out;
}

.pms-press-layer.is-releasing {
    opacity: 0;
}

.pavira-press-fill {
    position: absolute;
    border-radius: 50%;
    background: color-mix(in srgb, currentColor 17%, transparent);
    animation: pms-press-expand 145ms cubic-bezier(.2,.65,.3,1) both;
}

.pms-checkbox-box .pavira-press-fill {
    background: #8885;
}

@keyframes pms-press-expand {
    from { transform: scale(.04); }
    to { transform: scale(1.02); }
}

.pms-collection [aria-invalid=true] {
    border-color: var(--pms-error, #b3261e);
}

.pms-collection .is-error {
    color: var(--pms-error, #b3261e);
}

:is(body.dark-mode, [data-theme=dark]) .pms-collection {
    --pms-error: #ffb4ab;
}

.pms-collection-translation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pms-series-dialog .pms-actions .pms-button {
    border-radius: 8px;
    min-height: 38px;
    padding-inline: 16px;
}

.pms-series-dialog .pms-actions .pms-button:not(.is-primary) {
    background: transparent;
    box-shadow: inset 0 0 0 1px #8886;
}

.pms-series-dialog .pms-actions .pms-button:not(.is-primary):hover {
    background: var(--pms-soft);
}

.pms-editor .pms-button,
#pms-episode-frame {
    transform: none !important;
    animation: none !important;
    transition: background-color .15s ease, opacity .15s ease !important
}

.pms-editor .pms-button:hover,
#pms-episode-frame:hover {
    background: var(--pms-soft-hover, #e8eaed)
}

.pms-editor .pms-button:active,
#pms-episode-frame:active {
    background: var(--pms-soft-active, #dadce0)
}

#pms-frame-hint,
#pms-title-hint {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 10px 0 20px;
    color: #5f6368
}

:root[data-theme=dark] .pms-editor,
body.dark-mode .pms-editor,
body[data-theme=dark] .pms-editor {
    --pms-bg: #202020;
    --pms-fg: #fff;
    --pms-soft: #2b2d30;
    --pms-soft-hover: #35383c;
    --pms-soft-active: #3f4348;
    --pms-muted: #b8b8b8
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme=light]) .pms-editor {
        --pms-bg: #202020;
        --pms-fg: #fff;
        --pms-soft: #2b2d30;
        --pms-soft-hover: #35383c;
        --pms-soft-active: #3f4348;
        --pms-muted: #b8b8b8
    }

    #pms-frame-hint,
    #pms-title-hint {
        color: #aaa
    }
}

@media(max-width:600px) {
    .pms-editor {
        padding: 18px
    }

    .pms-role small {
        font-size: 13px
    }
}

.pms-editor {
    color-scheme: light
}

:root[data-theme=dark] .pms-editor,
body.dark-mode .pms-editor,
body[data-theme=dark] .pms-editor {
    color-scheme: dark
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme=light]) .pms-editor {
        color-scheme: dark
    }
}

.pms-editor .input-group {
    margin: 0
}

.pms-editor .custom-select-box {
    width: 100%;
    font: inherit;
    font-weight: 400;
    text-align: left;
    transform: none !important;
    transition: background-color .15s ease, border-color .15s ease !important
}

.pms-editor .custom-select-box:hover {
    background: var(--pms-soft, #f1f3f4)
}

.pms-editor .custom-select-box:active {
    background: var(--pms-soft-hover, #e8eaed)
}

.pms-picker-arrow {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background: currentColor;
    mask: url("/icons/v1/material/expand_more.svg") center/contain no-repeat;
    opacity: .7
}

.pms-dialog .pms-field :is(input, textarea):focus {
    outline: none;
    border-color: var(--pms-fg);
    box-shadow: inset 0 0 0 1px var(--pms-fg)
}

.pms-season-settings>div {
    display: grid;
    gap: 8px;
    margin: 12px 0
}

.pms-season {
    align-items: center;
    justify-content: space-between;
    padding: 4px 0
}

.pms-grouping {
    margin: 0;
    padding: 0
}

.pms-grouping:focus {
    outline: none
}

.pms-grouping .is-unavailable .yt-radio-custom {
    display: flex
}

.pms-grouping .is-unavailable {
    opacity: .7
}

#pms-manual-season-list {
    display: grid;
    gap: 10px
}

#pms-add-season {
    justify-self: start
}

.pms-season-line {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #8884;
    border-radius: 12px
}

.pms-season-line strong {
    margin-right: auto;
    font-weight: 500
}

.pms-period-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pms-muted);
    font-size: 14px
}

.pms-period-lock {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url('/lock_700dp_000000_FILL0_wght400_GRAD200_opsz24.png') center/contain no-repeat
}

.pms-period-destination {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #8884;
    border-radius: 14px
}

.pms-period-destination strong {
    font-weight: 500
}

.pms-season-count {
    color: var(--pms-muted);
    font-size: 14px;
    white-space: nowrap
}

.pms-season-line strong {
    margin-right: 0
}

.pms-season-count {
    margin-right: auto
}

@media(max-width:600px) {
    .pms-season-line {
        flex-wrap: wrap;
        gap: 8px
    }

    .pms-season-count {
        margin-right: 0
    }

    .pms-period-status {
        margin-left: auto
    }
}
