/* Muscat Labs shared chrome: top bar, menu and footer. Loaded on every page except the apps themselves. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format("woff2"); }
:root {
  --mlx-ink: #111614; --mlx-pine: #1E3B33; --mlx-pine-2: #142a24; --mlx-cream: #F5F0E6; --mlx-paper: #FBF8F2;
  --mlx-muted: #4B5450; --mlx-line: rgba(17,22,20,.12); --mlx-brass: #A27B45; --mlx-brass-ink: #7A5A2B; --mlx-brass-light: #DCC193;
  --mlx-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mlx-serif: Fraunces, Georgia, "Times New Roman", serif;
  --mlx-ease: cubic-bezier(.2,.7,.2,1);
}
.mlx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); box-sizing: border-box; }
.mlx-skip { position: absolute; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; left: 12px; top: -60px; z-index: 100; background: var(--mlx-ink); color: #fff; padding: 12px 16px; border-radius: 10px; font: 600 15px/1 var(--mlx-sans); text-decoration: none; }
.mlx-skip:focus { top: 12px; }
.mlx-bar { position: relative; z-index: 40; background: rgba(251,248,242,.88); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--mlx-line); font-family: var(--mlx-sans); color: var(--mlx-ink); }
body.mlx .mlx-bar { position: sticky; top: 0; }
.mlx-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.mlx-brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; color: var(--mlx-ink); text-decoration: none; border-radius: 10px; }
.mlx-brand:hover { color: var(--mlx-ink); }
.mlx-mark { width: 34px; height: 34px; display: block; border-radius: 9px; box-shadow: 0 1px 2px rgba(17,22,20,.18), 0 4px 12px -4px rgba(17,22,20,.3); }
.mlx-brand-name { white-space: nowrap; font: 600 1.16rem/1 var(--mlx-serif); letter-spacing: -.015em; }
.mlx-nav { display: flex; align-items: center; gap: 6px; }
.mlx-menu { display: flex; align-items: center; gap: 2px; }
.mlx-nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 500 .95rem/1 var(--mlx-sans); color: var(--mlx-ink); text-decoration: none; transition: background .2s var(--mlx-ease), color .2s; }
.mlx-nav-link:hover { background: rgba(17,22,20,.06); color: var(--mlx-ink); }
.mlx-nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1.5px; background: var(--mlx-brass); border-radius: 2px; }
.mlx-new { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-right: 6px; border-radius: 999px; border: 1px solid rgba(162,123,69,.45); background: linear-gradient(180deg, #fffdf8, #f4ecdd); color: var(--mlx-ink); font: 600 .9rem/1 var(--mlx-sans); white-space: nowrap; text-decoration: none; box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(17,22,20,.06); transition: border-color .2s, box-shadow .2s, transform .2s var(--mlx-ease); }
.mlx-new:hover { color: var(--mlx-ink); border-color: var(--mlx-brass); box-shadow: 0 1px 0 #fff inset, 0 6px 16px -8px rgba(122,90,43,.5); transform: translateY(-1px); }
.mlx-new-dot { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3dfb4, var(--mlx-brass) 60%, #7a5a2b); box-shadow: 0 0 0 3px rgba(162,123,69,.18); flex: none; }
.mlx-menu-btn { display: none; width: 48px; height: 48px; border: 1px solid var(--mlx-line); border-radius: 14px; background: #fff; color: var(--mlx-ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.mlx-burger, .mlx-burger::before, .mlx-burger::after { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .25s var(--mlx-ease), opacity .2s; content: ""; }
.mlx-burger { position: relative; }
.mlx-burger::before { position: absolute; top: -6px; } .mlx-burger::after { position: absolute; top: 6px; }
.mlx-menu-btn[aria-expanded="true"] .mlx-burger { background: transparent; }
.mlx-menu-btn[aria-expanded="true"] .mlx-burger::before { transform: translateY(6px) rotate(45deg); }
.mlx-menu-btn[aria-expanded="true"] .mlx-burger::after { transform: translateY(-6px) rotate(-45deg); }
.mlx-bar a:focus-visible, .mlx-bar button:focus-visible, .mlx-footer a:focus-visible, .mlx-skip:focus-visible { outline: 2px solid var(--mlx-brass-ink); outline-offset: 3px; }
@media (max-width: 860px) {
  .mlx-menu-btn { display: inline-flex; }
  .mlx-js .mlx-menu { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: #fffdf9; border: 1px solid var(--mlx-line); border-radius: 18px; box-shadow: 0 2px 4px rgba(17,22,20,.04), 0 24px 48px -16px rgba(17,22,20,.28); }
  .mlx-js .mlx-menu.open { display: flex; animation: mlx-drop .22s var(--mlx-ease); }
  .mlx-js .mlx-nav-link { min-height: 52px; padding: 0 16px; border-radius: 12px; font-size: 1.05rem; }
  .mlx-nav-link[aria-current="page"]::after { left: 16px; right: auto; width: 24px; bottom: 12px; }
  html:not(.mlx-js) .mlx-menu-btn { display: none; }
  html:not(.mlx-js) .mlx-bar-in { flex-wrap: wrap; padding-bottom: 6px; }
  html:not(.mlx-js) .mlx-menu { flex-wrap: wrap; }
}
@media (max-width: 420px) { .mlx-bar-in { gap: 8px; } .mlx-brand { gap: 9px; } .mlx-mark { width: 30px; height: 30px; } .mlx-new { padding: 0 12px; margin-right: 2px; font-size: .84rem; gap: 7px; } .mlx-brand-name { font-size: 1.04rem; } .mlx-menu-btn { width: 46px; height: 46px; } }
@media (max-width: 350px) { .mlx-new-label { display: none; } }
@keyframes mlx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.mlx-footer { background: var(--mlx-ink); color: #D7D9D4; font-family: var(--mlx-sans); font-size: .98rem; line-height: 1.6; padding: clamp(48px, 7vw, 80px) 0 28px; position: relative; overflow: hidden; }
.mlx-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(220,193,147,.5), transparent); }
.mlx-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.mlx-footer.mlx-footer p { margin: 14px 0 0; color: #C9CDC7; max-width: 34ch; }
.mlx-footer.mlx-footer a { color: #F3F1EA; text-decoration: none; }
.mlx-footer.mlx-footer a:hover { color: var(--mlx-brass-light); text-decoration: underline; text-underline-offset: .2em; }
.mlx-footer.mlx-footer .mlx-brand-light, .mlx-footer.mlx-footer .mlx-brand-light:hover { color: #F5F0E6; }
.mlx-brand-light:hover { text-decoration: none !important; }
.mlx-footer.mlx-footer .mlx-foot-help a { color: var(--mlx-brass-light); word-break: break-all; }
.mlx-footer .mlx-foot-h { font: 600 .78rem/1 var(--mlx-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mlx-brass-light); margin: 10px 0 14px; }
.mlx-footer ul { list-style: none; margin: 0; padding: 0; }
.mlx-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.mlx-foot-base { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #BFC4BD; font-size: .9rem; }
@media (max-width: 860px) { .mlx-foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .mlx-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 380px) { .mlx-foot-grid { grid-template-columns: 1fr; } }
/* keep the shared bar consistent on every app page, whatever the app's own link styles */
.mlx-bar.mlx-bar a.mlx-brand, .mlx-bar.mlx-bar a.mlx-brand:hover { color: var(--mlx-ink); text-decoration: none; }
.mlx-bar.mlx-bar a.mlx-nav-link { color: var(--mlx-ink); }
.mlx-bar.mlx-bar a.mlx-new { color: var(--mlx-ink); text-decoration: none; }
.mlx-skip.mlx-skip { position: absolute; }

/* Bar motion (2026-10): "New" pill shimmer + dot pulse, Circuit M accent line tracing the circuit.
   CSS only, decorative, off under prefers-reduced-motion. Static look is the original. */
.mlx-mark-live .mlx-trace { opacity: 0; }
.mlx-mark-live .mlx-node { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .mlx-new { position: relative; overflow: hidden; isolation: isolate; }
  .mlx-new::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.95) 45%, rgba(220,193,147,.35) 60%, rgba(255,255,255,0)); transform: translateX(-130%) skewX(-20deg); animation: mlx-shimmer 7s ease-in-out 1.8s infinite; }
  .mlx-new-dot { position: relative; }
  .mlx-new-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(162,123,69,.6); animation: mlx-ping 2.8s cubic-bezier(0,0,.2,1) infinite; }
  .mlx-mark-live .mlx-trace { stroke-dasharray: 16 84; stroke-dashoffset: 16; animation: mlx-trace 10s ease-in-out 1.2s infinite; }
  .mlx-mark-live .mlx-node { animation: mlx-node 10s ease-out infinite; }
  .mlx-mark-live .mlx-node-a { animation-delay: 1.25s; } .mlx-mark-live .mlx-node-b { animation-delay: 2.05s; } .mlx-mark-live .mlx-node-c { animation-delay: 2.85s; }
  .mlx-free .mlx-star-spark, .mlx-mark-live .mlx-badge-spark { transform-box: fill-box; transform-origin: center; animation: mlx-spark 2.3s ease-in-out infinite; }
  .mlx-free .mlx-star-spark-2 { animation-delay: .75s; }
  .mlx-free .mlx-star-spark-3 { animation-delay: 1.5s; }
  .mlx-free .mlx-star-shine { animation: mlx-shine 3.4s ease-in-out infinite; }
}
@keyframes mlx-shimmer { 0% { transform: translateX(-130%) skewX(-20deg); } 16%, 100% { transform: translateX(330%) skewX(-20deg); } }
@keyframes mlx-ping { 0% { transform: scale(1); opacity: .9; } 75%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes mlx-trace { 0% { stroke-dashoffset: 16; opacity: 0; } 2% { opacity: 1; } 17% { stroke-dashoffset: -84; opacity: 1; } 19%, 100% { stroke-dashoffset: -84; opacity: 0; } }
@keyframes mlx-node { 0% { transform: scale(1); } 2.5% { transform: scale(1.4); } 7%, 100% { transform: scale(1); } }
@keyframes mlx-spark { 0%, 100% { transform: scale(.55) rotate(0deg); opacity: .35; } 50% { transform: scale(1.15) rotate(22deg); opacity: 1; } }
@keyframes mlx-shine { 0% { transform: translateX(-64px) skewX(-22deg); } 36%, 100% { transform: translateX(72px) skewX(-22deg); } }
/* The living header badge: the Circuit M stays top-left; a golden 15% OFF star lives under the glass pane.
   Static (no JS / reduced motion): ghost, glass, badge-star and cracks are invisible, so it is exactly the normal mark. */
.mlx-mark-live .mlx-ghost, .mlx-mark-live .mlx-ghost-line, .mlx-mark-live .mlx-glass, .mlx-mark-live .mlx-eye, .mlx-mark-live .mlx-star-ghost, .mlx-mark-live .mlx-badge-star { opacity: 0; }
.mlx-mark-live .mlx-eye { display: none; }
.mlx-mark-live .mlx-cracks { pointer-events: none; }
.mlx-mark-live .mlx-badge-star { transform-box: fill-box; transform-origin: center; transition: opacity .2s; }
.mlx-mark-live .mlx-star-ghost { transition: opacity .25s; }
.mlx-motion .mlx-mark-live .mlx-glass, .mlx-motion .mlx-mark-live .mlx-badge-star { opacity: 1; }
.mlx-motion .mlx-mark-live { -webkit-tap-highlight-color: transparent; touch-action: manipulation; overflow: hidden; }
.mlx-mark-live.is-out .mlx-m { opacity: 1; }
.mlx-mark-live.is-out .mlx-badge-star, .mlx-mark-live.is-out .mlx-glass { opacity: 0; }
.mlx-mark-live.is-out .mlx-star-ghost { opacity: .42; }
/* The free golden 15% OFF star: one fixed, full-viewport SVG that never takes pointer events. Only its 72px grab spot does. */
html body > .mlx-free, .mlx-free { position: fixed; left: 0; top: 0; z-index: 200; width: 100vw; height: 100vh; pointer-events: none; overflow: visible; isolation: isolate; }
.mlx-free path, .mlx-free circle, .mlx-free rect, .mlx-free text, .mlx-free g { pointer-events: none; }
.mlx-free-star { filter: drop-shadow(0 5px 12px rgba(17,22,20,.28)); }
html body > .mlx-free-grab, .mlx-free-grab { display: block; position: fixed; left: 0; top: 0; z-index: 202; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; pointer-events: auto; touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; will-change: transform; }
.mlx-free-grab:active { cursor: grabbing; }
html body > .mlx-shards, .mlx-shards { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 201; pointer-events: none; }
.mlx-shards i { position: absolute; left: 0; top: 0; width: 7px; height: 7px; background: rgba(255,255,255,.78); border: 1px solid rgba(26,24,20,.35); clip-path: polygon(0 0, 100% 30%, 40% 100%); will-change: transform; }
.mlx-shards i.is-gold { width: 10px; height: 10px; background: linear-gradient(135deg, #FFF5BF, #F5B82E); border-color: #7A4B0A; clip-path: polygon(50% 0%, 63% 36%, 100% 38%, 71% 61%, 81% 98%, 50% 77%, 19% 98%, 29% 61%, 0% 38%, 37% 36%); }
html body > .mlx-sign, .mlx-sign { position: fixed; left: 0; top: 0; z-index: 201; width: 0; height: 0; pointer-events: none; will-change: transform; }
.mlx-sign b { position: absolute; left: -90px; bottom: 0; width: 180px; display: flex; justify-content: center; transform-origin: 50% 100%; }
.mlx-sign em { position: relative; display: inline-block; padding: 5px 9px 6px; border-radius: 8px; background: #FFFDF7; color: #14231D; border: 1.5px solid #14231D; font: 700 11px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 4px 0 #C9A25E, 0 8px 14px rgba(17,22,20,.22); }
.mlx-sign em span { color: #B23A1E; font-size: 12px; }
.mlx-sign em::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 9px; margin-left: -1px; background: #14231D; border-radius: 1px; }
html body > .mlx-confetti, .mlx-confetti { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 201; pointer-events: none; }
.mlx-confetti i { position: absolute; left: 0; top: 0; width: 7px; height: 10px; border-radius: 2px; will-change: transform; }
a.mlx-disc { box-shadow: 0 0 0 3px #C9A25E, 0 0 0 6px rgba(201,162,94,.28) !important; }
a.mlx-disc s { opacity: .65; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .mlx-free, .mlx-free-grab, .mlx-shards, .mlx-sign, .mlx-confetti, .mlx-badge-star, .mlx-star-ghost { display: none !important; } .mlx-mark-live .mlx-m { opacity: 1 !important; } .mlx-mark-live .mlx-glass, .mlx-mark-live .mlx-ghost, .mlx-mark-live .mlx-ghost-line, .mlx-mark-live .mlx-eye { opacity: 0 !important; } }
a.mlx-btn.mlx-disc { white-space: normal; min-width: 0; flex-wrap: wrap; gap: 2px 6px; line-height: 1.15; text-align: center; }

/* Congratulations pop-up & confirmation toast for the Golden 15% OFF Star */
.mlx-congrats { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17,22,20,.58); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-family: var(--mlx-sans); }
.mlx-congrats-card { width: 100%; max-width: 360px; background: #FAF1D6 linear-gradient(180deg, #FFFDF7, #FAF1D6); color: #14231D; border: 2px solid #C9A25E; border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 22px 48px rgba(17,22,20,.38), 0 0 0 4px rgba(201,162,94,.22); text-align: center; }
.mlx-congrats-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #2A1700; color: #FFE57F; font: 800 12px/1 var(--mlx-sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.mlx-congrats-star { display: block; margin: 0 auto 8px; }
.mlx-congrats-card h2 { margin: 0 0 8px; font: 700 1.35rem/1.2 var(--mlx-serif); color: #14231D; }
.mlx-congrats-card p { margin: 0 0 12px; font: 500 .95rem/1.45 var(--mlx-sans); color: #1F2D27; }
.mlx-congrats-steps { margin: 0 0 16px; padding: 10px 14px 10px 28px; text-align: left; background: rgba(201,162,94,.16); border: 1px solid rgba(162,123,69,.38); border-radius: 14px; font: 500 .9rem/1.45 var(--mlx-sans); color: #14231D; }
.mlx-congrats-steps li + li { margin-top: 5px; }
.mlx-congrats-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 20px; border: 0; border-radius: 14px; background: #1E3B33; color: #FFFDF7; font: 700 1rem/1 var(--mlx-sans); cursor: pointer; box-shadow: 0 6px 16px rgba(30,59,51,.28); }
.mlx-congrats-btn:hover { background: #142a24; }
.mlx-congrats-btn:focus-visible { outline: 3px solid #7A5A2B; outline-offset: 2px; }
.mlx-toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 205; max-width: min(360px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: #14231D; color: #FFFDF7; border: 1.5px solid #C9A25E; box-shadow: 0 12px 28px rgba(17,22,20,.32); font: 600 .9rem/1.35 var(--mlx-sans); text-align: center; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mlx-congrats, .mlx-toast { display: none !important; } }
