/* Scena Studio — site menu: desktop dropdowns and the phone menu */
.mnav-item { position: static !important; }
:has(> .mnav) { position: relative; }
.mnav-top { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 11px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 14.5px; white-space: nowrap; cursor: pointer; }
.mnav-top svg { transition: transform .16s ease; opacity: .7; }
.mnav-top[style*="font-weight: 700"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 1px; background: currentColor; }
.mnav-top[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }
.mnav-item:hover > .mnav-top, .mnav-item:focus-within > .mnav-top { color: #17181C !important; }
.mnav.dark .mnav-item:hover > .mnav-top, .mnav.dark .mnav-item:focus-within > .mnav-top { color: #FFFFFF !important; }
.mnav-panel { display: none; position: absolute; top: calc(100% - 2px); z-index: 60; box-sizing: border-box; max-width: calc(100vw - 48px); max-height: calc(100vh - 84px); background: #FFFFFF; border: 1px solid #dedbd3; border-radius: 6px;
  box-shadow: 0 10px 26px -16px rgb(23 24 28 / 28%); text-align: left; color: #17181C; overflow: hidden; }
.mnav-panel.is-open,
html:not(.desktop-nav-ready) .mnav-item:is(:hover, :focus-within) > .mnav-panel {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
  .mnav-panel.is-open { animation: mnav-disclose 120ms ease-out; }
  @keyframes mnav-disclose { from { opacity: .8; } to { opacity: 1; } }
}

@media (prefers-reduced-motion: reduce) {
  .mnav-top svg { transition: none; }
}
.mnav-body { display: grid; }
.mnav-main { display: grid; gap: 0 10px; padding: 12px; min-width: 0; }
.mnav-list { display: grid; gap: 2px 6px; margin: 0; padding: 0; list-style: none; }
.mnav-sec { margin: 4px 10px 6px; font-size: 12.5px; font-weight: 650; color: #595d64; letter-spacing: 0; }
.mnav-link { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: start; padding: 10px; border-radius: 7px; color: #17181C; }
.mnav-link:not(:has(.mnav-ic)) { display: block; padding: 9px 10px; }
.mnav-ic { display: block; width: 21px; height: 21px; flex: 0 0 auto; color: #7A7F86; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; transition: color .12s ease; }
.mnav-ic[data-ic="film"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5h17v14h-17zM7.5 5v14M16.5 5v14M3.5 9h4M3.5 15h4M16.5 9h4M16.5 15h4'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="video"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.5h12v11h-12zM15.5 10.5l5-3v9l-5-3'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="image"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM4 15.5l4.5-4.5 4 4 2.5-2.5 5 5M15.5 9.5h.01'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="lock"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 11V8a4.5 4.5 0 0 1 9 0v3M5.5 11h13v9.5h-13zM12 14.5v2.5'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="queue"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.5h12M4 12h12M4 17.5h8M17 15l3 2.5-3 2.5'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="coin"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM14.6 9.3c-.5-.8-1.5-1.3-2.6-1.3-1.5 0-2.6.8-2.6 1.9 0 2.7 5.4 1.4 5.4 4.1 0 1.1-1.2 2-2.8 2-1.2 0-2.3-.6-2.7-1.4M12 6.5V8M12 16v1.5'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="folder"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5A1.5 1.5 0 0 1 5 6h4l2 2h8a1.5 1.5 0 0 1 1.5 1.5v8A1.5 1.5 0 0 1 19 19H5a1.5 1.5 0 0 1-1.5-1.5zM3.5 11h17'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="wave"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12h1.5M7 8.5v7M10.5 5.5v13M14 9v6M17.5 7v10M20.5 12H20'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="book"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A1.5 1.5 0 0 1 5.5 4H11v15.5H5.5A1.5 1.5 0 0 0 4 21zM20 5.5A1.5 1.5 0 0 0 18.5 4H13v15.5h5.5A1.5 1.5 0 0 1 20 21z'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="install"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v10.5M7.5 10l4.5 4.5 4.5-4.5M4.5 19.5h15'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="launch"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 16.5l4.5-4.5L10 7.5M14.5 12H3.5M13.5 4h5A1.5 1.5 0 0 1 20 5.5v13a1.5 1.5 0 0 1-1.5 1.5h-5'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="help"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM9.6 9.4a2.5 2.5 0 0 1 4.8.9c0 1.7-2.4 2.2-2.4 3.7M12 17.1h.01'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="info"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM12 11v5.5M12 7.6h.01'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="shield"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.6c0 4.4-3.1 7.8-7.5 9.4-4.4-1.6-7.5-5-7.5-9.4V6zM8.8 12l2.2 2.2 4.2-4.4'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="doc"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h7.5l4 4v13h-11.5zM13.5 3.5v4.5h4.5M9.5 12.5h6M9.5 16h6'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="history"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 12a8.4 8.4 0 1 0 2.5-6M3.5 3.8v4.4h4.4M12 7.8V12l3 1.9'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="pulse"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12h4l2.5-6.5 4 13 2.5-6.5h4'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="chat"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.5 7.5 0 0 1-10.9 6.7L4.5 19.5l1.3-4.1A7.5 7.5 0 1 1 20 11.5z'/%3E%3C/svg%3E"); }
.mnav-ic[data-ic="bug"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 7a3.5 3.5 0 0 1 7 0M7 9.5h10v4.5a5 5 0 0 1-10 0zM12 10v9M3.5 12.5H7M17 12.5h3.5M4.5 18.5l2.8-1.7M19.5 18.5l-2.8-1.7M5 6.5l2.6 2.2M19 6.5l-2.6 2.2'/%3E%3C/svg%3E"); }
.mnav-l { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
.mnav-n { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.42; color: #6C7075; }
.mnav-link:hover, .mnav-link:focus-visible { background: #F3F4F5; }
.mnav-link:hover .mnav-ic, .mnav-link:focus-visible .mnav-ic, .mnav-link[aria-current="page"] .mnav-ic { color: #D8411C; }
.mnav-link[aria-current="page"] .mnav-l { color: #C0391A; }
.mnav-link[aria-current="page"] { background: #F3F4F5; }
.mnav-aside { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; background: #f5f4f0; border-left: 1px solid #e6e3da; min-width: 0; }
.mnav-aside .mnav-sec { margin: 0 0 6px; }
.mnav-news { display: block; padding: 8px 0 10px; border-bottom: 1px solid #E3E5E8; color: #17181C; }
.mnav-news:last-child { border-bottom: 0; }
.mnav-news .mnav-l { font-size: 13.5px; line-height: 1.38; }
.mnav-news:hover .mnav-l { color: #C0391A; }
.mnav-ab { margin: 0; font-size: 13.5px; line-height: 1.55; color: #44484E; }
.mnav-more { display: block; margin-top: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: #C0391A; }
.mnav-more svg { display: inline-block; vertical-align: -2px; margin-left: 5px; }
.mnav-more:hover svg { transform: translateX(2px); }
.mnav-more svg { transition: transform .12s ease; }
.mnav-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 22px 13px; border-top: 1px solid #e6e3da; background: #faf9f6; }
.mnav-foot a { font-size: 13.5px; font-weight: 650; color: #17181C; text-decoration: underline; text-decoration-color: #B9BDC2; text-underline-offset: 3px; }
.mnav-foot a:hover { text-decoration-color: currentColor; }
.mnav-mgroup { padding: 14px 0 8px; border-top: 1px solid #EEF0F2; }
.mnav-mgroup:first-child { border-top: 0; }
.mnav-mtop { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font-size: 17px; font-weight: 700; color: #17181C; }
.mnav-mtop svg { color: #8A8F96; }
:is(#m-nav, #m-nav--t, #m-nav--m) .mnav-mtop, :is(#m-nav, #m-nav--t, #m-nav--m) .mnav-mlink { display: flex; width: 100%; }
.mnav-mhead { margin: 0 0 2px; font-size: 13px; font-weight: 650; color: #6C7075; }
.mnav-mlist { display: grid; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
.mnav-mlink { display: flex; align-items: center; gap: 11px; min-height: 42px; box-sizing: border-box; padding: 6px 0; font-size: 15.5px; font-weight: 550; line-height: 1.3; color: #17181C; }
.mnav-mlink .mnav-ic { width: 19px; height: 19px; color: #8A8F96; }
.mnav-mlink[aria-current="page"], .mnav-mtop[aria-current="page"] { color: #C0391A; }
.mnav-mlink[aria-current="page"] .mnav-ic { color: #D8411C; }
.mnav-mfoot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0 2px; }
.mnav-mfoot a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 650; color: #17181C; text-decoration: underline; text-decoration-color: #B9BDC2; text-underline-offset: 3px; }
:is(.mnav-foot, .mnav-mfoot) a[aria-current="page"] { color: #C0391A; }
button[aria-controls^="m-nav"], :is(#m-nav, #m-nav--t, #m-nav--m) :is(.mnav-mtop, .mnav-mlink, .mnav-mfoot a) {
  min-height: 44px !important;
}
button[aria-controls^="m-nav"] { min-width: 44px; }
nav[id^="m-nav"] {
  max-block-size: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.topbar { z-index: 50; }

/* Language controls on the standalone sample and script readers. */
.standalone-page :is(.standalone-tools, .standalone-toolbar) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.standalone-page .standalone-toolbar { margin-bottom: 22px; }
.standalone-page .standalone-toolbar > a { font-size: .875rem; font-weight: 660; }
.standalone-page [data-lang-select] {
  min-height: 44px;
  max-width: 180px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
}
.standalone-page .scena-lang-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.standalone-page .scena-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 74px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}
.standalone-page .scena-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: min(280px, calc(100vw - 24px));
  max-height: min(420px, calc(100dvh - 100px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 10px 26px -16px rgb(23 24 28 / 28%);
}
.standalone-page .scena-lang-menu.is-open { display: grid; }
.standalone-page .scena-lang-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .8125rem;
  text-align: start;
  cursor: pointer;
}
.standalone-page :is(.scena-lang-btn, .scena-lang-opt):hover { background: var(--accent-wash); }
.standalone-page .scena-lang-opt.is-active { color: var(--accent); background: var(--accent-wash); font-weight: 700; }
.standalone-page .scena-lang-code { min-width: 24px; color: var(--muted); font-size: .625rem; font-weight: 700; }
.standalone-page :is(.scena-lang-btn, .scena-lang-opt, [data-lang-select]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .standalone-page .standalone-tools { justify-content: flex-end; gap: 6px 10px; }
  .standalone-page .standalone-tools .back { max-width: 105px; line-height: 1.35; }
  .standalone-page .standalone-toolbar > a { flex: 1 1 180px; }
}
