/* Layout: one column, lots of room, one accent. The video, the panel and the price do the talking. */
:root {
  /* charcoal greys + dusty rose, sampled from the reference menu */
  --void: #1c1c1c;     /* page / field background */
  --frame: #222222;    /* header bar */
  --plate: #222222;    /* panel body */
  --plate-hi: #2a2a2a; /* panel header strip, hover */
  --line: #2e2e2e;
  --line-2: #3a3a3a;
  --rule: #a3959a;     /* the thin rose divider under headers */
  --ink: #efefef;
  --label: #cccacb;
  --mute: #8c8c8c;
  --astral: #a8878f;   /* dusty rose accent */
  --astral-hi: #bb9ea6;
  --astral-ink: #1a1718;
  --bad: #d98b8b;
  --good: #9fc3a0;
  --r: 8px;
  --r-sm: 6px;
  --f: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  --head-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 20px); }
body { margin: 0; background: var(--void); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--astral); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--f); font-weight: 600; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.04; letter-spacing: -0.035em; }
p { margin: 0; }
.lead { color: var(--mute); font-size: 18px; line-height: 1.55; max-width: 48ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font: 600 15px/1 var(--f); text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn[hidden] { display: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-buy { background: var(--astral); color: var(--astral-ink); }
.btn-buy { transition: background .2s ease, box-shadow .25s ease, transform .15s ease; }
.btn-buy:hover { background: var(--astral-hi); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--plate-hi); }
.btn-sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: var(--r-sm); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--frame); }
.head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--frame);
  border-bottom: 1px solid var(--rule); transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.head.scrolled { background: var(--frame); }
.head .wrap { height: var(--head-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand svg { width: 25px; height: 25px; }
.wm { /* the app's own wordmark */
  display: block; width: 68px; height: 16px; margin-top: -1px;
  background: linear-gradient(105deg, #ffffff 15%, #e4d6da 55%, #b89ca3 100%);
  -webkit-mask: url("assets/wordmark.png") left center / contain no-repeat;
          mask: url("assets/wordmark.png") left center / contain no-repeat;
}
.nav { display: flex; gap: 26px; }
.nav a { color: var(--mute); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a { transition: color .2s ease; }
.nav a:hover, .nav a.on { color: var(--ink); }
.head-cta { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 820px) {
  .nav { display: none; }
  .head-cta .btn-ghost span { display: none; }
  .head-cta .btn-ghost { width: 38px; padding: 0; }
}

/* hero */
.hero { padding-block: 96px 40px; }
.hero h1 { font-size: clamp(50px, 8.4vw, 100px); line-height: .95; letter-spacing: -0.05em; max-width: 11ch; }
.hero .lead { margin-top: 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
@media (max-width: 700px) { .hero { padding-block: 56px 28px; } .hero .lead { font-size: 17px; } }

/* showcase */
.show { margin-top: 64px; padding: 8px; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: #000; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.stage video.on { opacity: 1; }
.stage-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 24px 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  background: linear-gradient(transparent, rgba(6, 5, 9, .8)); pointer-events: none;
}
.stage-cap .t { display: grid; gap: 4px; }
.stage-cap .t.swap { animation: cap-in .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cap-in { from { opacity: 0; transform: translateY(8px); } }
.stage-cap strong { font: 600 clamp(22px, 3vw, 30px)/1.1 var(--f); letter-spacing: -0.02em; }
.stage-cap span { font-size: 14px; color: #cfcfcf; }
.stage-ctl { display: flex; gap: 8px; pointer-events: auto; }
.stage-ctl button {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer;
  background: rgba(34, 34, 34, .8); border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stage-ctl button:hover { background: rgba(48, 48, 48, .9); }
.stage-ctl svg { width: 18px; height: 18px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 6px 6px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--void); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; cursor: pointer; height: 32px; padding: 0 14px; border-radius: 4px; font: 500 14px/1 var(--f); color: var(--mute); }
.seg button[aria-selected="true"] { background: var(--plate-hi); color: var(--ink); }
.rail-count { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rail { display: flex; gap: 6px; }
.tab { transition: background .2s ease, border-color .2s ease; }
.tab { flex: 1 1 0; text-align: left; cursor: pointer; padding: 12px 12px 14px; border-radius: var(--r-sm); background: transparent; border: 1px solid transparent; display: grid; gap: 2px; min-width: 0; }
.tab[hidden] { display: none; }
.tab:hover { background: var(--plate-hi); }
.tab[aria-selected="true"] { background: var(--plate-hi); border-color: var(--line); }
.tab b { font: 600 15px/1.3 var(--f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab i { font-style: normal; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab .bar { height: 2px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.tab .bar > span { display: block; height: 100%; width: 0%; background: var(--astral); }
@media (max-width: 860px) {
  .show { margin-top: 44px; padding: 6px; border-radius: var(--r); }
  .stage { border-radius: var(--r-sm); }
  .stage-cap { padding: 44px 14px 12px; }
  .stage-ctl button { width: 36px; height: 36px; }
  .rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 140px; scroll-snap-align: start; }
}
@media (max-width: 480px) { .stage-cap span { display: none; } }

/* sections */
.section { padding-block: 120px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; }
@media (max-width: 700px) { .section { padding-block: 80px; } .section-head { margin-bottom: 36px; } }

/* features: a plain spec list */
.feats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; margin: 0; }
.feats div { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.feats dt { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.feats dd { margin: 6px 0 0; color: var(--mute); font-size: 16px; max-width: 46ch; }
@media (max-width: 760px) { .feats { grid-template-columns: 1fr; } }

/* try it: the live panel */
.app-plate { padding: 10px; display: flex; justify-content: center; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); }
.app-hint { margin-top: 16px; color: var(--mute); font-size: 14px; text-align: center; }

/* pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.plan { transition: border-color .25s ease, transform .25s ease; }
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan-best:hover { border-color: rgba(168, 135, 143, .8); }
.plan { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 10px; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan h3 { margin: -30px -30px 6px; padding: 13px 30px; font-size: 14px; font-weight: 600; background: var(--plate-hi); border-bottom: 1px solid var(--rule); }
.price { font: 600 68px/1 var(--f); letter-spacing: -0.05em; margin-top: 14px; }
.price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: 10px; }
.plan-note { color: var(--mute); font-size: 15px; margin-top: 6px; }
.plan .btn { margin-top: auto; width: 100%; height: 52px; font-size: 16px; }
.plan-note + .btn { margin-top: 34px; }
.plan-best { background: var(--plate); border-color: rgba(168, 135, 143, .55); }
.tag { position: absolute; top: 10px; right: 14px; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; color: var(--astral-ink); background: var(--astral); }
.plan-incl { padding: 30px 0 30px 18px; display: grid; gap: 18px; align-content: start; }
.plan-incl h3 { font-size: 17px; font-weight: 600; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.incl li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.incl li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--astral);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.secure { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mute); font-size: 14px; text-align: center; }
.secure svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } .plan-incl { grid-column: 1 / -1; padding: 16px 0 0; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan-best { order: -1; } .price { font-size: 60px; } }

/* after a purchase */
.paid {
  position: fixed; z-index: 20; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px;
  background: rgba(34, 34, 34, .97); border: 1px solid var(--line-2); border-radius: var(--r);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.paid { opacity: 0; translate: 0 14px; transition: opacity .25s ease, translate .3s cubic-bezier(.2,.7,.2,1); }
.paid.in { opacity: 1; translate: 0 0; }
.paid[hidden] { display: none; }
.paid-ic { width: 38px; height: 38px; flex: none; }
.paid div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.paid strong { font-size: 16px; font-weight: 600; }
.paid span { color: var(--mute); font-size: 14px; line-height: 1.35; }
.paid .btn { flex: none; }
.paid-x { flex: none; width: 30px; height: 30px; border: 0; background: none; color: var(--mute); font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.paid-x:hover { color: var(--ink); background: var(--plate-hi); }

/* faq */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { display: grid; gap: 14px; justify-items: start; }
.faq-side .btn { margin-top: 10px; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--mute), var(--mute)) center / 14px 1.5px no-repeat, linear-gradient(var(--mute), var(--mute)) center / 1.5px 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.closing summary::after { transform: none; }
.faq details p { overflow: hidden; }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: #fff; }
.faq details p { color: var(--mute); padding: 0 0 22px; max-width: 62ch; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 52px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-r { display: flex; align-items: center; gap: 24px; }
.foot-r a, .foot small { color: var(--mute); text-decoration: none; font-size: 14px; }
.foot-r a:hover { color: var(--ink); }

/* =====================================================================
   the astral panel, rebuilt from the app's own layout (176 + 632 x 500, Montserrat, 9pt rows, 25px rows)
   colours come from the app's palette maths, set as --vars by the script for the chosen theme
   ===================================================================== */
@property --wp { syntax: "<percentage>"; inherits: false; initial-value: 110%; }
.ax {
  --bg: #0b0a10; --side: #0c0b11; --text: #f5f2fb; --muted: #a29fb6; --soft: #c3a9fa; --acc: #8b5cf6;
  position: relative; width: 808px; height: 500px; flex: none;
  display: grid; grid-template-columns: 176px 632px;
  background: var(--bg); color: var(--text); border-radius: 12px; overflow: hidden;
  font: 500 12px/1.2 "Montserrat", "Segoe UI", system-ui, sans-serif;
  -webkit-user-select: none; user-select: none; text-align: left; letter-spacing: 0;
}
.ax * { box-sizing: border-box; }
:where(.ax) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:where(.ax) button:disabled { cursor: default; }
.ax :focus-visible { outline: 1.5px solid var(--soft); outline-offset: 1px; border-radius: 7px; }
.ax-i { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sidebar */
.ax-side { position: relative; background: var(--side); border-right: 1px solid var(--sideline); }
.ax-brand { position: absolute; left: 14px; top: 13px; display: flex; gap: 8px; align-items: flex-start; }
.ax-logo { width: 30px; height: 30px; display: block; }
.ax-word {
  display: block; width: 73px; height: 17px; margin-top: 0;
  background: linear-gradient(105deg, #ffffff 12%, var(--soft) 52%, var(--acc) 100%);
  -webkit-mask: url("assets/wordmark.png") left top / contain no-repeat;
          mask: url("assets/wordmark.png") left top / contain no-repeat;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--acc) 45%, transparent));
}
.ax-ver { display: block; margin-top: 4px; margin-left: 1px; font-size: 9.33px; color: var(--muted); }
.ax-sec { position: absolute; left: 16px; margin: 0; font: 600 9.33px/1 "Montserrat", sans-serif; letter-spacing: .05em; color: var(--dim); }
.ax-navsel {
  position: absolute; left: 10px; width: 156px; height: 28px; border-radius: 8px; background: var(--navsel);
  transition: top .24s cubic-bezier(.2, .8, .2, 1);
}
.ax-navsel::before { content: ""; position: absolute; left: 1px; top: 7px; width: 3px; height: 14px; border-radius: 1.5px; background: var(--soft); }
.ax-nb {
  position: absolute; left: 10px; width: 156px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; gap: 8.5px; padding-left: 10.5px; color: var(--navtext);
}
.ax-nb .ax-i { width: 13px; height: 13px; }
.ax-nb:hover:not(.on) { background: var(--navhov); color: color-mix(in srgb, var(--muted) 40%, var(--text)); }
.ax-nb.on { color: var(--text); font-weight: 600; }
.ax-nb.on .ax-i { color: var(--soft); }
.ax-live { position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ok); animation: ax-pulse 2.1s ease-in-out infinite; }
.ax.is-paused .ax-live { background: var(--muted); animation: none; }
@keyframes ax-pulse { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); filter: brightness(1.25); } }
.ax-stc {
  position: absolute; left: 10px; right: 10px; top: 348px; height: 112px;
  border-radius: 10px; background: var(--stcard); border: 1px solid var(--stcardb);
}
.ax-stt { position: absolute; left: 9px; top: 10px; margin: 0; display: flex; align-items: center; gap: 6px; font: 600 10.67px/1 "Montserrat", sans-serif; letter-spacing: .03em; }
.ax-sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ax-sdot.ok { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ax-glow 2.1s ease-in-out infinite; }
.ax-sdot.warn { background: var(--warn); }
@keyframes ax-glow { 50% { box-shadow: 0 0 6px 2px color-mix(in srgb, var(--ok) 55%, transparent); } }
.ax-sts { position: absolute; left: 8px; right: 8px; top: 31px; margin: 0; font-size: 9.33px; line-height: 1.35; color: var(--muted); white-space: pre-wrap; }
.ax-stc .ax-pill { position: absolute; left: 7px; right: 7px; bottom: 9px; height: 22px; border-radius: 8px; }
.ax-foot { position: absolute; left: 16px; right: 12px; bottom: 13px; height: 14px; display: flex; align-items: center; gap: 9px; }
.ax-bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.ax-bars i { width: 3px; background: var(--ok); }
.ax-bars i:nth-child(1) { height: 4px; } .ax-bars i:nth-child(2) { height: 7px; } .ax-bars i:nth-child(3) { height: 10px; }
.ax-foot b { font: 600 10.67px/1 "Montserrat", sans-serif; color: var(--ok); }
.ax-foot small { margin-left: auto; font-size: 9.33px; color: var(--dim); }

/* main: tab strip + two columns of panels */
.ax-main { position: relative; min-width: 0; }
.ax-top {
  position: absolute; left: 12px; right: 12px; top: 0; height: 46px;
  display: flex; align-items: center; gap: 4px; padding-top: 2px;
  border-bottom: 1px solid var(--topline);
}
.ax-tab {
  position: relative; flex: none; height: 26px; padding: 0 12px; border-radius: 8px;
  font-weight: 600 !important; color: var(--muted) !important; border: 1px solid transparent !important;
}
.ax-tab:hover:not(.on) { background: var(--tabhov) !important; color: color-mix(in srgb, var(--muted) 45%, var(--text)) !important; }
.ax-tab.on { background: var(--tabsel) !important; border-color: var(--tabselb) !important; color: var(--text) !important; }
.ax-tab .ax-live { right: auto; left: calc(100% - 9px); top: 2px; margin-top: 0; }
.ax-info { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--dim) !important; border-radius: 6px; }
.ax-info:hover { color: var(--soft) !important; }
.ax-info .ax-i { width: 14px; height: 14px; }
.ax-page {
  position: absolute; left: 12px; right: 12px; top: 56px; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start;
}
.ax-page.wipe {
  -webkit-mask-image: linear-gradient(#000 var(--wp), transparent calc(var(--wp) + 18%));
          mask-image: linear-gradient(#000 var(--wp), transparent calc(var(--wp) + 18%));
  animation: ax-wipe .32s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes ax-wipe { from { --wp: -18%; } to { --wp: 110%; } }
.ax-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.ax-p { position: relative; background: var(--card); border: 1px solid var(--pb); border-radius: 10px; padding-bottom: 8px; }
.ax-ph { position: relative; height: 30px; display: flex; align-items: center; gap: 7px; padding-left: 11px; padding-right: 12px; }
.ax-ph > .ax-i { color: var(--soft); }
.ax-ph h4 { margin: 0; font: 600 10.67px/1 "Montserrat", sans-serif; letter-spacing: .03em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-dh { margin-left: auto; display: flex; gap: 6px; }
.ax-dh b { width: 78px; text-align: center; font: 500 9.33px/1 "Montserrat", sans-serif; letter-spacing: .03em; color: var(--dim); }
.ax-ph .ax-chk { margin-left: auto; margin-right: -1px; }
.ax-r { position: relative; height: 25px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; }
.ax-r::before { content: ""; position: absolute; inset: 1px 4px; border-radius: 6px; background: var(--rowhi); opacity: 0; transition: opacity .12s; pointer-events: none; }
.ax-r:hover::before { opacity: 1; }
.ax-r > * { position: relative; }
.ax-l { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-l.ax-mut { color: var(--muted); }
.ax-r[data-chkrow] { cursor: pointer; }
.ax-dot { position: absolute !important; left: 5.5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--soft) !important; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ax-dot.on { opacity: 1; pointer-events: auto; }
.ax-dot::after { content: ""; position: absolute; inset: -6px; }

/* number stepper  -  525  + */
.ax-st { flex: none; display: flex; align-items: center; height: 22px; border-radius: 7px; background: var(--field); border: 1px solid var(--stepb); }
.ax-st:hover { border-color: var(--stepbh); }
.ax-st:focus-within { border-color: var(--soft); box-shadow: 0 0 0 .4px var(--soft); }
.ax-sb { width: 22px; height: 20px; display: grid; place-items: center; color: var(--soft) !important; border-radius: 50%; touch-action: manipulation; }
.ax-sb .ax-i { width: 10px; height: 10px; }
.ax-sb:hover { color: var(--text) !important; background: radial-gradient(circle, var(--hi) 0 8.5px, transparent 9px) !important; }
.ax-sv {
  flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); text-align: center; font: 600 12px/1 "Montserrat", sans-serif; -webkit-user-select: text; user-select: text;
}
.ax-st:has(.ax-sv:focus) { outline: none; }

/* checkbox */
.ax-chk { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 4.5px; background: var(--field) !important; border: 1px solid var(--chkoffb) !important; color: transparent !important; }
.ax-chk .ax-i { width: 11px; height: 11px; stroke-width: 2.6; }
.ax-chk.on { background: var(--acc) !important; border-color: var(--chkonb) !important; color: #fff !important; }
.ax-r:hover .ax-chk:not(.on), .ax-chk:hover:not(.on) { border-color: color-mix(in srgb, var(--border) 40%, var(--acc)) !important; }

/* pills */
.ax-pill {
  height: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px;
  border-radius: 7px; background: var(--pillf) !important; border: 1px solid var(--border) !important; color: var(--pilltext) !important;
  font: 600 10.67px/1 "Montserrat", sans-serif !important; white-space: nowrap; transition: background .15s, border-color .15s;
}
.ax-pill:hover { background: var(--hi) !important; border-color: var(--pillbh) !important; }
.ax-pill.ax-fill { background: var(--fill) !important; border-color: var(--fillb) !important; color: var(--onfill) !important; }
.ax-pill.ax-fill:hover { background: var(--fillh) !important; }
.ax-r-2 { gap: 8px; padding: 0 12px; } .ax-r-2 .ax-pill { flex: 1; }
.ax-r-1 { padding: 0 12px; margin-top: 4px; } .ax-r-1 .ax-pill { flex: 1; }
.ax-r-hb { padding: 0 12px; gap: 10px; }

/* dropdowns + menus */
.ax-dd { position: relative; flex: none; }
.ax-r-hb .ax-dd { flex: 1; min-width: 0; }
.ax-ddb {
  width: 100%; height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 9px; border-radius: 7px;
  background: var(--field) !important; border: 1px solid var(--stepb) !important; font-size: 10.67px !important;
}
.ax-ddb:hover, .ax-dd.open .ax-ddb { border-color: var(--stepbh) !important; }
.ax-ddb > .ax-i:first-child { color: var(--soft); }
.ax-ddb span { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax-ddb > .ax-i:last-child { width: 10px; height: 10px; color: var(--muted); transition: transform .15s; }
.ax-dd.open .ax-ddb > .ax-i:last-child { transform: rotate(180deg); }
.ax-chip { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ax-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 100%; padding: 4px;
  background: var(--pop); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
  display: grid; gap: 1px;
}
.ax-menu[hidden] { display: none; }
.ax-mi { height: 24px; display: flex; align-items: center; gap: 7px; padding: 0 8px; border-radius: 6px; color: var(--muted) !important; font-size: 10.67px !important; white-space: nowrap; text-align: left; }
.ax-mi:hover { background: var(--hi) !important; color: var(--text) !important; }
.ax-mi.on { color: var(--text) !important; }
.ax-mi span { flex: 1; }
.ax-mi em { font-style: normal; color: var(--ok); font-size: 9.33px; }
.ax-mi > .ax-i { width: 11px; height: 11px; color: var(--soft); }
.ax-mi small { display: block; margin-top: 2px; color: var(--muted); font-size: 9.33px; }
.ax-menu.ax-modes .ax-mi { height: auto; padding: 6px 8px; align-items: flex-start; }

/* keybinds, mode chips, hotbar states */
.ax-key {
  width: 84px; height: 22px; flex: none; border-radius: 7px; padding: 0 6px;
  background: var(--pillf) !important; border: 1px solid var(--border) !important; color: var(--pilltext) !important;
  font: 600 10.67px/1 "Montserrat", sans-serif !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ax-key:hover { background: var(--hi) !important; border-color: var(--pillbh) !important; }
.ax-key.on { border-color: var(--soft) !important; color: var(--text) !important; animation: ax-blink 1s steps(2) infinite; }
@keyframes ax-blink { 50% { background: var(--hi); } }
.ax-modew { position: relative; flex: none; }
.ax-mode { height: 20px; padding: 0 9px; border-radius: 10px; background: var(--field) !important; border: 1px solid var(--stepb) !important; color: var(--muted) !important; font-size: 10.67px !important; }
.ax-mode:not(:disabled):hover { border-color: var(--stepbh) !important; color: var(--text) !important; }
.ax-state { flex: none; font-size: 10.67px; }
.ax-state.ok { color: var(--ok); } .ax-state.warn { color: var(--warn); }
.ax-ping { flex: none; font-size: 10.67px; color: var(--muted); }

/* help bubble + toast */
.ax-tip {
  position: absolute; z-index: 40; width: 250px; padding: 9px 11px 10px; border-radius: 9px; pointer-events: none;
  background: var(--pop); border: 1px solid var(--border); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(3px); transition: opacity .14s, transform .14s;
}
.ax-tip.show { opacity: 1; transform: none; }
.ax-tip b { display: block; font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.ax-tip p { margin: 0; font-size: 10.67px; line-height: 1.45; color: var(--muted); white-space: pre-line; }
.ax-toast {
  position: absolute; right: 14px; bottom: 14px; z-index: 35; max-width: 470px; min-height: 32px; display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; border-radius: 9px; background: var(--pop); border: 1px solid color-mix(in srgb, var(--border) 60%, var(--c, var(--ok)));
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.ax-toast.show { opacity: 1; transform: none; }
.ax-toast i { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--pop) 80%, var(--c)); }
.ax-toast i .ax-i { width: 11px; height: 11px; }

/* hidden with the show/hide key */
.ax-side, .ax-main { transition: opacity .17s ease, transform .17s ease; }
.ax.is-hidden .ax-side, .ax.is-hidden .ax-main { opacity: 0; transform: translateY(10px); pointer-events: none; }
.ax-unhide { position: absolute; inset: 0; z-index: 50; display: none; place-items: center; color: var(--muted) !important; font-size: 12px !important; }
.ax.is-hidden .ax-unhide { display: grid; }
.ax-unhide span { padding: 10px 16px; border: 1px dashed var(--border); border-radius: 10px; }

/* phones: the sidebar folds into a header, panels stack */
.ax.ax-m { display: block; height: auto; min-height: 460px; grid-template-columns: none; }
.ax-m .ax-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--sideline); }
.ax-m .ax-brand, .ax-m .ax-stc, .ax-m .ax-nb { position: static; }
.ax-m .ax-sec, .ax-m .ax-navsel, .ax-m .ax-foot, .ax-m .ax-sts { display: none; }
.ax-m .ax-stc { margin-left: auto; height: auto; display: flex; align-items: center; gap: 10px; background: none; border: 0; }
.ax-m .ax-stt { position: static; }
.ax-m .ax-stc .ax-pill { position: static; padding: 0 10px; }
.ax-m .ax-navwrap { order: 3; flex: 1 1 100%; display: flex; gap: 4px; }
.ax-m .ax-nb { position: relative; top: auto !important; flex: 1; width: auto; justify-content: center; padding: 0 8px; }
.ax-m .ax-nb.on { background: var(--navsel); }
.ax-m .ax-nb .ax-live { display: none; }
.ax-m .ax-main { padding-bottom: 60px; }
.ax-m .ax-top { position: relative; left: auto; right: auto; margin: 0 12px; overflow-x: auto; scrollbar-width: none; }
.ax-m .ax-top::-webkit-scrollbar { display: none; }
.ax-m .ax-page { position: relative; inset: auto; padding: 10px 12px 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ax-m .ax-top:empty { display: none; }
.ax-m .ax-col { display: contents; }
.ax-m .ax-tip { width: 230px; }

/* ---------- motion ---------- */

/* the header tucks away while you scroll down and comes back when you scroll up */
.head { transition: background .3s ease, border-color .3s ease, translate .45s cubic-bezier(.16, 1, .3, 1); }
.head.away { translate: 0 -100%; }

/* things rise into place as they come into view; headings slide up out of a mask */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 1; translate: 0 0; }
  .js .hero h1.rv { opacity: 1; translate: 0 0; }
  .js .ln > span { translate: 0 0; }

  /* a thin lavender line draws across the top of each feature as it appears */
  .feats div { position: relative; }
  .feats div::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px;
    background: linear-gradient(90deg, rgba(168, 135, 143, .9), rgba(168, 135, 143, 0) 75%);
    transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.16, 1, .3, 1) calc(var(--d, 0ms) + 150ms);
  }
  .feats div.in::before { transform: scaleX(1); }

  /* each clip settles in with a slow push */
  .stage video.on { animation: push 7s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes push { from { scale: 1.06; } to { scale: 1; } }

  /* the showcase and the panel grow into place with the scroll (the script sets their scale) */
  .show, .app-plate { transform-origin: 50% 0; will-change: scale; }
  .hero-copy { will-change: translate, opacity; }
}

/* with reduced motion turned on, things still fade in, they just don't move */
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 0; transition: opacity .6s ease; transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .stage video { transition: none; }
  .ax *, .ax-page.wipe { animation: none !important; transition: none !important; }
  .head { transition: none; }
}

/* simplified live menu demo */
.ax-nb { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--mute); padding: 8px 12px; border-radius: 8px; cursor: pointer; font: inherit; }
.ax-nb.on { background: color-mix(in srgb, var(--acc) 18%, transparent); color: #fff; }
.ax-tab { background: none; border: 0; color: var(--mute); padding: 6px 10px; border-radius: 7px; cursor: pointer; font: inherit; }
.ax-tab.on { background: color-mix(in srgb, var(--acc) 22%, transparent); color: #fff; }
.ax-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.ax-row:last-child { border-bottom: 0; }
.ax-chk { width: 36px; height: 20px; border-radius: 99px; border: 0; background: #2a2833; position: relative; cursor: pointer; }
.ax-chk.on { background: var(--acc); }
.ax-chk::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ax-chk.on::after { transform: translateX(16px); }
.ax-key, .ax-sel { background: #1c1b22; color: #eee; border: 1px solid #333; border-radius: 6px; padding: 4px 8px; font: inherit; cursor: pointer; }
.ax-row b.ok { color: #34d399; }
.ax-pb { padding: 4px 2px 8px; }

/* ===== real-menu live demo ===== */
.gui {
  --acc: #8b5cf6;
  background: #121214;
  border: 1px solid #2a2a30;
  border-radius: 14px;
  overflow: hidden;
  color: #e8e8ec;
  font-size: 13px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.gui-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #2a2a30; background: #16161a;
}
.gui-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.gui-brand em { font-style: normal; font-size: 11px; background: color-mix(in srgb, var(--acc) 30%, #222); color: #fff; padding: 2px 6px; border-radius: 99px; }
.gui-search { background: #1c1c22; border: 1px solid #333; border-radius: 8px; padding: 6px 12px; color: #888; min-width: 180px; }
.gui-body { display: flex; flex: 1; min-height: 280px; }
.gui-side { width: 160px; border-right: 1px solid #2a2a30; padding: 10px 8px; background: #141418; }
.gui-side .lbl { font-size: 10px; letter-spacing: .08em; color: #888; margin: 4px 8px 8px; }
.gui-side button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: 0; color: #bbb; padding: 7px 8px; border-radius: 8px; cursor: pointer; font: inherit;
}
.gui-side button.on { background: color-mix(in srgb, var(--acc) 22%, #1a1a20); color: #fff; }
.gui-side .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #444; }
.gui-side button.on .dot { background: #34d399; }
.gui-main { flex: 1; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.gui-card { background: #1a1a1f; border: 1px solid #2e2e36; border-radius: 10px; padding: 12px 14px; }
.gui-card h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.gui-card h4::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--acc) 50%, #333); margin-left: 8px; }
.gui-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.gui-chk { width: 34px; height: 18px; border-radius: 99px; border: 0; background: #333; position: relative; cursor: pointer; }
.gui-chk.on { background: var(--acc); }
.gui-chk::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gui-chk.on::after { transform: translateX(16px); }
.gui-key { background: #222; border: 1px solid #3a3a44; color: #ddd; border-radius: 6px; padding: 3px 8px; font: inherit; cursor: pointer; }
.gui-row b.ok { color: #34d399; }
.gui-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-top: 1px solid #2a2a30; background: #16161a;
}
.gui-sess { font-size: 11px; color: #888; }
.gui-nav { display: flex; gap: 4px; }
.gui-nav button {
  background: none; border: 0; color: #999; padding: 8px 12px; border-radius: 8px; cursor: pointer; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px;
}
.gui-nav button.on { background: color-mix(in srgb, var(--acc) 20%, #1a1a20); color: #fff; }
.gui-power { background: color-mix(in srgb, var(--acc) 25%, #1a1a20); color: #fff; border: 1px solid color-mix(in srgb, var(--acc) 40%, #333); border-radius: 10px; padding: 8px 14px; cursor: pointer; font: inherit; }

/* ============================ account + auth modal ============================ */
body.no-scroll { overflow: hidden; }

/* header account chip */
.acct #acctLabel { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct.is-in { border-color: rgba(168,135,143,.6); color: var(--ink); }
.acct.is-in svg { color: var(--astral); }
@media (max-width: 820px) { .acct span { display: none; } .acct { width: 38px; padding: 0; } }

/* modal shell */
.auth { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.auth[hidden] { display: none; }
.auth-scrim {
  position: absolute; inset: 0; background: rgba(10,10,10,.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .18s ease;
}
.auth.open .auth-scrim { opacity: 1; }
.auth-card {
  position: relative; width: 100%; max-width: 400px;
  background: var(--plate);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px 24px 24px;
  box-shadow: 0 40px 120px -40px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity .2s ease, transform .2s cubic-bezier(.2,.7,.2,1);
}
.auth.open .auth-card { opacity: 1; transform: none; }

.auth-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; cursor: pointer;
  border-radius: var(--r-sm); background: transparent; color: var(--mute); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: background .15s ease, color .15s ease;
}
.auth-x:hover { background: var(--plate-hi); color: var(--ink); }

.auth-top { text-align: center; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.auth-wm { display: block; width: 86px; height: 20px; margin: 0 auto 14px; }
.auth-top h2 { font-size: 23px; letter-spacing: -0.02em; }
.auth-subtxt { color: var(--mute); font-size: 14px; margin-top: 5px; }

/* login/register tabs */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px;
  background: var(--void); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 18px;
}
.auth-tab {
  border: 0; background: transparent; cursor: pointer; height: 38px; border-radius: 4px;
  font: 600 14px/1 var(--f); color: var(--mute); transition: background .15s ease, color .15s ease;
}
.auth-tab[aria-selected="true"] { background: var(--plate-hi); color: var(--ink); }

/* fields */
.auth-field { display: grid; gap: 7px; margin-bottom: 14px; }
.auth-field[hidden] { display: none; }
.auth-field > span { font-size: 13px; font-weight: 500; color: var(--label); }
.auth-field input {
  height: 46px; padding: 0 14px; border-radius: var(--r-sm); width: 100%;
  background: var(--void); border: 1px solid var(--line-2); color: var(--ink);
  font: 400 15px/1 var(--f); transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input::placeholder { color: #666666; }
.auth-field input:focus { outline: none; border-color: var(--astral); box-shadow: 0 0 0 3px rgba(168,135,143,.22); }
.auth-hint { font-size: 12px; color: var(--mute); line-height: 1.4; }

.auth-err {
  margin: 2px 0 14px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.45;
  color: #f0c4c4; background: rgba(217,110,110,.1); border: 1px solid rgba(217,110,110,.3);
}

.auth-submit { width: 100%; height: 48px; margin-top: 4px; }
.auth-submit.loading { pointer-events: none; opacity: .7; position: relative; color: transparent; }
.auth-submit.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(26,23,24,.35); border-top-color: var(--astral-ink); animation: auth-spin .6s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-swap { text-align: center; margin-top: 16px; font-size: 14px; color: var(--mute); }
.auth-link { border: 0; background: transparent; cursor: pointer; color: var(--astral); font: 600 14px/1 var(--f); padding: 0; }
.auth-link:hover { text-decoration: underline; }

/* account card */
.acct-card { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--void); }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.acct-row + .acct-row { border-top: 1px solid var(--line); }
.acct-row span { color: var(--mute); font-size: 14px; }
.acct-row b { font-weight: 600; font-size: 14.5px; text-align: right; }
.acct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.acct-actions .btn { width: 100%; }

@media (max-width: 460px) {
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .acct-actions { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- account / dashboard page */
.acct-body { min-height: 100vh; display: flex; flex-direction: column; }
.acct-body .head .wrap { justify-content: space-between; }
.acct-main { flex: 1; display: flex; align-items: center; padding: 48px 0 64px; }
.acct-wrap { width: 100%; }

.acct-loading { display: grid; place-items: center; gap: 14px; padding: 120px 0; color: var(--mute); font-size: 14px; }
.acct-loading[hidden] { display: none; }
.acct-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--astral);
  animation: auth-spin .8s linear infinite;
}

.acct-guest { max-width: 420px; margin: 0 auto; text-align: center; padding: 60px 0; }
.acct-guest-wm { display: block; width: 110px; height: 26px; margin: 0 auto 20px; }
.acct-guest h1 { font-size: 26px; margin-bottom: 10px; }
.acct-guest .lead { margin: 0 auto 24px; }

.acct-home { max-width: 920px; margin: 0 auto; }

/* two zones: a quiet, content-sized download stage + a disciplined profile/
   license sidebar. deliberately asymmetric — the stage never stretches to
   match the sidebar's height, so it stays the size its content actually needs. */
.acct-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

/* ---- stage: download (the one bold element on the page) ---- */
.acct-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  padding: 24px 24px 28px;
  background: var(--plate);
  border: 1px solid var(--line);
}
/* panel header strip: lighter bar + thin rose rule, straight from the menu */
.panel-h {
  display: flex; align-items: center; height: 44px; padding: 0 24px;
  background: var(--plate-hi); border-bottom: 1px solid var(--rule);
}
.panel-h h1, .panel-h h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.acct-stage .panel-h { margin: -24px -24px 22px; }
.acct-side .panel-h { margin: -24px -24px 0; }
.acct-stage-body { max-width: 440px; }
.acct-stage .lead { font-size: 15px; max-width: 36ch; }
.acct-dl-btn { width: auto; min-width: 240px; height: 46px; padding: 0 24px; margin-top: 22px; }
.acct-dl-note { margin-top: 14px; font-size: 13px; color: var(--bad); min-height: 1em; }
.acct-dl-note:empty { display: none; }
.acct-stage-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.acct-pill {
  display: inline-flex; align-items: center;
  font-size: 12.5px; color: var(--mute);
  background: var(--void); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 4px;
}

/* ---- sidebar: profile + license (kept plain and quiet on purpose) ---- */
.acct-side {
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; display: flex; flex-direction: column; gap: 18px; overflow: hidden;
}
.acct-side-id { text-align: center; }
.acct-side-id h2 { font-size: 18px; letter-spacing: -0.01em; }

.acct-avatar {
  position: relative; width: 56px; height: 56px; border-radius: var(--r); flex: none;
  display: grid; place-items: center; background: var(--plate-hi);
  border: 1px solid var(--line-2); overflow: hidden;
}
.acct-side .acct-avatar { width: 64px; height: 64px; margin: 0 auto 14px; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-avatar img[hidden] { display: none; }
.acct-avatar-fallback {
  font: 700 22px/1 var(--f); color: #e4d6da;
  background: linear-gradient(160deg, rgba(168,135,143,.32), rgba(168,135,143,.08));
  width: 100%; height: 100%; display: grid; place-items: center;
}
.acct-avatar-fallback[hidden] { display: none; }
.acct-avatar-edit {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(6,5,10,0);
  color: #fff; opacity: 0; transition: opacity .15s ease, background .15s ease;
}
.acct-avatar-edit svg { width: 18px; height: 18px; }
.acct-avatar:hover .acct-avatar-edit, .acct-avatar-edit:focus-visible {
  opacity: 1; background: rgba(6,5,10,.5);
}
.acct-avatar-note { font-size: 12.5px; color: var(--mute); min-height: 1em; margin-top: 8px; }
.acct-avatar-note:empty { display: none; }

.acct-ic { width: 15px; height: 15px; margin-right: 7px; vertical-align: -3px; color: var(--mute); }

.acct-row b.is-good { color: var(--good); }
.acct-row b.is-bad { color: var(--bad); }
.acct-row .btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.acct-row .btn-sm:disabled { opacity: .55; pointer-events: none; }

.acct-side-cta { width: 100%; }

/* right column: download on top, update log under it */
.acct-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.acct-pill[hidden] { display: none; }
.acct-pill-ver { color: var(--label); border-color: rgba(168, 135, 143, .45); }

/* ---- update log: a small timeline, newest first ---- */
.acct-log {
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px; overflow: hidden;
}
.acct-log[hidden] { display: none; }
.acct-log .panel-h { margin: -24px -24px 22px; }
.log { list-style: none; margin: 0; padding: 0; }
.log-entry { position: relative; padding: 0 0 24px 26px; }
.log-entry[hidden] { display: none; }
.log-entry::before {               /* the dot */
  content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--void); border: 1.5px solid #565656;
}
.log-entry.is-latest::before { background: var(--astral); border-color: var(--astral); box-shadow: 0 0 0 4px rgba(168, 135, 143, .16); }
.log-entry::after {                /* the rail down to the next update */
  content: ""; position: absolute; left: 4.5px; top: 21px; bottom: 3px; width: 1px; background: var(--line-2);
}
.log-entry:last-child { padding-bottom: 0; }
.log-entry:last-child::after { display: none; }
.log-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.log-ver { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.log-latest { font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 4px; color: var(--astral-ink); background: var(--astral); }
.log-date { margin-left: auto; font-size: 13px; color: var(--mute); }
.log-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.log-items li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 21px; color: var(--label); }
.log-text { min-width: 0; }
.log-tag {
  flex: none; width: 64px; text-align: center; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 4px 0; border-radius: 4px; border: 1px solid transparent; margin-top: 1px;
}
.t-new { color: #dcc2c8; background: rgba(168, 135, 143, .16); border-color: rgba(168, 135, 143, .38); }
.t-fix { color: #b4d6b5; background: rgba(159, 195, 160, .10); border-color: rgba(159, 195, 160, .30); }
.t-changed { color: #cfcfcf; background: rgba(255, 255, 255, .05); border-color: var(--line-2); }
.t-removed { color: #e6abab; background: rgba(217, 139, 139, .10); border-color: rgba(217, 139, 139, .30); }
.log-bullet { flex: none; width: 64px; height: 21px; position: relative; }
.log-bullet::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--mute); }
.log-empty { color: var(--mute); font-size: 14px; }
.log-more { margin-top: 20px; width: 100%; }
@media (max-width: 480px) {
  .log-tag, .log-bullet { width: 56px; }
  .log-date { margin-left: 0; width: 100%; }
}

.acct-note { font-size: 13px; color: var(--mute); min-height: 1em; }
.acct-note:empty { display: none; }
.acct-note.is-bad { color: var(--bad); }
.acct-note.is-good { color: var(--good); }

.acct-foot-note { text-align: center; color: var(--mute); font-size: 13.5px; margin-top: 28px; }
.acct-foot-note a { color: var(--astral); text-decoration: none; }
.acct-foot-note a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .acct-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .acct-dl-btn { width: 100%; min-width: 0; }
}

/* ================================================================ admin panel */
.adm-body [hidden] { display: none !important; }   /* nothing on this page should ever override [hidden] */
.adm-body .head .wrap { justify-content: flex-start; gap: 12px; }
.adm-badge {
  font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 8px; border-radius: 4px;
  color: var(--astral-ink); background: var(--astral);
}
.adm-main { align-items: flex-start; padding-top: 36px; }
.adm-main > .wrap { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.adm { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; width: 100%; max-width: 1000px; margin: 0 auto; }

/* sidebar, like the menu's left rail */
.adm-side {
  position: sticky; top: calc(var(--head-h) + 20px);
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.adm-nav { display: grid; gap: 2px; padding: 8px; }
.adm-nb {
  position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--mute);
  font: 500 14px/1 var(--f); text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.adm-nb svg { width: 16px; height: 16px; flex: none; }
.adm-nb:hover { background: rgba(255, 255, 255, .03); color: var(--label); }
.adm-nb.on { background: var(--plate-hi); color: var(--ink); font-weight: 600; }
.adm-nb.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--astral); }
.adm-nb.on svg { color: var(--astral); }
.adm-status { border-top: 1px solid var(--line); padding: 12px 16px 14px; display: grid; gap: 8px; font-size: 12.5px; color: var(--label); }
.adm-st-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-st-row span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--mute); }
.adm-dot.ok { background: var(--good); box-shadow: 0 0 0 3px rgba(159, 195, 160, .14); }
.adm-dot.warn { background: var(--bad); box-shadow: 0 0 0 3px rgba(217, 139, 139, .14); }
.adm-st-sub { margin: -4px 0 0 15px; color: var(--mute); font-size: 12px; }
.adm-st-sub:empty { display: none; }

/* panels */
.adm-content { min-width: 0; }
.adm-tab { display: grid; gap: 20px; }
.adm-panel { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r); padding: 0 22px 22px; overflow: hidden; }
.adm-panel .panel-h { margin: 0 -22px 20px; padding: 0 22px; justify-content: space-between; gap: 12px; }
.adm-h-sub { font-size: 12.5px; color: var(--mute); }
.adm-link { border: 0; background: none; padding: 0; cursor: pointer; color: var(--astral); font: 600 13px/1 var(--f); }
.adm-link:hover { color: var(--astral-hi); text-decoration: underline; }
.adm-notice {
  margin: 0 0 18px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.45;
  color: var(--label); background: rgba(168, 135, 143, .08); border: 1px solid rgba(168, 135, 143, .3);
}
.adm-hint { margin: -6px 0 16px; font-size: 13.5px; color: var(--mute); }

/* fields */
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-grid3 { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.adm-grid3 > .adm-field { flex: 0 0 120px; }
.adm-grid3 > .adm-span { flex: 1 1 220px; }
.adm-field { display: grid; gap: 7px; min-width: 0; }
.adm-field > span, .adm-field-label { font-size: 12.5px; font-weight: 600; color: var(--label); }
.adm-field-label { margin: 22px 0 9px; }
.adm-field em, .adm-field-label em { font-style: normal; font-weight: 400; color: var(--mute); margin-left: 4px; }
.adm-field input, .adm-change input, .adm-sel, .adm-ban input {
  height: 40px; width: 100%; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--void); border: 1px solid var(--line-2); color: var(--ink);
  font: 400 14px/1 var(--f); transition: border-color .15s, box-shadow .15s;
}
.adm-field input::placeholder, .adm-change input::placeholder, .adm-ban input::placeholder { color: #666; }
.adm-field input:focus, .adm-change input:focus, .adm-sel:focus, .adm-ban input:focus {
  outline: none; border-color: var(--astral); box-shadow: 0 0 0 3px rgba(168, 135, 143, .2);
}

/* change rows: [type] [text] [x] */
.adm-changes { display: grid; gap: 8px; }
.adm-change { display: grid; grid-template-columns: 112px minmax(0, 1fr) 34px; gap: 8px; align-items: center; }
.adm-sel {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600; font-size: 13px; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 13px;
}
.adm-sel.t-new { color: #dcc2c8; } .adm-sel.t-fix { color: #b4d6b5; } .adm-sel.t-changed { color: #cfcfcf; }
.adm-sel.t-removed { color: #e6abab; } .adm-sel.t-plain { color: var(--mute); }
.adm-sel option { color: var(--ink); background: #222; }
.adm-x, .adm-icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--mute); cursor: pointer; transition: background .15s, color .15s;
}
.adm-x:hover, .adm-icon-btn:hover { background: var(--plate-hi); color: var(--ink); }
.adm-x svg, .adm-icon-btn svg { width: 15px; height: 15px; }
.adm-add {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: transparent; color: var(--label);
  font: 500 13px/1 var(--f); cursor: pointer;
}
.adm-add:hover { border-color: var(--astral); color: var(--ink); }
.adm-add svg { width: 14px; height: 14px; }

/* build drop zone */
.adm-drop {
  display: grid; justify-items: center; gap: 6px; padding: 22px 16px; text-align: center; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--void);
  transition: border-color .15s, background .15s;
}
.adm-drop svg { width: 20px; height: 20px; color: var(--mute); margin-bottom: 2px; }
.adm-drop:hover, .adm-drop.drag { border-color: var(--astral); background: rgba(168, 135, 143, .06); }
.adm-drop.has { border-style: solid; border-color: rgba(168, 135, 143, .6); }
.adm-drop.has svg { color: var(--astral); }
.adm-drop-t { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; }
.adm-drop-s { font-size: 12.5px; color: var(--mute); }
.adm-progress { height: 4px; margin-top: 10px; border-radius: 2px; background: var(--void); overflow: hidden; }
.adm-progress span { display: block; height: 100%; width: 0; background: var(--astral); transition: width .15s; }

.adm-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.adm-actions .btn { min-width: 160px; }
.adm-msg { font-size: 13.5px; color: var(--mute); margin: 0; }
.adm-msg:empty { display: none; }
.adm-msg.is-bad { color: var(--bad); }
.adm-msg.is-good { color: var(--good); }
.adm-panel > .adm-msg { margin-top: 12px; }
.btn:disabled { opacity: .5; cursor: default; }

/* duration picker */
.adm-seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--void); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.adm-seg button {
  height: 32px; padding: 0 13px; border: 0; border-radius: 4px; background: transparent; cursor: pointer;
  color: var(--mute); font: 500 13.5px/1 var(--f);
}
.adm-seg button:hover { color: var(--label); }
.adm-seg button.on { background: var(--plate-hi); color: var(--ink); box-shadow: inset 0 -2px 0 var(--astral); }

/* made keys */
.adm-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adm-keys li {
  display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 14px;
  background: var(--void); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.adm-keys code { flex: 1; min-width: 0; font: 500 14px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; color: var(--ink); overflow-wrap: anywhere; }
.adm-key-dur { font-size: 12px; color: var(--mute); white-space: nowrap; }

/* users */
.adm-search { display: flex; gap: 10px; }
.adm-grow { flex: 1; }
.adm-search .btn { height: 40px; }
.adm-pill { font-size: 11.5px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--label); }
.adm-pill.is-good { color: #b4d6b5; border-color: rgba(159, 195, 160, .35); background: rgba(159, 195, 160, .08); }
.adm-pill.is-bad { color: #e6abab; border-color: rgba(217, 139, 139, .35); background: rgba(217, 139, 139, .08); }
.adm-hwid { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500 !important; color: var(--label); }
.adm-user-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.adm-ban { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.adm-ban input { height: 38px; flex: 1; }
.adm-danger:hover, .adm-armed { border-color: rgba(217, 139, 139, .6) !important; color: #e6abab !important; }

/* update log list with edit/delete */
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 5px; }
.adm-log .log-head { flex-wrap: nowrap; }
.adm-log .log-date { margin-left: auto; }
.adm-log-act { display: flex; gap: 6px; margin-left: 10px; }
.adm-log .log-date + .adm-log-act { margin-left: 10px; }
.adm-log .log-head > .log-latest + .adm-log-act,
.adm-log .log-head > .log-ver + .adm-log-act { margin-left: auto; }

/* toast */
.adm-toast {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: min(380px, calc(100% - 40px)); padding: 11px 16px; border-radius: var(--r-sm);
  background: #2a2a2a; border: 1px solid var(--line-2); border-left: 3px solid var(--astral);
  color: var(--ink); font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s;
}
.adm-toast.in { opacity: 1; transform: none; }
.adm-toast.is-bad { border-left-color: var(--bad); }

@media (max-width: 820px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; }
  .adm-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nb { flex: none; }
  .adm-nb.on::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 2px; }
  .adm-status { grid-template-columns: 1fr 1fr; }
  .adm-st-sub { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .adm-panel { padding: 0 16px 18px; }
  .adm-panel .panel-h { margin: 0 -16px 18px; padding: 0 16px; }
  .adm-grid2 { grid-template-columns: 1fr; }
  .adm-change { grid-template-columns: 96px minmax(0, 1fr) 30px; }
  .adm-actions .btn { width: 100%; }
  .adm-log .log-head { flex-wrap: wrap; }
  .adm-log-act { width: 100%; margin-left: 0 !important; }
  .adm-badge { display: none; }
}

/* key logins show a partly hidden license key as the account name */
.acct-side-id h2.is-key { font: 600 15px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .02em; }

.acct-guest-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
