/* MicroViva Blue bar above an integrated presentation. Added to the PUBLISHED COPY only (scripts/showcase.mjs).
   It sits in the normal flow at the very top and sticks there, so it never lies over the presentation's own content;
   each presentation's own fixed top bar is moved down by --mvb-strip in its mvb-fixes.css. */
:root { --mvb-strip: 40px; }
.mvb-bar { position: sticky; top: 0; z-index: 80; flex: none; display: flex; align-items: stretch; gap: 0; height: var(--mvb-strip); background: #07173a; color: #fff; border-bottom: 1px solid rgba(185, 216, 255, .22); font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.mvb-bar *, .mvb-bar *::before, .mvb-bar *::after { box-sizing: border-box; }
.mvb-bar a, .mvb-bar button { color: inherit; font: inherit; text-decoration: none; }
.mvb-bar-back { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 max(12px, env(safe-area-inset-left, 0px)); white-space: nowrap; }
.mvb-bar-back svg { width: 20px; height: 20px; flex: none; }
.mvb-bar-back i, .mvb-bar-name { font-style: normal; color: #b9d8ff; font-weight: 500; }
.mvb-bar-name { display: flex; align-items: center; min-width: 0; padding: 0 12px; border-left: 1px solid rgba(185, 216, 255, .22); }
.mvb-bar-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvb-bar-ch { position: relative; margin-left: auto; display: flex; min-width: 0; }
.mvb-bar-ch[hidden] { display: none; }
.mvb-bar-btn { display: flex; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 12px; background: rgba(255, 255, 255, .08); border: 0; border-left: 1px solid rgba(185, 216, 255, .22); cursor: pointer; }
.mvb-bar-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvb-bar-btn b { color: #b9d8ff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mvb-bar-btn svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mvb-bar-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mvb-bar-back:hover, .mvb-bar-btn:hover { background: #0a2255; }
.mvb-bar a:focus-visible, .mvb-bar button:focus-visible { outline: 2px solid #b9d8ff; outline-offset: -2px; }
.mvb-bar-list { position: absolute; right: 0; top: 100%; z-index: 1; width: min(320px, 100vw); max-height: min(70vh, 460px); overflow: auto; margin: 0; padding: 6px; list-style: none; background: #07173a; border: 1px solid rgba(185, 216, 255, .28); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.mvb-bar-list[hidden] { display: none; }
.mvb-bar-list a, .mvb-bar-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 500; font-size: 14px; line-height: 1.25; cursor: pointer; }
.mvb-bar-list i { flex: none; width: 1.6em; font-style: normal; color: #5aa2ff; font-variant-numeric: tabular-nums; font-size: 12px; }
.mvb-bar-list a:hover, .mvb-bar-list button:hover { background: rgba(255, 255, 255, .1); }
.mvb-bar-list [aria-current="true"] { background: rgba(90, 162, 255, .22); font-weight: 600; }
@media (max-width: 620px) {
  .mvb-bar-site, .mvb-bar-back i { display: none; }          /* phone: mark + arrow + "Проекти" */
  .mvb-bar-name { flex: 1 1 auto; }
  .mvb-bar-btn span { display: none; }                         /* phone: "3/10 ▾"; the names are in the list */
  .mvb-bar-list { position: fixed; left: 0; right: 0; top: var(--mvb-strip); width: auto; border-left: 0; border-right: 0; border-radius: 0 0 14px 14px; }
}
@media print { .mvb-bar { display: none; } }
