/* Harness Maxxing demo layer (overlay.js), drawn over the real product UI with its own theme variables. */
#mxd { --mxd-fg: var(--popover-foreground, #fafafa); --mxd-bg: var(--popover, #18181b); --mxd-bd: var(--border, #27272a); --mxd-mut: var(--muted-foreground, #a1a1aa); --mxd-pri: var(--primary, #3c91fd); --mxd-prifg: var(--primary-foreground, #fff); font-family: var(--mx-font-sans, 'Inter Variable', ui-sans-serif, system-ui, sans-serif); }
#mxd [hidden] { display: none !important; }
.mxd-i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mxd-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--mxd-bd); background: var(--mxd-bg); color: var(--mxd-fg); font: 500 13px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, transform .12s; }
.mxd-btn:hover { background: color-mix(in oklab, var(--mxd-fg) 8%, var(--mxd-bg)); }
.mxd-btn:active { transform: scale(.97); }
.mxd-btn.pri { background: var(--mxd-pri); border-color: transparent; color: var(--mxd-prifg); }
.mxd-btn.pri:hover { background: color-mix(in oklab, var(--mxd-pri) 88%, #fff); }
.mxd-btn.big { height: 42px; width: 100%; justify-content: center; font-size: 14.5px; border-radius: 10px; }
.mxd-ib { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--mxd-mut); cursor: pointer; }
.mxd-ib:hover { color: var(--mxd-fg); background: color-mix(in oklab, var(--mxd-fg) 8%, transparent); }
.mxd-btn:focus-visible, .mxd-ib:focus-visible, .mxd-launch:focus-visible { outline: 2px solid var(--mxd-pri); outline-offset: 2px; }

/* demo bar: a thin strip above the app (the app is pushed down by its height, nothing is covered) */
html.mxd-barred { --mxd-bar-h: 38px; }
html.mxd-barred #root { padding-top: var(--mxd-bar-h); }
html.mxd-barred #root .h-dvh { height: calc(100dvh - var(--mxd-bar-h)) !important; }
/* phone: the app's full-screen layers (a session, sheets) pad their top with --safe-top: the bar joins it */
@media (max-width: 767px) {
  html.mxd-barred { --safe-top: calc(env(safe-area-inset-top, 0px) + var(--mxd-bar-h)); }
  html.mxd-barred #root { padding-top: 0; }
  html.mxd-barred #root .h-dvh { height: 100dvh !important; }
}
.mxd-bar { position: fixed; z-index: 2147483000; left: 0; right: 0; top: 0; height: var(--mxd-bar-h, 38px); display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; background: linear-gradient(90deg, color-mix(in oklab, var(--mxd-pri) 16%, var(--mxd-bg)), var(--mxd-bg) 60%); border-bottom: 1px solid var(--mxd-bd); color: var(--mxd-fg); animation: mxd-fade .4s .2s both; }
.mxd-bar .mxd-btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.mxd-live { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; }
.mxd-live i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: mxd-pulse 2s infinite; flex: none; }
.mxd-live b { font-size: 13px; white-space: nowrap; }
.mxd-live small { font-size: 12px; color: var(--mxd-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxd-bar .sm { display: none; }
@media (max-width: 767px) {
  .mxd-live small { display: none; }
  .mxd-bar { padding: 0 6px 0 10px; gap: 4px; }
  .mxd-bar .mxd-btn { padding: 0 8px; }
  .mxd-bar .mxd-btn span:not(.sm):not(.lg), .mxd-bar .lg, .mxd-bar .mxd-ib { display: none; }
  .mxd-bar .sm { display: inline; }
}

/* installation replay */
.mxd-term { position: fixed; inset: 0; z-index: 2147483100; background: #07080b; display: flex; }
.mxd-tw { flex: 1; display: flex; flex-direction: column; min-width: 0; color: #e4e4e7; }
.mxd-th { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #1f2026; background: #0e0f13; }
.mxd-th > div { flex: 1; min-width: 0; }
.mxd-th b { display: block; font-size: 13.5px; }
.mxd-th small { display: block; color: #8b8b95; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mxd-th .mxd-btn { background: #16171c; border-color: #2a2b33; color: #e4e4e7; }
.mxd-dots { display: flex; gap: 6px; }
.mxd-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mxd-dots i:nth-child(2) { background: #febc2e; }
.mxd-dots i:nth-child(3) { background: #28c840; }
.mxd-out { flex: 1; margin: 0; overflow: auto; padding: 22px clamp(14px, 4vw, 48px); font: 13.5px/1.45 var(--mx-font-mono, 'JetBrains Mono Variable', ui-monospace, monospace); white-space: pre; }
.mxd-out i { font-style: normal; }
.mxd-out .g { color: #3ecf8e; } .mxd-out .d { color: #8b8b95; } .mxd-out .a { color: #3b8cff; } .mxd-out .c { color: #5fafff; } .mxd-out .y { color: #ffaf00; } .mxd-out .w { color: #fff; }
.mxd-caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: #e4e4e7; animation: mxd-blink 1s steps(1) infinite; }
.mxd-tf { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid #1f2026; background: #0b0c10; color: #8b8b95; font-size: 12.5px; }
.mxd-tf span { flex: 1; }
.mxd-tf .mxd-btn { background: #16171c; border-color: #2a2b33; color: #e4e4e7; }
.mxd-launchw { display: flex; justify-content: center; padding: 18px 12px 22px; background: linear-gradient(180deg, transparent, rgba(59, 130, 246, .08)); animation: mxd-rise .35s ease-out; }
.mxd-launch { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; border: 0; border-radius: 14px; font: 700 17px/1 inherit; font-family: inherit; color: #fff; cursor: pointer; background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #22d3ee); box-shadow: 0 10px 40px rgba(37, 99, 235, .45); animation: mxd-glow 2.2s ease-in-out infinite; transition: transform .12s; }
.mxd-launch:hover { transform: translateY(-1px) scale(1.02); }
.mxd-launch:active { transform: scale(.98); }
.mxd-launch .mxd-i { width: 20px; height: 20px; }
.mxd-term.leave { animation: mxd-termout .55s ease forwards; pointer-events: none; }
html.mxd-intro body { overflow: hidden; }
html.mxd-in #root { animation: mxd-appin .8s cubic-bezier(.2, .8, .2, 1) both; }
@media (max-width: 767px) {
  .mxd-out { font-size: min(10px, 2.3vw); padding: 12px 8px; }
  .mxd-th { flex-wrap: wrap; }
  .mxd-th > div { flex-basis: calc(100% - 50px); }
  .mxd-th small { display: none; }
  .mxd-th .mxd-btn { order: 2; flex: 1 1 40%; justify-content: center; }
  .mxd-tf { flex-wrap: wrap; }
  .mxd-launch { height: 50px; font-size: 15.5px; padding: 0 20px; }
}


@keyframes mxd-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes mxd-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mxd-fade { from { opacity: 0; } }
@keyframes mxd-blink { 50% { opacity: 0; } }
@keyframes mxd-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@keyframes mxd-glow { 50% { box-shadow: 0 10px 50px rgba(37, 99, 235, .65), 0 0 0 6px rgba(59, 130, 246, .12); } }
@keyframes mxd-termout { to { opacity: 0; transform: scale(1.06); filter: blur(8px); } }
@keyframes mxd-appin { from { opacity: 0; transform: scale(.965); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { #mxd * { animation: none !important; transition: none !important; } }
/* the demo's own question before the guide: what the visitor mostly does */
.mxd-modal { position: fixed; inset: 0; z-index: 2147483050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .55); }
.mxd-card { background: var(--mxd-bg); color: var(--mxd-fg); border: 1px solid var(--mxd-bd); border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.mxd-act { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px 20px 20px; }
.mxd-act h2 { margin: 0 0 4px; font-size: 18px; font-weight: 650; }
.mxd-act p { margin: 0 0 14px; color: var(--mxd-mut); font-size: 13.5px; line-height: 1.5; }
.mxd-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mxd-choice { display: grid; gap: 3px; text-align: left; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--mxd-bd); background: transparent; color: var(--mxd-fg); font-family: inherit; cursor: pointer; transition: border-color .12s, background .12s; }
.mxd-choice:hover, .mxd-choice.on { border-color: color-mix(in oklab, var(--mxd-pri) 60%, var(--mxd-bd)); background: color-mix(in oklab, var(--mxd-fg) 5%, transparent); }
.mxd-choice:focus-visible { outline: 2px solid var(--mxd-pri); outline-offset: 2px; }
.mxd-choice b { font-size: 14px; font-weight: 600; }
.mxd-choice small { font-size: 12.5px; color: var(--mxd-mut); line-height: 1.4; }
.mxd-act:not(.mxd-lang) .mxd-choice:last-child { grid-column: 1 / -1; }
.mxd-lang .mxd-choice { text-align: center; padding: 14px 12px; }
@media (max-width: 520px) { .mxd-acts { grid-template-columns: 1fr; } }

/* the name of the product in the sidebar, in the brand blue (demo only) */
a[data-side-logo] .truncate, header span:has(> img) > .truncate { color: #2974F3; }
