.pk-document-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.pk-document-heading .pk-sidebar-title{margin:0!important}
body:has(.pk-header) .pk-edit-documents{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-size:11px;color:var(--pk-accent,#0073c1);padding:4px 0;line-height:1.4}
.pk-edit-documents svg{width:13px;height:13px}
body:has(.pk-header) .pk-demo-live-card{width:var(--pk-shell-width,calc(100% - 48px));max-width:var(--pk-content-width,1540px);margin:32px auto 0;padding:24px 28px;border:1px solid #cbdde8;border-radius:11px;background:#fff;text-align:left;color:#294350}
.pk-demo-live-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:11px;color:#83939c}
.pk-demo-live-badge{display:inline-flex;align-items:center;gap:7px;background:#e9f5fc;color:#0073c1;font-size:11px;font-weight:500;padding:5px 9px;border-radius:4px}
.pk-demo-live-badge::before{content:'';width:6px;height:6px;border-radius:50%;background:#008bd9;box-shadow:0 0 0 4px #008bd916;animation:pk-demo-pulse 1.6s ease-in-out infinite}
.pk-demo-live-main{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0}
.pk-demo-live-kicker{font-size:12px;color:#78909d;margin:0 0 4px}
.pk-demo-live-main h2{font-size:25px;line-height:1.3;font-weight:500;margin:0 0 6px;color:#294350}
.pk-demo-live-main p:last-child{font-size:13px;margin:0;color:#78909d}
body:has(.pk-header) .pk-demo-live-open{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 17px;background:#0073c1;border-radius:5px;color:#fff;font-size:13px;flex-shrink:0}
.pk-demo-live-current{display:flex;flex-wrap:wrap;gap:7px 16px;align-items:center;border-top:1px solid #e3ebf0;padding-top:16px;font-size:14px}
.pk-demo-live-current>span:first-child{font-size:11px;color:#78909d}
.pk-demo-live-current strong{font-size:16px;font-weight:500;color:#0073c1}
.pk-demo-live-progress{display:flex;align-items:center;gap:14px;margin-top:15px;font-size:11px;color:#78909d}
.pk-demo-live-progress>div{height:5px;flex:1;background:#e7eff4;border-radius:9px;overflow:hidden}
.pk-demo-live-progress i{display:block;height:100%;background:#008bd9;border-radius:9px}
body:has(.pk-header) .pk-live-demo-note{width:100%;max-width:var(--pk-content-width,1540px);box-sizing:border-box;padding:12px 16px;margin:0 0 18px;background:#fff6df;border:1px solid #ead8aa;border-radius:6px;color:#80672e;font-size:12px;line-height:1.5}
@keyframes pk-demo-pulse{50%{opacity:.45}}
@media(max-width:700px){body:has(.pk-header) .pk-demo-live-card{padding:17px 18px;margin-top:20px}.pk-demo-live-top{gap:8px;font-size:10px}.pk-demo-live-main{flex-direction:column;align-items:stretch;gap:14px;margin:15px 0}.pk-demo-live-main h2{font-size:22px}.pk-demo-live-open{padding:11px 14px!important}.pk-demo-live-current{font-size:12px;gap:5px 10px}.pk-demo-live-current strong{font-size:14px}.pk-demo-live-progress{gap:10px;font-size:10px}.pk-document-heading{width:100%}.pk-demo-live-top>span:last-child{line-height:1.5}}
@media(prefers-reduced-motion:reduce){.pk-demo-live-badge::before{animation:none}}
/* Separate rail-document previews; editing opens only the chosen card. */
body.pk-admin-page .pk-editor-document-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
body.pk-admin-page .pk-editor-document-gallery .pk-editor-document-card{display:block;padding:0;overflow:hidden;min-width:0;border-radius:8px}
.pk-editor-document-preview{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;min-height:165px;padding:24px;text-align:center;background:#fff}
.pk-editor-document-preview>.pk-document-icon{width:30px;height:30px;color:#0073c1}
.pk-editor-document-preview>strong{font-size:15px;line-height:1.4;font-weight:500;color:#36596d;overflow-wrap:anywhere}
.pk-editor-document-preview>small{font-size:11px;color:#8b9ca7}
.pk-editor-document-actions{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:#eef5f9ed;opacity:0;transition:opacity .18s;pointer-events:none}
.pk-editor-document-preview:hover .pk-editor-document-actions,.pk-editor-document-preview:focus-within .pk-editor-document-actions{opacity:1;pointer-events:auto}
.pk-editor-document-actions button{padding:9px 12px!important;font:inherit;font-size:12px;border:1px solid #cddde8;background:#fff;border-radius:5px;color:#0073c1;cursor:pointer;margin:0!important}
.pk-editor-document-actions .pk-editor-danger{color:#b44050;border-color:#e8cdd2}
body.pk-admin-page .pk-editor-document-card.is-editing{grid-column:1/-1}
.pk-editor-document-card.is-editing .pk-editor-document-preview{min-height:100px}
.pk-editor-document-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;border-top:1px solid #e0e8ed}
.pk-editor-document-fields .pk-editor-field{margin:0!important}
.pk-editor-document-fields .pk-editor-document-icons{grid-template-columns:repeat(6,minmax(0,1fr))}
.pk-editor-document-close{border:0;background:transparent;color:#78909d;font:inherit;font-size:12px;padding:4px 0;justify-self:start;align-self:end;cursor:pointer}
@media(max-width:900px){body.pk-admin-page .pk-editor-document-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(hover:none){.pk-editor-document-actions{position:static;opacity:1;pointer-events:auto;background:transparent;margin-top:5px}.pk-editor-document-preview{padding:18px 12px}}
@media(max-width:600px){body.pk-admin-page .pk-editor-document-gallery{gap:10px}.pk-editor-document-preview{padding:17px 10px;min-height:145px;gap:9px}.pk-editor-document-preview>strong{font-size:13px}.pk-editor-document-actions{position:static;opacity:1;pointer-events:auto;background:transparent;margin-top:5px;gap:5px}.pk-editor-document-actions button{font-size:11px;padding:7px 9px!important}.pk-editor-document-fields{grid-template-columns:1fr;padding:15px;gap:12px}.pk-editor-document-fields .pk-editor-document-icons{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.pk-editor-document-actions{transition:none}}

/* The player lives outside the polled fragment, inside the same live window. */
body.pk-home:has(.pk-header) .pk-home-live-window{width:var(--pk-shell-width,calc(100% - 48px));max-width:var(--pk-content-width,1540px);margin:32px auto 0;background:#fff;border:1px solid #cbdde8;border-radius:11px;overflow:hidden;text-align:left}
body.pk-home:has(.pk-header) .pk-home-live-window .comp{display:block;width:100%;max-width:none;margin:0;padding:0}
body.pk-home:has(.pk-header) .pk-home-live-window .pk-demo-live-card{width:100%;max-width:none;margin:0;border:0;border-radius:0}
body.pk-home:has(.pk-header) .pk-home-live-window .recomp{width:100%;max-width:none;margin:0;border:0;border-radius:0}
body.pk-home:has(.pk-header) .pk-home-live-window .pk-managed-broadcast{width:100%;max-width:none;margin:0;padding:20px 28px 28px;border-top:1px solid #e3ebf0;background:#fff}
.pk-home-live-video-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
body.pk-home .pk-home-live-video-heading h2{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:500;margin:0;color:#294350}
.pk-home-live-video-heading svg{width:19px;height:19px;flex-shrink:0;color:#0073c1}
.pk-home-live-video-heading a{display:inline-flex;align-items:center;gap:7px;color:#0073c1;font-size:12px;white-space:nowrap}
.pk-home-live-video-heading a svg{width:15px;height:15px}
body.pk-home .pk-home-live-window .pk-managed-broadcast iframe{display:block;width:100%;aspect-ratio:16/9;min-height:0;border:0;border-radius:7px;background:#172b3c}
@media(max-width:700px){body.pk-home:has(.pk-header) .pk-home-live-window{margin-top:20px}body.pk-home:has(.pk-header) .pk-home-live-window .pk-managed-broadcast{padding:15px 18px 18px}.pk-home-live-video-heading{gap:8px;margin-bottom:11px}body.pk-home .pk-home-live-video-heading h2{font-size:13px;gap:7px}.pk-home-live-video-heading a{font-size:10px;gap:4px}.pk-home-live-video-heading svg{width:16px;height:16px}.pk-home-live-video-heading a svg{width:13px;height:13px}}
@media print{.pk-home-live-window{display:none!important}}
