/* Time-Lapse home, modern look: one action row, a summary strip, filter chips, wide cards with the
   picture's facts on it, a pictures-today ribbon, the latest video and the schedule. Loaded after timelapse-ui*.css. */
.tlx-home{gap:16px;container-type:inline-size;container-name:tlxhome}
.tlx-top{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.tlx-top .file-tl-tabs{margin:0;border:0;gap:4px;padding:4px;border-radius:999px;background:#e3eaef;width:auto}
.tlx-top .file-tl-tabs button,.file-tl-tabs button{height:38px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:#3f566b;font-size:14px;font-weight:600}
.file-tl-tabs button[aria-selected=true]{background:#fff;color:#0b2238;font-weight:700;box-shadow:0 1px 2px rgba(11,34,56,.12);border-bottom:0}
.file-tl-tabs{border-bottom:0!important;gap:4px;padding:4px;border-radius:999px;background:#e3eaef}
.tlx-home .tlx-btn{height:44px;padding:0 18px;border-radius:999px;border-color:#cfdce3;font-size:14px}
.tlx-home .tlx-btn.tlx-addbtn{gap:8px;background:#0b2238;border-color:#0b2238;color:#fff}
.tlx-home .tlx-btn.tlx-addbtn:hover{background:#163a5c}

/* summary strip */
.tlx-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));background:#fff;border:1px solid #e3eaee;border-radius:20px;overflow:hidden}
.tlx-seg{display:flex;align-items:center;gap:12px;padding:10px 16px;border-inline-end:1px solid #edf2f5;min-width:0}
.tlx-seg:last-child{border-inline-end:0}
.tlx-segic{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center}.tlx-segic svg{width:18px;height:18px}
.tlx-segic.ok{background:#e2f5f5;color:#0e7c80}.tlx-segic.info{background:#eaf0fb;color:#1d4f91}
.tlx-segic.bad{background:#fdecee;color:#b4233a}.tlx-segic.muted{background:#eef3f6;color:#5b6f80}.tlx-segic.warn{background:#fff3e0;color:#8a5200}
.tlx-segt{display:flex;align-items:baseline;gap:7px;min-width:0;flex:1}
.tlx-segt b{flex:none;font-size:20px;font-weight:800;letter-spacing:-.4px;color:#0b2238;line-height:1.2;white-space:nowrap}
.tlx-segt b.bad{color:#b4233a}
.tlx-segt small{font-size:13.5px;color:#4d6478;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tlx-retry{height:32px;padding:0 14px;border:1px solid #f0c3cb;border-radius:999px;background:#fff5f6;color:#a12639;font:inherit;font-size:13px;font-weight:700;cursor:pointer;flex:none}
.tlx-retry:hover{background:#fdecee}.tlx-retry:disabled{opacity:.7;cursor:default}
.tlx-dots{display:flex;gap:4px;flex:none}.tlx-dots i{width:10px;height:10px;border-radius:50%;background:#e3a5b0}.tlx-dots i.on{background:#1f9d6b}

/* filters, search, layout */
.tlx-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tlx-filters{display:flex;flex-wrap:wrap;gap:8px}
.tlx-filters button{height:38px;padding:0 14px;border:1px solid #dce4ea;border-radius:999px;background:#fff;color:#0b2238;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer}
.tlx-filters button span{color:#4d6478;font-weight:600}
.tlx-filters button[aria-pressed=true]{background:#0b2238;border-color:#0b2238;color:#fff;font-weight:700}
.tlx-filters button[aria-pressed=true] span{color:#c9d6e0}
.tlx-home .tlx-search{height:40px;border-radius:999px;border-color:#dce4ea;width:220px}
.tlx-lay{display:flex;gap:2px;padding:3px;border-radius:999px;background:#e3eaef}
.tlx-lay button{width:38px;height:34px;border:0;border-radius:999px;background:transparent;color:#3f566b;display:grid;place-items:center;cursor:pointer;padding:0}
.tlx-lay button[aria-pressed=true]{background:#fff;color:#0b2238;box-shadow:0 1px 2px rgba(11,34,56,.12)}

/* cards */
.tlx-home .tlx-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
@container tlxhome (max-width:980px){.tlx-home .tlx-grid:not(.list){grid-template-columns:repeat(2,minmax(0,1fr))}}
@container tlxhome (max-width:620px){.tlx-home .tlx-grid:not(.list){grid-template-columns:minmax(0,1fr)}}
.tlx-home .tlx-card{padding:10px;gap:14px;border:1px solid #e3eaee;border-radius:24px;overflow:visible}
.tlx-home .tlx-card:hover{box-shadow:0 14px 34px rgba(11,34,56,.08)}
.tlx-home .tlx-pic{position:relative;aspect-ratio:2/1;border-radius:16px;overflow:hidden;background:#13212c;cursor:default}
.tlx-pic-open{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;display:block}
.tlx-pic-open img{width:100%;height:100%;object-fit:cover;display:block}
.tlx-noimg{display:grid;place-items:center;width:100%;height:100%;color:#7d93a3}.tlx-noimg svg{width:40px;height:40px}
.tlx-card.off .tlx-pic-open img{filter:grayscale(1) brightness(.45)}
.tlx-home .tlx-cap{left:12px;top:12px;padding:6px 11px;gap:7px;font-size:12.5px;font-weight:600;background:rgba(8,20,30,.62);backdrop-filter:blur(12px);pointer-events:none}
.tlx-home .tlx-cap i{width:8px;height:8px}.tlx-home .tlx-cap i.on{background:#3fd39a}.tlx-home .tlx-cap i.off{background:#ff6b7d}
.tlx-home .tlx-count{left:auto;right:12px;top:12px;bottom:auto;padding:6px 11px;border-radius:999px;font-size:12.5px;font-weight:600;background:rgba(8,20,30,.62);backdrop-filter:blur(12px);pointer-events:none}
.tlx-daybar{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;border:0;border-radius:999px;background:rgba(8,20,30,.62);backdrop-filter:blur(12px);color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.tlx-daybar:hover{background:rgba(8,20,30,.78)}
.tlx-dplay{width:32px;height:32px;flex:none;border-radius:50%;background:#fff;color:#0b2238;display:grid;place-items:center}
.tlx-dtrack{position:relative;flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3);display:block}
.tlx-dtrack>i{position:absolute;left:0;top:0;height:3px;border-radius:2px;background:#fff;display:block}
.tlx-offmsg{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;color:#fff;pointer-events:none}
.tlx-offmsg b{display:inline-flex;align-items:center;gap:8px;font-size:15px}.tlx-offmsg b i{width:8px;height:8px;border-radius:50%;background:#ff6b7d}
.tlx-offmsg small{font-size:13px;color:#d6e1e8}
.tlx-offmsg button{pointer-events:auto;height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.45);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.tlx-offmsg button:hover{background:rgba(255,255,255,.22)}
.tlx-home .tlx-cbody{padding:0 8px 6px;gap:14px}
.tlx-home .tlx-name b{font-size:17px;font-weight:700;letter-spacing:-.2px}.tlx-home .tlx-name small{font-size:13px;color:#4d6478}
.tlx-home .tlx-badge{height:28px;padding:0 11px;font-size:12.5px;border-radius:999px;text-transform:none}
.tlx-badge.off{background:#fdecee;color:#a12639}
.tlx-ai{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#fff8d9;color:#4a3a00;font-size:13.5px;font-weight:600}
.tlx-ai[hidden]{display:none}
.tlx-ai>i{width:9px;height:9px;flex:none;background:#e8b400;transform:rotate(45deg);border-radius:2px}
.tlx-ai>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlx-ai>small{flex:none;font-size:12px;font-weight:600;color:#6b5a1a}
.tlx-home .tlx-today>div:first-child{font-size:12px;color:#4d6478;margin-bottom:6px}
.tlx-home .tlx-today>div:first-child span:first-child{font-weight:600}
.tlx-home .tlx-bars{height:20px;gap:2px;align-items:stretch}
.tlx-home .tlx-bars i{height:auto!important;border-radius:3px;background:#e9eef2}
.tlx-home .tlx-bars i.ok{background:#0e7c80}
.tlx-home .tlx-bars i.sd{background:#5aa7b0}.tlx-home .tlx-bars i.gap{background:#f4c9d2}.tlx-home .tlx-bars i.fut{background:#e9eef2}
.tlx-hrs{display:flex;justify-content:space-between;margin-top:4px;font-size:11px;color:#5b6f80}
.tlx-home .tlx-lastv{display:flex;align-items:center;gap:8px;padding:8px;border-radius:14px;background:#f4f7f9;cursor:default}
.tlx-lmain{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:0;border:0;background:transparent;font:inherit;text-align:start;cursor:pointer;color:inherit}
span.tlx-lmain{cursor:default}
.tlx-lthumb{position:relative;width:72px;height:40px;flex:none;border-radius:9px;overflow:hidden;background:#d6e1e8;display:block}
.tlx-lthumb img{width:100%;height:100%;object-fit:cover;display:block}
.tlx-lthumb i{position:absolute;inset:0;display:grid;place-items:center;background:rgba(8,20,30,.3);color:#fff}
.tlx-lthumb i svg{width:12px;height:12px}
.tlx-lt{display:flex;flex-direction:column;gap:1px;min-width:0}
.tlx-lt b{font-size:13.5px;font-weight:700;color:#0b2238;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlx-lt small{font-size:12px;color:#4d6478;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tlx-lshare{width:36px;height:36px;flex:none;border:0;border-radius:50%;background:#fff;color:#0b2238;display:grid;place-items:center;cursor:pointer;padding:0}
.tlx-lshare:hover{background:#e2f5f5}
.tlx-home .tlx-chips{align-items:center;gap:6px}
.tlx-home .tlx-chips>span{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;font-size:12.5px;font-weight:700;background:#eef3f6;color:#4d6478}
.tlx-home .tlx-chips>span.on{background:#e9f5f6;color:#0a5f62}
.tlx-home .tlx-chips>span.tlx-sp{background:none;padding:0;height:auto}
.tlx-open{height:34px;padding:0 14px;border:1px solid #dce4ea;border-radius:999px;background:#fff;color:#0b2238;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.tlx-open:hover{background:#f3f8fa}
.tlx-home .tlx-skel{border-radius:24px}

/* list layout */
.tlx-home .tlx-grid.list{grid-template-columns:minmax(0,1fr);gap:12px}
.tlx-home .tlx-grid.list .tlx-card{flex-direction:row;align-items:stretch;gap:16px;border-radius:20px}
.tlx-home .tlx-grid.list .tlx-pic{flex:0 0 300px;aspect-ratio:16/9}
.tlx-home .tlx-grid.list .tlx-cbody{flex:1;min-width:0;padding:4px 6px 4px 0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px 18px;align-content:center}
.tlx-home .tlx-grid.list .tlx-ctitle,.tlx-home .tlx-grid.list .tlx-ai{grid-column:1/-1}
.tlx-home .tlx-grid.list .tlx-chips{grid-column:1/-1}

.tlx-home .tlx-latest{border-radius:20px;border-color:#e3eaee}
.rtl .tlx-home .tlx-count{right:auto;left:12px}.rtl .tlx-home .tlx-cap{left:auto;right:12px}
/* the page words are English: keep them in reading order on Arabic screens */
.rtl .tlx-home .tlx-segt b,.rtl .tlx-home .tlx-segt small,.rtl .tlx-home .tlx-cap,.rtl .tlx-home .tlx-count,.rtl .tlx-home .tlx-ai>span,.rtl .tlx-home .tlx-ai>small,.rtl .tlx-home .tlx-lt b,.rtl .tlx-home .tlx-lt small,.rtl .tlx-home .tlx-filters button,.rtl .tlx-home .tlx-name b,.rtl .tlx-home .tlx-name small,.rtl .tlx-home .tlx-today span,.rtl .tlx-home .tlx-chips>span,.rtl .tlx-home .tlx-offmsg small,.rtl #pageSub{unicode-bidi:plaintext}
@media(max-width:900px){.tlx-home .tlx-grid.list .tlx-card{flex-direction:column}.tlx-home .tlx-grid.list .tlx-pic{flex:none;aspect-ratio:2/1}.tlx-home .tlx-grid.list .tlx-cbody{display:flex}}
@media(max-width:640px){.tlx-sum{grid-template-columns:repeat(2,minmax(0,1fr))}.tlx-seg{padding:10px 12px;gap:8px}.tlx-home .tlx-search{width:100%;flex:1 1 100%}.tlx-seg{border-inline-end:0;border-bottom:1px solid #edf2f5}}

/* three cards in a row: a little tighter */
.tlx-home .tlx-grid:not(.list) .tlx-cap,.tlx-home .tlx-grid:not(.list) .tlx-count{font-size:12px;padding:5px 10px}
.tlx-home .tlx-grid:not(.list) .tlx-name b{font-size:16px}
.tlx-home .tlx-grid:not(.list) .tlx-chips>span{height:28px;padding:0 9px;font-size:12px}
.tlx-home .tlx-lastv>.tlx-lmain{flex-direction:row}
.tlx-home .tlx-grid:not(.list) .tlx-open{display:none}

/* the camera window (Panel / Gallery): flush to the screen edge, all four corners stay round */
.tly-ov.panel,.tly-ov.gallery{padding:0}
.tly-ov.panel .tly-panel{border-radius:14px}
/* while the camera window is open the page behind it stops scrolling; the window keeps its own scrollbar */
html:has(#tlOverlay.tly-ov,#ftlOverlay){overflow:hidden}

/* schedule tab: Pictures and Customer logo stack in the first column */
.tlx-scol{display:flex;flex-direction:column;gap:16px;min-width:0}
#tlxSchedule .tlx-sgrid{align-items:start}
