/* Wizideo retro-desktop shell.
   Loaded only by pages that pass shell="desktop" to BaseLayout.
   Every class is prefixed wd- and scoped under body.wd-desktop so it cannot
   collide with global.css, which is dark-themed and loaded on every page. */

body.wd-desktop {
  --wd-ink: #14142b;
  --wd-muted: #50507a;
  --wd-line: rgba(20, 20, 43, 0.14);
  --wd-blue: #3f5bf0;
  --wd-bar-h: 52px;
  margin: 0;
  min-height: 100vh;
  background: #c9d6ff;
  color: var(--wd-ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.wd-desktop a { color: inherit; text-decoration: none; }
.wd-desktop a:hover { color: var(--wd-blue); }
.wd-desktop img { max-width: 100%; }

/* ── fixed desktop: wallpaper, menu bar, icons ─────────────────────────── */
.wd-wall {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  z-index: -1;
  pointer-events: none;
}

.wd-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wd-bar-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wd-line);
}
.wd-bar-in {
  height: 100%;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wd-bar-l, .wd-bar-r { display: flex; align-items: center; gap: 6px; min-width: 0; }
/* Same logo treatment as the original site header: bare mark + uppercase wordmark. */
.wd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding-right: 14px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wd-ink);
}
.wd-desktop .wd-brand:hover { color: var(--wd-ink); }
.wd-brand-logo { height: 2.3em; width: 2.3em; fill: currentColor; flex: none; }
.wd-menu { display: flex; flex-wrap: wrap; gap: 2px; }
.wd-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  font-size: 15px;
  border-radius: 8px;
}
.wd-menu a:hover { background: rgba(63, 91, 240, 0.1); color: var(--wd-ink); }
.wd-menu a[aria-current="page"] { background: rgba(63, 91, 240, 0.12); font-weight: 700; }
.wd-lang select {
  min-height: 36px;
  border: 1px solid var(--wd-line);
  border-radius: 8px;
  background: #fff;
  color: var(--wd-ink);
  font: inherit;
  font-size: 14px;
  padding: 0 8px;
}

.wd-icons {
  position: fixed;
  left: 14px;
  top: calc(var(--wd-bar-h) + 14px);
  bottom: 10px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none;
}
.wd-dicon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 88px;
  padding: 3px 0;
  text-align: center;
  color: var(--wd-ink);
}
.wd-dicon .wd-ic {
  display: block;
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 3px 0 rgba(20, 20, 43, 0.25));
  transition: transform 0.15s;
}
.wd-desktop .wd-dicon:hover { color: var(--wd-ink); }
.wd-dicon:hover .wd-ic { transform: translateY(-4px) rotate(-3deg); }
.wd-dicon .wd-lbl {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
}
.wd-dicon[aria-current="page"] .wd-lbl { background: #14142b; color: #fff; }

/* ── the window (normal document flow, so the page scrolls normally) ───── */
.wd-win {
  position: relative;
  margin: calc(var(--wd-bar-h) + 14px) 14px 14px 120px;
  background: rgba(248, 249, 255, 0.96);
  border: 1px solid rgba(20, 20, 43, 0.14);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(30, 30, 90, 0.28);
  overflow: clip;
  min-height: calc(100vh - var(--wd-bar-h) - 28px);
}
.wd-tb {
  position: sticky;
  top: var(--wd-bar-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 42px;
  padding: 0 16px;
  background: rgba(248, 249, 255, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wd-line);
  font-size: 13px;
  font-weight: 700;
  color: var(--wd-muted);
}
.wd-tb-l { display: inline-flex; align-items: center; gap: 8px; }
.wd-tb-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 18px;
  border-radius: 5px;
  background: #14142b;
}
.wd-tb-r { display: inline-flex; gap: 14px; }

.wd-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* ── type ──────────────────────────────────────────────────────────────── */
.wd-h1, .wd-h2, .wd-h3 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--wd-ink);
}
.wd-h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; }
.wd-h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; }
.wd-h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.wd-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--wd-muted); }
.wd-p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--wd-muted); }
.wd-eyebrow {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--wd-blue);
}
.wd-hl-blue, .wd-desktop .gradient-text {
  background: #d6e0ff;
  color: #2a45d8;
  padding: 0 0.16em;
  border-radius: 8px;
  -webkit-text-fill-color: #2a45d8;
}
.wd-hl-warm { background: #ffe3b8; padding: 0 0.08em; border-radius: 4px; }

/* ── layout helpers ────────────────────────────────────────────────────── */
.wd-col { display: flex; flex-direction: column; gap: 16px; }
.wd-row { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.wd-btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wd-grid { display: grid; gap: 16px; }
.wd-g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.wd-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .wd-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wd-g3 { grid-template-columns: minmax(0, 1fr); } }
.wd-g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.wd-sep { width: 100%; border: none; border-top: 1px solid var(--wd-line); margin: 0; }

/* ── components ────────────────────────────────────────────────────────── */
.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--wd-ink);
  border-bottom-width: 5px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--wd-ink);
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s;
}
.wd-desktop .wd-btn:hover { transform: translateY(-2px); color: var(--wd-ink); }
.wd-btn:active { transform: translateY(2px); border-bottom-width: 3px; }
.wd-btn-warm { border-color: #c46d12; border-bottom-color: #a85a0c; background: #ffa94d; }
.wd-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-bottom-width: 4px; }
.wd-desktop a:focus-visible, .wd-desktop button:focus-visible, .wd-desktop select:focus-visible {
  outline: 3px solid var(--wd-blue);
  outline-offset: 3px;
}

.wd-card {
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 20, 60, 0.08);
  padding: 20px;
}
.wd-card-soft { background: #f6f7fd; border: 1px solid var(--wd-line); border-radius: 16px; padding: 18px; }
.wd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--wd-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--wd-ink);
}
.wd-chip-b { background: #d6e0ff; font-weight: 700; }
.wd-chip-t { background: #d5f5f1; font-weight: 700; }
.wd-chip-w { background: #ffe3b8; font-weight: 700; }
.wd-chip-p { background: #ffd9d9; font-weight: 700; }
.wd-note {
  position: relative;
  background: #fff0a8;
  color: #14142b;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  padding: 20px 22px;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.wd-note::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 78px;
  height: 22px;
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(-50%) rotate(3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.wd-lk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(20, 20, 43, 0.35);
  text-underline-offset: 3px;
}
.wd-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.wd-ck { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wd-ck li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.wd-ck li::before { content: "✓"; flex: none; color: #12806f; font-weight: 800; width: 18px; text-align: center; }

.wd-tabs { display: flex; gap: 4px; align-items: flex-end; }
.wd-tab {
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  border: none;
  border-radius: 14px 14px 0 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(63, 91, 240, 0.1);
  color: var(--wd-ink);
}
.wd-tab[aria-selected="true"] { background: #3f5bf0; color: #fff; }
.wd-frame {
  border: 5px solid #3f5bf0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.wd-pane { display: contents; }
.wd-pane[hidden] { display: none; }
.wd-bubble-u {
  align-self: flex-end;
  max-width: 86%;
  background: #3f5bf0;
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  font-weight: 500;
  line-height: 1.45;
}
.wd-bubble-a {
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 16px;
  line-height: 1.5;
}
.wd-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--wd-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wd-avatar img { width: 30px; height: 30px; }
.wd-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--wd-line);
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(20, 20, 43, 0.12);
  box-sizing: border-box;
}
.wd-logo-tile img { display: block; object-fit: contain; }
.wd-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wd-line);
  flex: none;
}
.wd-cta {
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #eef1ff 100%);
}
.wd-cta .wd-mascot {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 6px 0 rgba(20, 20, 43, 0.18));
  transform: rotate(-4deg);
}
.wd-foot {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 200px 200px;
  gap: 28px 56px;
  justify-content: start;
  align-items: start;
  padding: 28px max(44px, calc((100% - 1400px) / 2 + 44px)) 36px;
  border-top: 1px solid var(--wd-line);
  font-size: 14px;
  color: var(--wd-muted);
}
.wd-foot h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--wd-ink); }
.wd-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wd-foot a { display: inline-block; padding: 4px 0; }
.wd-foot-bottom { grid-column: 1 / -1; margin: 8px 0 0; font-size: 13px; }

.wd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── small screens: back to a plain scrolling page ────────────────────── */
@media (max-width: 980px) {
  .wd-bar { position: relative; height: auto; }
  .wd-bar-in { flex-wrap: wrap; padding: 4px 12px; height: auto; }
  .wd-bar-l, .wd-bar-r { flex-wrap: wrap; }
  .wd-bar-r { padding-bottom: 6px; }
  .wd-icons {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding: 12px 8px 0;
  }
  .wd-win { margin: 12px; min-height: 0; }
  .wd-tb { top: 0; position: static; }
  .wd-main { padding: 32px 20px; gap: 48px; }
  .wd-tab { min-width: 0; padding: 0 6px; font-size: 14px; white-space: normal; }
  .wd-foot { padding: 24px 20px 32px; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
  .wd-foot > div:first-child { grid-column: 1 / -1; }
}

/* ── motion ─────────────────────────────────────────────────────────────
   Everything below respects prefers-reduced-motion (see the end of the file).
   Scroll reveal is opt-in per element: the shell script adds .wd-reveal to
   elements that start below the fold and .wd-in when they scroll into view. */
@keyframes wd-up { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes wd-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes wd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 169, 77, 0.55); } 60% { box-shadow: 0 0 0 12px rgba(255, 169, 77, 0); } }
@keyframes wd-pop { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } }
@keyframes wd-dots { 0%, 80%, 100% { opacity: 0.25; translate: 0 0; } 40% { opacity: 1; translate: 0 -4px; } }
@keyframes wd-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes wd-sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }

.wd-intro { animation: wd-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--wd-i, 0) * 90ms + 120ms); }

html.wd-anim .wd-reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--wd-i, 0) * 70ms);
}
html.wd-anim .wd-reveal.wd-in { opacity: 1; translate: 0 0; }

/* lift on hover for cards and chips (uses transform so it composes with reveal's translate) */
.wd-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.wd-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 20, 60, 0.14); }
.wd-card, .wd-card-soft { transition: transform 0.2s ease, box-shadow 0.2s ease; }

.wd-float-card { animation: wd-bob 6s ease-in-out infinite; }
.wd-peek { position: absolute; top: -46px; right: 22px; width: 68px; height: 68px; filter: drop-shadow(0 5px 0 rgba(20, 20, 43, 0.18)); transform: rotate(6deg); animation: wd-bob 3.2s ease-in-out infinite; }
.wd-pulse { animation: wd-pulse 2.4s ease-out infinite; }
.wd-bob { animation: wd-bob 3.4s ease-in-out infinite; }
.wd-wiggle { transition: rotate 0.25s ease, translate 0.25s ease; }
.wd-note.wd-wiggle:hover { translate: 0 -5px; }
.wd-eyes rect { transform-box: fill-box; transform-origin: center; animation: wd-blink 4.6s infinite; }

.wd-msg { display: flex; gap: 10px; align-items: flex-start; }
.wd-avatar-i { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wd-avatar-lg { width: 40px; height: 40px; font-size: 16px; }
.wd-ico-big { width: 46px; height: 46px; }
.wd-ico-big svg { width: 24px; height: 24px; color: #14142b; }
.wd-lift:hover .wd-ico-big svg { animation: wd-bob 1s ease-in-out infinite; }
.wd-tool { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 66px; text-align: center; font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.wd-tool .wd-logo-tile { transition: transform 0.2s ease; }
.wd-tool:hover .wd-logo-tile { transform: translateY(-4px) rotate(-4deg); }
.wd-quote { position: relative; overflow: hidden; }
.wd-qmark { position: absolute; top: -6px; right: 14px; font-family: "Bricolage Grotesque", serif; font-weight: 800; font-size: 96px; line-height: 1; color: #d6e0ff; pointer-events: none; }

/* MemoryChat: typing dots, then the answer pops in (when the card scrolls into view) */
.wd-typing { display: inline-flex; gap: 5px; padding: 10px 14px; background: #fff; border: 1px solid var(--wd-line); border-radius: 14px; align-self: flex-start; }
.wd-typing i { width: 7px; height: 7px; border-radius: 50%; background: #3f5bf0; animation: wd-dots 1.1s infinite; }
.wd-typing i:nth-child(2) { animation-delay: 0.15s; } .wd-typing i:nth-child(3) { animation-delay: 0.3s; }
html.wd-anim .wd-chat .wd-typing { display: none; }
html.wd-anim .wd-chat.wd-reveal .wd-chat-a { opacity: 0; }
html.wd-anim .wd-chat.wd-in .wd-typing { display: inline-flex; animation: wd-typing-out 0.01s 1.6s forwards; }
html.wd-anim .wd-chat.wd-in .wd-chat-a { animation: wd-pop 0.5s 1.6s both; }
@keyframes wd-typing-out { to { display: none; opacity: 0; height: 0; padding: 0; border: 0; margin: -6px 0 0; } }
.wd-chat:not(.wd-reveal) .wd-typing { display: none; }

/* tab/pane-style entrance for anything that toggles hidden */
.wd-pane:not([hidden]) > * { animation: wd-up 0.45s both; }

@media (prefers-reduced-motion: reduce) {
  body.wd-desktop *, body.wd-desktop *::before, body.wd-desktop *::after {
    animation: none !important;
    transition: none !important;
  }
  html.wd-anim .wd-reveal { opacity: 1; translate: none; }
  .wd-typing { display: none !important; }
}

/* ── slab (light 3D) surfaces ───────────────────────────────────────────
   Same idea as the buttons: a dark outline with a thicker bottom edge, so
   panels feel like physical cards without heavy shadows. */
body.wd-desktop .wd-card {
  border: 1.5px solid rgba(20, 20, 43, 0.88);
  border-bottom-width: 4px;
  box-shadow: none;
}
body.wd-desktop .wd-card-soft {
  border: 1.5px solid rgba(20, 20, 43, 0.55);
  border-bottom-width: 3px;
}
body.wd-desktop .wd-chip {
  border: 1.5px solid rgba(20, 20, 43, 0.85);
  border-bottom-width: 3px;
}
body.wd-desktop .wd-logo-tile {
  border: 1.5px solid rgba(20, 20, 43, 0.85);
  border-bottom-width: 3px;
  box-shadow: none;
}
body.wd-desktop .wd-ico {
  border: 1.5px solid rgba(20, 20, 43, 0.85);
  border-bottom-width: 3px;
}
body.wd-desktop .wd-lift:hover { box-shadow: none; transform: translateY(-3px); }
body.wd-desktop .wd-cta.wd-card { border-bottom-width: 6px; }

/* Integration logos come in mixed aspect ratios (Gmail is 4:3): never stretch them. */
body.wd-desktop img[src*="/integrations/"] { object-fit: contain; }

/* ── mobile dropdown menu (one row style for every link) ───────────────── */
.wd-burger { display: none; width: 44px; height: 44px; border: 2px solid var(--wd-ink); border-bottom-width: 4px; border-radius: 12px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.wd-burger span { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: var(--wd-ink); transition: transform 0.2s, opacity 0.2s; }
.wd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.wd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.wd-mpanel { display: none; }
.wd-mrow { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--wd-line); font-size: 16px; font-weight: 600; color: var(--wd-ink); box-sizing: border-box; }
.wd-mrow[aria-current="page"] { background: rgba(63, 91, 240, 0.1); }
.wd-mic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1.5px solid rgba(20, 20, 43, 0.85); border-bottom-width: 3px; }
.wd-mic-img { border: none; background: none; }
.wd-mic-img img { width: 36px; height: 36px; filter: drop-shadow(0 2px 0 rgba(20, 20, 43, 0.22)); }
.wd-mlbl { flex: 1; }
.wd-mgo { color: var(--wd-muted); flex: none; }
.wd-mfoot { gap: 12px; border-bottom: none; background: #f6f7fd; }
.wd-mlang { flex: 1; }
.wd-mlang select { width: 100%; min-height: 44px; border: 1.5px solid rgba(20, 20, 43, 0.6); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; padding: 0 10px; color: var(--wd-ink); }
.wd-mlogin { font-weight: 700; padding: 10px 14px; }
@media (max-width: 980px) {
  .wd-bar { position: sticky; top: 0; }
  .wd-bar-in { flex-wrap: nowrap; height: 60px; padding: 0 12px; }
  .wd-bar-l .wd-menu, .wd-bar-r .wd-lang, .wd-bar-r .wd-menu { display: none; }
  .wd-bar-r { padding-bottom: 0; flex-wrap: nowrap; }
  .wd-icons { display: none; }
  .wd-burger { display: inline-flex; }
  .wd-mpanel { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 60px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--wd-line); box-shadow: 0 24px 40px rgba(30, 30, 90, 0.22); }
  .wd-mpanel[hidden] { display: none; }
}
@media (min-width: 981px) { .wd-mpanel { display: none !important; } }
