#sidebar .content {
    -webkit-hyphens: manual;
    hyphens: manual;
}

#sidebar .content .pb-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
}

#sidebar .content .pb-bgcap,
#sidebar .content .pb-ly__cap {
    padding-bottom: 0;
}

#sidebar .pb-bgcap {
    margin: 0 0 12px;
    color: var(--pbui-muted);
    font: 500 13px/1.45 var(--pbui-font);
}

#sidebar .pb-bgcap[hidden] {
    display: none;
}

#sidebar .pb-bgarea {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 20px;
    padding: 4px;
    border-radius: 14px;
    background: var(--pbui-soft);
}

#sidebar .pb-bgarea button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 4px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pbui-muted);
    font: 700 12px/1.2 var(--pbui-font);
    text-align: center;
    cursor: pointer;
    transition: background-color .15s, color .15s, box-shadow .15s;
}

#sidebar .pb-bgarea button span {
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#sidebar .pb-bgarea button:hover {
    background: rgba(255, 255, 255, .7);
    color: var(--pbui-ink);
}

#sidebar .pb-bgarea button:focus-visible {
    outline: 2px solid var(--pbui-primary);
    outline-offset: -2px;
}

#sidebar .pb-bgarea button[aria-pressed="true"] {
    background: #fff;
    color: var(--pbui-ink);
    box-shadow: 0 1px 3px rgba(13, 27, 34, .16), inset 0 0 0 1.5px var(--pbui-primary);
}

#sidebar .pb-bgarea button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

#sidebar .pb-bgarea .t-page {
    display: -webkit-box;
}

#sidebar .pb-bgarea .t-cover,
html:has(#book-container.pb-on-cover) #sidebar .pb-bgarea .t-page {
    display: none;
}

html:has(#book-container.pb-on-cover) #sidebar .pb-bgarea .t-cover {
    display: -webkit-box;
}

#sidebar .pb-bgc {
    margin: 0 0 22px;
}

#sidebar .pb-bgc__h {
    margin: 0 0 10px;
    color: var(--pbui-muted);
    font: 700 12px/1.3 var(--pbui-font);
    letter-spacing: .06em;
    text-transform: uppercase;
}

#sidebar .pb-bgc__sws {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 8px;
    margin: 0 0 12px;
}

#sidebar .pb-bgc__sw {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .16);
    cursor: pointer;
    transition: box-shadow .15s;
}

#sidebar .pb-bgc__sw:hover {
    box-shadow: inset 0 0 0 1px var(--pbui-primary), inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(13, 27, 34, .16);
}

#sidebar .pb-bgc__sw:focus-visible {
    outline: 2px solid var(--pbui-primary);
    outline-offset: -2px;
    box-shadow: inset 0 0 0 4px #fff;
}

#sidebar .pb-bgc__sw.is-on,
#sidebar .pb-bgc__sw[aria-pressed="true"] {
    outline: 2.5px solid var(--pbui-primary);
    outline-offset: -2.5px;
    box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px rgba(13, 27, 34, .16);
}

#sidebar .pb-bgc__sw:disabled {
    opacity: .4;
    cursor: not-allowed;
}

#sidebar .pb-bgc__act {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#sidebar .pb-bgc__own,
#sidebar .pb-bgc__none {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    border: 1.5px solid var(--pbui-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pbui-ink);
    font: 700 13px/1.2 var(--pbui-font);
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

#sidebar .pb-bgc__own:hover,
#sidebar .pb-bgc__none:hover {
    border-color: var(--pbui-primary);
    background: var(--pbui-soft);
}

#sidebar .pb-bgc__own:focus-visible,
#sidebar .pb-bgc__none:focus-visible {
    border-color: var(--pbui-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .3);
}

#sidebar .pb-bgc__own.is-on,
#sidebar .pb-bgc__none.is-on {
    border-color: var(--pbui-primary);
    background: var(--pbui-tint);
    color: var(--pbui-tint-ink);
}

#sidebar .pb-bgc__own:disabled,
#sidebar .pb-bgc__none:disabled {
    border-color: var(--pbui-line);
    background: var(--pbui-soft);
    color: #8a9a9f;
    cursor: not-allowed;
}

#sidebar .pb-bgc__dot,
#sidebar .pb-bgc__no {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

#sidebar .pb-bgc__dot {
    background: var(--pb-own, conic-gradient(#e6007e, #ffb400, #3ccf6b, #00b4d8, #7c4dff, #e6007e));
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .16);
}

#sidebar .pb-bgc__no {
    background: linear-gradient(to top right, transparent calc(50% - 1px), #b42318 calc(50% - 1px), #b42318 calc(50% + 1px), transparent calc(50% + 1px)), #fff;
    box-shadow: inset 0 0 0 1.5px #98a4a8;
}

#sidebar .pb-bgc__h--pics {
    margin-top: 4px;
}

#sidebar #backgrounds.pb-bgs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 0 12px;
}

#sidebar #backgrounds.pb-bgs .item {
    position: relative;
    display: block;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1.5px solid var(--pbui-line);
    border-radius: 12px;
    background: #fff;
    cursor: grab;
    transition: border-color .15s, box-shadow .15s;
}

#sidebar #backgrounds.pb-bgs .item:hover {
    border-color: var(--pbui-primary);
    box-shadow: 0 8px 16px -10px rgba(13, 27, 34, .55);
}

#sidebar #backgrounds.pb-bgs .item:focus-visible {
    outline: 2px solid var(--pbui-primary);
    outline-offset: -2px;
}

#sidebar #backgrounds.pb-bgs .item img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    pointer-events: none;
}

#sidebar #backgrounds.pb-bgs .item.pb-bg-none {
    display: grid;
    place-items: center;
    padding: 4px;
    background: var(--pbui-soft);
    color: var(--pbui-muted);
    font: 700 12px/1.2 var(--pbui-font);
    text-align: center;
    cursor: pointer;
}

#sidebar #backgrounds.pb-bgs .item.is-on {
    border-color: var(--pbui-primary);
}

#sidebar #backgrounds.pb-bgs .item.is-on::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px var(--pbui-primary), inset 0 0 0 4px #fff;
    pointer-events: none;
}

body .sp-container {
    --pb-sp-acc: var(--p55-hdr-icon, #00838f);
    --pb-sp-ink: var(--p55-btn-bg, #0d1b22);
    --pb-sp-line: var(--p55-hdr-line, #e6e2d9);
    --pb-sp-font: var(--p55h-font, 'Manrope', system-ui, sans-serif);
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 232px;
    padding: 14px;
    border: 1px solid var(--pb-sp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 44px -14px rgba(13, 27, 34, .42), 0 2px 8px rgba(13, 27, 34, .08);
    color: var(--pb-sp-ink);
    font: 600 13px/1.3 var(--pb-sp-font);
}

body .sp-container.sp-hidden {
    display: none;
}

body .sp-container,
body .sp-container button,
body .sp-container input {
    font-family: var(--pb-sp-font);
}

body .sp-container .sp-palette-container,
body .sp-container .sp-picker-container {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

body .sp-container .sp-palette-container:not(:has(.sp-thumb-el)) {
    display: none;
}

body .sp-container .sp-palette {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

body .sp-container .sp-palette .sp-cf {
    display: contents;
}

body .sp-container .sp-palette .sp-thumb-el {
    float: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .16);
}

body .sp-container .sp-palette .sp-thumb-el:hover,
body .sp-container .sp-palette .sp-thumb-el.sp-thumb-active {
    outline: 2px solid var(--pb-sp-acc);
    outline-offset: 2px;
}

body .sp-container .sp-palette .sp-thumb-inner {
    border-radius: 50%;
}

body .sp-container .sp-top {
    margin: 0;
}

body .sp-container .sp-fill {
    padding-top: 70%;
}

body .sp-container .sp-color,
body .sp-container .sp-hue,
body .sp-container .sp-clear {
    border: 0;
}

body .sp-container .sp-color {
    right: 30px;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .12);
}

body .sp-container .sp-sat,
body .sp-container .sp-val {
    border-radius: 12px;
}

body .sp-container .sp-hue,
body .sp-container.sp-clear-enabled .sp-hue {
    top: 0;
    left: auto;
    width: 20px;
    height: 100%;
    border-radius: 10px;
}

body .sp-container .sp-clear {
    display: none;
}

body .sp-container .sp-dragger {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(13, 27, 34, .35), 0 3px 6px rgba(13, 27, 34, .35);
}

body .sp-container .sp-slider {
    left: -3px;
    right: -3px;
    height: 8px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(13, 27, 34, .35), 0 2px 5px rgba(13, 27, 34, .3);
}

body .sp-container.sp-alpha-enabled .sp-top {
    margin-bottom: 20px;
}

body .sp-container .sp-alpha {
    bottom: -16px;
    height: 10px;
    border-radius: 5px;
}

body .sp-container .sp-alpha-inner {
    border: 0;
    border-radius: 5px;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .12);
}

body .sp-container .sp-alpha-handle {
    top: -3px;
    bottom: -3px;
    width: 8px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(13, 27, 34, .35), 0 2px 5px rgba(13, 27, 34, .3);
}

body .sp-container .sp-input-container {
    float: none;
    width: 100%;
    margin: 12px 0 0;
}

body .sp-container .sp-input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1.5px solid var(--pb-sp-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pb-sp-ink);
    font: 700 14px/1 var(--pb-sp-font) !important;
    letter-spacing: .03em;
    text-transform: uppercase;
    transition: border-color .15s, box-shadow .15s;
}

body .sp-container .sp-input:hover {
    border-color: var(--pb-sp-acc);
}

body .sp-container .sp-input:focus {
    border-color: var(--pb-sp-acc);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .3);
}

body .sp-container .sp-input.sp-validation-error {
    border-color: #b42318;
    background: #fffafa;
}

body .sp-container .sp-initial {
    float: none;
    margin: 12px 0 0;
    overflow: hidden;
    border-radius: 10px;
}

body .sp-container .sp-initial span {
    height: 28px;
}

body .sp-container .sp-button-container {
    display: flex;
    gap: 8px;
    float: none;
    margin: 12px 0 0;
    text-align: center;
}

body .sp-container .sp-cancel,
body .sp-container .sp-choose {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1.5px solid var(--pb-sp-line);
    border-radius: 12px;
    background: #fff none;
    color: var(--pb-sp-ink) !important;
    font: 700 13px/1 var(--pb-sp-font);
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

body .sp-container .sp-cancel:hover {
    border-color: var(--pb-sp-acc);
    text-decoration: none;
}

body .sp-container.pb-sp--one .sp-cancel {
    display: none;
}

body .sp-container .sp-choose {
    border-color: var(--pb-sp-acc);
    background: var(--pb-sp-acc) none;
    color: #fff !important;
}

body .sp-container .sp-choose:hover {
    border-color: var(--pb-sp-acc);
    background: color-mix(in srgb, var(--pb-sp-acc) 86%, #000) none;
}

body .sp-container .sp-cancel:focus-visible,
body .sp-container .sp-choose:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .3);
}

#sidebar .pb-fr__set {
    margin: 0 0 22px;
    padding: 2px 14px;
    border: 1.5px solid var(--pbui-line);
    border-radius: 14px;
    background: #fff;
}

html body #sidebar .pb-fr label.pb-fr__sw:not([hidden]):has(> input[type="checkbox"]) {
    --p55-cb-pad: 0px;
    display: inline-flex;
    align-items: center;
    width: 50%;
    min-height: 48px;
    margin: 0;
    padding: 0;
    color: var(--pbui-ink);
    font: 700 14px/1.2 var(--pbui-font);
    cursor: pointer;
}

html body #sidebar .pb-fr label.pb-fr__sw > input[type="checkbox"] {
    margin-top: 0 !important;
}

html body #sidebar .pb-fr label.pb-fr__sw:has(> input:disabled) {
    color: #8a9a9f;
    cursor: not-allowed;
}

#sidebar .pb-fr__rng,
#sidebar .pb-fr__col {
    display: grid;
    align-items: center;
    gap: 2px 10px;
    padding: 12px 0;
    border-top: 1px solid var(--pbui-line);
}

#sidebar .pb-fr__rng {
    grid-template-columns: minmax(0, 1fr) auto;
}

#sidebar .pb-fr__rng input {
    grid-column: 1 / -1;
}

#sidebar .pb-fr__col {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
}

#sidebar .pb-fr__rng label,
#sidebar .pb-fr__col label {
    margin: 0;
    color: var(--pbui-ink);
    font: 700 14px/1.2 var(--pbui-font);
}

#sidebar .pb-fr__rng output {
    min-width: 44px;
    color: var(--pbui-muted);
    font: 700 13px/1 var(--pbui-font);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

#sidebar .pb-fr input[type="range"],
#sidebar .layers input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    --pb-fill: 0%;
}

#sidebar .pb-fr input[type="range"]::-webkit-slider-runnable-track,
#sidebar .layers input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--pbui-primary) var(--pb-fill), #dfe5e7 var(--pb-fill));
}

#sidebar .pb-fr input[type="range"]::-moz-range-track,
#sidebar .layers input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #dfe5e7;
}

#sidebar .pb-fr input[type="range"]::-moz-range-progress,
#sidebar .layers input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: var(--pbui-primary);
}

#sidebar .pb-fr input[type="range"]::-webkit-slider-thumb,
#sidebar .layers input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border: 2px solid var(--pbui-primary);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(13, 27, 34, .3);
    transition: box-shadow .15s;
}

#sidebar .pb-fr input[type="range"]::-moz-range-thumb,
#sidebar .layers input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 2px solid var(--pbui-primary);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(13, 27, 34, .3);
}

#sidebar .pb-fr input[type="range"]:hover::-webkit-slider-thumb,
#sidebar .layers input[type="range"]:hover::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(0, 131, 143, .14), 0 1px 3px rgba(13, 27, 34, .3);
}

#sidebar .pb-fr input[type="range"]:focus-visible,
#sidebar .layers input[type="range"]:focus-visible {
    outline: 0;
}

#sidebar .pb-fr input[type="range"]:focus-visible::-webkit-slider-thumb,
#sidebar .layers input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 5px rgba(0, 131, 143, .3), 0 1px 3px rgba(13, 27, 34, .3);
}

#sidebar .pb-fr input[type="range"]:disabled,
#sidebar .layers input[type="range"]:disabled {
    cursor: not-allowed;
}

#sidebar .pb-fr input[type="range"]:disabled::-webkit-slider-runnable-track {
    background: #e9eded;
}

#sidebar .pb-fr input[type="range"]:disabled::-webkit-slider-thumb {
    border-color: #b6c0c3;
    box-shadow: none;
}

#sidebar .pb-fr__col .sp-replacer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 10px 0 8px;
    border: 1.5px solid var(--pbui-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

#sidebar .pb-fr__col .sp-replacer:hover,
#sidebar .pb-fr__col .sp-replacer.sp-active {
    border-color: var(--pbui-primary);
}

#sidebar .pb-fr__col .sp-replacer:focus-visible {
    border-color: var(--pbui-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .3);
}

#sidebar .pb-fr__col .sp-replacer.sp-disabled {
    border-color: var(--pbui-line);
    background: var(--pbui-soft);
    cursor: not-allowed;
    opacity: .6;
}

#sidebar .pb-fr__col .sp-preview {
    float: none;
    width: 28px;
    height: 28px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .2);
    overflow: hidden;
}

#sidebar .pb-fr__col .sp-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .2);
    pointer-events: none;
}

#sidebar .pb-fr__col .sp-dd {
    float: none;
    width: 10px;
    height: 10px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    border-right: 2px solid var(--pbui-muted);
    border-bottom: 2px solid var(--pbui-muted);
    transform: translateY(-2px) rotate(45deg) scale(.8);
}

#sidebar .pb-fr .frames {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#sidebar .pb-fr .frames .frame {
    position: relative;
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px var(--pbui-line);
    cursor: grab;
    transition: box-shadow .15s;
}

#sidebar .pb-fr .frames .frame:hover {
    box-shadow: inset 0 0 0 2px var(--pbui-primary);
}

#sidebar .layers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

#sidebar .pb-ly__cap {
    margin: 0 0 14px;
    color: var(--pbui-muted);
    font: 500 12.5px/1.45 var(--pbui-font);
}

#sidebar .layers .layer-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 40px minmax(0, 1fr) auto;
    grid-template-areas: "grip prev title vis" "bar bar bar bar";
    align-items: center;
    gap: 0 8px;
    padding: 6px 6px 6px 4px;
    border: 1.5px solid var(--pbui-line);
    border-radius: 14px;
    background: #fff;
    color: var(--pbui-ink);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}

#sidebar .layers .layer-item:hover {
    border-color: var(--pbui-primary);
}

#sidebar .layers .layer-item:focus-visible {
    border-color: var(--pbui-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .3);
}

#sidebar .layers .layer-item.selected {
    border-color: var(--pbui-primary);
    background: var(--pbui-tint);
    box-shadow: inset 0 0 0 1px var(--pbui-primary);
}

#sidebar .layers .layer-item.ui-sortable-helper {
    background: #fff;
    box-shadow: 0 14px 28px -10px rgba(13, 27, 34, .5);
}

#sidebar .layers .ui-sortable-placeholder {
    visibility: visible !important;
    border: 1.5px dashed var(--pbui-primary);
    border-radius: 14px;
    background: var(--pbui-tint);
}

#sidebar .pb-ly__grip {
    grid-area: grip;
    display: grid;
    place-items: center;
    height: 36px;
    color: #98a4a8;
    font-size: 20px;
    cursor: grab;
    touch-action: none;
}

#sidebar .pb-ly__grip .pb-ic {
    fill: currentColor;
    stroke: none;
}

#sidebar .layers .layer-item:hover .pb-ly__grip {
    color: var(--pbui-primary);
}

#sidebar .layers .preview {
    grid-area: prev;
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--pbui-soft);
    box-shadow: inset 0 0 0 1px rgba(13, 27, 34, .1);
    color: #8a9a9f;
    font-size: 20px;
}

#sidebar .layers .preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

#sidebar .layers .layer-item[data-kind="sticker"] .preview img {
    padding: 3px;
    object-fit: contain;
}

#sidebar .layers .preview img:not([hidden]) + svg {
    display: none;
}

#sidebar .pb-ly__t {
    grid-area: title;
    display: grid;
    gap: 2px;
    min-width: 0;
}

#sidebar .pb-ly__t b {
    overflow: hidden;
    font: 700 13px/1.25 var(--pbui-font);
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sidebar .pb-ly__t small {
    overflow: hidden;
    color: var(--pbui-muted);
    font: 500 11.5px/1.2 var(--pbui-font);
    text-overflow: ellipsis;
    white-space: nowrap;
}

#sidebar .layers .layer-item.is-off .preview,
#sidebar .layers .layer-item.is-off .pb-ly__t {
    opacity: .45;
}

#sidebar .pb-ly__b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1.5px solid var(--pbui-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pbui-ink);
    font-size: 18px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s;
}

#sidebar .pb-ly__b:hover {
    border-color: var(--pbui-primary);
    background: var(--pbui-soft);
}

#sidebar .pb-ly__b:focus-visible {
    border-color: var(--pbui-primary);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(0, 131, 143, .3);
}

#sidebar .pb-ly__b:disabled {
    border-color: var(--pbui-line);
    background: var(--pbui-soft);
    color: #b0bbbf;
    cursor: not-allowed;
}

#sidebar .pb-ly__b.pb-ly__del:hover {
    border-color: #b42318;
    background: #fff4f2;
    color: #b42318;
}

#sidebar .pb-ly__b.pb-ly__del:focus-visible {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .3);
}

#sidebar .pb-ly__vis {
    grid-area: vis;
    border-color: transparent;
    background: transparent;
}

#sidebar .pb-ly__off,
#sidebar .layers .layer-item.is-off .pb-ly__on {
    display: none;
}

#sidebar .layers .layer-item.is-off .pb-ly__off {
    display: block;
}

#sidebar .pb-ly__bar {
    grid-area: bar;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 2px 4px 26px;
}

#sidebar .layers .layer-item.selected .pb-ly__bar {
    display: flex;
}

#sidebar .pb-ly__op {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    flex: 1 1 100%;
    gap: 12px;
    margin: 4px 0 0;
}

#sidebar .pb-ly__op span {
    color: var(--pbui-muted);
    font: 700 12px/1.2 var(--pbui-font);
}

#sidebar .pb-ly__empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 28px 16px;
    border: 1.5px dashed var(--pbui-line);
    border-radius: 14px;
    color: var(--pbui-muted);
    font: 500 12.5px/1.45 var(--pbui-font);
    text-align: center;
}

#sidebar .pb-ly__empty .pb-ic {
    font-size: 28px;
    color: #98a4a8;
}

#sidebar .pb-ly__empty b {
    color: var(--pbui-ink);
    font: 700 14px/1.3 var(--pbui-font);
}

html.pb-phone #sidebar .pb-bgarea button,
html.pb-phone #sidebar .pb-bgc__own,
html.pb-phone #sidebar .pb-bgc__none {
    min-height: 48px;
}

html.pb-phone #sidebar .pb-ly__b {
    width: 44px;
    height: 44px;
}

html.pb-phone #sidebar .pb-ly__grip {
    height: 44px;
    color: #7d8b90;
    font-size: 24px;
}

html.pb-phone #sidebar .pb-fr input[type="range"],
html.pb-phone #sidebar .layers input[type="range"] {
    height: 40px;
}

html.pb-phone #sidebar .pb-ly__bar {
    padding-left: 4px;
}

html.pb-phone #sidebar .pb-fr .frames {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (prefers-reduced-motion: reduce) {
    #sidebar .pb-bgc__sw,
    #sidebar .pb-bgc__own,
    #sidebar .pb-bgc__none,
    #sidebar .pb-ly__b,
    #sidebar .layers .layer-item,
    body .sp-container .sp-input {
        transition: none;
    }
}
