.ubt-mobile-navigation { display: none; }

@media (max-width: 1024px) {
  .ubt-desktop-navigation { display: none; }
  .ubt-mobile-navigation { display: flex; justify-content: flex-end; }
}

button.ubt-menu-open,
button.ubt-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, border-color .18s ease;
}
button.ubt-menu-open:hover,
button.ubt-menu-close:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); color: #fff; }
.ubt-menu-lines { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.ubt-menu-lines span { display: block; height: 1.5px; width: 20px; background: currentColor; border-radius: 2px; }
.ubt-menu-lines span:nth-child(2) { width: 15px; margin-left: auto; }

dialog.ubt-menu-tray {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, calc(100vw - 20px));
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.12);
  background: #0b0e12;
  color: #fff;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: -20px 0 80px rgba(0,0,0,.28);
}
dialog.ubt-menu-tray[open] { display: flex; flex-direction: column; animation: ubt-tray-in .34s cubic-bezier(.22,1,.36,1) both; }
dialog.ubt-menu-tray::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(5px); animation: ubt-backdrop-in .26s ease both; }
dialog.ubt-menu-tray.ubt-is-closing { animation: ubt-tray-out .22s ease both; }
dialog.ubt-menu-tray.ubt-is-closing::backdrop { animation: ubt-backdrop-out .22s ease both; }
.ubt-menu-tray * { box-sizing: border-box; }
.ubt-tray-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: max(24px, env(safe-area-inset-top)) 24px 22px; flex-shrink: 0; }
.ubt-tray-brand { display: block; width: 240px; max-width: calc(100% - 64px); }
.ubt-tray-brand img { display: block; width: 100%; height: auto; }
.ubt-tray-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 12px 24px 24px; }
.ubt-menu-tray .ubt-tray-eyebrow { margin: 0 0 18px; color: #99a4af; font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }
.ubt-menu-tray .ubt-tray-menu,
.ubt-menu-tray .ubt-tray-menu ul { list-style: none; margin: 0; padding: 0; }
.ubt-tray-menu > li > a { position: relative; display: flex; align-items: center; min-height: 56px; padding: 14px 20px 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.ubt-tray-menu > li > a::after { content: "\2192"; position: absolute; right: 0; font-size: 21px; color: #54c8df; }
.ubt-tray-section-title { display: block; margin: 30px 0 12px; color: #99a4af; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.ubt-tray-menu ul { border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.025); overflow: hidden; }
.ubt-tray-menu ul li + li { border-top: 1px solid rgba(255,255,255,.075); }
.ubt-tray-menu ul a { display: flex; align-items: center; min-height: 52px; padding: 14px 16px; font-size: 15px; font-weight: 400; line-height: 24px; white-space: nowrap; }
.ubt-menu-tray a,
.ubt-menu-tray a:visited,
.ubt-menu-tray a:hover,
.ubt-menu-tray a:focus { color: #fff; text-decoration: none; }
.ubt-tray-menu ul a:hover { background: rgba(255,255,255,.06); }
.ubt-tray-menu a[aria-current="page"] { background: rgba(84,200,223,.09); box-shadow: inset 3px 0 #54c8df; }
.ubt-tray-footer { flex-shrink: 0; padding: 22px 24px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); background: #10141a; }
.ubt-tray-footer .ubt-tray-eyebrow { margin-bottom: 12px; }
.ubt-tray-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ubt-tray-actions a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; font-size: 12px; line-height: 20px; white-space: nowrap; }
.ubt-tray-actions a:hover { border-color: #54c8df; background: rgba(84,200,223,.06); }
.ubt-tray-actions svg { flex-shrink: 0; width: 17px; height: 17px; color: #54c8df; }
button.ubt-menu-open:focus-visible,
.ubt-menu-tray button:focus-visible,
.ubt-menu-tray a:focus-visible { outline: 2px solid #54c8df; outline-offset: 4px; }

@keyframes ubt-tray-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes ubt-tray-out { to { transform: translateX(100%); } }
@keyframes ubt-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ubt-backdrop-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  dialog.ubt-menu-tray[open], dialog.ubt-menu-tray.ubt-is-closing,
  dialog.ubt-menu-tray::backdrop, dialog.ubt-menu-tray.ubt-is-closing::backdrop { animation: none; }
  button.ubt-menu-open, button.ubt-menu-close { transition: none; }
}
