/* "What's new" (static/js/changelog.js). Self-contained: the pages mix Bootstrap 3 and 4.
   Placement: a page with its own controls at the top right (index: Time Tracking, logout; jobDetails: history icon,
   "Video Infos JSON"; dashboardVideoAnalysis: Download Dirty / Clean TSV) has a <span id="jm-cl-slot"> among them,
   and the button is built there with the Bootstrap classes the slot declares (.jm-cl-inline; spacing comes from the
   page). The other pages have nothing at the top right, so there it is a pill fixed in that corner (.jm-cl-float).
   Stacking: the pill stays below Bootstrap's fixed bars and modals (1030 and up), so a page's own bar or modal covers
   it instead of the reverse. The dialog takes the highest z-index there is, so no page element can hide "Got it"
   whatever z-index a page uses (floating players, nprogress, loading overlays): while it is open it covers a loading
   overlay too.
   Every text colour here is at least 4.5:1 on its background (WCAG AA); check a new one before using it. Measured:
   dialog text #222/#fff 15.9; "1 of N" and x #666/#fff 5.7; Got it/Close and pill #fff/#2c3e50 11.0; version line
   #4a5563/#f4f6f9 7.0; band title #1c2733/#e2e8ef 12.3; band date #3f4c5a/#e2e8ef 7.1; card title #1c2733/#fff 15.1;
   card date #5d6975/#fff 5.6; step number #2c3e50/#fff 11.0; label #7e5109/#fdebd0 5.9; badge #fff/#c0392b 5.4. The
   band, card borders and the kind accents are decoration. */
.jm-cl-float { position: fixed; top: 16px; right: 16px; z-index: 1020;
    padding: 8px 14px; border: 0; border-radius: 18px; background: #2c3e50; color: #fff;
    font: 600 13px/1.2 Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.jm-cl-float:hover, .jm-cl-float:focus-visible { background: #1a252f; }
.jm-cl-float:focus-visible { outline: 3px solid #f39c12; outline-offset: 2px; }
.jm-cl-badge { display: inline-block; min-width: 18px; margin-left: 8px; padding: 1px 6px; border-radius: 9px;
    background: #c0392b; color: #fff; font-size: 11px; text-align: center; }
/* An empty slot (no /changelog, say) takes no room: the page's row looks exactly as it would without it. */
#jm-cl-slot:empty { display: none; }
/* The badge must not make a slotted button taller than its neighbours or move its label off their baseline. */
.jm-cl-inline .jm-cl-badge { line-height: 14px; vertical-align: 1px; }
.jm-cl-backdrop { position: fixed; inset: 0; z-index: 2147483647; display: flex; align-items: center; justify-content: center;
    padding: 16px; background: rgba(0, 0, 0, 0.5); }
.jm-cl-dialog { display: flex; flex-direction: column; width: 100%; max-width: 760px; max-height: 88vh; border-radius: 6px;
    background: #fff; color: #222; font: 14px/1.45 Arial, sans-serif; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.jm-cl-dialog-head, .jm-cl-dialog-foot { display: flex; align-items: center; padding: 12px 18px; }
.jm-cl-dialog-head { justify-content: space-between; border-bottom: 1px solid #e5e5e5; }
.jm-cl-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.jm-cl-heading { display: flex; align-items: baseline; gap: 10px; }
.jm-cl-position { color: #666; font-size: 13px; }
.jm-cl-dialog-body { overflow-y: auto; padding: 16px 18px 20px; background: #f4f6f9; }
.jm-cl-dialog-foot { justify-content: flex-end; border-top: 1px solid #e5e5e5; }
.jm-cl-x { border: 0; background: none; font-size: 24px; line-height: 1; color: #666; cursor: pointer; }
.jm-cl-ok { padding: 7px 18px; border: 0; border-radius: 4px; background: #2c3e50; color: #fff; font-weight: 600; cursor: pointer; }
.jm-cl-version { margin: 0 0 12px; color: #4a5563; }
/* The list: one section per version, headed by a band (version left, release date right); every entry a white card
   whose left edge says its kind (amber: changes how you work; blue-grey: everything else); its details numbered steps,
   each with its screenshot. The pop-up shows the same card. */
.jm-cl-group + .jm-cl-group { margin-top: 28px; }
.jm-cl-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px;
    border-radius: 6px; background: #e2e8ef; }
.jm-cl-group-title { margin: 0; font-size: 15px; font-weight: 700; color: #1c2733; }
.jm-cl-group-date { color: #3f4c5a; font-size: 13px; }
.jm-cl-entry { padding: 14px 16px; border: 1px solid #d8dee5; border-left: 4px solid #8a9bb0; border-radius: 6px;
    background: #fff; }
.jm-cl-group .jm-cl-entry { margin-top: 12px; }
.jm-cl-kind-workflow { border-left-color: #e67e22; }
.jm-cl-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.jm-cl-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: #1c2733; }
.jm-cl-date { color: #5d6975; font-size: 12px; }
.jm-cl-label { padding: 1px 8px; border-radius: 10px; background: #fdebd0; color: #7e5109; font-size: 11px; font-weight: 600; }
.jm-cl-summary { margin: 8px 0 0; }
.jm-cl-steps { margin: 12px 0 0; padding: 0 0 0 22px; }
.jm-cl-step { padding: 10px 0 12px 4px; }
.jm-cl-step::marker { color: #2c3e50; font-weight: 700; }
.jm-cl-step + .jm-cl-step { border-top: 1px solid #e8ecf0; }
.jm-cl-step-text { margin: 0; }
.jm-cl-shot { display: block; margin-top: 10px; }
.jm-cl-shot img { display: block; max-width: 100%; height: auto; border: 1px solid #cfd6de; border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
