
.mltsw-widget{ font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.mltsw-stack{ display:flex; flex-direction:column; gap:14px; max-width: 980px; }
.mltsw-card{ background:#fff; border:1px solid rgba(0,0,0,.10); border-radius:16px; overflow:hidden; }
.mltsw-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:10px 12px; border-bottom:1px solid rgba(0,0,0,.06); }
.mltsw-name{ font-weight:900; word-break:break-word; }
.mltsw-desc{ font-size:12px; color:#6b7280; margin-top:2px; }
.mltsw-dl{ border:1px solid rgba(0,0,0,.12); background:#fff; border-radius:12px; padding:8px 12px; font-weight:900; text-decoration:none; white-space:nowrap; }
.mltsw-view{ height: 520px; background:#fff; }
.mltsw-view iframe, .mltsw-view img{ width:100%; height:100%; border:0; display:block; object-fit:contain; }


/* ----- Layout modes ----- */
.mltsw-outer{ border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; background:var(--mltsw-theme-card,#fff); color:var(--mltsw-theme-text,#111); }
.mltsw-titlebar{ padding:12px 14px; font-weight:700; border-bottom:1px solid rgba(0,0,0,.06); background:var(--mltsw-theme-card,#fff); }
.mltsw-body{ padding:14px; background:var(--mltsw-theme-bg,#fff); }

.mltsw-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(var(--mltsw-thumbw, 200px), 1fr)); gap:14px; }
.mltsw-row.horizontal{ display:flex; gap:14px; overflow:auto; padding-bottom:6px; }
.mltsw-tile{ border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; background:var(--mltsw-theme-card,#fff); cursor:pointer; min-width:var(--mltsw-thumbw, 200px); }
.mltsw-thumb{ height:170px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.mltsw-thumb img{ width:100%; height:100%; object-fit:contain; display:block; }
.mltsw-thumb iframe{ width:100%; height:100%; border:0; display:block; }
.mltsw-thumb.file{ background:linear-gradient(180deg,#f3f4f6,#ffffff); }
.mltsw-filebadge{ font-weight:800; color:#6b7280; }
.mltsw-tmeta{ padding:10px 12px; }
.mltsw-title{ font-weight:700; font-size:14px; line-height:1.2; }

.mltsw-mag{ border-radius:16px; background: radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,.8), rgba(0,0,0,0)), linear-gradient(180deg,#f8fafc,#ffffff); background-size:cover; background-position:center; padding:18px; }
.mltsw-mag-inner{ display:grid; grid-template-columns:320px 1fr; gap:16px; align-items:start; }
.mltsw-mag-cover{ border-radius:18px; overflow:hidden; border:1px solid rgba(0,0,0,.10); background:#fff; cursor:pointer; }
.mltsw-mag-cover .mltsw-thumb{ height:420px; }
.mltsw-mag-meta{ padding:12px 14px; border-top:1px solid rgba(0,0,0,.06); }
.mltsw-mag-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:14px; }

/* Magazine overlap look (stacked magazines) */
.mltsw-mag-grid{ display:flex; flex-wrap:wrap; gap:0; }
.mltsw-mag-grid .mltsw-tile{ width:200px; margin:0 0 18px; position:relative; }
.mltsw-mag-grid .mltsw-tile + .mltsw-tile{ margin-left:-34px; }
.mltsw-mag-grid .mltsw-tile:nth-child(3n+1){ transform:rotate(-2deg); z-index:1; }
.mltsw-mag-grid .mltsw-tile:nth-child(3n+2){ transform:rotate(1deg); z-index:2; }
.mltsw-mag-grid .mltsw-tile:nth-child(3n+3){ transform:rotate(-1deg); z-index:3; }

.mltsw-bookshelf{ border-radius:16px; padding:18px; background: linear-gradient(180deg, rgba(120,53,15,.18), rgba(0,0,0,0)), repeating-linear-gradient(0deg, rgba(0,0,0,.06), rgba(0,0,0,.06) 2px, rgba(255,255,255,0) 2px, rgba(255,255,255,0) 42px); background-size:cover; background-position:center; }
.mltsw-books{ display:flex; gap:10px; overflow:auto; padding-bottom:8px; }
.mltsw-spine{
  width:70px;
  height:260px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.14);
  overflow:hidden;
  background: var(--spine-bg, #ffffff);
  color: var(--spine-tx, #000000);
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}
.mltsw-spine::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(255,255,255,0) 22px, rgba(0,0,0,.12));
  opacity:.35;
  pointer-events:none;
}
.mltsw-spine-title{
  position:relative;
  z-index:1;
  padding:12px 10px;
  font-weight:900;
  font-size: var(--spine-fs, 12px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  max-height:240px;
  overflow:hidden;
  text-transform: uppercase;
}
.mltsw-spine-char{ display:block; line-height:1.05; }

/* Carousel (single viewer) */
.mltsw-carousel{ background:#fff; border:1px solid rgba(0,0,0,.10); border-radius:16px; overflow:hidden; }
/* removed head */
.mltsw-car-title{ font-weight:900; text-align:center; }
.mltsw-car-arrow{ width:40px; height:40px; border-radius:12px; border:1px solid rgba(0,0,0,.14); background:#fff; cursor:pointer; font-size:22px; line-height:1; }
.mltsw-car-view{ height:600px; background:#f8fafc; }
.mltsw-carousel iframe, .mltsw-carousel img{ width:100%; height:100%; border:0; display:block; object-fit:contain; }
.mltsw-car-foot{ display:flex; justify-content:space-between; padding:10px 12px; font-size:12px; color:#6b7280; }

.mltsw-stack{ display:grid; gap:14px; }
.mltsw-card{ border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; background:#fff; }
.mltsw-head{ padding:12px 14px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid rgba(0,0,0,.06); }
.mltsw-name{ font-weight:800; }
.mltsw-dl{ font-weight:700; text-decoration:none; }
.mltsw-view{ height:520px; background:#fff; }
.mltsw-view iframe,.mltsw-view img{ width:100%; height:100%; border:0; object-fit:contain; display:block; }

.mltsw-list{ display:grid; gap:8px; }
.mltsw-list-row{ border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:10px 12px; display:flex; justify-content:space-between; align-items:center; background:#fff; }

.mltsw-folder details>summary{ cursor:pointer; font-weight:800; }
.mltsw-tree{ list-style:none; padding-left:18px; margin:8px 0; }
.mltsw-tree-file{ background:transparent; border:0; padding:4px 0; cursor:pointer; font-weight:700; text-align:left; }

.mltsw-empty{ padding:16px; color:#6b7280; font-weight:800; }

/* ----- Modal ----- */
#mltsw-modal{ position:fixed; inset:0; z-index:99999; display:none; }
#mltsw-modal.is-open{ display:block; }
.mltsw-modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); }
.mltsw-modal-panel{ position:absolute; inset:5% 6%; background:#fff; border-radius:16px; overflow:hidden; display:flex; flex-direction:column; }
.mltsw-modal-close{ position:absolute; top:10px; right:12px; width:38px; height:38px; border-radius:12px; border:1px solid rgba(0,0,0,.12); background:#fff; font-size:22px; cursor:pointer; z-index:2; }
.mltsw-modal-body{ flex:1; padding:0; }
.mltsw-modal-body iframe, .mltsw-modal-body img{ width:100%; height:100%; border:0; object-fit:contain; display:block; }

@media (max-width: 860px){
  .mltsw-mag-inner{ grid-template-columns:1fr; }
  .mltsw-mag-cover .mltsw-thumb{ height:300px; }
}



/* Carousel (one document at a time) */
.mltsw-car-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-bottom:1px solid rgba(0,0,0,.08); }
.mltsw-car-title{ font-weight:800; }
.mltsw-car-controls{ display:flex; align-items:center; justify-content:center; gap:12px; padding:10px 12px; }
.mltsw-car-arrow{ width:36px;height:36px;border-radius:999px;border:1px solid rgba(0,0,0,.12); background:#fff; font-size:22px; line-height:1; }
.mltsw-car-count{ font-weight:800; }



/* Magazine stack (no cover) */
.mltsw-magazine-stack{
  padding:18px;
  border-radius:14px;
  background: radial-gradient(circle at 30% 10%, rgba(255,255,255,.9), rgba(245,246,248,.9));
  background-size: cover;
}
.mltsw-mag-stack{ display:flex; align-items:flex-end; gap:0; }
.mltsw-mag-tile{
  width:220px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  transform-origin: bottom left;
  margin-left:-48px;
}
.mltsw-mag-tile:first-child{ margin-left:0; }
.mltsw-mag-tile:nth-child(odd){ transform: rotate(-2deg); }
.mltsw-mag-tile:nth-child(even){ transform: rotate(2deg); }
.mltsw-mag-label{ padding:10px 12px; font-weight:800; }


/* Batch9: bookshelf spine characters */
.mltsw-spine-title{ line-height:1.05; text-align:center; }


/* Carousel bottom controls */
.mltsw-car-controls{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border-top:1px solid rgba(0,0,0,.06);}
.mltsw-car-mid{flex:1; display:flex; flex-direction:column; align-items:center; gap:4px;}
.mltsw-car-count{font-size:12px; color:#6b7280;}
.mltsw-car-foot{display:flex; justify-content:center; padding:10px 12px; font-size:12px; color:#6b7280;}


/* ===== Bookshelf (Frontend) Enhancements ===== */
.mltsw-bookshelf{
  padding:16px;
  border-radius:16px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-image: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.10)),
                    repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 6px, rgba(0,0,0,.06) 6px 18px);
}

.mltsw-spine{
  background: linear-gradient(180deg,
    hsl(var(--spine-h,210) 35% 38%) 0%,
    hsl(var(--spine-h,210) 35% 30%) 100%);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  position:relative;
}

.mltsw-spine::before{
  content:'';
  position:absolute;
  top:0; bottom:0;
  left:12px;
  width:2px;
  background: rgba(255,255,255,.22);
  opacity:.9;
}

.mltsw-spine::after{
  content:'';
  position:absolute;
  top:0; bottom:0; left:0; right:0;
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 35%, rgba(0,0,0,.18));
  opacity:.45;
  pointer-events:none;
}

.mltsw-spine-title{
  font-size: var(--spine-fs, 11px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:100%;
  text-transform: uppercase;
  overflow:hidden;
  padding: 10px 6px 10px 6px;
}

.mltsw-spine-char{
  display:block;
  line-height:1.05;
}

/* ===== Carousel bottom controls (Frontend) ===== */
.mltsw-carousel-controls{
  position: static !important;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  padding:10px 8px;
  margin-top:10px;
  border-top:1px solid rgba(0,0,0,.06);
}


/* Movie Row: wider thumbnails */
.mltsw-row.horizontal .mltsw-tile{ min-width: calc(var(--mltsw-thumbw, 200px) * 1.6); }
.mltsw-row.horizontal .mltsw-thumb{ height: 140px; }

/* Bookshelf: allow title to wrap into multiple vertical columns */
.mltsw-spine-title{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:6px;
  height:100%;
}
.mltsw-spine-col{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

/* ---------- YouTube Gallery ---------- */
.mltsw-yt{ width:100%; }
.mltsw-yt-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.mltsw-yt-card{ border:1px solid rgba(0,0,0,.08); border-radius:16px; overflow:hidden; background:var(--mltsw-theme-card,#fff); padding:0; text-align:left; cursor:pointer; }
.mltsw-yt-thumb{ height:160px; background:#0b1220; background-size:cover; background-position:center; position:relative; }
.mltsw-yt-thumb::after{ content:''; position:absolute; inset:0; background:radial-gradient(450px 220px at 20% 20%, rgba(255,255,255,.12), rgba(0,0,0,0)); }
.mltsw-yt-title{ padding:10px 12px; font-weight:800; font-size:14px; line-height:1.25; }

/* ---------- Calendar ---------- */
.mltsw-cal{ width:100%; border:1px solid rgba(0,0,0,.08); border-radius:16px; overflow:hidden; background:var(--mltsw-theme-card,#fff); }
.mltsw-cal-top{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid rgba(0,0,0,.06); }
.mltsw-cal-title{ font-weight:900; }
.mltsw-cal-nav{ border:1px solid rgba(0,0,0,.12); background:#fff; border-radius:12px; padding:6px 10px; font-weight:900; cursor:pointer; }
.mltsw-cal-head{ display:grid; grid-template-columns:repeat(7, 1fr); background:rgba(0,0,0,.03); }
.mltsw-cal-dow{ padding:10px 8px; font-weight:800; font-size:12px; text-transform:uppercase; color:var(--mltsw-theme-muted,#6b7280); }
.mltsw-cal-grid{ display:grid; grid-template-columns:repeat(7, 1fr); }
.mltsw-cal-cell{ min-height:110px; border-top:1px solid rgba(0,0,0,.06); border-right:1px solid rgba(0,0,0,.06); padding:8px; background:var(--mltsw-theme-bg,#fff); }
.mltsw-cal-cell:nth-child(7n){ border-right:0; }
.mltsw-cal-cell.is-empty{ background:rgba(0,0,0,.02); }
.mltsw-cal-num{ font-weight:900; font-size:12px; color:var(--mltsw-theme-muted,#6b7280); margin-bottom:6px; }
.mltsw-cal-ev{ font-size:12px; font-weight:700; padding:4px 6px; border-radius:10px; background:rgba(59,130,246,.12); color:var(--mltsw-theme-text,#111); margin-bottom:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mltsw-cal-more{ font-size:12px; color:var(--mltsw-theme-muted,#6b7280); font-weight:700; }
.mltsw-cal-modal h3{ margin:0 0 10px; font-weight:900; }
.mltsw-cal-modal-item{ padding:10px 0; border-top:1px solid rgba(0,0,0,.08); }
.mltsw-cal-modal-item:first-of-type{ border-top:0; }
.mltsw-cal-modal-item .t{ font-weight:900; }
.mltsw-cal-modal-item .l{ color:var(--mltsw-theme-muted,#6b7280); font-size:12px; margin-top:2px; }
.mltsw-cal-modal-item .d{ color:var(--mltsw-theme-muted,#6b7280); font-size:12px; margin-top:6px; white-space:pre-wrap; }

.mltsw-empty{ padding:18px; border:1px dashed rgba(0,0,0,.15); border-radius:14px; background:rgba(255,255,255,.6); color:var(--mltsw-theme-muted,#6b7280); font-weight:700; }

/* YouTube header (v3.0.x) */
.mltsw-yt-head{display:flex;gap:12px;align-items:center;padding:14px 16px;margin-bottom:14px;border:1px solid rgba(0,0,0,.08);border-radius:18px;background:var(--mltsw-theme-card,#fff);}
.mltsw-yt-ava{width:44px;height:44px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.08);color:inherit;text-decoration:none;font-weight:900;}
.mltsw-yt-meta{flex:1;min-width:0;}
.mltsw-yt-name{display:block;font-weight:900;text-decoration:none;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mltsw-yt-stats{display:flex;gap:8px;align-items:center;font-size:12px;opacity:.7;margin-top:2px;}
.mltsw-dot{opacity:.6;}
.mltsw-yt-subbtn{border:1px solid rgba(0,0,0,.12);padding:8px 10px;border-radius:12px;text-decoration:none;font-weight:800;font-size:12px;background:transparent;color:inherit;white-space:nowrap;}
.mltsw-yt-subbtn:hover{background:rgba(0,0,0,.04);}

/* Calendar header refinements (v3.0.x) */
.mltsw-cal-top{gap:10px;}
.mltsw-cal-top-left{display:flex;align-items:center;gap:10px;}
.mltsw-cal-top-right{display:flex;align-items:center;gap:8px;}
.mltsw-cal-nav.today{padding:6px 10px;font-size:12px;border-radius:12px;}

/* Batch 5 YouTube upgrades */
.mltsw-yt-headwrap{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;overflow:hidden;margin-bottom:14px}
.mltsw-yt-banner{height:110px;background-size:cover;background-position:center}
.mltsw-yt-head{display:flex;gap:14px;align-items:center;padding:14px}
.mltsw-yt-ava.is-image{background:none;padding:0;overflow:hidden}
.mltsw-yt-ava.is-image img{width:100%;height:100%;object-fit:cover;display:block}
.mltsw-yt-desc{font-size:12px;color:#64748b;margin-top:4px}
.mltsw-yt-filterbar{display:flex;gap:8px;margin:10px 0 12px}
.mltsw-chip{border:1px solid rgba(0,0,0,.12);background:#fff;border-radius:999px;padding:8px 12px;font-weight:800;cursor:pointer}
.mltsw-chip.active{background:#2563eb;color:#fff;border-color:#2563eb}
.mltsw-yt-grid.is-shorts{display:flex;gap:12px;overflow:auto;padding-bottom:6px}
.mltsw-yt-grid.is-shorts .mltsw-yt-card{flex:0 0 170px}
.mltsw-yt-card.is-shorts .mltsw-yt-thumb{aspect-ratio:9/16}
.mltsw-yt-featured{display:block;width:100%;border:1px solid rgba(0,0,0,.08);border-radius:18px;overflow:hidden;background:#fff;margin-bottom:14px;cursor:pointer;padding:0;text-align:left}
.mltsw-yt-featured .mltsw-yt-thumb{aspect-ratio:16/9}
.mltsw-yt-duration{position:absolute;right:8px;bottom:8px;background:rgba(15,23,42,.82);color:#fff;border-radius:8px;padding:3px 6px;font-size:11px;font-weight:800}
.mltsw-yt-thumb{position:relative}
.mltsw-yt-card.is-hidden{display:none}
.mltsw-yt-subline{font-size:12px;color:#64748b;padding:0 10px 10px}
.mltsw-yt-morebar{display:flex;justify-content:center;margin-top:12px}
.mltsw-yt-playerbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 0}
.mltsw-yt-player-title{font-weight:800;flex:1;text-align:center}

.mltsw-widget .mltsw-cal{--cal-line:#e5e7eb;--cal-ev-bg:#dbeafe;--cal-ev-tx:#0f172a}
.mltsw-widget .mltsw-cal-cell{border-top:1px solid var(--cal-line);border-right:1px solid var(--cal-line)}
.mltsw-widget .mltsw-cal-ev{background:var(--cal-ev-bg);color:var(--cal-ev-tx)}

/* EmbedPDF viewer */
.mltsw-embedpdf{width:100%;height:620px;min-height:360px;background:#f3f4f6;border:0;overflow:hidden;position:relative}
.mltsw-embedpdf.is-large{height:min(86vh,900px);min-height:560px}
.mltsw-embedpdf.is-thumb{height:100%;min-height:180px;pointer-events:none}
.mltsw-embedpdf iframe{width:100%;height:100%;border:0}
.mltsw-pdf-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;color:#64748b;background:#f8fafc}
@media(max-width:720px){.mltsw-embedpdf{height:520px;min-height:320px}.mltsw-embedpdf.is-large{height:78vh;min-height:420px}}

/* Phase 1: secure downloads, multi-select and ZIP folder tools */
.mltsw-downloadbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;margin:12px 0;border:1px solid rgba(148,163,184,.28);border-radius:var(--mltsw-theme-radius,14px);background:var(--mltsw-theme-card,#fff);color:var(--mltsw-theme-text,#111)}
.mltsw-downloadbar-info{display:flex;flex-direction:column;gap:2px;min-width:0}.mltsw-downloadbar-info strong{font-size:14px}.mltsw-downloadbar-info span{font-size:12px;color:var(--mltsw-theme-muted,#64748b)}
.mltsw-downloadbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mltsw-download-select,.mltsw-download-all,.mltsw-download-primary,.mltsw-download-selected{appearance:none;border:0;border-radius:10px;padding:9px 13px;font-weight:800;text-decoration:none;cursor:pointer}
.mltsw-download-select{background:transparent;border:1px solid rgba(148,163,184,.4);color:inherit}.mltsw-download-all,.mltsw-download-primary,.mltsw-download-selected{background:var(--mltsw-theme-accent,#2563eb);color:#fff}.mltsw-download-selected:disabled{opacity:.45;cursor:not-allowed}
.mltsw-file-details{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:11px;color:var(--mltsw-theme-muted,#64748b);font-weight:700}.mltsw-file-details span{opacity:.65}
.mltsw-download-modal{min-width:min(620px,82vw)}.mltsw-download-modal h3{margin:0 0 12px}.mltsw-download-choice-list{max-height:48vh;overflow:auto;border-top:1px solid rgba(148,163,184,.2)}
.mltsw-download-choice{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 4px;border-bottom:1px solid rgba(148,163,184,.2)}.mltsw-download-choice input{width:18px;height:18px}.mltsw-download-choice>a{font-weight:800;text-decoration:none;color:var(--mltsw-theme-accent,#2563eb)}
.mltsw-download-choice.select-all{border:1px solid rgba(148,163,184,.25);border-radius:12px;padding:10px 12px;margin-bottom:8px}.mltsw-download-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;font-weight:800}
.mltsw-folder-tools{display:flex;gap:10px;align-items:center;margin-bottom:12px}.mltsw-folder-search{flex:1;min-width:0;border:1px solid rgba(148,163,184,.35);border-radius:10px;padding:9px 11px;background:var(--mltsw-theme-card,#fff);color:inherit}.mltsw-folder-expand{border:1px solid rgba(148,163,184,.35);border-radius:10px;padding:9px 11px;background:var(--mltsw-theme-card,#fff);color:inherit;font-weight:800;cursor:pointer}
.mltsw-tree li.file{display:flex;align-items:center;gap:8px}.mltsw-tree-file{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.mltsw-tree-dl{font-size:12px;font-weight:800;text-decoration:none;color:var(--mltsw-theme-accent,#2563eb);padding:6px 8px}
@media(max-width:640px){.mltsw-downloadbar{align-items:flex-start;flex-direction:column}.mltsw-downloadbar-actions{width:100%}.mltsw-downloadbar-actions>*{flex:1;text-align:center}.mltsw-folder-tools{align-items:stretch;flex-direction:column}.mltsw-download-modal{min-width:0}.mltsw-download-choice{grid-template-columns:auto minmax(0,1fr)}.mltsw-download-choice>a{grid-column:2}}

/* ---------- Phase 2: McLightning Universal Viewer ---------- */
.mltsw-universal{width:100%;min-height:420px;display:block;background:#111827;border-radius:12px;overflow:hidden}
.mltsw-universal.is-large{min-height:min(78vh,900px)}
.mltsw-uv-loading{min-height:420px;display:flex;align-items:center;justify-content:center;gap:10px;background:#111827;color:#d1d5db;font-weight:800}
.mltsw-uv-loading span{width:18px;height:18px;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:mltswUvSpin .8s linear infinite}
@keyframes mltswUvSpin{to{transform:rotate(360deg)}}
.mltsw-uv-shell{width:100%;height:100%;min-height:420px;display:flex;flex-direction:column;background:#111827;color:#f9fafb;border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden}
.mltsw-uv-shell.is-pseudo-fullscreen{position:fixed!important;inset:12px!important;z-index:1000000!important;height:auto!important;max-height:none!important}
.mltsw-uv-toolbar{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#0b1220;border-bottom:1px solid rgba(255,255,255,.1)}
.mltsw-uv-ident{display:flex;align-items:center;gap:9px;min-width:0}
.mltsw-uv-type{flex:0 0 auto;padding:5px 8px;border-radius:7px;background:var(--mltsw-theme-accent,#3b82f6);color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em}
.mltsw-uv-title{font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}
.mltsw-uv-status{font-size:10px;font-weight:850;padding:4px 7px;border-radius:999px;background:#064e3b;color:#a7f3d0;white-space:nowrap}
.mltsw-uv-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.mltsw-uv-actions button,.mltsw-uv-actions a{appearance:none;border:1px solid rgba(255,255,255,.14);background:#172033;color:#f9fafb;border-radius:8px;padding:7px 10px;font:inherit;font-size:11px;font-weight:800;line-height:1;text-decoration:none;cursor:pointer}
.mltsw-uv-actions button:hover,.mltsw-uv-actions a:hover{background:#263149;color:#fff}
.mltsw-uv-search{width:150px!important;min-height:31px!important;margin:0!important;border:1px solid rgba(255,255,255,.14)!important;background:#172033!important;color:#fff!important;border-radius:8px!important;padding:6px 9px!important;font-size:11px!important}
.mltsw-uv-stage{position:relative;flex:1;min-height:365px;display:flex;align-items:stretch;justify-content:stretch;background:#1f2937;overflow:auto}
.mltsw-uv-stage>.mltsw-embedpdf,.mltsw-uv-frame{width:100%;height:100%;min-height:520px;border:0;background:#fff}
.mltsw-uv-image-stage{width:100%;min-height:420px;display:flex;align-items:center;justify-content:center;overflow:auto;padding:22px;background:linear-gradient(45deg,#1f2937 25%,#253044 25%,#253044 50%,#1f2937 50%,#1f2937 75%,#253044 75%);background-size:24px 24px}
.mltsw-uv-image{display:block;max-width:100%;max-height:75vh;object-fit:contain;transform-origin:center;transition:transform .16s ease}
.mltsw-uv-video{width:100%;max-height:78vh;min-height:360px;background:#000}
.mltsw-uv-audio-stage{width:100%;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:32px;background:radial-gradient(circle at top,#29364e,#111827 65%)}
.mltsw-uv-audio-icon{width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:var(--mltsw-theme-accent,#3b82f6);font-size:44px;font-weight:900;box-shadow:0 16px 45px rgba(0,0,0,.35)}
.mltsw-uv-audio{width:min(560px,90%)}
.mltsw-uv-text{width:100%;min-height:420px;margin:0;padding:16px 0;background:#0d1117;color:#e6edf3;font:13px/1.55 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;overflow:auto;tab-size:2}
.mltsw-uv-text code{display:block;min-width:max-content}
.mltsw-uv-text.is-wrap code{min-width:0}
.mltsw-uv-line{display:flex;min-height:20px;padding-right:16px}
.mltsw-uv-line.is-hidden{display:none}
.mltsw-uv-line.is-match{background:rgba(250,204,21,.2)}
.mltsw-uv-ln{flex:0 0 56px;padding-right:14px;color:#6e7681;text-align:right;user-select:none;border-right:1px solid #30363d;margin-right:14px}
.mltsw-uv-code{white-space:pre}
.mltsw-uv-text.is-wrap .mltsw-uv-code{white-space:pre-wrap;overflow-wrap:anywhere}
.mltsw-uv-note,.mltsw-uv-office-note{position:sticky;bottom:0;width:100%;padding:8px 12px;background:#713f12;color:#fef3c7;font-size:11px;font-weight:800;text-align:center;box-sizing:border-box}
.mltsw-uv-office-note{position:absolute;top:0;bottom:auto;z-index:2}
.mltsw-uv-table-wrap{width:100%;max-height:72vh;overflow:auto;background:#fff;color:#111827}
.mltsw-uv-table{width:max-content;min-width:100%;border-collapse:collapse;font-size:12px}
.mltsw-uv-table th,.mltsw-uv-table td{padding:8px 10px;border:1px solid #e5e7eb;white-space:nowrap;text-align:left}
.mltsw-uv-table th{position:sticky;top:0;background:#f3f4f6;z-index:1;font-weight:900}
.mltsw-uv-empty{width:100%;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;text-align:center;color:#d1d5db;box-sizing:border-box}
.mltsw-uv-empty span{max-width:520px;color:#9ca3af}
.mltsw-uv-filebadge{min-width:82px;height:96px;padding:10px;display:grid;place-items:center;border-radius:10px;background:#fff;color:#111827;font-size:16px;font-weight:950;box-shadow:0 12px 32px rgba(0,0,0,.25)}
.mltsw-media-thumb,.mltsw-media-tile{position:relative;overflow:hidden;background:#050505}
.mltsw-media-thumb video,.mltsw-media-tile video{width:100%;height:100%;object-fit:cover;opacity:.78}
.mltsw-media-thumb span,.mltsw-media-tile span{position:absolute;left:10px;bottom:10px;padding:4px 7px;border-radius:6px;background:rgba(0,0,0,.74);color:#fff;font-size:10px;font-weight:900}
.mltsw-file-tile{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#111827!important;color:#d1d5db}
.mltsw-file-tile .mltsw-tile-ico{position:static!important}
.mltsw-viewer-status,.mltsw-supported-types{display:flex;flex-direction:column;gap:5px;margin:12px 0;padding:12px 13px;border-radius:12px;border:1px solid #dbe3ef;background:#f8fafc}
.mltsw-viewer-status strong,.mltsw-supported-types strong{font-size:13px;color:#0f172a}
.mltsw-viewer-status span,.mltsw-supported-types span{font-size:11px;line-height:1.45;color:#64748b}
.mltsw-viewer-status.is-ready{border-color:#bbf7d0;background:#f0fdf4}
.mltsw-viewer-status.is-warning{border-color:#fde68a;background:#fffbeb}
@media(max-width:680px){
  .mltsw-uv-toolbar{align-items:flex-start;flex-direction:column}
  .mltsw-uv-ident{width:100%}.mltsw-uv-title{max-width:58vw}.mltsw-uv-actions{width:100%;justify-content:flex-start}
  .mltsw-uv-search{width:100%!important}.mltsw-uv-stage,.mltsw-uv-shell,.mltsw-universal,.mltsw-uv-loading{min-height:360px}
  .mltsw-uv-stage>.mltsw-embedpdf,.mltsw-uv-frame{min-height:440px}
}

/* Phase 4: document productivity, search, bookmarks, notes and watermarks */
.mltsw-global-search{position:relative;margin:12px 0;z-index:30}
.mltsw-global-searchbox{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid rgba(148,163,184,.3);border-radius:var(--mltsw-theme-radius,14px);background:var(--mltsw-theme-card,#fff);color:var(--mltsw-theme-text,#111);box-shadow:0 8px 24px rgba(15,23,42,.08)}
.mltsw-global-searchbox>span{font-size:22px;line-height:1;color:var(--mltsw-theme-muted,#64748b)}
.mltsw-global-searchbox input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:inherit!important;padding:7px 4px!important;margin:0!important;box-shadow:none!important;font:inherit}
.mltsw-bookmark-filter{appearance:none;border:1px solid rgba(148,163,184,.34);background:transparent;color:inherit;border-radius:9px;padding:8px 11px;font-weight:850;cursor:pointer}
.mltsw-search-results{position:absolute;left:0;right:0;top:calc(100% + 7px);max-height:430px;overflow:auto;background:var(--mltsw-theme-card,#fff);color:var(--mltsw-theme-text,#111);border:1px solid rgba(148,163,184,.32);border-radius:14px;box-shadow:0 22px 55px rgba(15,23,42,.2)}
.mltsw-search-summary,.mltsw-search-empty,.mltsw-search-loading{padding:12px 14px;font-size:12px;font-weight:850;color:var(--mltsw-theme-muted,#64748b)}
.mltsw-search-loading{display:flex;align-items:center;gap:9px}.mltsw-search-loading span{width:16px;height:16px;border:2px solid rgba(100,116,139,.3);border-top-color:var(--mltsw-theme-accent,#3b82f6);border-radius:50%;animation:mltswUvSpin .8s linear infinite}
.mltsw-search-result{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:start;padding:12px 14px;border:0;border-top:1px solid rgba(148,163,184,.18);background:transparent;color:inherit;text-align:left;cursor:pointer}
.mltsw-search-result:hover{background:rgba(59,130,246,.08)}.mltsw-search-result-type{margin-top:1px;padding:4px 6px;border-radius:6px;background:var(--mltsw-theme-accent,#3b82f6);color:#fff;font-size:9px;font-weight:950;letter-spacing:.06em}.mltsw-search-result strong{display:block;font-size:13px}.mltsw-search-result small{display:block;margin-top:4px;color:var(--mltsw-theme-muted,#64748b);font-size:11px;line-height:1.4}.mltsw-search-result b{font-size:11px;color:var(--mltsw-theme-accent,#3b82f6)}
.mltsw-uv-workspace{position:relative;display:flex;flex:1;min-height:0;overflow:hidden}.mltsw-uv-workspace>.mltsw-uv-stage{flex:1;min-width:0}
.mltsw-uv-actions button.is-active{background:#f59e0b;color:#111827;border-color:#fbbf24}.mltsw-uv-actions button.is-complete{background:#065f46;color:#d1fae5;border-color:#10b981}
.mltsw-uv-notes{flex:0 0 320px;max-width:42%;display:flex;flex-direction:column;gap:10px;padding:12px;background:#0b1220;border-left:1px solid rgba(255,255,255,.12);color:#f9fafb;box-sizing:border-box}.mltsw-uv-notes[hidden]{display:none}
.mltsw-uv-notes-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.mltsw-uv-notes-head button{appearance:none;border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer}.mltsw-uv-notes-input{flex:1;min-height:220px;resize:none;border:1px solid rgba(255,255,255,.14)!important;background:#111827!important;color:#f9fafb!important;border-radius:10px!important;padding:11px!important;box-shadow:none!important;font:13px/1.5 inherit!important}.mltsw-uv-notes-actions{display:flex;gap:7px;flex-wrap:wrap}.mltsw-uv-notes-actions button{appearance:none;border:1px solid rgba(255,255,255,.14);background:#172033;color:#f9fafb;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:800;cursor:pointer}.mltsw-uv-notes-actions button.is-primary{background:var(--mltsw-theme-accent,#3b82f6);border-color:transparent}.mltsw-uv-notes-status{min-height:16px;color:#a7f3d0;font-size:11px;font-weight:800}
.mltsw-uv-watermark{position:absolute;inset:0;z-index:20;pointer-events:none;overflow:hidden;opacity:var(--mltsw-watermark-opacity,.14);color:#111;font-weight:950;letter-spacing:.12em;text-transform:uppercase;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.mltsw-uv-watermark.is-repeat{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,1fr);align-items:center;justify-items:center;transform:rotate(-18deg) scale(1.18)}.mltsw-uv-watermark.is-repeat span{white-space:nowrap;font-size:clamp(16px,2.1vw,32px)}
.mltsw-uv-watermark.is-single{display:flex;padding:28px;box-sizing:border-box}.mltsw-uv-watermark.is-single span{font-size:clamp(22px,4vw,54px);white-space:nowrap}.mltsw-uv-watermark.pos-center{align-items:center;justify-content:center}.mltsw-uv-watermark.pos-top-left{align-items:flex-start;justify-content:flex-start}.mltsw-uv-watermark.pos-top-right{align-items:flex-start;justify-content:flex-end}.mltsw-uv-watermark.pos-bottom-left{align-items:flex-end;justify-content:flex-start}.mltsw-uv-watermark.pos-bottom-right{align-items:flex-end;justify-content:flex-end}
@media(max-width:760px){.mltsw-global-searchbox{align-items:stretch;flex-wrap:wrap}.mltsw-global-searchbox input{min-width:180px}.mltsw-bookmark-filter{width:100%}.mltsw-uv-workspace{flex-direction:column}.mltsw-uv-notes{flex-basis:auto;max-width:none;width:100%;border-left:0;border-top:1px solid rgba(255,255,255,.12)}.mltsw-uv-notes-input{min-height:160px}.mltsw-uv-watermark.is-repeat{grid-template-columns:repeat(2,1fr)}}


/* v4.3.2 PDF preview and archive-content fixes */
.mltsw-embedpdf-engine,.mltsw-embedpdf-engine>div{width:100%;height:100%;min-height:inherit}
.mltsw-archive-pill{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#ede9fe;color:#6d28d9;font-weight:800}

/* v4.3.4 Bookshelf auto-fit and per-book paint */
.mltsw-books{align-items:stretch;min-height:292px}.mltsw-spine{width:var(--spine-w,70px)!important;min-width:var(--spine-w,70px)!important;max-width:var(--spine-w,70px)!important;height:280px!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:stretch!important;padding:9px 7px!important;background:var(--spine-bg,#fff)!important;color:var(--spine-tx,#000)!important;overflow:hidden!important}.mltsw-spine-title{position:relative!important;z-index:2!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;max-height:none!important;box-sizing:border-box!important;padding:3px 2px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;color:var(--spine-tx,#000)!important;overflow:hidden!important}.mltsw-spine-col{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.mltsw-spine-char{line-height:1.02!important}.mltsw-spine-dl{position:relative!important;z-index:3!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:30px!important;max-height:50px!important;box-sizing:border-box!important;margin-top:7px!important;padding:6px 5px!important;border-radius:9px!important;border:1px solid rgba(0,0,0,.16)!important;background:rgba(255,255,255,.94)!important;color:#111827!important;text-decoration:none!important;text-align:center!important;font-size:10px!important;font-weight:900!important;line-height:1.12!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:break-word!important}.mltsw-spine::before,.mltsw-spine::after{pointer-events:none}.mltsw-mag-tile,.mltsw-row.horizontal .mltsw-tile{cursor:pointer;position:relative}.mltsw-mag-tile::before,.mltsw-row.horizontal .mltsw-tile::before{content:'Preview';position:absolute;left:10px;bottom:52px;z-index:5;padding:6px 10px;border-radius:9px;background:rgba(255,255,255,.94);color:#111827;border:1px solid rgba(0,0,0,.14);font-size:11px;font-weight:900;box-shadow:0 4px 14px rgba(15,23,42,.18);pointer-events:none}.mltsw-modal-body .mltsw-universal{min-height:70vh}
.mltsw-layout-preview{position:absolute;left:10px;bottom:52px;z-index:6;padding:6px 10px;border-radius:9px;background:rgba(255,255,255,.96);color:#111827;border:1px solid rgba(0,0,0,.14);font-size:11px;font-weight:900;box-shadow:0 4px 14px rgba(15,23,42,.18);cursor:pointer}.mltsw-mag-tile::before,.mltsw-row.horizontal .mltsw-tile::before{content:none!important}
.mltsw-uv-office-note{display:flex!important;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.mltsw-uv-office-switch{display:flex;gap:6px}.mltsw-uv-office-switch button{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:inherit;border-radius:8px;padding:5px 8px;font-size:10px;font-weight:900;cursor:pointer}.mltsw-uv-office-switch button.is-active{background:#fff;color:#713f12}

/* ===== Interactive Timeline v4.4 ===== */
.mltsw-timeline{--tl-accent:#3b82f6;--tl-line:#cbd5e1;--tl-card:#fff;--tl-text:#0f172a;color:var(--tl-text);padding:18px;box-sizing:border-box}
.mltsw-timeline-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 22px;padding:12px;background:color-mix(in srgb,var(--tl-card) 92%,var(--tl-accent) 8%);border:1px solid color-mix(in srgb,var(--tl-line) 75%,transparent);border-radius:14px}
.mltsw-timeline-toolbar label{display:grid;gap:5px;font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--tl-text) 65%,transparent)}
.mltsw-timeline-toolbar input,.mltsw-timeline-toolbar select{min-width:160px;height:40px;border:1px solid var(--tl-line);border-radius:10px;background:#fff;color:#111827;padding:0 11px;font:inherit;text-transform:none;letter-spacing:normal}
.mltsw-timeline-search{flex:1;min-width:220px}.mltsw-timeline-search input{width:100%}
.mltsw-timeline-count{margin-left:auto;align-self:center;font-size:12px;font-weight:900;color:color-mix(in srgb,var(--tl-text) 62%,transparent)}
.mltsw-timeline-events{position:relative;max-width:1120px;margin:0 auto}
.mltsw-timeline-vertical .mltsw-timeline-events:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:3px;transform:translateX(-50%);background:var(--tl-line);border-radius:99px}
.mltsw-timeline-event{position:relative;width:50%;box-sizing:border-box;margin:0 0 26px;padding:0 34px}
.mltsw-timeline-event.is-odd{margin-left:0;text-align:right}.mltsw-timeline-event.is-even{margin-left:50%;text-align:left}
.mltsw-timeline.no-alternate .mltsw-timeline-event{width:auto;margin-left:34px;text-align:left;padding-left:28px;padding-right:0}
.mltsw-timeline.no-alternate .mltsw-timeline-events:before{left:16px}.mltsw-timeline.no-alternate .mltsw-timeline-dot{left:-24px!important;right:auto!important}
.mltsw-timeline-dot{position:absolute;top:23px;width:16px;height:16px;border-radius:50%;background:var(--tl-accent);border:4px solid #fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--tl-accent) 35%,transparent);z-index:2}
.mltsw-timeline-event.is-odd .mltsw-timeline-dot{right:-8px}.mltsw-timeline-event.is-even .mltsw-timeline-dot{left:-8px}
.mltsw-timeline-card{overflow:hidden;background:var(--tl-card);color:var(--tl-text);border:1px solid color-mix(in srgb,var(--tl-line) 82%,transparent);border-radius:16px;padding:18px;box-shadow:0 12px 28px rgba(15,23,42,.09);text-align:left;transition:transform .18s ease,box-shadow .18s ease}
.mltsw-timeline-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.14)}
.mltsw-timeline-card time{display:block;color:var(--tl-accent);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;margin-bottom:7px}
.mltsw-timeline-card h3{margin:0 0 8px;color:inherit;font-size:20px;line-height:1.25}
.mltsw-timeline-description{font-size:14px;line-height:1.65;color:color-mix(in srgb,var(--tl-text) 78%,transparent)}
.mltsw-timeline-description p{margin:0 0 8px}.mltsw-timeline-description p:last-child{margin-bottom:0}
.mltsw-timeline-location{font-size:12px;font-weight:800;margin:0 0 9px;color:color-mix(in srgb,var(--tl-text) 62%,transparent)}
.mltsw-timeline-media{display:block;width:calc(100% + 36px);height:190px;object-fit:cover;margin:-18px -18px 15px}
.mltsw-timeline-cardfoot{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:14px}
.mltsw-timeline-category{display:inline-flex;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--tl-accent) 13%,#fff);color:var(--tl-accent);font-size:11px;font-weight:900}
.mltsw-timeline-link{color:var(--tl-accent);font-size:12px;font-weight:900;text-decoration:none}.mltsw-timeline-link:hover{text-decoration:underline}
.mltsw-timeline-group{position:relative;z-index:3;width:max-content;max-width:90%;margin:8px auto 24px;padding:7px 13px;border-radius:999px;background:var(--tl-accent);color:#fff;font-size:12px;font-weight:900;box-shadow:0 6px 16px color-mix(in srgb,var(--tl-accent) 25%,transparent)}
.mltsw-timeline-horizontal .mltsw-timeline-events{display:flex;align-items:flex-start;gap:22px;overflow-x:auto;padding:42px 8px 20px;scroll-snap-type:x mandatory;max-width:none}
.mltsw-timeline-horizontal .mltsw-timeline-events:before{content:"";position:absolute;left:10px;right:10px;top:24px;height:3px;background:var(--tl-line)}
.mltsw-timeline-horizontal .mltsw-timeline-event{flex:0 0 min(340px,82vw);width:auto;margin:0;padding:0;text-align:left;scroll-snap-align:start}
.mltsw-timeline-horizontal .mltsw-timeline-dot{left:24px!important;right:auto!important;top:-27px}
.mltsw-timeline-horizontal .mltsw-timeline-group{flex:0 0 auto;margin:-40px 0 0;align-self:flex-start}
.mltsw-timeline-compact .mltsw-timeline-events{display:grid;gap:10px}.mltsw-timeline-compact .mltsw-timeline-event{width:auto;margin:0;padding:0 0 0 24px;text-align:left}
.mltsw-timeline-compact .mltsw-timeline-events:before{content:"";position:absolute;left:7px;top:0;bottom:0;width:2px;background:var(--tl-line)}
.mltsw-timeline-compact .mltsw-timeline-dot{left:0!important;right:auto!important;top:18px;width:10px;height:10px;border-width:3px}
.mltsw-timeline-compact .mltsw-timeline-card{padding:13px 15px;border-radius:12px}.mltsw-timeline-compact .mltsw-timeline-card h3{font-size:16px}.mltsw-timeline-compact .mltsw-timeline-media{height:130px;width:calc(100% + 30px);margin:-13px -15px 12px}
@media(max-width:720px){.mltsw-timeline{padding:10px}.mltsw-timeline-toolbar{align-items:stretch}.mltsw-timeline-toolbar label{width:100%}.mltsw-timeline-toolbar input,.mltsw-timeline-toolbar select{width:100%;min-width:0}.mltsw-timeline-count{margin-left:0}.mltsw-timeline-vertical .mltsw-timeline-events:before{left:10px}.mltsw-timeline-vertical .mltsw-timeline-event{width:auto;margin-left:0!important;text-align:left!important;padding:0 0 0 34px}.mltsw-timeline-vertical .mltsw-timeline-dot{left:2px!important;right:auto!important}.mltsw-timeline-group{margin-left:0}.mltsw-timeline-media{height:160px}}


/* ===== v4.5.5 — reference-style YouTube Channel gallery ===== */
.mltsw-widget[data-type="youtube_gallery"]{background:#fff!important;color:#151515!important}
.mltsw-yt{width:100%;font-family:Arial,Helvetica,sans-serif;color:#151515}
.mltsw-yt-template-channel{background:#fff;padding:0}
.mltsw-yt-headwrap{border:0;border-radius:0;background:#fff;margin:0 0 18px;overflow:hidden}
.mltsw-yt-banner{height:174px;border-radius:0;background-size:cover;background-position:center;position:relative;background-color:#111;overflow:hidden}
.mltsw-yt-banner.is-fallback{background:linear-gradient(110deg,#070707 0%,#1d1d1d 54%,#353535 100%)}
.mltsw-yt-banner>span{display:none}.mltsw-yt-banner.is-fallback>span{display:block;position:absolute;left:42px;bottom:24px;color:#fff;font-size:28px;font-weight:800;letter-spacing:-.02em;opacity:.9}
.mltsw-yt-head{margin:0;padding:16px 20px;min-height:96px;display:flex;gap:18px;align-items:center;background:#fafafa;border:0;border-radius:0}
.mltsw-yt-ava{width:76px;height:76px;flex:0 0 76px;border-radius:50%;background:#202020;color:#fff;font-size:22px;border:1px solid #e5e5e5}
.mltsw-yt-ava.is-image img{width:100%;height:100%;object-fit:cover}
.mltsw-yt-meta{min-width:0;flex:1}
.mltsw-yt-name{font-size:21px;font-weight:500;color:#202020;white-space:normal;line-height:1.2}
.mltsw-yt-stats{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:8px;color:#656565;font-size:12px;opacity:1}
.mltsw-yt-subbtn{display:flex;align-items:center;border:1px solid #d3d3d3;border-radius:0;padding:0;text-decoration:none;color:#555;background:#fff;font-size:11px;font-weight:700;height:26px;overflow:hidden}
.mltsw-yt-subbtn .mltsw-yt-brand-icon{display:flex;align-items:center;justify-content:center;width:23px;height:100%;background:#e62117;color:#fff;font-size:9px}
.mltsw-yt-subbtn strong{height:100%;display:flex;align-items:center;background:#e62117;color:#fff;padding:0 8px 0 2px;margin:0;font-weight:700}.mltsw-yt-subbtn em{height:100%;padding:0 7px;display:flex;align-items:center;border-left:1px solid #d3d3d3;background:#fff;color:#777;font-style:normal;font-weight:500}
.mltsw-yt-filterbar{margin:0 20px 14px;justify-content:flex-end}.mltsw-chip{padding:6px 10px;border-radius:3px;font-size:11px}.mltsw-chip.active{background:#272727;border-color:#272727}
.mltsw-yt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;padding:0 20px}
.mltsw-yt-card{appearance:none;display:block;width:100%;padding:0;border:0!important;border-radius:0!important;background:#fff!important;color:#151515;text-align:left;cursor:pointer;box-shadow:none!important;overflow:visible}
.mltsw-yt-thumb{width:100%;height:auto;aspect-ratio:16/9;background:#111 center/cover no-repeat;position:relative;overflow:hidden}
.mltsw-yt-thumb::after{display:none}
.mltsw-yt-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:44px;border-radius:12px;background:#ff1f16;box-shadow:0 2px 10px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center}
.mltsw-yt-play i{width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:17px solid #fff;margin-left:4px}
.mltsw-yt-duration{right:7px;bottom:6px;background:rgba(0,0,0,.82);border-radius:0;padding:3px 5px;font-size:11px;color:#fff}
.mltsw-yt-card-copy{padding:12px 0 0}
.mltsw-yt-title{padding:0;font-size:14px;font-weight:700;line-height:1.35;color:#191919;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.mltsw-yt-date{margin-top:8px;font-size:12px;color:#747474}
.mltsw-yt-video-desc{margin-top:8px;color:#4d4d4d;font-size:12px;line-height:1.45;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mltsw-yt-video-stats{margin-top:10px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#666;font-size:11px}.mltsw-yt-video-stats span{color:#aaa}
.mltsw-yt-pagination{display:flex;justify-content:center;gap:4px;margin:26px 0 8px}.mltsw-yt-page{width:26px;height:26px;border:1px solid #ececec;background:#f7f7f7;color:#999;font-size:12px;cursor:pointer}.mltsw-yt-page.active{background:#eee;color:#555}.mltsw-yt-page.nav{font-size:19px;line-height:19px}
.mltsw-yt-template-single .mltsw-yt-grid{grid-template-columns:minmax(0,760px);justify-content:center}.mltsw-yt-template-subscribe .mltsw-yt-headwrap{margin-bottom:0}.mltsw-yt-template-grid .mltsw-yt-headwrap{display:none}
@media(max-width:900px){.mltsw-yt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mltsw-yt-banner{height:140px}.mltsw-yt-head{padding:14px}.mltsw-yt-ava{width:62px;height:62px;flex-basis:62px}.mltsw-yt-name{font-size:18px}}
@media(max-width:620px){.mltsw-yt-grid{grid-template-columns:1fr;padding:0 12px}.mltsw-yt-banner{height:110px}.mltsw-yt-head{align-items:flex-start;flex-wrap:wrap}.mltsw-yt-meta{min-width:calc(100% - 78px)}.mltsw-yt-subbtn{margin-left:78px}.mltsw-yt-play{width:54px;height:38px}.mltsw-yt-title{-webkit-line-clamp:2}.mltsw-yt-video-desc{min-height:0}}


/* ===== v4.5.7 — YouTube Channel visual refresh ===== */
.mltsw-yt-template-channel{box-sizing:border-box;max-width:1460px;margin:0 auto;padding:16px 18px 28px;background:#fff}
.mltsw-yt-template-channel .mltsw-yt-headwrap{box-shadow:none}
.mltsw-yt-template-channel .mltsw-yt-banner{height:auto;aspect-ratio:6.2/1;min-height:150px;max-height:228px;background-position:center;background-size:cover;border-radius:3px}
.mltsw-yt-template-channel .mltsw-yt-banner.is-video-fallback{filter:none;background-position:center 42%;transform:translateZ(0)}
.mltsw-yt-template-channel .mltsw-yt-banner.is-video-fallback:before{content:"";position:absolute;inset:-14px;background:inherit;background-position:center;background-size:cover;filter:blur(8px) saturate(.9);transform:scale(1.05);z-index:0}
.mltsw-yt-template-channel .mltsw-yt-banner.is-video-fallback:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.43),rgba(0,0,0,.10),rgba(0,0,0,.28));z-index:1}
.mltsw-yt-template-channel .mltsw-yt-banner.is-video-fallback>span{display:block;z-index:2;position:absolute;left:34px;bottom:22px;color:#fff;font-size:25px;font-weight:800;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.mltsw-yt-template-channel .mltsw-yt-head{min-height:92px;padding:14px 20px;background:#fafafa;border:1px solid #f1f1f1;border-top:0}
.mltsw-yt-template-channel .mltsw-yt-ava{width:78px;height:78px;flex-basis:78px;border:1px solid #e3e3e3;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.mltsw-yt-template-channel .mltsw-yt-name{font-size:20px;font-weight:500;letter-spacing:-.01em}
.mltsw-yt-template-channel .mltsw-yt-stats{font-size:11.5px;color:#666;gap:7px;margin-top:7px}
.mltsw-yt-template-channel .mltsw-yt-grid{padding:0;gap:24px 18px}
.mltsw-yt-template-channel .mltsw-yt-filterbar{margin:0 0 14px}
.mltsw-yt-template-channel .mltsw-yt-thumb{border-radius:0;background-color:#111}
.mltsw-yt-template-channel .mltsw-yt-card-copy{padding-top:11px}
.mltsw-yt-template-channel .mltsw-yt-title{font-size:13px;line-height:1.34;font-weight:700;-webkit-line-clamp:1}
.mltsw-yt-template-channel .mltsw-yt-date{margin-top:7px;font-size:11.5px}
.mltsw-yt-template-channel .mltsw-yt-video-desc{margin-top:7px;min-height:32px;font-size:11.5px;line-height:1.42;color:#505050}
.mltsw-yt-template-channel .mltsw-yt-video-stats{margin-top:9px;font-size:10.5px;color:#666}
.mltsw-yt-template-channel .mltsw-yt-pagination{margin:28px 0 0}

/* Reference Classic — closest to the supplied reference image */
.mltsw-yt-skin-reference .mltsw-yt-headwrap{margin-bottom:18px}
.mltsw-yt-skin-reference .mltsw-yt-subbtn{height:25px;border-color:#cfcfcf;box-shadow:none}
.mltsw-yt-skin-reference .mltsw-yt-subbtn .mltsw-yt-brand-icon,.mltsw-yt-skin-reference .mltsw-yt-subbtn strong{background:#e62117}
.mltsw-yt-skin-reference .mltsw-yt-play{width:62px;height:44px;border-radius:11px;background:#ff2017}

/* Modern Clean — softer cards and simplified metadata */
.mltsw-yt-skin-clean{background:#f7f8fa;border-radius:18px;padding:18px 20px 30px}
.mltsw-yt-skin-clean .mltsw-yt-headwrap{border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.07)}
.mltsw-yt-skin-clean .mltsw-yt-banner{border-radius:0}
.mltsw-yt-skin-clean .mltsw-yt-head{background:#fff;border:0}
.mltsw-yt-skin-clean .mltsw-yt-grid{gap:20px}
.mltsw-yt-skin-clean .mltsw-yt-card{border-radius:12px!important;overflow:hidden;background:#fff!important;box-shadow:0 6px 20px rgba(15,23,42,.07)!important}
.mltsw-yt-skin-clean .mltsw-yt-thumb{border-radius:0}
.mltsw-yt-skin-clean .mltsw-yt-card-copy{padding:12px 13px 14px}
.mltsw-yt-skin-clean .mltsw-yt-video-desc{display:none}
.mltsw-yt-skin-clean .mltsw-yt-title{-webkit-line-clamp:2;font-size:13.5px}

/* YouTube Native — inspired by the current YouTube browse layout */
.mltsw-yt-skin-native{padding:0 0 28px}
.mltsw-yt-skin-native .mltsw-yt-headwrap{margin-bottom:22px}
.mltsw-yt-skin-native .mltsw-yt-banner{border-radius:12px;aspect-ratio:6.4/1;margin:0 18px}
.mltsw-yt-skin-native .mltsw-yt-head{background:#fff;border:0;padding:18px 22px}
.mltsw-yt-skin-native .mltsw-yt-subbtn{border:0;border-radius:999px;background:#0f0f0f;color:#fff;height:36px;padding:0 17px;font-size:12px}
.mltsw-yt-skin-native .mltsw-yt-subbtn .mltsw-yt-brand-icon,.mltsw-yt-skin-native .mltsw-yt-subbtn strong{background:transparent;color:#fff;padding:0;width:auto}
.mltsw-yt-skin-native .mltsw-yt-subbtn .mltsw-yt-brand-icon{margin-right:5px}
.mltsw-yt-skin-native .mltsw-yt-subbtn em{display:none}
.mltsw-yt-skin-native .mltsw-yt-grid{padding:0 18px;gap:26px 16px}
.mltsw-yt-skin-native .mltsw-yt-thumb{border-radius:12px}
.mltsw-yt-skin-native .mltsw-yt-play{width:54px;height:38px;border-radius:10px}
.mltsw-yt-skin-native .mltsw-yt-video-desc{display:none}
.mltsw-yt-skin-native .mltsw-yt-title{-webkit-line-clamp:2;font-size:14px}
.mltsw-yt-skin-native .mltsw-yt-date{margin-top:5px}

@media(max-width:900px){
  .mltsw-yt-template-channel{padding:12px 12px 24px}
  .mltsw-yt-template-channel .mltsw-yt-banner{min-height:118px}
  .mltsw-yt-template-channel .mltsw-yt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .mltsw-yt-template-channel{padding:8px 8px 20px}
  .mltsw-yt-template-channel .mltsw-yt-banner{min-height:88px;aspect-ratio:4.2/1}
  .mltsw-yt-template-channel .mltsw-yt-banner.is-video-fallback>span{left:18px;bottom:14px;font-size:18px}
  .mltsw-yt-template-channel .mltsw-yt-head{padding:12px;gap:12px}
  .mltsw-yt-template-channel .mltsw-yt-ava{width:58px;height:58px;flex-basis:58px}
  .mltsw-yt-template-channel .mltsw-yt-name{font-size:17px}
  .mltsw-yt-template-channel .mltsw-yt-grid{grid-template-columns:1fr;gap:20px}
  .mltsw-yt-skin-native .mltsw-yt-banner{margin:0 8px}
  .mltsw-yt-skin-native .mltsw-yt-grid{padding:0 8px}
}

/* ===== v4.5.8 — YouTube channel snapshot header ===== */
.mltsw-yt-template-channel{max-width:1320px;padding:0 18px 30px;font-family:Roboto,Arial,sans-serif;color:#0f0f0f}
.mltsw-yt-template-channel .mltsw-yt-snapshot-header{margin:0 0 22px;background:#fff;border:0;overflow:visible}
.mltsw-yt-template-channel .mltsw-yt-snapshot-header .mltsw-yt-banner{display:block;width:100%;height:auto;aspect-ratio:6/1;min-height:150px;max-height:220px;border-radius:12px;background-position:center;background-repeat:no-repeat;background-size:cover;text-decoration:none}
.mltsw-yt-template-channel .mltsw-yt-snapshot-header .mltsw-yt-banner.is-fallback{display:none}
.mltsw-yt-template-channel .mltsw-yt-snapshot-header .mltsw-yt-banner>span{display:none}
.mltsw-yt-template-channel .mltsw-yt-profile{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:24px;align-items:center;padding:24px 14px 18px;background:#fff}
.mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-ava{width:160px;height:160px;flex:0 0 160px;border:0;box-shadow:none;background:#f2f2f2;color:#606060;font-size:36px}
.mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-ava.is-image{overflow:hidden}
.mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-ava.is-image img{width:100%;height:100%;object-fit:cover;display:block}
.mltsw-yt-template-channel .mltsw-yt-profile-copy{min-width:0;align-self:center}
.mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-name{display:inline-block;color:#0f0f0f;text-decoration:none;font-size:36px;line-height:1.15;font-weight:700;letter-spacing:-.025em;margin:0 0 10px}
.mltsw-yt-template-channel .mltsw-yt-profile-stats{display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#606060;font-size:14px;line-height:20px}
.mltsw-yt-template-channel .mltsw-yt-profile-stats strong{color:#0f0f0f;font-weight:500}
.mltsw-yt-template-channel .mltsw-yt-profile-stats span{color:#909090}
.mltsw-yt-template-channel .mltsw-yt-profile-desc{max-width:760px;margin-top:8px;color:#606060;font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mltsw-yt-template-channel .mltsw-yt-profile-desc strong{color:#0f0f0f;font-weight:600}
.mltsw-yt-template-channel .mltsw-yt-profile-actions{align-self:center;padding-right:4px}
.mltsw-yt-template-channel .mltsw-yt-subscribe-native{display:inline-flex;align-items:center;justify-content:center;min-width:96px;height:36px;padding:0 18px;border:0;border-radius:18px;background:#0f0f0f;color:#fff;text-decoration:none;font-size:14px;font-weight:500;line-height:36px;white-space:nowrap}
.mltsw-yt-template-channel .mltsw-yt-subscribe-native:hover{background:#272727;color:#fff}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 4px;border-bottom:1px solid #e5e5e5;overflow-x:auto;scrollbar-width:none;background:#fff}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs::-webkit-scrollbar{display:none}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs a{position:relative;display:flex;align-items:center;height:48px;padding:0 16px;color:#606060;text-decoration:none;font-size:14px;font-weight:500;white-space:nowrap}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs a:hover{color:#0f0f0f}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs a.active{color:#0f0f0f}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px;background:#0f0f0f}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs .search{margin-left:auto;padding:0 14px}
.mltsw-yt-template-channel .mltsw-yt-channel-tabs svg{width:22px;height:22px;fill:#0f0f0f}
/* Keep all channel skins on the real YouTube-style profile/header; skins affect cards only. */
.mltsw-yt-template-channel.mltsw-yt-skin-reference .mltsw-yt-snapshot-header,
.mltsw-yt-template-channel.mltsw-yt-skin-clean .mltsw-yt-snapshot-header,
.mltsw-yt-template-channel.mltsw-yt-skin-native .mltsw-yt-snapshot-header{border-radius:0;box-shadow:none;background:#fff}
.mltsw-yt-template-channel.mltsw-yt-skin-native .mltsw-yt-snapshot-header .mltsw-yt-banner{margin:0;border-radius:12px}
@media(max-width:900px){
  .mltsw-yt-template-channel .mltsw-yt-profile{grid-template-columns:112px minmax(0,1fr);gap:18px;padding:20px 8px 14px}
  .mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-ava{width:112px;height:112px;flex-basis:112px;font-size:28px}
  .mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-name{font-size:28px}
  .mltsw-yt-template-channel .mltsw-yt-profile-actions{grid-column:2;margin-top:0}
  .mltsw-yt-template-channel .mltsw-yt-snapshot-header .mltsw-yt-banner{min-height:110px}
}
@media(max-width:620px){
  .mltsw-yt-template-channel{padding:0 10px 24px}
  .mltsw-yt-template-channel .mltsw-yt-snapshot-header .mltsw-yt-banner{aspect-ratio:4.6/1;min-height:82px;border-radius:8px}
  .mltsw-yt-template-channel .mltsw-yt-profile{grid-template-columns:80px minmax(0,1fr);gap:14px;padding:16px 4px 12px}
  .mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-ava{width:80px;height:80px;flex-basis:80px;font-size:20px}
  .mltsw-yt-template-channel .mltsw-yt-profile .mltsw-yt-name{font-size:22px;margin-bottom:7px}
  .mltsw-yt-template-channel .mltsw-yt-profile-stats{font-size:12px;gap:5px}
  .mltsw-yt-template-channel .mltsw-yt-profile-desc{display:none}
  .mltsw-yt-template-channel .mltsw-yt-profile-actions{grid-column:1 / -1;padding:0}
  .mltsw-yt-template-channel .mltsw-yt-subscribe-native{height:34px;line-height:34px;min-width:88px}
  .mltsw-yt-template-channel .mltsw-yt-channel-tabs a{height:44px;padding:0 12px;font-size:13px}
  .mltsw-yt-template-channel .mltsw-yt-channel-tabs{min-height:44px}
}

/* === Timeline Pro v4.10: ranges, references, multi-source + layouts === */
.mltsw-timeline-range-summary{max-width:1120px;margin:0 auto 18px;padding:15px 18px;border:1px solid color-mix(in srgb,var(--tl-line) 78%,transparent);border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--tl-card) 94%,var(--tl-accent) 6%),var(--tl-card));display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box}
.mltsw-timeline-range-summary>div{display:grid;gap:4px}.mltsw-timeline-range-summary span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:color-mix(in srgb,var(--tl-text) 52%,transparent)}
.mltsw-timeline-range-summary strong{font-size:18px;line-height:1.25}.mltsw-timeline-range-summary strong i{font-style:normal;color:var(--tl-accent);padding:0 5px}.mltsw-timeline-range-summary em{font-style:normal;font-size:12px;font-weight:800;color:color-mix(in srgb,var(--tl-text) 58%,transparent);white-space:nowrap}
.mltsw-timeline-ref{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:4px;color:var(--tl-accent);font-size:11px;font-weight:900;text-decoration:none}.mltsw-timeline-ref:hover{text-decoration:underline}
.mltsw-timeline-source-name{display:block;margin:-2px 0 9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:color-mix(in srgb,var(--tl-text) 48%,transparent)}
.mltsw-timeline-references{max-width:1120px;margin:28px auto 0;padding:20px;border:1px solid color-mix(in srgb,var(--tl-line) 80%,transparent);border-radius:18px;background:color-mix(in srgb,var(--tl-card) 97%,var(--tl-accent) 3%);box-sizing:border-box}
.mltsw-timeline-references h3{margin:0 0 14px;font-size:18px;color:var(--tl-text)}.mltsw-timeline-reference-list{display:grid;gap:9px}
.mltsw-timeline-reference{display:grid;grid-template-columns:34px 1fr;gap:9px;align-items:start;padding:10px 12px;border-radius:11px;background:var(--tl-card);border:1px solid color-mix(in srgb,var(--tl-line) 65%,transparent)}
.mltsw-timeline-reference>b{color:var(--tl-accent);font-size:12px;line-height:1.7}.mltsw-timeline-reference>div{display:grid;gap:2px;min-width:0}.mltsw-timeline-reference span,.mltsw-timeline-reference a{font-size:13px;font-weight:850;color:var(--tl-text);text-decoration:none;overflow-wrap:anywhere}.mltsw-timeline-reference a:hover{color:var(--tl-accent);text-decoration:underline}.mltsw-timeline-reference small{font-size:11px;color:color-mix(in srgb,var(--tl-text) 55%,transparent)}
.mltsw-timeline-references.style-footnotes{border-left:4px solid var(--tl-accent);border-radius:4px 14px 14px 4px}.mltsw-timeline-references.style-footnotes .mltsw-timeline-reference{background:transparent;border:0;border-bottom:1px solid var(--tl-line);border-radius:0;padding-left:0}.mltsw-timeline-references.style-footnotes .mltsw-timeline-reference:last-child{border-bottom:0}
.mltsw-timeline-references.style-compact .mltsw-timeline-reference-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.mltsw-timeline-references.style-compact .mltsw-timeline-reference{padding:8px 10px}

/* Alternating story */
.mltsw-timeline-alternating .mltsw-timeline-events:before,.mltsw-timeline-zigzag .mltsw-timeline-events:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:3px;transform:translateX(-50%);background:var(--tl-line);border-radius:99px}
.mltsw-timeline-zigzag .mltsw-timeline-event.is-odd .mltsw-timeline-card{transform:rotate(-.5deg)}.mltsw-timeline-zigzag .mltsw-timeline-event.is-even .mltsw-timeline-card{transform:rotate(.5deg)}.mltsw-timeline-zigzag .mltsw-timeline-card:hover{transform:translateY(-2px) rotate(0)}

/* Card wall */
.mltsw-timeline-cards .mltsw-timeline-events{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:1200px}.mltsw-timeline-cards .mltsw-timeline-event{width:auto;margin:0!important;padding:0;text-align:left}.mltsw-timeline-cards .mltsw-timeline-dot{display:none}.mltsw-timeline-cards .mltsw-timeline-group{grid-column:1/-1;margin:8px 0 2px}.mltsw-timeline-cards .mltsw-timeline-card{height:100%}

/* Roadmap */
.mltsw-timeline-roadmap .mltsw-timeline-events:before{content:"";position:absolute;left:29px;top:6px;bottom:6px;width:5px;background:linear-gradient(var(--tl-accent),var(--tl-line));border-radius:99px}.mltsw-timeline-roadmap .mltsw-timeline-event{width:auto;margin:0 0 18px 0!important;padding:0 0 0 72px;text-align:left}.mltsw-timeline-roadmap .mltsw-timeline-dot{left:19px!important;right:auto!important;top:24px;width:17px;height:17px}.mltsw-timeline-roadmap .mltsw-timeline-card{border-left:4px solid var(--tl-accent)}.mltsw-timeline-roadmap .mltsw-timeline-group{margin-left:0}

/* Milestone rail */
.mltsw-timeline-milestones .mltsw-timeline-events{display:flex;gap:20px;overflow-x:auto;padding:54px 8px 20px;max-width:none;scroll-snap-type:x proximity}.mltsw-timeline-milestones .mltsw-timeline-events:before{content:"";position:absolute;left:10px;right:10px;top:31px;height:6px;background:linear-gradient(90deg,var(--tl-accent),var(--tl-line));border-radius:99px}.mltsw-timeline-milestones .mltsw-timeline-event{flex:0 0 min(300px,80vw);width:auto;margin:0!important;padding:0;text-align:left;scroll-snap-align:start}.mltsw-timeline-milestones .mltsw-timeline-dot{left:24px!important;right:auto!important;top:-34px;width:18px;height:18px}.mltsw-timeline-milestones .mltsw-timeline-card{border-top:4px solid var(--tl-accent)}.mltsw-timeline-milestones .mltsw-timeline-group{flex:0 0 auto;margin:-52px 0 0;align-self:flex-start}

/* Chronology ledger */
.mltsw-timeline-chronology .mltsw-timeline-events{display:grid;gap:0}.mltsw-timeline-chronology .mltsw-timeline-event{width:auto;margin:0!important;padding:0 0 0 34px;text-align:left;border-bottom:1px solid var(--tl-line)}.mltsw-timeline-chronology .mltsw-timeline-event:last-child{border-bottom:0}.mltsw-timeline-chronology .mltsw-timeline-events:before{content:"";position:absolute;left:9px;top:0;bottom:0;width:2px;background:var(--tl-line)}.mltsw-timeline-chronology .mltsw-timeline-dot{left:2px!important;right:auto!important;top:27px;width:10px;height:10px;border-width:3px}.mltsw-timeline-chronology .mltsw-timeline-card{border:0;border-radius:0;box-shadow:none;background:transparent;padding:18px 4px}.mltsw-timeline-chronology .mltsw-timeline-card:hover{transform:none;box-shadow:none}.mltsw-timeline-chronology .mltsw-timeline-media{width:220px;height:120px;border-radius:10px;margin:0 14px 8px 0;float:left}

/* Minimal */
.mltsw-timeline-minimal .mltsw-timeline-events{display:grid;gap:8px}.mltsw-timeline-minimal .mltsw-timeline-event{width:auto;margin:0!important;padding:0;text-align:left}.mltsw-timeline-minimal .mltsw-timeline-dot{display:none}.mltsw-timeline-minimal .mltsw-timeline-card{padding:12px 0;border:0;border-bottom:1px solid var(--tl-line);border-radius:0;box-shadow:none;background:transparent}.mltsw-timeline-minimal .mltsw-timeline-card:hover{transform:none;box-shadow:none}.mltsw-timeline-minimal .mltsw-timeline-media{width:110px;height:78px;float:right;margin:0 0 8px 14px;border-radius:9px}.mltsw-timeline-minimal .mltsw-timeline-group{margin-left:0}

/* Process steps */
.mltsw-timeline-process .mltsw-timeline-events{counter-reset:mltsw-step;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:42px 18px;max-width:1200px}.mltsw-timeline-process .mltsw-timeline-events:before{content:"";position:absolute;left:4%;right:4%;top:23px;height:3px;background:var(--tl-line)}.mltsw-timeline-process .mltsw-timeline-event{counter-increment:mltsw-step;width:auto;margin:0!important;padding:48px 0 0;text-align:left}.mltsw-timeline-process .mltsw-timeline-dot{left:50%!important;right:auto!important;top:10px;transform:translateX(-50%);width:34px;height:34px;border-width:3px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:900}.mltsw-timeline-process .mltsw-timeline-dot:after{content:counter(mltsw-step)}.mltsw-timeline-process .mltsw-timeline-group{grid-column:1/-1;margin:0 auto -28px}

@media(max-width:900px){.mltsw-timeline-cards .mltsw-timeline-events{grid-template-columns:repeat(2,minmax(0,1fr))}.mltsw-timeline-process .mltsw-timeline-events:before{display:none}}
@media(max-width:720px){.mltsw-timeline-range-summary{align-items:flex-start;flex-direction:column}.mltsw-timeline-range-summary em{white-space:normal}.mltsw-timeline-cards .mltsw-timeline-events{grid-template-columns:1fr}.mltsw-timeline-alternating .mltsw-timeline-events:before,.mltsw-timeline-zigzag .mltsw-timeline-events:before{left:10px}.mltsw-timeline-alternating .mltsw-timeline-event,.mltsw-timeline-zigzag .mltsw-timeline-event{width:auto;margin-left:0!important;text-align:left!important;padding:0 0 0 34px}.mltsw-timeline-alternating .mltsw-timeline-dot,.mltsw-timeline-zigzag .mltsw-timeline-dot{left:2px!important;right:auto!important}.mltsw-timeline-chronology .mltsw-timeline-media{float:none;width:100%;height:160px;margin:0 0 10px}.mltsw-timeline-reference{grid-template-columns:28px 1fr}.mltsw-timeline-process .mltsw-timeline-events{grid-template-columns:1fr;gap:15px}.mltsw-timeline-process .mltsw-timeline-event{padding:0 0 0 48px}.mltsw-timeline-process .mltsw-timeline-dot{left:15px!important;top:18px;transform:none;width:28px;height:28px}}
.mltsw-timeline-reference-table-wrap{overflow-x:auto}.mltsw-timeline-reference-table{width:100%;border-collapse:collapse;font-size:12px;color:var(--tl-text);min-width:620px}.mltsw-timeline-reference-table th,.mltsw-timeline-reference-table td{padding:10px 11px;border-bottom:1px solid var(--tl-line);text-align:left;vertical-align:top}.mltsw-timeline-reference-table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:color-mix(in srgb,var(--tl-text) 55%,transparent);background:color-mix(in srgb,var(--tl-card) 90%,var(--tl-line) 10%)}.mltsw-timeline-reference-table tbody th{color:var(--tl-accent);font-weight:900}.mltsw-timeline-reference-table a{color:var(--tl-text);font-weight:850;text-decoration:none}.mltsw-timeline-reference-table a:hover{color:var(--tl-accent);text-decoration:underline}.mltsw-timeline-reference-table tr:last-child th,.mltsw-timeline-reference-table tr:last-child td{border-bottom:0}


/* v4.10.1 Popup Timeline */
.mltsw-timeline-popup{position:relative}
.mltsw-timeline-popup .mltsw-timeline-events{max-width:1180px;margin:28px auto 8px;position:relative}
.mltsw-timeline-popup-track{display:flex;align-items:stretch;gap:0;overflow-x:auto;padding:22px 8px 28px;scroll-snap-type:x proximity;position:relative;isolation:isolate}
.mltsw-timeline-popup-track:before{content:"";position:absolute;left:22px;right:22px;top:43px;height:4px;border-radius:99px;background:linear-gradient(90deg,var(--tl-accent),var(--tl-line));z-index:-1}
.mltsw-timeline-popup-marker{appearance:none;border:0;background:transparent;color:var(--tl-text);min-width:130px;max-width:190px;flex:1 0 140px;display:grid;justify-items:center;gap:8px;padding:0 12px;cursor:pointer;scroll-snap-align:center;text-align:center;font:inherit}
.mltsw-timeline-popup-marker-dot{width:20px;height:20px;border-radius:50%;background:var(--tl-card);border:5px solid var(--tl-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--tl-accent) 14%,transparent);transition:.2s ease}
.mltsw-timeline-popup-marker strong{font-size:20px;line-height:1.1;letter-spacing:-.02em}.mltsw-timeline-popup-marker small{font-size:11px;line-height:1.3;font-weight:800;color:color-mix(in srgb,var(--tl-text) 58%,transparent);max-width:150px}
.mltsw-timeline-popup-marker:hover .mltsw-timeline-popup-marker-dot,.mltsw-timeline-popup-marker:focus-visible .mltsw-timeline-popup-marker-dot{transform:scale(1.18);background:var(--tl-accent);box-shadow:0 0 0 7px color-mix(in srgb,var(--tl-accent) 18%,transparent)}
.mltsw-timeline-popup-track.marker-dots .mltsw-timeline-popup-marker small{display:none}.mltsw-timeline-popup-track.marker-dots .mltsw-timeline-popup-marker{min-width:90px;flex-basis:90px}.mltsw-timeline-popup-track.marker-dots .mltsw-timeline-popup-marker strong{font-size:15px}
.mltsw-timeline-popup-track.marker-cards{gap:12px;padding-top:10px}.mltsw-timeline-popup-track.marker-cards:before{display:none}.mltsw-timeline-popup-track.marker-cards .mltsw-timeline-popup-marker{justify-items:start;text-align:left;min-width:180px;max-width:230px;padding:16px;border:1px solid color-mix(in srgb,var(--tl-line) 78%,transparent);border-radius:16px;background:var(--tl-card);box-shadow:0 8px 24px rgba(15,23,42,.08)}.mltsw-timeline-popup-track.marker-cards .mltsw-timeline-popup-marker-dot{width:12px;height:12px;border-width:3px;box-shadow:none}
.mltsw-timeline-popover{position:absolute;z-index:25;width:min(420px,calc(100% - 16px));max-height:430px;overflow:auto;border:1px solid color-mix(in srgb,var(--tl-line) 74%,transparent);border-radius:18px;background:var(--tl-card);color:var(--tl-text);box-shadow:0 22px 60px rgba(15,23,42,.22);animation:mltswTlPop .16s ease-out}
.mltsw-timeline-popover .mltsw-timeline-popup-content{padding:16px}.mltsw-timeline-popover .mltsw-timeline-popup-head h2{font-size:18px}.mltsw-timeline-popover .mltsw-timeline-popup-head p{display:none}.mltsw-timeline-popover .mltsw-timeline-popup-event{grid-template-columns:92px 1fr;padding:12px 0}.mltsw-timeline-popover .mltsw-timeline-popup-media{height:78px}
.mltsw-timeline-popup-layer{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;pointer-events:none;transition:opacity .18s ease}.mltsw-timeline-popup-layer.is-open{opacity:1;pointer-events:auto}
.mltsw-timeline-popup-backdrop{position:absolute;inset:0;border:0;background:rgba(2,6,23,.66);backdrop-filter:blur(7px);cursor:pointer}
.mltsw-timeline-popup-panel{position:relative;z-index:1;width:min(760px,calc(100vw - 32px));max-height:min(82vh,860px);overflow:auto;background:#fff;color:#0f172a;border-radius:24px;box-shadow:0 30px 90px rgba(2,6,23,.34);transform:translateY(12px) scale(.985);transition:transform .18s ease}.mltsw-timeline-popup-layer.is-open .mltsw-timeline-popup-panel{transform:none}
.mltsw-timeline-popup-layer.is-drawer{justify-content:flex-end;padding:0}.mltsw-timeline-popup-layer.is-drawer .mltsw-timeline-popup-panel{height:100%;max-height:none;width:min(520px,100vw);border-radius:24px 0 0 24px;transform:translateX(24px)}.mltsw-timeline-popup-layer.is-drawer.is-open .mltsw-timeline-popup-panel{transform:none}
.mltsw-timeline-popup-close{position:sticky;float:right;top:14px;right:14px;z-index:3;width:38px;height:38px;border:1px solid #e2e8f0;border-radius:50%;background:#fff;color:#334155;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(15,23,42,.08)}
.mltsw-timeline-popup-content{padding:28px 30px 32px}.mltsw-timeline-popup-head{padding:0 44px 18px 0;border-bottom:1px solid #e2e8f0}.mltsw-timeline-popup-head>span{display:inline-flex;padding:6px 10px;border-radius:999px;background:color-mix(in srgb,var(--tl-accent,#3b82f6) 12%,#fff);color:var(--tl-accent,#3b82f6);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.mltsw-timeline-popup-head h2{margin:10px 0 4px;font-size:26px;line-height:1.15;letter-spacing:-.03em}.mltsw-timeline-popup-head p{margin:0;color:#64748b;font-size:13px}
.mltsw-timeline-popup-event-list{display:grid}.mltsw-timeline-popup-event{display:grid;grid-template-columns:170px minmax(0,1fr);gap:18px;padding:20px 0;border-bottom:1px solid #e2e8f0}.mltsw-timeline-popup-event:last-child{border-bottom:0}.mltsw-timeline-popup-media{width:100%;height:120px;object-fit:cover;border-radius:14px;background:#e2e8f0}.mltsw-timeline-popup-event-body time{display:block;color:var(--tl-accent,#3b82f6);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.mltsw-timeline-popup-event-body h3{margin:5px 0 8px;font-size:19px;line-height:1.25}.mltsw-timeline-popup-description{font-size:14px;line-height:1.58;color:#475569}.mltsw-timeline-popup-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.mltsw-timeline-popup-meta{display:grid;gap:2px;padding:9px 10px;border-radius:11px;background:#f8fafc}.mltsw-timeline-popup-meta b{font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#94a3b8}.mltsw-timeline-popup-meta span{font-size:12px;font-weight:750;color:#334155;overflow-wrap:anywhere}.mltsw-timeline-popup-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.mltsw-timeline-popup-link{color:var(--tl-accent,#3b82f6);font-size:12px;font-weight:900;text-decoration:none}
@keyframes mltswTlPop{from{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:640px){.mltsw-timeline-popup-layer{align-items:flex-end;padding:0}.mltsw-timeline-popup-panel,.mltsw-timeline-popup-layer.is-drawer .mltsw-timeline-popup-panel{width:100%;max-height:88vh;height:auto;border-radius:22px 22px 0 0}.mltsw-timeline-popup-content{padding:22px 18px 26px}.mltsw-timeline-popup-event{grid-template-columns:1fr}.mltsw-timeline-popup-media{height:180px}.mltsw-timeline-popup-meta-grid{grid-template-columns:1fr}.mltsw-timeline-popup-marker{min-width:105px;flex-basis:105px;padding-inline:7px}.mltsw-timeline-popup-marker strong{font-size:17px}}


/* ===== Timeline Pro UX Redesign v4.11 ===== */
/* Horizontal: powered by vis-timeline for real pan/zoom/range interaction. */
.mltsw-timeline-horizontal .mltsw-timeline-events{display:block!important;overflow:visible!important;padding:0!important;max-width:1220px!important}.mltsw-timeline-horizontal .mltsw-timeline-events:before{display:none!important}
.mltsw-vis-shell{border:1px solid color-mix(in srgb,var(--tl-line) 78%,transparent);border-radius:22px;background:linear-gradient(180deg,color-mix(in srgb,var(--tl-card) 98%,var(--tl-accent) 2%),var(--tl-card));box-shadow:0 18px 50px rgba(15,23,42,.08);overflow:hidden}
.mltsw-vis-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid color-mix(in srgb,var(--tl-line) 75%,transparent);background:color-mix(in srgb,var(--tl-card) 95%,var(--tl-accent) 5%)}.mltsw-vis-controls>div:first-child{display:grid;gap:2px}.mltsw-vis-controls strong{font-size:13px}.mltsw-vis-controls span{font-size:11px;color:color-mix(in srgb,var(--tl-text) 58%,transparent)}.mltsw-vis-buttons{display:flex;gap:6px}.mltsw-vis-buttons button{height:34px;min-width:34px;border:1px solid color-mix(in srgb,var(--tl-line) 80%,transparent);border-radius:9px;background:#fff;color:#334155;font-weight:900;cursor:pointer}.mltsw-vis-buttons .mltsw-vis-fit{padding:0 12px}.mltsw-vis-buttons button:hover{border-color:var(--tl-accent);color:var(--tl-accent)}
.mltsw-vis-timeline-host{min-height:300px;padding:8px 4px 2px}.mltsw-vis-timeline-host .vis-timeline{border:0;font-family:inherit}.mltsw-vis-timeline-host .vis-panel.vis-center,.mltsw-vis-timeline-host .vis-panel.vis-left,.mltsw-vis-timeline-host .vis-panel.vis-right,.mltsw-vis-timeline-host .vis-panel.vis-top,.mltsw-vis-timeline-host .vis-panel.vis-bottom{border-color:color-mix(in srgb,var(--tl-line) 72%,transparent)}.mltsw-vis-timeline-host .vis-time-axis .vis-text{color:color-mix(in srgb,var(--tl-text) 65%,transparent);font-size:11px;font-weight:800}.mltsw-vis-timeline-host .vis-time-axis .vis-grid.vis-minor{border-color:color-mix(in srgb,var(--tl-line) 48%,transparent)}.mltsw-vis-timeline-host .vis-time-axis .vis-grid.vis-major{border-color:color-mix(in srgb,var(--tl-line) 70%,transparent)}
.mltsw-vis-timeline-host .vis-item.mltsw-vis-event{border:1px solid color-mix(in srgb,var(--tl-accent) 45%,var(--tl-line));background:color-mix(in srgb,var(--tl-accent) 10%,#fff);color:var(--tl-text);border-radius:12px;box-shadow:0 5px 14px rgba(15,23,42,.08);cursor:pointer}.mltsw-vis-timeline-host .vis-item.mltsw-vis-event.vis-selected{border-color:var(--tl-accent);background:color-mix(in srgb,var(--tl-accent) 18%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--tl-accent) 16%,transparent),0 8px 20px rgba(15,23,42,.12)}.mltsw-vis-item-copy{display:grid;gap:2px;padding:3px 5px;max-width:240px}.mltsw-vis-item-copy b{font-size:10px;color:var(--tl-accent);text-transform:uppercase;letter-spacing:.04em}.mltsw-vis-item-copy span{font-size:12px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mltsw-vis-fallback{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;padding:16px}

/* Editorial story grid: magazine-like hierarchy instead of identical boxes. */
.mltsw-timeline-cards .mltsw-timeline-events{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:dense;gap:18px;max-width:1220px}.mltsw-timeline-cards .mltsw-timeline-event{grid-column:span 4;width:auto!important;margin:0!important;padding:0!important;text-align:left!important}.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(5n+1){grid-column:span 8}.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(7n+3){grid-column:span 6}.mltsw-timeline-cards .mltsw-timeline-dot{display:none}.mltsw-timeline-cards .mltsw-timeline-group{grid-column:1/-1;margin:18px 0 0}.mltsw-timeline-cards .mltsw-timeline-card{height:100%;padding:20px;border-radius:22px;box-shadow:0 12px 36px rgba(15,23,42,.08);border-color:color-mix(in srgb,var(--tl-line) 70%,transparent)}.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(5n+1) .mltsw-timeline-card h3{font-size:clamp(24px,3vw,34px)}.mltsw-timeline-cards .mltsw-timeline-media{height:220px}.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(5n+1) .mltsw-timeline-media{height:300px}

/* Journey roadmap: numbered checkpoints on a broad route lane. */
.mltsw-timeline-roadmap .mltsw-timeline-events{counter-reset:mltsw-road;max-width:980px;padding:4px 0}.mltsw-timeline-roadmap .mltsw-timeline-events:before{content:"";position:absolute;left:44px;top:12px;bottom:12px;width:8px;border-radius:99px;background:linear-gradient(180deg,var(--tl-accent),color-mix(in srgb,var(--tl-accent) 35%,var(--tl-line)),var(--tl-line));box-shadow:0 0 0 7px color-mix(in srgb,var(--tl-accent) 6%,transparent)}.mltsw-timeline-roadmap .mltsw-timeline-event{counter-increment:mltsw-road;width:auto!important;margin:0 0 22px!important;padding:0 0 0 112px!important;text-align:left!important}.mltsw-timeline-roadmap .mltsw-timeline-dot{left:18px!important;right:auto!important;top:24px;width:54px;height:54px;border:5px solid #fff;background:var(--tl-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--tl-accent) 25%,transparent),0 8px 18px rgba(15,23,42,.14);display:flex;align-items:center;justify-content:center;color:#fff;font-size:13px;font-weight:950}.mltsw-timeline-roadmap .mltsw-timeline-dot:after{content:counter(mltsw-road)}.mltsw-timeline-roadmap .mltsw-timeline-card{position:relative;border:0;border-radius:24px;padding:22px 24px;background:linear-gradient(135deg,color-mix(in srgb,var(--tl-card) 96%,var(--tl-accent) 4%),var(--tl-card));box-shadow:0 14px 38px rgba(15,23,42,.10)}.mltsw-timeline-roadmap .mltsw-timeline-card:before{content:"";position:absolute;left:-14px;top:32px;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:14px solid color-mix(in srgb,var(--tl-card) 96%,var(--tl-accent) 4%)}.mltsw-timeline-roadmap .mltsw-timeline-card time{display:inline-flex;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--tl-accent) 10%,#fff)}.mltsw-timeline-roadmap .mltsw-timeline-group{margin-left:112px}

/* Milestone showcase: achievement plaques, not another scrolling rail. */
.mltsw-timeline-milestones .mltsw-timeline-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;overflow:visible;padding:0;max-width:1100px}.mltsw-timeline-milestones .mltsw-timeline-events:before{display:none}.mltsw-timeline-milestones .mltsw-timeline-event{width:auto!important;margin:0!important;padding:0!important;text-align:left!important}.mltsw-timeline-milestones .mltsw-timeline-dot{display:none}.mltsw-timeline-milestones .mltsw-timeline-card{position:relative;min-height:190px;padding:26px 24px 22px;border-radius:24px;border:1px solid color-mix(in srgb,var(--tl-accent) 30%,var(--tl-line));background:linear-gradient(155deg,color-mix(in srgb,var(--tl-accent) 10%,#fff),var(--tl-card) 42%);box-shadow:0 16px 44px rgba(15,23,42,.09)}.mltsw-timeline-milestones .mltsw-timeline-card time{display:inline-flex;font-size:15px;padding:8px 12px;border-radius:12px;background:var(--tl-accent);color:#fff;box-shadow:0 8px 18px color-mix(in srgb,var(--tl-accent) 25%,transparent)}.mltsw-timeline-milestones .mltsw-timeline-card h3{font-size:24px;margin-top:12px}.mltsw-timeline-milestones .mltsw-timeline-group{grid-column:1/-1;margin:12px auto 0}

/* Zigzag: a strong center spine with visible connectors. */
.mltsw-timeline-zigzag .mltsw-timeline-events{max-width:1120px;padding:6px 0}.mltsw-timeline-zigzag .mltsw-timeline-events:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:6px;transform:translateX(-50%);background:linear-gradient(180deg,color-mix(in srgb,var(--tl-accent) 20%,var(--tl-line)),var(--tl-accent),color-mix(in srgb,var(--tl-accent) 20%,var(--tl-line)));border-radius:99px;box-shadow:0 0 0 6px color-mix(in srgb,var(--tl-accent) 5%,transparent)}.mltsw-timeline-zigzag .mltsw-timeline-event{width:50%;padding:0 48px;margin-bottom:34px}.mltsw-timeline-zigzag .mltsw-timeline-event:after{content:"";position:absolute;top:30px;width:42px;height:3px;background:var(--tl-accent);opacity:.75}.mltsw-timeline-zigzag .mltsw-timeline-event.is-odd:after{right:0}.mltsw-timeline-zigzag .mltsw-timeline-event.is-even:after{left:0}.mltsw-timeline-zigzag .mltsw-timeline-dot{top:21px;width:22px;height:22px;border-width:5px;box-shadow:0 0 0 4px color-mix(in srgb,var(--tl-accent) 18%,transparent)}.mltsw-timeline-zigzag .mltsw-timeline-event.is-odd .mltsw-timeline-dot{right:-11px}.mltsw-timeline-zigzag .mltsw-timeline-event.is-even .mltsw-timeline-dot{left:-11px}.mltsw-timeline-zigzag .mltsw-timeline-card,.mltsw-timeline-zigzag .mltsw-timeline-event.is-odd .mltsw-timeline-card,.mltsw-timeline-zigzag .mltsw-timeline-event.is-even .mltsw-timeline-card{transform:none;border-radius:22px}.mltsw-timeline-zigzag .mltsw-timeline-card:hover{transform:translateY(-3px)}

/* Minimal ledger: date column + typographic story row. */
.mltsw-timeline-minimal .mltsw-timeline-events{display:grid;gap:0;max-width:1040px;border-top:1px solid var(--tl-line)}.mltsw-timeline-minimal .mltsw-timeline-event{width:auto!important;margin:0!important;padding:0!important;text-align:left!important}.mltsw-timeline-minimal .mltsw-timeline-dot{display:none}.mltsw-timeline-minimal .mltsw-timeline-card{display:grid;grid-template-columns:minmax(110px,160px) minmax(0,1fr);column-gap:28px;align-items:start;padding:22px 4px;border:0;border-bottom:1px solid var(--tl-line);border-radius:0;box-shadow:none;background:transparent;overflow:visible}.mltsw-timeline-minimal .mltsw-timeline-card:hover{transform:none;box-shadow:none}.mltsw-timeline-minimal .mltsw-timeline-card time{grid-column:1;grid-row:1 / span 20;margin:0;font-size:13px;line-height:1.45}.mltsw-timeline-minimal .mltsw-timeline-card>h3,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-source-name,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-location,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-description,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-cardfoot,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-media{grid-column:2}.mltsw-timeline-minimal .mltsw-timeline-card h3{font-size:20px;margin-top:0}.mltsw-timeline-minimal .mltsw-timeline-media{width:160px;height:100px;float:none;margin:0 0 12px;border-radius:12px}.mltsw-timeline-minimal .mltsw-timeline-group{margin:18px 0 6px}

/* Connected process steps: clear sequence with arrows and numbered stages. */
.mltsw-timeline-process .mltsw-timeline-events{counter-reset:mltsw-step;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;max-width:1180px}.mltsw-timeline-process .mltsw-timeline-events:before{display:none}.mltsw-timeline-process .mltsw-timeline-event{counter-increment:mltsw-step;width:auto!important;margin:0!important;padding:0!important;text-align:left!important;position:relative}.mltsw-timeline-process .mltsw-timeline-event:not(:nth-of-type(3n)):after{content:"→";position:absolute;right:-24px;top:50%;transform:translateY(-50%);font-size:26px;font-weight:900;color:color-mix(in srgb,var(--tl-accent) 60%,var(--tl-line));z-index:4}.mltsw-timeline-process .mltsw-timeline-dot{left:22px!important;right:auto!important;top:20px;transform:none;width:38px;height:38px;border:0;background:var(--tl-accent);display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:950;box-shadow:0 8px 18px color-mix(in srgb,var(--tl-accent) 28%,transparent)}.mltsw-timeline-process .mltsw-timeline-dot:after{content:counter(mltsw-step)}.mltsw-timeline-process .mltsw-timeline-card{height:100%;padding:72px 22px 22px;border-radius:24px;border:1px solid color-mix(in srgb,var(--tl-line) 72%,transparent);box-shadow:0 12px 34px rgba(15,23,42,.08)}.mltsw-timeline-process .mltsw-timeline-card:before{content:"Step " counter(mltsw-step);position:absolute;top:29px;left:72px;color:var(--tl-accent);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.mltsw-timeline-process .mltsw-timeline-group{grid-column:1/-1;margin:8px auto 0}

/* Popup / year spotlight: stronger, more premium story navigator. */
.mltsw-timeline-popup .mltsw-timeline-events{max-width:1180px;margin:28px auto 8px}.mltsw-timeline-popup-track{display:flex;align-items:stretch;gap:12px;overflow-x:auto;padding:18px 12px 24px;border:1px solid color-mix(in srgb,var(--tl-line) 70%,transparent);border-radius:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--tl-card) 96%,var(--tl-accent) 4%),var(--tl-card));box-shadow:0 16px 44px rgba(15,23,42,.08)}.mltsw-timeline-popup-track:before{display:none}.mltsw-timeline-popup-marker{min-width:170px;max-width:220px;flex:1 0 180px;justify-items:start;text-align:left;gap:5px;padding:16px 17px;border:1px solid color-mix(in srgb,var(--tl-line) 75%,transparent);border-radius:18px;background:var(--tl-card);box-shadow:0 8px 20px rgba(15,23,42,.06);transition:.18s ease}.mltsw-timeline-popup-marker:hover,.mltsw-timeline-popup-marker:focus-visible{transform:translateY(-3px);border-color:var(--tl-accent);box-shadow:0 14px 30px rgba(15,23,42,.12);outline:none}.mltsw-timeline-popup-marker-dot{width:34px;height:6px;border:0;border-radius:99px;background:var(--tl-accent);box-shadow:none;margin-bottom:6px}.mltsw-timeline-popup-marker strong{font-size:28px;line-height:1;letter-spacing:-.04em}.mltsw-timeline-popup-marker small{font-size:12px;line-height:1.4;font-weight:750;max-width:180px;color:color-mix(in srgb,var(--tl-text) 62%,transparent)}.mltsw-timeline-popup-track.marker-dots .mltsw-timeline-popup-marker{min-width:104px;flex-basis:104px;align-items:center;justify-items:center;text-align:center;padding:14px 10px}.mltsw-timeline-popup-track.marker-dots .mltsw-timeline-popup-marker-dot{width:16px;height:16px;border-radius:50%}.mltsw-timeline-popup-track.marker-dots .mltsw-timeline-popup-marker strong{font-size:17px}.mltsw-timeline-popup-track.marker-cards .mltsw-timeline-popup-marker{min-width:210px}.mltsw-timeline-popup-track.marker-spotlight{background:linear-gradient(135deg,#0f172a,#172554);border-color:#1e3a8a}.mltsw-timeline-popup-track.marker-spotlight .mltsw-timeline-popup-marker{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);color:#fff}.mltsw-timeline-popup-track.marker-spotlight .mltsw-timeline-popup-marker small{color:rgba(255,255,255,.7)}.mltsw-timeline-popup-track.marker-spotlight .mltsw-timeline-popup-marker:hover{background:rgba(255,255,255,.13);border-color:color-mix(in srgb,var(--tl-accent) 65%,#fff)}

@media(max-width:900px){.mltsw-timeline-cards .mltsw-timeline-event,.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(5n+1),.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(7n+3){grid-column:span 6}.mltsw-timeline-milestones .mltsw-timeline-events{grid-template-columns:1fr}.mltsw-timeline-process .mltsw-timeline-events{grid-template-columns:repeat(2,minmax(0,1fr))}.mltsw-timeline-process .mltsw-timeline-event:not(:nth-of-type(3n)):after{display:none}}
@media(max-width:720px){.mltsw-vis-controls{align-items:flex-start;flex-direction:column}.mltsw-timeline-cards .mltsw-timeline-event,.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(5n+1),.mltsw-timeline-cards .mltsw-timeline-event:nth-of-type(7n+3){grid-column:1/-1}.mltsw-timeline-roadmap .mltsw-timeline-events:before{left:23px;width:5px}.mltsw-timeline-roadmap .mltsw-timeline-event{padding-left:64px!important}.mltsw-timeline-roadmap .mltsw-timeline-dot{left:7px!important;width:36px;height:36px;top:24px}.mltsw-timeline-roadmap .mltsw-timeline-card:before{left:-10px;border-top-width:9px;border-bottom-width:9px;border-right-width:10px}.mltsw-timeline-roadmap .mltsw-timeline-group{margin-left:64px}.mltsw-timeline-zigzag .mltsw-timeline-events:before{left:15px;width:4px}.mltsw-timeline-zigzag .mltsw-timeline-event{width:auto!important;margin-left:0!important;padding:0 0 0 50px!important;text-align:left!important}.mltsw-timeline-zigzag .mltsw-timeline-event:after{left:15px!important;right:auto!important;width:30px}.mltsw-timeline-zigzag .mltsw-timeline-dot{left:5px!important;right:auto!important;width:20px;height:20px}.mltsw-timeline-minimal .mltsw-timeline-card{grid-template-columns:1fr;gap:7px}.mltsw-timeline-minimal .mltsw-timeline-card time,.mltsw-timeline-minimal .mltsw-timeline-card>h3,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-source-name,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-location,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-description,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-cardfoot,.mltsw-timeline-minimal .mltsw-timeline-card>.mltsw-timeline-media{grid-column:1;grid-row:auto}.mltsw-timeline-process .mltsw-timeline-events{grid-template-columns:1fr}.mltsw-timeline-process .mltsw-timeline-event:after{display:none}.mltsw-timeline-popup-marker{min-width:145px;flex-basis:145px}.mltsw-timeline-popup-marker strong{font-size:23px}}

/* === Timeline Pro v4.12: Illustrated, Compare, and Pop-Up Storybook layouts === */
/* Illustrated Decade Ribbon — inspired by museum/exhibit chronology layouts with a strong black date band. */
.mltsw-timeline-illustrated .mltsw-timeline-events{max-width:none;margin:0}
.mltsw-illustrated-shell{position:relative;width:100%;overflow:hidden;border:1px solid color-mix(in srgb,var(--tl-line) 65%,transparent);border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.07)}
.mltsw-illustrated-hint{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border-bottom:1px solid #e5e7eb;background:#f8fafc;color:#64748b;font-size:11px;font-weight:800;letter-spacing:.02em}
.mltsw-illustrated-scroll{overflow-x:auto;overflow-y:hidden;padding:16px 0 20px;scrollbar-width:thin;scroll-snap-type:x proximity}
.mltsw-illustrated-canvas{position:relative;height:760px;min-width:1120px;margin:0 auto;background:linear-gradient(#fff,#fff);isolation:isolate}
.mltsw-illustrated-axis{position:absolute;z-index:10;left:28px;right:28px;top:50%;height:48px;transform:translateY(-50%);background:#050505;box-shadow:0 2px 0 rgba(0,0,0,.15)}
.mltsw-illustrated-tick{position:absolute;top:0;height:100%;min-width:1px;border-left:1px solid rgba(255,255,255,.86)}
.mltsw-illustrated-tick b{position:absolute;left:8px;top:50%;transform:translateY(-50%);color:#fff;font-size:22px;line-height:1;font-weight:950;letter-spacing:-.05em;white-space:nowrap}
.mltsw-illustrated-event{position:absolute;z-index:5;left:calc(var(--x)*1%);width:205px;transform:translateX(-50%);padding:0;border:0;background:transparent;color:#101010;text-align:left;cursor:pointer;font:inherit;appearance:none;scroll-snap-align:center}
.mltsw-illustrated-event.side-top{bottom:calc(50% + 50px + (var(--lane)*118px))}
.mltsw-illustrated-event.side-bottom{top:calc(50% + 50px + (var(--lane)*118px))}
.mltsw-illustrated-event img{display:block;width:100%;height:136px;margin:0 auto 8px;object-fit:contain;object-position:center;filter:drop-shadow(0 8px 8px rgba(15,23,42,.14));transition:transform .2s ease}
.mltsw-illustrated-event.media-compact{width:185px}.mltsw-illustrated-event.media-compact img{height:92px}
.mltsw-illustrated-event:hover img,.mltsw-illustrated-event:focus-visible img{transform:translateY(-3px) scale(1.025)}
.mltsw-illustrated-event:focus-visible{outline:3px solid color-mix(in srgb,var(--tl-accent) 70%,transparent);outline-offset:6px;border-radius:8px}
.mltsw-illustrated-copy{display:block;padding:7px 10px 9px;border-left:1px solid #737373;background:rgba(255,255,255,.9);backdrop-filter:blur(3px)}
.mltsw-illustrated-copy b{display:block;margin-bottom:2px;font-size:12px;line-height:1.1;font-weight:950;color:#111}
.mltsw-illustrated-copy strong{display:block;font-size:14px;line-height:1.15;font-weight:900;color:#111}
.mltsw-illustrated-copy small{display:block;margin-top:4px;font-size:11px;line-height:1.3;font-weight:500;color:#333}
.mltsw-illustrated-ref{display:inline;color:var(--tl-accent);font-size:10px;vertical-align:top}
.mltsw-illustrated-connector{position:absolute;z-index:-1;left:50%;width:1px;background:#767676;pointer-events:none}
.mltsw-illustrated-event.side-top .mltsw-illustrated-connector{top:100%;height:calc(50px + (var(--lane)*118px))}
.mltsw-illustrated-event.side-bottom .mltsw-illustrated-connector{bottom:100%;height:calc(50px + (var(--lane)*118px))}
.mltsw-illustrated-event.side-top .mltsw-illustrated-connector:after,.mltsw-illustrated-event.side-bottom .mltsw-illustrated-connector:after{content:"";position:absolute;left:-3px;width:7px;height:7px;border-radius:50%;background:#111}
.mltsw-illustrated-event.side-top .mltsw-illustrated-connector:after{bottom:-3px}.mltsw-illustrated-event.side-bottom .mltsw-illustrated-connector:after{top:-3px}

/* Compare Bands — two synchronized narratives sharing one time axis, plus a minimap. */
.mltsw-timeline-compare .mltsw-timeline-events{max-width:none;margin:0}
.mltsw-compare-shell{width:100%;padding:18px;border:1px solid color-mix(in srgb,var(--tl-line) 68%,transparent);border-radius:24px;background:#fff;box-sizing:border-box;box-shadow:0 18px 48px rgba(15,23,42,.06)}
.mltsw-compare-head{display:flex;align-items:center;justify-content:flex-start;gap:28px;margin:0 2px 14px;color:#475569;font-size:12px}
.mltsw-compare-head>div{display:flex;align-items:center;gap:8px}.mltsw-compare-head .dot{width:11px;height:11px;border-radius:50%}.mltsw-compare-head .dot.top{background:var(--compare-top)}.mltsw-compare-head .dot.bottom{background:var(--compare-bottom)}
.mltsw-compare-scroll{overflow-x:auto;overflow-y:hidden;padding:0 0 6px;scrollbar-width:thin}
.mltsw-compare-canvas{position:relative;height:510px;min-width:1180px;background:#fff}
.mltsw-compare-axis{position:absolute;left:20px;right:20px;top:50%;height:2px;background:#a8b0ba;transform:translateY(-50%)}
.mltsw-compare-axis span{position:absolute;top:13px;transform:translateX(-50%);font-size:10px;color:#64748b;white-space:nowrap}
.mltsw-compare-axis span:before{content:"";position:absolute;left:50%;top:-15px;width:1px;height:10px;background:#a8b0ba}
.mltsw-compare-event{position:absolute;z-index:3;left:calc(var(--x)*1%);width:132px;transform:translateX(-50%);padding:0;border:0;background:transparent;text-align:center;font:inherit;cursor:pointer;appearance:none;color:#111827}
.mltsw-compare-event.side-top{bottom:calc(50% + 11px + (var(--lane)*66px));color:var(--compare-top)}
.mltsw-compare-event.side-bottom{top:calc(50% + 11px + (var(--lane)*66px));color:var(--compare-bottom)}
.mltsw-compare-event>i{position:absolute;left:50%;width:1px;background:#9aa2ab;transform:translateX(-50%)}
.mltsw-compare-event.side-top>i{top:100%;height:calc(11px + (var(--lane)*66px))}.mltsw-compare-event.side-bottom>i{bottom:100%;height:calc(11px + (var(--lane)*66px))}
.mltsw-compare-event>i:after{content:"";position:absolute;left:-4px;width:9px;height:9px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #fff}
.mltsw-compare-event.side-top>i:after{bottom:-5px}.mltsw-compare-event.side-bottom>i:after{top:-5px}
.mltsw-compare-event>span{display:block;line-height:1.2}
.mltsw-compare-event b{display:block;margin-bottom:2px;font-size:10px;font-weight:900;color:currentColor}
.mltsw-compare-event strong{display:block;font-size:11px;line-height:1.15;font-weight:850;color:currentColor}
.mltsw-compare-event small{display:block;margin-top:3px;font-size:9px;line-height:1.25;font-weight:500;color:#596273}
.mltsw-compare-event:hover strong,.mltsw-compare-event:focus-visible strong{text-decoration:underline}.mltsw-compare-event:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:5px}
.mltsw-compare-overview{margin-top:8px;padding:0 2px}.mltsw-compare-overview-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;color:#7c8490;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.mltsw-compare-overview-label small{text-transform:none;letter-spacing:0}
.mltsw-compare-overview-track{position:relative;height:47px;overflow:hidden;border:1px solid #95a5bd;background:linear-gradient(180deg,#a9c0f4,#92aeee);cursor:pointer}
.mltsw-compare-overview-track>i{position:absolute;top:28px;width:5px;height:5px;border-radius:50%;transform:translateX(-50%)}.mltsw-compare-overview-track>i.mini-top{background:var(--compare-top)}.mltsw-compare-overview-track>i.mini-bottom{background:var(--compare-bottom);top:35px}
.mltsw-compare-viewport{position:absolute;top:-1px;bottom:-1px;left:0;width:25%;border:2px solid rgba(255,255,255,.95);background:rgba(255,255,255,.16);box-shadow:0 0 0 1px rgba(15,23,42,.22) inset;pointer-events:none}

/* Pop-Up Storybook — digitally echoes V-folds, floating layers and page-spread staging. */
.mltsw-timeline-storybook .mltsw-timeline-events{max-width:none;margin:0}
.mltsw-storybook-shell{--book-ink:#31271f;--book-paper:#fffaf0;--book-accent:#f43f5e;width:100%;padding:18px 20px 22px;border-radius:28px;background:radial-gradient(circle at 50% 25%,#4d6680 0,#26384e 46%,#152231 100%);box-sizing:border-box;overflow:hidden;box-shadow:0 22px 54px rgba(15,23,42,.18)}
.mltsw-storybook-shell.theme-classic{--book-ink:#3f3024;--book-paper:#fff5dc;--book-accent:#a25a2a;background:radial-gradient(circle at 50% 20%,#816f59,#493d32 56%,#27211c)}
.mltsw-storybook-shell.theme-scrapbook{--book-ink:#27272a;--book-paper:#fefce8;--book-accent:#0ea5e9;background:linear-gradient(135deg,#164e63,#155e75 52%,#0f3f4d)}
.mltsw-storybook-toolbar,.mltsw-storybook-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#fff}.mltsw-storybook-toolbar{margin-bottom:12px}.mltsw-storybook-toolbar>div:first-child{display:grid;gap:2px}.mltsw-storybook-toolbar strong{font-size:15px}.mltsw-storybook-toolbar span,.mltsw-storybook-controls span{font-size:10px;color:rgba(255,255,255,.72)}.mltsw-storybook-page-status{font-size:11px;color:rgba(255,255,255,.8)}.mltsw-storybook-page-status b,.mltsw-storybook-page-status em{font-style:normal;color:#fff}
.mltsw-storybook-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:650px;padding:16px 0;perspective:1800px}.mltsw-storybook-book{position:relative;width:min(100%,980px);height:610px;filter:drop-shadow(0 28px 25px rgba(0,0,0,.28))}
.mltsw-storybook-page{position:relative;width:470px;height:610px;overflow:hidden;background:var(--book-paper);color:var(--book-ink)}.mltsw-storybook-paper{position:relative;height:100%;padding:34px 30px 25px;box-sizing:border-box;background:radial-gradient(circle at 26% 20%,rgba(255,255,255,.95),transparent 35%),repeating-linear-gradient(0deg,rgba(91,65,36,.018) 0,rgba(91,65,36,.018) 1px,transparent 1px,transparent 5px),var(--book-paper)}
.mltsw-storybook-page-head{text-align:center;position:relative;z-index:7}.mltsw-storybook-page-head>span{display:inline-block;padding:5px 9px;border-radius:99px;background:color-mix(in srgb,var(--book-accent) 13%,transparent);color:var(--book-accent);font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.12em}.mltsw-storybook-page-head h3{margin:8px 0 1px;font-family:Georgia,'Times New Roman',serif;font-size:34px;line-height:1;color:var(--book-ink)}.mltsw-storybook-page-head small{font-size:10px;color:color-mix(in srgb,var(--book-ink) 56%,transparent)}
.mltsw-storybook-pop-scene{position:relative;height:450px;margin-top:9px;perspective:900px;transform-style:preserve-3d;isolation:isolate}.mltsw-storybook-stage-line{position:absolute;left:7%;right:7%;bottom:34px;height:8px;border-radius:50%;background:rgba(60,46,30,.18);filter:blur(3px);z-index:1}
.mltsw-storybook-fold{position:absolute;z-index:1;bottom:28px;width:48%;height:145px;background:linear-gradient(165deg,color-mix(in srgb,var(--book-paper) 80%,var(--book-accent) 20%),var(--book-paper));opacity:.72;clip-path:polygon(0 100%,100% 0,100% 100%);transform-origin:bottom center;box-shadow:0 -8px 18px rgba(45,35,26,.08)}.mltsw-storybook-fold.fold-left{left:2%;transform:rotateY(23deg) rotateX(63deg)}.mltsw-storybook-fold.fold-right{right:2%;clip-path:polygon(0 0,100% 100%,0 100%);transform:rotateY(-23deg) rotateX(63deg)}
.mltsw-storybook-events{position:absolute;z-index:5;left:6%;right:6%;bottom:38px;display:flex;align-items:flex-end;justify-content:center;gap:12px;transform-style:preserve-3d}.mltsw-storybook-event{position:relative;display:grid;grid-template-rows:auto auto;width:min(31%,145px);min-width:102px;padding:0;border:0;background:transparent;color:inherit;text-align:center;cursor:pointer;font:inherit;transform-origin:50% 100%;transition:transform .24s ease,filter .24s ease;appearance:none}
.mltsw-storybook-shell.depth-subtle .mltsw-storybook-event{transform:translateZ(22px) rotateX(-4deg)}.mltsw-storybook-shell.depth-medium .mltsw-storybook-event{transform:translateZ(48px) rotateX(-8deg)}.mltsw-storybook-shell.depth-dramatic .mltsw-storybook-event{transform:translateZ(78px) rotateX(-12deg)}
.mltsw-storybook-event:hover,.mltsw-storybook-event:focus-visible{transform:translateZ(92px) translateY(-8px) rotateX(-4deg);filter:drop-shadow(0 14px 10px rgba(0,0,0,.16));outline:none}.mltsw-storybook-art{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:center;height:152px;margin:0 auto -5px}.mltsw-storybook-art img{display:block;max-width:100%;max-height:150px;object-fit:contain;filter:drop-shadow(0 8px 5px rgba(0,0,0,.2))}.mltsw-storybook-art.is-placeholder span{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;background:var(--book-accent);color:#fff;font-size:34px;box-shadow:0 8px 18px rgba(0,0,0,.13)}
.mltsw-storybook-event-copy{position:relative;z-index:3;display:block;padding:9px 8px 10px;border:2px solid color-mix(in srgb,var(--book-ink) 16%,transparent);border-radius:10px;background:rgba(255,255,255,.92);box-shadow:0 6px 0 color-mix(in srgb,var(--book-ink) 10%,transparent)}.mltsw-storybook-event-copy b{display:block;color:var(--book-accent);font-size:10px;font-weight:950}.mltsw-storybook-event-copy strong{display:block;margin-top:2px;font-family:Georgia,'Times New Roman',serif;font-size:12px;line-height:1.15}.mltsw-storybook-event-copy small{display:block;margin-top:4px;font-size:8px;line-height:1.25;color:color-mix(in srgb,var(--book-ink) 68%,transparent)}.mltsw-storybook-event-copy em{font-style:normal;color:var(--book-accent);font-size:8px}
.mltsw-storybook-page-foot{position:absolute;left:25px;right:25px;bottom:15px;text-align:right;font-size:9px;font-weight:750;color:color-mix(in srgb,var(--book-ink) 42%,transparent)}
.mltsw-storybook-page.is-cover{background:linear-gradient(145deg,#f43f5e,#f59e0b);color:#fff}.mltsw-storybook-shell.theme-classic .mltsw-storybook-page.is-cover{background:linear-gradient(145deg,#6b4226,#9b693f)}.mltsw-storybook-shell.theme-scrapbook .mltsw-storybook-page.is-cover{background:linear-gradient(145deg,#0ea5e9,#7c3aed)}.mltsw-storybook-cover{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:52px;box-sizing:border-box;border:10px solid rgba(255,255,255,.2);outline:2px solid rgba(255,255,255,.28);outline-offset:-22px}.mltsw-storybook-cover>span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.16em}.mltsw-storybook-cover h2{max-width:340px;margin:16px 0 12px;font-family:Georgia,'Times New Roman',serif;font-size:40px;line-height:1.02}.mltsw-storybook-cover p{margin:0;font-size:12px;font-weight:700}.mltsw-storybook-cover-stars{margin-top:28px;font-size:24px;letter-spacing:.45em}
.mltsw-storybook-shell.theme-cartoon .mltsw-storybook-event:nth-child(2n) .mltsw-storybook-event-copy{transform:rotate(1.5deg)}.mltsw-storybook-shell.theme-cartoon .mltsw-storybook-event:nth-child(3n) .mltsw-storybook-event-copy{transform:rotate(-1.2deg)}.mltsw-storybook-shell.theme-scrapbook .mltsw-storybook-event-copy{border-style:dashed;border-width:2px;box-shadow:6px 7px 0 rgba(8,145,178,.12)}
.mltsw-storybook-controls{margin-top:12px}.mltsw-storybook-controls button{min-height:38px;padding:8px 14px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-weight:850;cursor:pointer;backdrop-filter:blur(8px)}.mltsw-storybook-controls button:hover,.mltsw-storybook-controls button:focus-visible{background:#fff;color:#1e293b;outline:none}
.mltsw-storybook-shell.is-book-fallback .mltsw-storybook-book{display:flex;justify-content:center}.mltsw-storybook-shell.is-book-fallback .mltsw-storybook-page{width:min(100%,470px);box-shadow:0 20px 45px rgba(0,0,0,.2)}

@media(max-width:760px){
  .mltsw-illustrated-canvas{height:710px}.mltsw-illustrated-event{width:175px}.mltsw-illustrated-event img{height:112px}.mltsw-illustrated-tick b{font-size:19px}
  .mltsw-compare-shell{padding:12px}.mltsw-compare-head{gap:14px;flex-wrap:wrap}.mltsw-compare-canvas{height:500px}.mltsw-compare-overview-label{display:block}.mltsw-compare-overview-label small{display:block;margin-top:2px}
  .mltsw-storybook-shell{padding:14px 12px 18px;border-radius:20px}.mltsw-storybook-toolbar{align-items:flex-start}.mltsw-storybook-toolbar>div:first-child span{display:none}.mltsw-storybook-stage{min-height:470px;padding:8px 0}.mltsw-storybook-book{height:520px}.mltsw-storybook-page{width:360px;height:520px}.mltsw-storybook-paper{padding:27px 18px 20px}.mltsw-storybook-page-head h3{font-size:27px}.mltsw-storybook-pop-scene{height:385px}.mltsw-storybook-events{left:3%;right:3%;gap:7px}.mltsw-storybook-event{min-width:86px}.mltsw-storybook-art{height:122px}.mltsw-storybook-art img{max-height:120px}.mltsw-storybook-event-copy{padding:7px 5px}.mltsw-storybook-event-copy small{display:none}.mltsw-storybook-controls span{display:none}
}
.mltsw-storybook-shell.depth-low .mltsw-storybook-event{transform:translateZ(22px) rotateX(-4deg)}
.mltsw-storybook-shell.depth-high .mltsw-storybook-event{transform:translateZ(78px) rotateX(-12deg)}

/* v4.13 Narrative Document Flow */
.mltsw-narrative-flow{position:relative;display:flex;gap:0;overflow-x:auto;padding:38px 18px 42px;scroll-snap-type:x proximity;background:linear-gradient(180deg,#f8fafc,#fff);border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 14px 40px rgba(15,23,42,.08)}
.mltsw-narrative-flow .mltsw-narrative-track{position:absolute;left:34px;right:34px;top:74px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--tl-accent),#cbd5e1 55%,var(--tl-accent));opacity:.75}
.mltsw-narrative-node{position:relative;z-index:1;flex:0 0 285px;min-height:250px;border:0;background:transparent;padding:0 14px;text-align:left;scroll-snap-align:center;cursor:pointer;color:inherit}
.mltsw-narrative-node:focus-visible{outline:3px solid color-mix(in srgb,var(--tl-accent) 45%,transparent);outline-offset:4px;border-radius:18px}
.mltsw-narrative-dot{display:grid;place-items:center;width:34px;height:34px;margin:18px auto 13px;border-radius:50%;background:var(--tl-accent);color:#fff;font-weight:900;font-size:13px;box-shadow:0 0 0 6px #fff,0 8px 22px rgba(15,23,42,.18)}
.mltsw-narrative-date{display:block;text-align:center;font-weight:800;font-size:13px;color:var(--tl-accent);margin-bottom:12px;white-space:nowrap}
.mltsw-narrative-card{display:flex;flex-direction:column;gap:8px;background:rgba(255,255,255,.96);border:1px solid #e5e7eb;border-radius:18px;padding:16px;min-height:142px;box-shadow:0 10px 25px rgba(15,23,42,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.mltsw-narrative-node:hover .mltsw-narrative-card{transform:translateY(-6px);box-shadow:0 18px 35px rgba(15,23,42,.13);border-color:color-mix(in srgb,var(--tl-accent) 35%,#e5e7eb)}
.mltsw-narrative-card strong{font-size:16px;line-height:1.25}.mltsw-narrative-card em{font-style:normal;color:#64748b;font-size:13px;line-height:1.5}.mltsw-narrative-ref{font-size:11px;color:var(--tl-accent);font-weight:900}.mltsw-narrative-media{height:78px;border-radius:12px;overflow:hidden;background:#eef2f7}.mltsw-narrative-media img{width:100%;height:100%;object-fit:cover;display:block}
.mltsw-narrative-flow.story .mltsw-narrative-node{flex-basis:335px}.mltsw-narrative-flow.story .mltsw-narrative-card{min-height:190px}.mltsw-narrative-flow.captions .mltsw-narrative-card{min-height:100px}.mltsw-narrative-flow.document-order .mltsw-narrative-date::after{content:' • document order';font-weight:600;color:#94a3b8}
@media(max-width:700px){.mltsw-narrative-flow{padding:28px 10px 30px}.mltsw-narrative-flow .mltsw-narrative-track{left:24px;right:24px;top:64px}.mltsw-narrative-node{flex-basis:245px;padding:0 9px}.mltsw-narrative-flow.story .mltsw-narrative-node{flex-basis:285px}.mltsw-narrative-card{padding:13px}}

.mltsw-timeline-docset-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.mltsw-timeline-docset-badge.narrative{background:#ede9fe;color:#6d28d9}.mltsw-timeline-docset-badge.support{background:#dcfce7;color:#166534}.mltsw-timeline-docset-section{margin-top:18px;padding:16px;border-radius:16px}.mltsw-timeline-docset-section h4{margin:0 0 10px;font-size:15px}.mltsw-timeline-docset-section article+article{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.1)}.mltsw-timeline-docset-section article b,.mltsw-timeline-docset-section article small,.mltsw-timeline-docset-section article em{display:block}.mltsw-timeline-docset-section article small,.mltsw-timeline-docset-section article em{font-size:11px;opacity:.72}.mltsw-timeline-docset-section.interpretation{background:#f5f3ff;border:1px solid #ddd6fe}.mltsw-timeline-docset-section.support{background:#f0fdf4;border:1px solid #bbf7d0}.mltsw-timeline-docset-section p{white-space:normal;line-height:1.6}

.mltsw-timeline-docset-open{border:0;background:#0f172a;color:#fff;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;cursor:pointer}.mltsw-timeline-docset-open:hover{background:#1e293b;transform:translateY(-1px)}

/* Source-faithful Document Chart Timeline */
.mltsw-document-chart{background:#fff;color:#161616;border:1px solid #d9dee7;border-radius:12px;padding:22px 26px;font-family:Georgia,"Times New Roman",serif;box-shadow:0 6px 22px rgba(15,23,42,.06)}
.mltsw-document-chart-head{border-bottom:2px solid #111;padding-bottom:12px;margin-bottom:8px;display:flex;align-items:baseline;justify-content:space-between;gap:18px}.mltsw-document-chart-head span{font-family:system-ui,sans-serif;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#64748b}.mltsw-document-chart-head strong{font-size:18px}
.mltsw-document-chart-row{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px;align-items:start;padding:4px 0;line-height:1.35}.mltsw-document-chart-date{appearance:none;border:0;background:transparent;padding:0;color:#111;font:inherit;cursor:pointer;text-align:left}.mltsw-document-chart-date strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:2px;white-space:nowrap}.mltsw-document-chart-copy{min-width:0}.mltsw-document-chart-code{font-weight:700;margin-right:6px;display:inline-block;font-family:Arial,sans-serif}.mltsw-document-chart-title{font-weight:400}.mltsw-document-chart-desc{white-space:normal}.mltsw-document-chart-more{margin-left:8px;border:0;border-bottom:1px dotted #2563eb;background:transparent;color:#1d4ed8;padding:0;font:600 11px system-ui,sans-serif;cursor:pointer}.mltsw-document-chart-key{margin-top:18px;padding-top:12px;border-top:1px solid #cbd5e1;display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-family:system-ui,sans-serif;font-size:12px}.mltsw-document-chart-key>strong{margin-right:4px}.mltsw-document-chart-key span{border:1px solid #cbd5e1;border-radius:999px;padding:3px 8px;background:#f8fafc}.mltsw-document-chart-preview{padding:16px}.mltsw-document-chart-preview .mltsw-document-chart-row{font-size:12px}.mltsw-document-chart-preview .mltsw-document-chart-row:nth-child(n+16){display:none}
@media(max-width:700px){.mltsw-document-chart{padding:15px 14px}.mltsw-document-chart-head{display:block}.mltsw-document-chart-row{grid-template-columns:1fr;gap:1px;padding:7px 0;border-bottom:1px solid #eef2f7}.mltsw-document-chart-code{margin-left:0}.mltsw-document-chart-date strong{font-size:15px}}


/* v4.15.4 — preserve source-document horizontal position in Document Chart */
.mltsw-document-chart-rows{overflow-x:hidden;padding:3px 0}
.mltsw-document-chart.has-source-position .mltsw-document-chart-row{display:block;margin-left:var(--chart-left,0%);width:calc(100% - var(--chart-left,0%));padding:4px 0;position:relative}
.mltsw-document-chart-row-inner{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px;align-items:start;line-height:1.35}
.mltsw-document-chart.has-source-position .mltsw-document-chart-row:before{content:"";position:absolute;left:calc(-1 * var(--chart-left,0%));right:100%;top:1.05em;border-top:1px dotted rgba(100,116,139,.22);pointer-events:none}
.mltsw-document-chart-position{display:inline-flex;margin-left:8px;padding:1px 6px;border-radius:999px;font:600 9px/1.6 system-ui,sans-serif;vertical-align:1px;white-space:nowrap;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0}
.mltsw-document-chart-row.pos-left .mltsw-document-chart-position{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.mltsw-document-chart-row.pos-middle .mltsw-document-chart-position{background:#fef3c7;color:#92400e;border-color:#fde68a}
.mltsw-document-chart-row.pos-right .mltsw-document-chart-position{background:#e0f2fe;color:#075985;border-color:#bae6fd}
.mltsw-document-chart-position-key{display:flex;flex-wrap:wrap;align-items:center;gap:8px 15px;padding:9px 11px;margin:10px 0 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;font:11px/1.35 system-ui,sans-serif;color:#475569}
.mltsw-document-chart-position-key>strong{color:#0f172a}.mltsw-document-chart-position-key span{display:inline-flex;gap:5px;align-items:center}.mltsw-document-chart-position-key i{width:8px;height:8px;border-radius:50%;display:inline-block}.mltsw-document-chart-position-key .left i{background:#dc2626}.mltsw-document-chart-position-key .middle i{background:#d97706}.mltsw-document-chart-position-key .right i{background:#0284c7}.mltsw-document-chart-position-key small{flex-basis:100%;color:#64748b}
@media(max-width:700px){.mltsw-document-chart.has-source-position .mltsw-document-chart-row{margin-left:0!important;width:100%!important;padding-left:calc(min(var(--chart-source-pos,0%),100%) * .12)}.mltsw-document-chart-row-inner{grid-template-columns:1fr}.mltsw-document-chart.has-source-position .mltsw-document-chart-row:before{display:none}.mltsw-document-chart-position{margin-left:6px}}


/* v4.16.1 — responsive full-page PDF / LibreOffice document fit */
.mltsw-embedpdf.is-auto-fit-page,
.mltsw-uv-stage > .mltsw-embedpdf.is-auto-fit-page{
  width:100%;
  height:min(calc(100vw * 1.2941176471),calc(100vh - 120px));
  min-height:0!important;
  max-height:calc(100vh - 120px);
  margin:0 auto;
  background:#e7e9ed;
}
.mltsw-uv-stage:has(>.mltsw-embedpdf.is-auto-fit-page){
  min-height:0;
  overflow:hidden;
  align-items:flex-start;
  justify-content:center;
}
.mltsw-uv-stage > .mltsw-embedpdf.is-auto-fit-page iframe,
.mltsw-uv-stage > .mltsw-embedpdf.is-auto-fit-page .mltsw-embedpdf-engine{
  width:100%!important;
  height:100%!important;
}
@media(max-width:720px){
  .mltsw-embedpdf.is-auto-fit-page,
  .mltsw-uv-stage > .mltsw-embedpdf.is-auto-fit-page{
    height:min(calc(100vw * 1.2941176471),calc(100vh - 92px));
    max-height:calc(100vh - 92px);
    min-height:420px!important;
  }
}


/* v4.17.0 performance containment.
   Off-screen widgets can skip layout/paint work until near the viewport without
   changing their actual rendered design or interaction behavior. */
.mltsw-widget{
  content-visibility:auto;
  contain-intrinsic-size:560px;
}
.mltsw-widget img{
  content-visibility:auto;
}


/* v4.18.3 — polished full-page File Embed reader */
.mltsw-uv-shell.kind-pdf{
  background:#10151d;
  border:1px solid #273142;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 48px rgba(15,23,42,.20);
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-toolbar{
  min-height:58px;
  padding:10px 14px;
  background:linear-gradient(180deg,#101827,#0b1220);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-type{
  background:#3478f6;
  color:#fff;
  border:0;
  min-width:40px;
  text-align:center;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions button,
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions a{
  border-color:#344154;
  background:#111a2a;
  color:#fff;
}
.mltsw-uv-conversion-banner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  background:linear-gradient(90deg,#7a3f08,#9a5b12);
  color:#fff;
  font-size:12px;
  font-weight:700;
}
.mltsw-uv-conversion-banner strong{
  flex:none;
  padding:7px 12px;
  border-radius:9px;
  background:#fff;
  color:#7a3f08;
  font-size:11px;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-workspace,
.mltsw-uv-shell.kind-pdf .mltsw-uv-stage{
  background:#242a31;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-stage{
  min-height:0!important;
  overflow:hidden;
  display:flex;
  justify-content:center;
  align-items:stretch;
}
.mltsw-uv-shell.kind-pdf .mltsw-embedpdf{
  width:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  background:#252b32;
}
.mltsw-uv-shell.kind-pdf .mltsw-embedpdf-engine,
.mltsw-uv-shell.kind-pdf .mltsw-pdf-native{
  width:100%!important;
  height:100%!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-embedpdf.is-embedpdf-ready{
  background:#252b32;
}
.mltsw-uv-office-note{
  min-height:44px;
  padding:10px 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.mltsw-uv-office-note>span:first-child{
  display:block;
  min-width:0;
}
@media(max-width:700px){
  .mltsw-uv-conversion-banner{align-items:flex-start;flex-direction:column}
  .mltsw-uv-conversion-banner strong{align-self:flex-start}
}


/* v4.19.2 — LibreOffice live-preview installation state */
.mltsw-uv-installing{
  min-height:440px;
  width:100%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:32px;
  text-align:center;
  background:#f8fafc;
  color:#0f172a;
}
.mltsw-uv-installing-icon{
  width:58px;height:58px;border-radius:14px;
  display:grid;place-items:center;
  background:#2563eb;color:#fff;font-size:14px;font-weight:900;
}
.mltsw-uv-installing strong{font-size:18px}
.mltsw-uv-installing span{max-width:620px;color:#475569;line-height:1.5}
.mltsw-uv-install-progress{
  width:min(520px,90%);height:10px;background:#e2e8f0;
  border-radius:999px;overflow:hidden;margin-top:6px;
}
.mltsw-uv-install-progress i{
  display:block;height:100%;background:#2563eb;border-radius:inherit;
  transition:width .25s ease;
}
.mltsw-uv-installing small{color:#64748b;font-weight:700}

/* v4.19.3 — Universal Viewer download action */
.mltsw-uv-actions .mltsw-uv-download{
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions .mltsw-uv-download{
  background:#2563eb;color:#fff;border-color:#3b82f6;
}


/* v4.20.0 — YouTube Gallery Pro / Elfsight-style full channel gallery */
.mltsw-yt-pro{font-family:Arial,Helvetica,sans-serif;background:#fff;color:#0f0f0f;border-radius:16px;overflow:hidden}
.mltsw-yt-source-tabs,.mltsw-yt-pro-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;padding:10px 16px;background:#fff;border-bottom:1px solid #e5e7eb}
.mltsw-yt-source-tabs::-webkit-scrollbar,.mltsw-yt-pro-tabs::-webkit-scrollbar{display:none}
.mltsw-yt-source-tabs button,.mltsw-yt-pro-tabs button{appearance:none;border:0;background:transparent;padding:10px 13px;border-radius:10px;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer;color:#4b5563}
.mltsw-yt-source-tabs button.active{background:#111827;color:#fff}
.mltsw-yt-pro-tabs button{border-radius:0;border-bottom:2px solid transparent}
.mltsw-yt-pro-tabs button.active{color:#111827;border-bottom-color:#111827}
.mltsw-yt-pro-tabs small{margin-left:5px;font-size:10px;opacity:.6}
.mltsw-yt-pro-header{background:#fff}
.mltsw-yt-pro-banner{height:clamp(120px,22vw,260px);background-size:cover;background-position:center;border-radius:14px;margin:14px 16px 0}
.mltsw-yt-pro-profile{display:flex;gap:18px;align-items:center;padding:18px 22px}
.mltsw-yt-pro-avatar{width:92px;height:92px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:#f1f3f4}
.mltsw-yt-pro-avatar.is-fallback{display:grid;place-items:center;font-size:24px;font-weight:800;color:#5f6368}
.mltsw-yt-pro-copy{min-width:0;flex:1}
.mltsw-yt-pro-copy h2{font-size:28px;line-height:1.15;margin:0 0 5px}
.mltsw-yt-pro-meta{display:flex;gap:7px;flex-wrap:wrap;font-size:13px;color:#606060}
.mltsw-yt-pro-copy p{margin:8px 0 0;max-width:760px;color:#4b5563;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mltsw-yt-pro-subscribe{display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border-radius:999px;background:#0f0f0f;color:#fff;text-decoration:none;font-size:13px;font-weight:800}
.mltsw-yt-pro-header.is-accent .mltsw-yt-pro-profile{background:linear-gradient(135deg,#f8fafc,#eef2ff)}
.mltsw-yt-pro-header.is-minimal .mltsw-yt-pro-banner{display:none}
.mltsw-yt-pro-header.is-minimal .mltsw-yt-pro-avatar{width:72px;height:72px}
.mltsw-yt-pro-search{padding:14px 16px;background:#fff}
.mltsw-yt-pro-search input{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:12px;padding:11px 14px;font-size:14px;outline:none}
.mltsw-yt-pro-search input:focus{border-color:#111827;box-shadow:0 0 0 2px rgba(17,24,39,.08)}
.mltsw-yt-pro-content{padding:16px}
.mltsw-yt-pro-grid{display:grid;grid-template-columns:repeat(var(--yt-cols,3),minmax(0,1fr));gap:var(--yt-gap,18px)}
.mltsw-yt-pro-card{appearance:none;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;min-width:0}
.mltsw-yt-pro-thumb{position:relative;aspect-ratio:16/9;background-size:cover;background-position:center;border-radius:12px;overflow:hidden;background-color:#e5e7eb}
.mltsw-yt-pro-card.is-short .mltsw-yt-pro-thumb,.mltsw-yt-pro-grid.is-shorts .mltsw-yt-pro-thumb{aspect-ratio:9/16}
.mltsw-yt-pro-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:38px;border-radius:12px;background:#ff0033;color:#fff;font-size:16px;padding-left:2px;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.mltsw-yt-pro-duration,.mltsw-yt-live-badge{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.78);color:#fff;border-radius:5px;padding:3px 5px;font-size:10px;font-weight:800}
.mltsw-yt-live-badge{left:6px;right:auto;bottom:6px;background:#f00}
.mltsw-yt-pro-cardcopy{padding:9px 2px 2px}
.mltsw-yt-pro-cardcopy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.3}
.mltsw-yt-pro-cardcopy>span{display:block;margin-top:5px;color:#6b7280;font-size:11px}
.mltsw-yt-pro-cardcopy p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0 0;color:#6b7280;font-size:11px;line-height:1.4}
.mltsw-yt-playlist-grid{display:grid;grid-template-columns:repeat(var(--yt-cols,3),minmax(0,1fr));gap:var(--yt-gap,18px)}
.mltsw-yt-playlist-card{text-decoration:none;color:inherit}
.mltsw-yt-playlist-thumb{position:relative;aspect-ratio:16/9;background-size:cover;background-position:center;border-radius:12px;overflow:hidden;background-color:#e5e7eb}
.mltsw-yt-playlist-thumb:after{content:"";position:absolute;right:0;top:0;bottom:0;width:32%;background:rgba(0,0,0,.55)}
.mltsw-yt-playlist-thumb span{position:absolute;z-index:2;right:10px;top:50%;transform:translateY(-50%);color:#fff;font-weight:800;font-size:11px}
.mltsw-yt-playlist-card strong{display:block;padding-top:8px;font-size:14px}
.mltsw-yt-section-head{display:flex;align-items:center;justify-content:space-between;margin:2px 0 12px}
.mltsw-yt-section-head h3{margin:0;font-size:18px}
.mltsw-yt-section-head button{border:0;background:transparent;font-weight:800;cursor:pointer;color:#2563eb}
.mltsw-yt-home-section+.mltsw-yt-home-section{margin-top:28px}
.mltsw-yt-pro-pagination{display:flex;justify-content:center;gap:6px;margin-top:22px}
.mltsw-yt-pro-pagination button{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer;font-weight:700}
.mltsw-yt-pro-pagination button.active{background:#111827;color:#fff;border-color:#111827}
.mltsw-yt-inline-player{width:100%;aspect-ratio:16/9;border:0;border-radius:12px}
@media(max-width:760px){
  .mltsw-yt-pro-grid,.mltsw-yt-playlist-grid{grid-template-columns:repeat(var(--yt-mobile-cols,1),minmax(0,1fr))}
  .mltsw-yt-pro-profile{align-items:flex-start;flex-wrap:wrap;padding:14px}
  .mltsw-yt-pro-avatar{width:74px;height:74px}
  .mltsw-yt-pro-copy h2{font-size:21px}
  .mltsw-yt-pro-subscribe{margin-left:92px}
  .mltsw-yt-pro-banner{margin:10px 10px 0;height:130px}
}


/* v4.20.0 — canonical YouTube Gallery shell
   Editor, dashboard preview, and published site all use this exact frontend CSS. */
.mltsw-widget-youtube-canonical,
.mltsw-widget-youtube-canonical .mltsw-outer-youtube,
.mltsw-widget-youtube-canonical .mltsw-body{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  color:#0f0f0f;
}
.mltsw-widget-youtube-canonical .mltsw-outer-youtube{
  overflow:visible;
}
.mltsw-youtube-canonical-preview{
  width:100%;
  max-width:none;
}
.mltsw-yt-pro{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  background:#fff;
  color:#0f0f0f;
  border-radius:0;
  overflow:hidden;
}
.mltsw-yt-pro-header{
  background:#fff;
}
.mltsw-yt-pro-banner{
  width:auto;
  margin:0 16px;
  border-radius:12px;
  background-position:center;
  background-size:cover;
}
.mltsw-yt-pro-profile{
  background:#fff;
}
.mltsw-yt-pro-tabs,
.mltsw-yt-source-tabs{
  background:#fff;
}
.mltsw-yt-pro-search,
.mltsw-yt-pro-content{
  background:#fff;
}
.mltsw-yt-pro-search input{
  box-sizing:border-box;
}
@media(max-width:760px){
  .mltsw-yt-pro-banner{margin:0 8px;border-radius:8px}
}

/* ===== v4.20.7 — clean document viewer ===== */
.mltsw-uv-shell.kind-pdf{
  background:#fff!important;
  color:#0f172a!important;
  border:1px solid #d7dee9!important;
  border-radius:14px!important;
  box-shadow:0 12px 34px rgba(15,23,42,.12)!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-toolbar{
  min-height:58px;
  background:#fff!important;
  border-bottom:1px solid #e5eaf1!important;
  color:#0f172a!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-title{color:#0f172a!important}
.mltsw-uv-shell.kind-pdf .mltsw-uv-type{
  background:#2563eb!important;
  color:#fff!important;
  border:0!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions button,
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions a{
  background:#fff!important;
  color:#172033!important;
  border:1px solid #d4dce8!important;
  box-shadow:none!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions button:hover,
.mltsw-uv-shell.kind-pdf .mltsw-uv-actions a:hover{
  background:#f8fafc!important;
  border-color:#aab7ca!important;
}
.mltsw-uv-status{
  background:#ecfdf5!important;
  color:#047857!important;
  border:1px solid #a7f3d0!important;
}
.mltsw-uv-status.is-original{
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border-color:#bfdbfe!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-workspace,
.mltsw-uv-shell.kind-pdf .mltsw-uv-stage,
.mltsw-uv-shell.kind-pdf .mltsw-embedpdf,
.mltsw-uv-shell.kind-pdf .mltsw-embedpdf-engine{
  background:#eef2f7!important;
}
.mltsw-uv-shell.kind-pdf .mltsw-uv-stage{overflow:hidden!important}
.mltsw-uv-office-note{
  background:#eff6ff!important;
  border-bottom:1px solid #bfdbfe!important;
  color:#1e3a8a!important;
}

.mltsw-uv-shell.kind-office{
  background:#fff!important;
  color:#0f172a!important;
  border:1px solid #d7dee9!important;
  box-shadow:0 12px 34px rgba(15,23,42,.12)!important;
}
.mltsw-uv-shell.kind-office .mltsw-uv-toolbar{background:#fff!important;border-bottom:1px solid #e5eaf1!important}
.mltsw-uv-shell.kind-office .mltsw-uv-title{color:#0f172a!important}
.mltsw-uv-shell.kind-office .mltsw-uv-actions button,
.mltsw-uv-shell.kind-office .mltsw-uv-actions a{background:#fff!important;color:#172033!important;border:1px solid #d4dce8!important}

/* v4.20.10 — width-first PDF fit. This is intentionally separate from the
   older Fit Page aspect-ratio rule so wide documents do not get shrunk. */
.mltsw-uv-stage > .mltsw-embedpdf.is-fit-width,
.mltsw-uv-stage > .mltsw-embedpdf.is-fit-auto{
  width:100%;
  min-height:620px;
  height:clamp(620px,82vh,1050px);
  max-height:none;
  margin:0;
  background:#eef2f7;
}
.mltsw-uv-stage > .mltsw-embedpdf.is-fit-width iframe,
.mltsw-uv-stage > .mltsw-embedpdf.is-fit-width .mltsw-embedpdf-engine,
.mltsw-uv-stage > .mltsw-embedpdf.is-fit-auto iframe,
.mltsw-uv-stage > .mltsw-embedpdf.is-fit-auto .mltsw-embedpdf-engine{
  width:100%!important;
  height:100%!important;
}
@media(max-width:720px){
  .mltsw-uv-stage > .mltsw-embedpdf.is-fit-width,
  .mltsw-uv-stage > .mltsw-embedpdf.is-fit-auto{
    min-height:540px;
    height:78vh;
  }
}

/* ===== v4.20.11 — complete-page reader + multi-document navigation ===== */
.mltsw-single-reader{width:100%;max-width:none;display:flex;flex-direction:column;gap:10px}
.mltsw-file-reader-nav{
  width:100%;box-sizing:border-box;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;gap:10px;padding:9px 10px;border:1px solid #d7dee9;border-radius:12px;
  background:#fff;color:#0f172a;box-shadow:0 4px 16px rgba(15,23,42,.06)
}
.mltsw-file-reader-arrow{
  appearance:none;width:40px;height:40px;display:grid;place-items:center;border:1px solid #cbd5e1;
  border-radius:10px;background:#f8fafc;color:#0f172a;font:900 27px/1 system-ui,sans-serif;cursor:pointer
}
.mltsw-file-reader-arrow:hover:not(:disabled){background:#eef2ff;border-color:#94a3b8;transform:translateY(-1px)}
.mltsw-file-reader-arrow:disabled{opacity:.35;cursor:default}
.mltsw-file-reader-position{min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;text-align:center}
.mltsw-file-reader-count{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:5px 9px;border-radius:999px;background:#0f172a;color:#fff;font-size:12px;font-weight:900}
.mltsw-file-reader-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800;color:#475569}
.mltsw-file-reader-host,.mltsw-file-reader-card,.mltsw-file-reader-card .mltsw-view{width:100%;max-width:none;box-sizing:border-box}
@media(max-width:640px){
  .mltsw-file-reader-nav{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px;padding:7px}
  .mltsw-file-reader-arrow{width:36px;height:36px}
  .mltsw-file-reader-position{display:grid;gap:3px;justify-items:center}
  .mltsw-file-reader-title{max-width:58vw}
}


/* ===== v4.20.12 — all-document sizing + persistent document navigator =====
   PDF, LibreOffice-converted Office, original Office, text/CSV, images and
   generic document iframes all use the full reader width and are never clipped
   by a fixed-height parent. */
.mltsw-single-reader,
.mltsw-single-reader .mltsw-file-reader-host,
.mltsw-single-reader .mltsw-file-reader-card,
.mltsw-single-reader .mltsw-file-reader-card .mltsw-view,
.mltsw-single-reader .mltsw-universal,
.mltsw-single-reader .mltsw-uv-shell.is-document,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-workspace,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-stage{
  width:100%!important;max-width:none!important;box-sizing:border-box!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-workspace,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-stage{
  height:auto!important;max-height:none!important;overflow:visible!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document.document-profile-page .mltsw-uv-stage{
  min-height:var(--mltsw-document-fit-height,980px)!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document.document-profile-presentation .mltsw-uv-stage,
.mltsw-single-reader .mltsw-uv-shell.is-document.document-profile-spreadsheet .mltsw-uv-stage{
  min-height:var(--mltsw-document-fit-height,860px)!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-frame{
  width:100%!important;max-width:none!important;min-height:var(--mltsw-document-fit-height,900px)!important;
  height:var(--mltsw-document-fit-height,900px)!important;border:0!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document.document-profile-text .mltsw-uv-stage,
.mltsw-single-reader .mltsw-uv-shell.is-document.document-profile-image .mltsw-uv-stage{
  min-height:var(--mltsw-document-fit-height,720px)!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-text,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-table-wrap{
  max-height:none!important;height:auto!important;overflow:visible!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-image-stage{
  min-height:var(--mltsw-document-fit-height,720px)!important;height:auto!important;overflow:auto!important;
}
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-image{
  max-width:100%!important;height:auto!important;object-fit:contain!important;
}
/* Keep document switching visible while a tall document is being read. */
.mltsw-file-reader-nav{
  position:sticky!important;top:8px!important;z-index:999!important;display:grid!important;
  visibility:visible!important;opacity:1!important;
}
.mltsw-file-reader-arrow{display:grid!important;visibility:visible!important;opacity:1!important}
.mltsw-file-reader-count{display:inline-flex!important;visibility:visible!important;opacity:1!important}

/* ===== v4.20.13 — exact first-page fit + floating document switcher =====
   File Viewer used to inherit .mltsw-view{height:520px}, which clipped tall
   Office/PDF previews even when the PDF engine itself was correctly sized.
   The reader now grows with the complete first page and its document switcher
   can float at the bottom of the viewport while the reader is on screen. */
.mltsw-single-reader,
.mltsw-single-reader .mltsw-file-reader-host,
.mltsw-single-reader .mltsw-file-reader-card,
.mltsw-single-reader .mltsw-file-reader-card .mltsw-view,
.mltsw-single-reader .mltsw-universal,
.mltsw-single-reader .mltsw-uv-shell.is-document,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-workspace,
.mltsw-single-reader .mltsw-uv-shell.is-document .mltsw-uv-stage{
  height:auto!important;max-height:none!important;overflow:visible!important;
}
.mltsw-single-reader .mltsw-file-reader-card .mltsw-view{
  min-height:760px!important;
}
.mltsw-single-reader .mltsw-embedpdf{
  max-height:none!important;overflow:hidden!important;
}
.mltsw-single-reader{padding-bottom:76px!important;position:relative!important}
.mltsw-file-reader-nav.is-floating-reader-nav{
  position:fixed!important;top:auto!important;bottom:12px!important;
  left:var(--mltsw-reader-nav-left,12px)!important;
  width:var(--mltsw-reader-nav-width,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;margin:0!important;
  z-index:2147482000!important;box-shadow:0 14px 38px rgba(15,23,42,.28)!important;
  border-color:#cbd5e1!important;background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.mltsw-file-reader-nav.is-floating-reader-nav .mltsw-file-reader-count{
  box-shadow:0 2px 8px rgba(15,23,42,.2)
}


/* ===== v4.20.16 — File Viewer vertical stack + whole-viewer border =====
   File Viewer shows every document independently, one above the next. Carousel
   remains the only one-at-a-time / previous-next layout. */
.mltsw-file-viewer-stack{
  width:100%!important;
  max-width:none!important;
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  box-sizing:border-box!important;
  padding:14px!important;
  border:2px solid #cbd5e1!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  overflow:visible!important;
  box-shadow:0 4px 18px rgba(15,23,42,.06)!important;
}
.mltsw-file-viewer-stack>.mltsw-stacked-document{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin:0!important;
  border:1px solid #d7dee9!important;
  border-radius:12px!important;
  background:#fff!important;
  overflow:visible!important;
}
.mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-view,
.mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-universal,
.mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-uv-shell.is-document,
.mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-uv-workspace,
.mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-uv-stage{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-view{min-height:760px!important}
.mltsw-file-viewer-stack .mltsw-file-reader-nav{display:none!important}
@media(max-width:700px){
  .mltsw-file-viewer-stack{padding:8px!important;gap:12px!important;border-radius:12px!important}
}

/* ===== v4.20.17 — canonical File Viewer parity =====
   The public File Viewer and editor use the same renderer. Keep the complete
   document stack unconstrained by theme/container height rules. */
.mltsw-widget .mltsw-file-viewer-stack,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-view,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-universal,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-uv-shell,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-uv-workspace,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-uv-stage{
  max-height:none!important;
  overflow:visible!important;
}
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-editor-pdfjs-live,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-editor-pdfjs-canvas-wrap,
.mltsw-widget .mltsw-file-viewer-stack>.mltsw-stacked-document .mltsw-editor-pdfjs-canvas{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

/* ===== v4.20.18 — exact File Viewer editor/site match =====
   File Viewer (single_stack) owns its presentation just like YouTube Gallery.
   The public site no longer wraps it in the generic dark title/search/batch-
   download shell. These scoped rules are shared by the editor and website. */
.mltsw-widget-file-viewer-canonical,
.mltsw-widget-file-viewer-canonical .mltsw-outer-file-viewer,
.mltsw-widget-file-viewer-canonical .mltsw-body{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#0f172a!important;
  overflow:visible!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-titlebar,
.mltsw-widget-file-viewer-canonical .mltsw-widget-search,
.mltsw-widget-file-viewer-canonical .mltsw-downloadbar{
  display:none!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-stack{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:14px!important;
  gap:18px!important;
  border:2px solid #cbd5e1!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  overflow:visible!important;
  box-shadow:0 4px 18px rgba(15,23,42,.06)!important;
  box-sizing:border-box!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border:1px solid #d7dee9!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#0f172a!important;
  overflow:visible!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 14px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fff!important;
  color:#0f172a!important;
  box-sizing:border-box!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-name{
  color:#0f172a!important;
  font-weight:800!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-view,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-universal,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-shell,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-workspace,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-stage{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-view{
  min-height:0!important;
  background:#fff!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-editor-pdfjs-live,
.mltsw-widget-file-viewer-canonical .mltsw-editor-pdfjs-canvas-wrap{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-editor-pdfjs-canvas{
  display:block!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  margin:0 auto!important;
}
@media(max-width:700px){
  .mltsw-widget-file-viewer-canonical .mltsw-file-viewer-stack{
    padding:8px!important;
    gap:12px!important;
    border-radius:12px!important;
  }
}

/* ===== v4.20.19 — polished people-facing File Viewer =====
   One canonical presentation is shared by the editor and published website.
   The complete collection gets one premium frame, and every document remains
   a separate vertical reader (Carousel is still the combined-file layout). */
.mltsw-widget-file-viewer-canonical{
  --mltsw-file-surface:#ffffff;
  --mltsw-file-canvas:#f4f7fb;
  --mltsw-file-line:#dce4ef;
  --mltsw-file-text:#172033;
  --mltsw-file-muted:#66758a;
  --mltsw-file-accent:var(--mltsw-theme-accent,#2563eb);
  color:var(--mltsw-file-text)!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-outer-file-viewer{
  width:min(100%,1240px)!important;
  margin:0 auto!important;
  padding:0!important;
  border:1px solid var(--mltsw-file-line)!important;
  border-radius:24px!important;
  background:var(--mltsw-file-canvas)!important;
  box-shadow:0 18px 55px rgba(15,23,42,.10)!important;
  overflow:hidden!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-head{
  position:relative;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:24px 26px;
  background:linear-gradient(135deg,#ffffff 0%,#f7faff 58%,#eef5ff 100%);
  border-bottom:1px solid var(--mltsw-file-line);
  box-sizing:border-box;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-head:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:var(--mltsw-file-accent);
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:color-mix(in srgb,var(--mltsw-file-accent) 11%,#fff);
  color:var(--mltsw-file-accent);
  border:1px solid color-mix(in srgb,var(--mltsw-file-accent) 22%,#fff);
  box-shadow:0 7px 18px rgba(37,99,235,.10);
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-copy{min-width:0}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-kicker{
  display:block;
  margin:0 0 4px;
  color:var(--mltsw-file-accent);
  font-size:10px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.14em;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-copy h2{
  margin:0!important;
  color:#111827!important;
  font:800 clamp(20px,2vw,28px)/1.18 inherit!important;
  letter-spacing:-.025em;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-copy p{
  margin:6px 0 0!important;
  color:var(--mltsw-file-muted)!important;
  font-size:13px!important;
  line-height:1.5!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 13px;
  border:1px solid #d8e1ed;
  border-radius:999px;
  background:rgba(255,255,255,.86);
  color:#42526a;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
}
.mltsw-widget-file-viewer-canonical .mltsw-body{
  padding:20px!important;
  background:transparent!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-viewer-stack{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  gap:22px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document{
  border:1px solid #d9e2ed!important;
  border-radius:18px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 9px 28px rgba(15,23,42,.07)!important;
  transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease;
}
@media(hover:hover){
  .mltsw-widget-file-viewer-canonical .mltsw-stacked-document:hover{
    border-color:#c8d5e5!important;
    box-shadow:0 16px 38px rgba(15,23,42,.10)!important;
  }
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:76px;
  padding:14px 16px!important;
  border:0!important;
  border-bottom:1px solid #e6ebf2!important;
  background:#fff!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-summary{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-format-badge{
  flex:0 0 auto;
  min-width:44px;
  height:44px;
  padding:0 8px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(145deg,var(--mltsw-file-accent),color-mix(in srgb,var(--mltsw-file-accent) 78%,#0f172a));
  color:#fff;
  font-size:10px;
  font-weight:950;
  letter-spacing:.05em;
  box-shadow:0 7px 18px color-mix(in srgb,var(--mltsw-file-accent) 24%,transparent);
}
.mltsw-widget-file-viewer-canonical .mltsw-file-summary-copy{min-width:0}
.mltsw-widget-file-viewer-canonical .mltsw-document-label{
  display:block;
  margin-bottom:2px;
  color:#8090a6;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-name{
  color:#162033!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:850!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-details{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:3px;
  color:#7a899d!important;
  font-size:11px!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-card-actions{flex:0 0 auto}
.mltsw-widget-file-viewer-canonical .mltsw-file-card-actions .mltsw-dl{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:0 14px!important;
  border:1px solid var(--mltsw-file-accent)!important;
  border-radius:10px!important;
  background:var(--mltsw-file-accent)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 5px 14px color-mix(in srgb,var(--mltsw-file-accent) 20%,transparent)!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-file-card-actions .mltsw-dl:before{content:"↓";margin-right:7px;font-size:15px;line-height:1}
.mltsw-widget-file-viewer-canonical .mltsw-file-card-actions .mltsw-dl:hover{filter:brightness(.96);transform:translateY(-1px)}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-view{
  border:0!important;
  background:#f2f5f9!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-universal{
  border:0!important;
  border-radius:0!important;
  background:#f2f5f9!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-shell{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#f2f5f9!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-toolbar{
  min-height:46px!important;
  padding:7px 12px!important;
  border-bottom:1px solid #e2e8f0!important;
  background:#fbfcfe!important;
}
/* The card heading already owns the file identity and primary Download action.
   Keep the viewer toolbar focused on secondary reader tools. */
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-ident,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions .mltsw-uv-download{
  display:none!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions{
  width:100%!important;
  justify-content:flex-end!important;
  gap:6px!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions button,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions a{
  min-height:31px!important;
  padding:0 10px!important;
  border:1px solid #d8e0ea!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#3b4a60!important;
  font-size:10.5px!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions button:hover,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions a:hover{
  border-color:#b9c7d8!important;
  background:#f8fafc!important;
  color:#172033!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-stage,
.mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-workspace{
  background:#edf1f6!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-editor-pdfjs-canvas{
  border-radius:2px;
  box-shadow:0 3px 14px rgba(15,23,42,.13)!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-uv-loading{
  min-height:240px!important;
  background:#f2f5f9!important;
  color:#64748b!important;
}
.mltsw-widget-file-viewer-canonical .mltsw-uv-loading span{
  border-color:#cbd5e1!important;
  border-top-color:var(--mltsw-file-accent)!important;
}
@media(max-width:760px){
  .mltsw-widget-file-viewer-canonical .mltsw-outer-file-viewer{border-radius:16px!important}
  .mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-head{
    grid-template-columns:auto minmax(0,1fr);
    padding:18px 16px;
    gap:12px;
  }
  .mltsw-widget-file-viewer-canonical .mltsw-file-viewer-count{grid-column:2;justify-self:start}
  .mltsw-widget-file-viewer-canonical .mltsw-file-viewer-collection-copy p{display:none}
  .mltsw-widget-file-viewer-canonical .mltsw-body{padding:10px!important}
  .mltsw-widget-file-viewer-canonical .mltsw-file-viewer-stack{gap:14px!important}
  .mltsw-widget-file-viewer-canonical .mltsw-stacked-document{border-radius:13px!important}
  .mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-head{align-items:flex-start!important;padding:12px!important}
  .mltsw-widget-file-viewer-canonical .mltsw-file-format-badge{min-width:38px;height:38px;border-radius:10px}
  .mltsw-widget-file-viewer-canonical .mltsw-file-card-actions .mltsw-dl{min-height:34px!important;padding:0 10px!important;font-size:11px!important}
  .mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-uv-actions{justify-content:flex-start!important}
}
@media(max-width:520px){
  .mltsw-widget-file-viewer-canonical .mltsw-stacked-document .mltsw-head{display:block!important}
  .mltsw-widget-file-viewer-canonical .mltsw-file-card-actions{margin-top:10px;padding-left:50px}
  .mltsw-widget-file-viewer-canonical .mltsw-file-card-actions .mltsw-dl{width:100%;box-sizing:border-box}
}


/* ===== v4.20.20 — File Viewer website = editor, exactly =====
   This is the single shared visual contract for single_stack File Viewer.
   Both wp-admin live preview and the published site use this same markup,
   this same stylesheet, and the same PDF.js/Universal Viewer code path.
   These rules intentionally override the v4.20.19 public-only polish. */
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror *{
  box-sizing:border-box;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#0f172a!important;
  box-shadow:none!important;
  overflow:visible!important;
  font-family:Arial,Helvetica,sans-serif!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-viewer-collection-head,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-titlebar,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-widget-search,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-downloadbar{
  display:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-outer-file-viewer,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-viewer-editor-mirror-shell,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-body{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-viewer-stack{
  width:100%!important;
  max-width:none!important;
  display:flex!important;
  flex-direction:column!important;
  gap:18px!important;
  margin:0!important;
  padding:14px!important;
  border:2px solid #cbd5e1!important;
  border-radius:16px!important;
  background:#f8fafc!important;
  box-shadow:0 4px 18px rgba(15,23,42,.06)!important;
  overflow:visible!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border:1px solid #d7dee9!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document:hover{
  transform:none!important;
  box-shadow:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 14px!important;
  border:0!important;
  border-bottom:1px solid #e2e8f0!important;
  border-radius:12px 12px 0 0!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-summary{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-format-badge{
  flex:0 0 auto!important;
  min-width:42px!important;
  height:30px!important;
  padding:0 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:7px!important;
  background:#4f7df3!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-document-label,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-details{
  display:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-name{
  margin:0!important;
  color:#0f172a!important;
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-card-actions .mltsw-dl{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:0 11px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:800!important;
  transform:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-card-actions .mltsw-dl:before{
  content:"↓"!important;
  margin-right:6px!important;
  font-size:14px!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-view,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-universal,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-shell,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-workspace,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-stage{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
  border:0!important;
  border-radius:0!important;
  background:#dfe5ec!important;
  box-shadow:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-toolbar{
  display:flex!important;
  align-items:center!important;
  min-height:44px!important;
  padding:6px 10px!important;
  border:0!important;
  border-bottom:1px solid #cbd5e1!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-ident{
  display:flex!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  margin-left:auto!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-actions button,
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-uv-actions a{
  min-height:30px!important;
  padding:0 9px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
  text-decoration:none!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-live{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  background:#dfe5ec!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-toolbar{
  position:sticky!important;
  top:0!important;
  z-index:45!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:46px!important;
  padding:7px 10px!important;
  border:0!important;
  border-bottom:1px solid #cbd5e1!important;
  background:rgba(255,255,255,.97)!important;
  color:#0f172a!important;
  box-shadow:0 3px 12px rgba(15,23,42,.08)!important;
  backdrop-filter:blur(8px)!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-toolbar button{
  appearance:none!important;
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  height:32px!important;
  min-width:36px!important;
  min-height:32px!important;
  padding:0!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f172a!important;
  box-shadow:none!important;
  font:900 22px/1 system-ui,sans-serif!important;
  cursor:pointer!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-toolbar button:disabled{
  opacity:.35!important;
  cursor:default!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-page{
  min-width:90px!important;
  text-align:center!important;
  color:#0f172a!important;
  font:800 12px/1.2 system-ui,sans-serif!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-mode{
  margin-left:8px!important;
  color:#64748b!important;
  font:700 11px/1.2 system-ui,sans-serif!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-canvas-wrap{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:18px!important;
  background:#dfe5ec!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror canvas.mltsw-editor-pdfjs-canvas{
  display:block!important;
  width:auto;
  max-width:100%!important;
  height:auto;
  max-height:none!important;
  margin:0 auto!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:0 7px 24px rgba(15,23,42,.20)!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-loading{
  position:absolute!important;
  z-index:3!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  padding:9px 13px!important;
  border-radius:999px!important;
  background:rgba(15,23,42,.90)!important;
  color:#fff!important;
  font:800 11px/1.2 system-ui,sans-serif!important;
  pointer-events:none!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-loading[hidden],
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-fallback[hidden]{display:none!important}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-fallback{
  display:block!important;
  width:100%!important;
  min-height:1100px!important;
  max-height:none!important;
  border:0!important;
  background:#fff!important;
}
.mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-reader-nav{
  display:none!important;
}
@media(max-width:760px){
  .mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-file-viewer-stack{
    padding:8px!important;
    gap:12px!important;
    border-radius:12px!important;
  }
  .mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-stacked-document .mltsw-head{
    align-items:flex-start!important;
  }
  .mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-canvas-wrap{padding:8px!important}
  .mltsw-widget-file-viewer-canonical.mltsw-file-viewer-editor-mirror .mltsw-editor-pdfjs-mode{display:none!important}
}


/* ===== v4.20.23 — hard public/editor File Viewer parity =====
   Unique asset filename prevents an old cached public stylesheet from keeping
   the dark Search/Bookmarks/Select Files shell visible after plugin upgrades. */
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] > .mltsw-outer-file-viewer > .mltsw-titlebar,
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] > .mltsw-outer-file-viewer > .mltsw-global-search,
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] > .mltsw-outer-file-viewer > .mltsw-downloadbar,
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] .mltsw-global-search,
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] .mltsw-downloadbar,
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] .mltsw-file-viewer-collection-head{
  display:none!important;
}
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"],
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] .mltsw-outer-file-viewer,
.mltsw-widget[data-mltsw-file-viewer-version="4.20.23"] .mltsw-body{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  max-width:none!important;
  width:100%!important;
  overflow:visible!important;
}


/* ===== v4.20.23 — runtime-isolated File Viewer =====
   The server marks canonical File Viewer roots before any JavaScript executes.
   These rules make collection chrome impossible inside that root even if a
   delayed optimizer bundle tries to inject it later. */
.mltsw-server-file-viewer .mltsw-global-search,
.mltsw-server-file-viewer .mltsw-widget-search,
.mltsw-server-file-viewer .mltsw-downloadbar,
.mltsw-server-file-viewer .mltsw-titlebar,
.mltsw-server-file-viewer .mltsw-file-viewer-collection-head,
.mltsw-server-file-viewer .mltsw-download-select,
.mltsw-server-file-viewer .mltsw-download-all,
.mltsw-server-file-viewer .mltsw-bookmark-filter{
  display:none!important;
}
.mltsw-server-file-viewer,
.mltsw-server-file-viewer>.mltsw-outer,
.mltsw-server-file-viewer>.mltsw-outer-file-viewer,
.mltsw-server-file-viewer .mltsw-body{
  width:100%!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  overflow:visible!important;
}

/* v4.20.25 — one document preview engine across every File Embed layout. */
.mltsw-modern-file-thumb{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;background:linear-gradient(180deg,#f8fafc,#eef2f7)!important;color:#334155!important}
.mltsw-modern-file-thumb .mltsw-filebadge{min-width:54px;min-height:54px;border-radius:14px;display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:900;letter-spacing:.03em;box-shadow:0 8px 20px rgba(37,99,235,.18)}
.mltsw-modern-file-thumb .mltsw-thumb-hint{font-size:11px;font-weight:800;color:#64748b}
.mltsw-list-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mltsw-list-preview{appearance:none;border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:9px;padding:8px 12px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.mltsw-list-preview:hover{background:#f8fafc;border-color:#94a3b8}
.mltsw-spine[role="button"]{cursor:pointer;outline:none}
.mltsw-spine[role="button"]:focus-visible{box-shadow:0 0 0 3px rgba(37,99,235,.28),0 8px 24px rgba(15,23,42,.15)!important}
.mltsw-new-previewer-host{height:auto!important;min-height:600px!important;max-height:none!important;overflow:visible!important}
.mltsw-new-previewer-host .mltsw-universal,
.mltsw-new-previewer-host .mltsw-uv-shell,
.mltsw-new-previewer-host .mltsw-uv-workspace,
.mltsw-new-previewer-host .mltsw-uv-stage,
.mltsw-new-previewer-host .mltsw-editor-pdfjs-live,
.mltsw-new-previewer-host .mltsw-editor-pdfjs-canvas-wrap{height:auto!important;max-height:none!important;overflow:visible!important}
#mltsw-modal.is-file-previewer .mltsw-modal-panel{inset:2.5% 3%;overflow:auto;background:#f8fafc}
#mltsw-modal.is-file-previewer .mltsw-modal-close{position:sticky;top:10px;float:right;margin:10px 10px -48px 0}
#mltsw-modal.is-file-previewer .mltsw-modal-body{height:auto!important;min-height:0!important;overflow:visible!important;padding:14px}
#mltsw-modal.is-file-previewer .mltsw-modal-body .mltsw-universal,
#mltsw-modal.is-file-previewer .mltsw-modal-body .mltsw-uv-shell,
#mltsw-modal.is-file-previewer .mltsw-modal-body .mltsw-uv-workspace,
#mltsw-modal.is-file-previewer .mltsw-modal-body .mltsw-uv-stage,
#mltsw-modal.is-file-previewer .mltsw-modal-body .mltsw-editor-pdfjs-live,
#mltsw-modal.is-file-previewer .mltsw-modal-body .mltsw-editor-pdfjs-canvas-wrap{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
#mltsw-modal.is-file-previewer .mltsw-modal-body canvas.mltsw-editor-pdfjs-canvas{height:auto!important;max-height:none!important;max-width:100%!important}
@media(max-width:700px){#mltsw-modal.is-file-previewer .mltsw-modal-panel{inset:1.5% 2%}.mltsw-list-row{align-items:flex-start;gap:10px}.mltsw-list-actions{width:100%;justify-content:flex-start}}
