.pg-timeline { min-width: 0; }
.pgt { --track-label: 84px; color: #e2e5eb; background: #111317; border-top: 1px solid #33363a; font: 500 12px/1.25 -apple-system, BlinkMacSystemFont, sans-serif; text-align: left; }
.pgt *, .pgt-menu * { box-sizing: border-box; }
.pgt [hidden] { display: none !important; }
.pgt-header,.pgt-actions { display:flex; align-items:center; gap:5px; }
.pgt-header { min-height:38px; padding:4px 8px; }
.pgt-actions { margin-inline-start:auto; }
.pgt button,.pgt-menu button { appearance:none; border:0; color:inherit; font:inherit; letter-spacing:normal; cursor:pointer; }
.pgt-header button { display:inline-flex; align-items:center; gap:5px; min-height:25px; padding:3px 8px; border-radius:5px; background:#303032; color:#dedee2; box-shadow:inset 0 1px #ffffff08; }
.pgt-header button svg,.pgt-lane-action svg { width:14px; height:14px; flex:none; }
.pgt-header button:not(:disabled):hover { background:#414144; }
.pgt-header .pgt-more { padding:3px 5px; background:transparent; box-shadow:none; }
.pgt button:disabled, .pgt-menu button:disabled { opacity: .4; cursor: default; }
.pgt :focus-visible, .pgt-menu :focus-visible { outline: 2px solid #bad2f7; outline-offset: 1px; }
.pgt-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; overscroll-behavior-x: contain; padding: 0 8px 9px; }
.pgt-grid { position: relative; display: grid; grid-template-columns: var(--track-label) minmax(0,1fr); row-gap: 3px; min-width: 100%; }
.pgt-rows { display: contents; }
.pgt-ruler { position: relative; height: 19px; cursor: crosshair; touch-action: pan-y; overflow: hidden; }
.pgt-ruler span { position: absolute; bottom: 2px; color: #9098a2; font-size: 9px; font-variant-numeric: tabular-nums; transform: translateX(-50%); white-space: nowrap; }
.pgt-ruler span:first-child { transform: none; }
.pgt-ruler span:last-child { transform: translateX(-100%); }
.pgt-name { display: flex; align-items: center; padding: 0 6px; color: #afb6c1; font-size: 10px; font-weight: 520; overflow: hidden; }
.pgt-name, .pgt-ruler-label { position: sticky; left: 0; z-index: 2; background: #111317; }
.pgt-lane { position: relative; height: 26px; border-radius: 4px; background: #1d2025; cursor: crosshair; }
.pgt .pgt-bar { position: absolute; top: 2px; bottom: 2px; overflow: hidden; min-width: 3px; margin: 0; padding: 0; display: flex; align-items: center; text-align: left; border-radius: 4px; background: #405971; color: #f2f6ff; cursor: grab; touch-action: pan-y; }
.pgt-bar[data-kind="narration"], .pgt-bar[data-kind="music"] { background: #2a5348; }
.pgt-bar[data-kind="zoom"] { background: #51416e; }
.pgt-bar[data-kind="caption"], .pgt-bar[data-kind="text"] { background: #594c36; }
.pgt-bar[data-kind="mask"] { background: #68444c; }
.pgt-bar[data-kind="camera"], .pgt-bar[data-kind="overlay"], .pgt-bar[data-kind="watermark"] { background: #40566a; }
.pgt-bar[data-kind="marker"] { top: 3px; bottom: 3px; width: 19px; background: #625c39; }
.pgt-bar[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #e8eff8; }
.pgt-bar:hover { filter: brightness(1.15); }
.pgt-bar:active { cursor: grabbing; }
.pgt-bar-label { position: relative; align-self: stretch; display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 4px 8px; font-size: 10px; font-weight: 560; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 2px #1c282f; }
.pgt-bar[data-kind="marker"] .pgt-bar-label { margin: auto; padding: 2px 4px; font-size: 13px; }
.pgt .pgt-bar .pgt-wave { position: absolute; inset: 0; width: 100%; height: 100%; color: #a8bcc4; opacity: .55; pointer-events: none; }
.pgt-grip { position: absolute; width: min(8px,22%); inset-block: 0; cursor: ew-resize; touch-action: none; z-index: 1; }
.pgt-grip[data-edge="start"] { left: 0; } .pgt-grip[data-edge="end"] { right: 0; }
.pgt-bar:hover .pgt-grip:after, .pgt-bar[aria-pressed="true"] .pgt-grip:after { content:''; position:absolute; width: 2px; border-radius: 2px; top: 23%; bottom: 23%; left: calc(50% - 1px); background: #ecf1f7aa; }
.pgt-clock-area { position: absolute; inset: 0 0 0 var(--track-label); pointer-events: none; overflow: hidden; }
.pgt-playhead { position: absolute; top: 1px; bottom: 0; width: 1px; background: #fff3e5; pointer-events: none; }
.pgt-playhead:before { content: ''; position: absolute; top: 0; left: -3px; width: 7px; height: 7px; border-radius: 2px 2px 3px 3px; background: #fff3e5; }
.pgt-empty { grid-column: 1/-1; color: #adb4bd; padding: 6px; margin: 0; }
.pgt-menu { position: fixed; z-index: 1100; min-width: 178px; max-width: min(275px,calc(100vw - 16px)); padding: 5px; color: #e5e9ef; border: 1px solid #42474f; border-radius: 9px; background: #202328; box-shadow: 0 8px 28px #0007; font: 500 13px/1.35 -apple-system,BlinkMacSystemFont,sans-serif; }
.pgt-menu button { padding: 6px 9px; background: transparent; border-radius: 5px; width: 100%; text-align: left; }
.pgt-menu button:hover:not(:disabled), .pgt-menu button:focus-visible { background: #383e46; }
.pgt-field { display: grid; gap: 7px; padding: 6px; margin: 0; }
.pgt-field label { display: grid; gap: 6px; }
.pgt-field input { border: 1px solid #565d68; border-radius: 5px; padding: 6px; font: inherit; color: #fff; background: #191b20; }
.pgt-field button { width: auto; justify-self: end; background: #3f4855; }
.pgt { --track-label:75px; background:#202021; border-top:1px solid #ffffff15; }
.pgt-name,.pgt-ruler-label { background:#202021; }
.pgt-name { color:#ababaf; gap:3px; padding-inline:2px 6px; }
.pgt-ruler span { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; color:#a1a1a7; }
.pgt-lane { background:#2a2a2c; height:23px; }.pgt-lane[data-lane="insert"],.pgt-lane[data-lane="zoom"] { height:29px; }
.pgt .pgt-bar[data-kind="zoom"] { background:#355667; }
.pgt .pgt-bar[data-kind="caption"] { background:#675438; }
.pgt .pgt-bar[data-kind="audio"],.pgt .pgt-bar[data-kind="narration"],.pgt .pgt-bar[data-kind="music"] { background:#354853; }
.pgt .pgt-bar[data-kind="mask"] { background:#684b63; }
.pgt .pgt-filmstrip { background-image:linear-gradient(#0002,#0006),url("media/playground-folio-strip.webp"); background-repeat:no-repeat; }
.pgt .pgt-filmstrip .pgt-bar-label { color:white; text-shadow:0 1px 4px #000; }
.pgt .pgt-add { margin-inline-start:auto; width:20px; height:22px; display:grid; place-content:center; font-size:14px; background:none; color:#b9b9bf; border-radius:4px; }
.pgt .pgt-add:hover,.pgt .pgt-lane-action:hover { background:#ffffff12; color:white; }
.pgt .pgt-lane-action { display:inline-flex; align-items:center; gap:5px; min-height:100%; padding:0 6px; font-size:10px; background:transparent; color:#b1b1b7; border-radius:4px; }
.pgt .pgt-lane-action svg { width:12px; height:12px; }
@media(max-width:680px) {
 .pgt { --track-label:62px; }.pgt-scroll { padding-inline:5px; }
 .pgt-header { min-height:42px; gap:4px; padding:4px 5px; }.pgt-actions { gap:3px; }
 .pgt-header button { min-height:31px; padding:4px 6px; font-size:11px; gap:3px; }
 .pgt .pgt-header .pgt-more { min-width:24px; justify-content:center; }
 .pgt-ruler { height:23px; }.pgt-ruler span { font-size:9px; }
 .pgt-lane,.pgt-lane[data-lane="insert"],.pgt-lane[data-lane="zoom"] { height:30px; }
 .pgt-name { font-size:10px; padding-right:3px; }.pgt .pgt-add { width:17px; height:30px; }
 .pgt .pgt-lane-action { min-height:30px; }.pgt-bar-label { padding:7px 7px; }
 .pgt-grip { width:min(13px,23%); }.pgt[data-zoomed="true"] .pgt-bar { touch-action:pan-x pan-y; }
 .pgt-menu button { min-height:36px; }
}
