/* Account — Morph Studio on Cadmium Voltage Desk
   Unique liquid tabs / soft blobs; theme matches index.php. */

*, *::before, *::after { box-sizing: border-box; }

body.mx-studio.a69-body {
  --mx-void: #070708;
  --mx-panel: #101014;
  --mx-ink: #f3f0e7;
  --mx-muted: #9a968a;
  --mx-line: rgba(243, 240, 231, 0.12);
  --mx-cadmium: #ff3b00;
  --mx-acid: #d6ff3c;
  --mx-cobalt: #7a8cff;
  --mx-cobalt-deep: #5a6ae0;
  --mx-danger: #ff6b8a;
  --mx-display: "Syne", "Avenir Next", sans-serif;
  --mx-sans: "DM Sans", "Segoe UI", sans-serif;
  --mx-mono: "JetBrains Mono", ui-monospace, monospace;
  --mx-ui: var(--mx-sans);
  --mx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mx-radius: 0.45rem;

  color: var(--mx-ink);
  font-family: var(--mx-sans);
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 59, 0, 0.16), transparent 50%),
    radial-gradient(700px 380px at 10% 100%, rgba(122, 140, 255, 0.12), transparent 46%),
    linear-gradient(180deg, #0b0b0d 0%, var(--mx-void) 100%) !important;
  background-attachment: scroll !important;
  -webkit-font-smoothing: antialiased;
}

body.mx-studio.a69-body ::selection {
  background: var(--mx-cadmium);
  color: #140600;
}

body.mx-studio .a69-main {
  position: relative;
  overflow: clip;
  padding-bottom: 3.5rem;
}

body.mx-studio a { color: inherit; text-decoration: none; }

body.mx-no-motion .mx-blob,
body.mx-no-motion .mx-orbit,
body.mx-no-motion .mx-avatar-ring {
  animation: none !important;
}

.mx-world {
  position: relative;
  width: min(1080px, calc(100% - 1.6rem));
  margin: 0.75rem auto 0;
  z-index: 1;
}

.mx-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  animation: mx-drift 16s ease-in-out infinite alternate;
}
.mx-blob-a {
  width: 420px;
  height: 420px;
  background: rgba(255, 59, 0, 0.55);
  top: -100px;
  right: -80px;
}
.mx-blob-b {
  width: 360px;
  height: 360px;
  background: rgba(122, 140, 255, 0.5);
  bottom: 8%;
  left: -120px;
  animation-delay: -4s;
}
.mx-blob-c {
  width: 240px;
  height: 240px;
  background: rgba(214, 255, 60, 0.35);
  top: 44%;
  right: 16%;
  animation-delay: -7s;
}
@keyframes mx-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(20px, -14px, 0) scale(1.06); }
}

.mx-hero {
  position: relative;
  padding: 1.1rem 0.2rem 1.35rem;
  animation: mx-rise 0.65s var(--mx-ease) both;
}
.mx-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--mx-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mx-acid);
}
.mx-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--mx-display);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--mx-ink);
}
.mx-hero h1 span {
  color: var(--mx-cadmium);
}
.mx-lede {
  margin: 0;
  max-width: 48ch;
  color: var(--mx-muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* Loading */
.mx-loading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.2rem;
  border-radius: var(--mx-radius);
  background: var(--mx-panel);
  border: 1px solid var(--mx-line);
  color: var(--mx-muted);
  font-weight: 600;
  width: fit-content;
}
.mx-orbit {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 59, 0, 0.22);
  border-top-color: var(--mx-cadmium);
  animation: mx-spin 0.75s linear infinite;
}
@keyframes mx-spin { to { transform: rotate(360deg); } }

.mx-logged { animation: mx-rise 0.7s var(--mx-ease) both; }
.mx-shell { display: grid; gap: 0.95rem; }

.mx-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1.1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border-radius: var(--mx-radius);
  background: var(--mx-panel);
  border: 1px solid var(--mx-line);
}
.mx-avatar {
  position: relative;
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  font-family: var(--mx-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #140600;
  background: var(--mx-cadmium);
  box-shadow: 0 10px 28px rgba(255, 59, 0, 0.28);
}
.mx-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 0.7rem;
  border: 1px dashed rgba(214, 255, 60, 0.55);
  animation: mx-spin 14s linear infinite;
}
.mx-identity-copy h2 {
  margin: 0;
  font-family: var(--mx-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.03em;
  color: var(--mx-ink);
}
.mx-identity-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mx-chip-link {
  appearance: none;
  border: 1px solid var(--mx-line);
  background: #0c0c10;
  color: var(--mx-ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.48rem 0.8rem;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: transform 0.25s var(--mx-ease), border-color 0.2s, color 0.2s, background 0.2s;
}
.mx-chip-link:hover,
.mx-chip-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 255, 60, 0.45);
  color: var(--mx-acid);
}
.mx-chip-ghost { background: transparent; }
.mx-chip-danger:hover,
.mx-chip-danger:focus-visible {
  border-color: rgba(255, 107, 138, 0.55);
  color: var(--mx-danger);
}

/* Liquid tab bar */
.mx-tabbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  padding: 0.35rem;
  border-radius: var(--mx-radius);
  background: #0c0c10;
  border: 1px solid var(--mx-line);
}
.mx-tab-liquid {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0;
  width: 25%;
  border-radius: 0.3rem;
  background: var(--mx-cadmium);
  box-shadow: 0 8px 22px rgba(255, 59, 0, 0.28);
  transition: transform 0.4s var(--mx-ease), width 0.4s var(--mx-ease);
  z-index: 0;
  pointer-events: none;
}
.mx-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.7rem 0.4rem;
  border-radius: 0.3rem;
  display: grid;
  gap: 0.08rem;
  justify-items: center;
  font: inherit;
  color: var(--mx-muted);
  transition: color 0.25s;
}
.mx-tab strong {
  font-family: var(--mx-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mx-tab small {
  font-family: var(--mx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.mx-tab.is-active { color: #140600; }
.mx-tab.is-active small { color: rgba(20, 6, 0, 0.7); }

.mx-stage {
  padding: 1.25rem 1.3rem 1.45rem;
  border-radius: var(--mx-radius);
  background: var(--mx-panel);
  border: 1px solid var(--mx-line);
  min-height: 280px;
}

.mx-panel { display: none; animation: mx-rise 0.4s var(--mx-ease); }
.mx-panel.is-active { display: block; }
.mx-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mx-panel-head h3 {
  margin: 0;
  font-family: var(--mx-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--mx-ink);
}
.mx-text-link {
  color: var(--mx-acid);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s, transform 0.2s;
}
.mx-text-link:hover,
.mx-text-link:focus-visible {
  color: var(--mx-ink);
  transform: translateX(3px);
}

/* Edit toggle */
.mx-edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--mx-line);
  background: #0c0c10;
  border-radius: 999px;
  padding: 0.32rem 0.65rem 0.32rem 0.32rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mx-muted);
  transition: border-color 0.25s, color 0.25s;
}
.mx-edit-knob {
  width: 2.3rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(243, 240, 231, 0.14);
  position: relative;
  transition: background 0.3s;
}
.mx-edit-knob::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0.14rem;
  width: 0.97rem;
  height: 0.97rem;
  border-radius: 50%;
  background: var(--mx-ink);
  transition: transform 0.35s var(--mx-ease);
}
.mx-edit-toggle.is-on,
.mx-edit-toggle[aria-pressed="true"] {
  color: #140600;
  border-color: transparent;
  background: var(--mx-acid);
}
.mx-edit-toggle.is-on .mx-edit-knob,
.mx-edit-toggle[aria-pressed="true"] .mx-edit-knob {
  background: rgba(20, 6, 0, 0.22);
}
.mx-edit-toggle.is-on .mx-edit-knob::after,
.mx-edit-toggle[aria-pressed="true"] .mx-edit-knob::after {
  transform: translateX(1rem);
  background: #140600;
}

.mx-edit-tray {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--mx-radius);
  background: rgba(255, 59, 0, 0.08);
  border: 1px dashed rgba(255, 59, 0, 0.35);
  display: grid;
  gap: 0.75rem;
  animation: mx-rise 0.35s var(--mx-ease);
}
.mx-edit-tray p {
  margin: 0;
  color: var(--mx-muted);
  font-size: 0.9rem;
}

/* Profile fields (store-auth.js) */
.mx-profile-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
body.mx-compact .mx-profile-grid,
body.mx-compact .profile-grid { gap: 0.4rem; }

.profile-item {
  padding: 0.9rem 1rem;
  border-radius: var(--mx-radius);
  background: #0c0c10;
  border: 1px solid var(--mx-line);
  display: grid;
  gap: 0.22rem;
  transition: transform 0.3s var(--mx-ease), border-color 0.25s;
}
.profile-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 255, 60, 0.35);
}
.mx-profile-grid.is-editing .profile-item {
  border-style: dashed;
  border-color: rgba(255, 59, 0, 0.45);
  background: rgba(255, 59, 0, 0.06);
}
.profile-item .k {
  font-family: var(--mx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mx-muted);
  font-weight: 600;
}
.profile-item .v {
  font-weight: 700;
  font-size: 0.96rem;
  word-break: break-word;
  color: var(--mx-ink);
}
.profile-item .v.mono {
  font-family: var(--mx-mono);
  font-size: 0.8rem;
  color: var(--mx-acid);
}

/* Orders */
.mx-order-list,
.order-list {
  display: grid;
  gap: 0.6rem;
}
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--mx-radius);
  background: #0c0c10;
  border: 1px solid var(--mx-line);
  color: var(--mx-ink);
  transition: transform 0.3s var(--mx-ease), border-color 0.25s;
}
body.mx-orders-pulse .order-row:first-child {
  border-color: rgba(255, 59, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 59, 0, 0.12);
}
.order-row:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 140, 255, 0.45);
}
.order-row .mini-copy {
  color: var(--mx-muted);
  font-size: 0.8rem;
  margin-top: 0.12rem;
}
.order-row .btn,
.order-row .btn-soft {
  text-decoration: none;
  padding: 0.48rem 0.85rem;
  border-radius: 0.3rem;
  background: var(--mx-cadmium);
  color: #140600;
  font-weight: 700;
  font-size: 0.78rem;
  transition: background 0.2s, transform 0.2s;
}
.order-row .btn:hover {
  background: #ff5722;
  transform: scale(1.03);
}

/* Prefs */
.mx-toggles { display: grid; gap: 0.65rem; }
.mx-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: var(--mx-radius);
  background: #0c0c10;
  border: 1px solid var(--mx-line);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.3s var(--mx-ease);
}
.mx-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 255, 60, 0.35);
}
.mx-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.mx-switch {
  width: 2.9rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(243, 240, 231, 0.14);
  position: relative;
  transition: background 0.3s;
}
.mx-switch i {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.24rem;
  height: 1.24rem;
  border-radius: 50%;
  background: var(--mx-ink);
  display: block;
  transition: transform 0.35s var(--mx-ease);
}
.mx-toggle input:checked + .mx-switch {
  background: var(--mx-cadmium);
}
.mx-toggle input:checked + .mx-switch i {
  transform: translateX(1.25rem);
  background: #140600;
}
.mx-toggle-copy { display: grid; gap: 0.12rem; }
.mx-toggle-copy strong {
  font-family: var(--mx-display);
  font-size: 0.95rem;
  color: var(--mx-ink);
}
.mx-toggle-copy small {
  color: var(--mx-muted);
  font-size: 0.8rem;
}

/* Forms */
.mx-form { display: grid; gap: 0.8rem; }
.mx-form-narrow { max-width: 420px; }
.mx-field { display: grid; gap: 0.32rem; }
.mx-field span {
  font-family: var(--mx-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mx-muted);
}
.mx-field input {
  width: 100%;
  border: 1px solid var(--mx-line);
  background: #0c0c10;
  color: var(--mx-ink);
  border-radius: 0.35rem;
  padding: 0.8rem 0.95rem;
  outline: none;
  caret-color: var(--mx-cadmium);
  transition: border-color 0.2s, box-shadow 0.25s;
}
.mx-field input::placeholder { color: #6d6a60; }
.mx-field input:focus {
  border-color: rgba(255, 59, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 59, 0, 0.14);
}

.mx-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}
.mx-strength i {
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(243, 240, 231, 0.12);
  transition: background 0.25s, transform 0.25s;
}
.mx-strength[data-score="1"] i:nth-child(-n+1) { background: var(--mx-danger); }
.mx-strength[data-score="2"] i:nth-child(-n+2) { background: #ffb703; }
.mx-strength[data-score="3"] i:nth-child(-n+3) { background: var(--mx-acid); }
.mx-strength[data-score="4"] i { background: var(--mx-cadmium); transform: scaleY(1.2); }

.mx-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.2rem;
  border-radius: 0.35rem;
  font: inherit;
  font-family: var(--mx-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.3s var(--mx-ease), background 0.2s, border-color 0.2s;
}
.mx-btn:hover { transform: translateY(-2px); }
.mx-btn-cobalt {
  background: var(--mx-cadmium);
  color: #140600;
}
.mx-btn-cobalt:hover { background: #ff5722; }
.mx-btn-apricot {
  background: var(--mx-acid);
  color: #140600;
}
.mx-btn-apricot:hover { background: #e8ff6a; }
.mx-btn-ghost {
  background: transparent;
  border: 1px solid var(--mx-line);
  color: var(--mx-ink);
}
.mx-btn-ghost:hover {
  border-color: rgba(214, 255, 60, 0.45);
  color: var(--mx-acid);
}

/* Notices */
.mx-stage .notice,
#profileVerifyNotice.notice {
  background: rgba(122, 140, 255, 0.1);
  border: 1px solid rgba(122, 140, 255, 0.28);
  color: var(--mx-ink);
  padding: 0.8rem 0.95rem;
  border-radius: var(--mx-radius);
  margin-bottom: 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.notice.success {
  background: rgba(214, 255, 60, 0.1);
  color: var(--mx-acid);
  border: 1px solid rgba(214, 255, 60, 0.32);
}
.notice.warning {
  background: rgba(255, 59, 0, 0.12);
  color: #ffc48a;
  border: 1px solid rgba(255, 59, 0, 0.35);
}
.notice.error {
  background: rgba(255, 107, 138, 0.12);
  color: #ff9bb0;
  border: 1px solid rgba(255, 107, 138, 0.4);
}

/* Auth gate */
.mx-gate {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 1rem;
  align-items: stretch;
  animation: mx-rise 0.7s var(--mx-ease) both;
}
.mx-story {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: var(--mx-radius);
  background:
    linear-gradient(160deg, rgba(255, 59, 0, 0.92), rgba(180, 30, 0, 0.88) 52%, rgba(16, 16, 20, 0.95));
  color: var(--mx-ink);
  border: 1px solid rgba(255, 59, 0, 0.35);
}
.mx-story .mx-eyebrow { color: var(--mx-acid); }
.mx-story h2 {
  margin: 0 0 0.55rem;
  font-family: var(--mx-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
  color: #fff;
}
.mx-story-lede {
  margin: 0 0 1.15rem;
  color: rgba(243, 240, 231, 0.82);
  max-width: 34ch;
}
.mx-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.mx-benefits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  border-radius: 0.35rem;
  background: rgba(7, 7, 8, 0.35);
  border: 1px solid rgba(243, 240, 231, 0.14);
  color: #fff;
  transition: transform 0.3s var(--mx-ease), background 0.25s;
}
.mx-benefits li:hover {
  transform: translateX(4px);
  background: rgba(7, 7, 8, 0.5);
}
.mx-benefits span {
  font-family: var(--mx-mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--mx-acid);
}
.mx-story-orb {
  position: absolute;
  right: -6%;
  bottom: -10%;
  font-family: var(--mx-display);
  font-size: 7.5rem;
  font-weight: 800;
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
  color: #fff;
}

.mx-auth {
  padding: 1.2rem;
  border-radius: var(--mx-radius);
  background: var(--mx-panel);
  border: 1px solid var(--mx-line);
  display: grid;
  gap: 0.95rem;
  align-content: start;
}
.mx-mode {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28rem;
  padding: 0.32rem;
  border-radius: var(--mx-radius);
  background: #0c0c10;
  border: 1px solid var(--mx-line);
}
.mx-mode-liquid {
  position: absolute;
  top: 0.32rem;
  bottom: 0.32rem;
  left: 0;
  width: 50%;
  border-radius: 0.3rem;
  background: var(--mx-cadmium);
  box-shadow: 0 8px 20px rgba(255, 59, 0, 0.25);
  transition: transform 0.4s var(--mx-ease), width 0.4s var(--mx-ease);
  z-index: 0;
  pointer-events: none;
}
.mx-mode-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.7rem 0.45rem;
  border-radius: 0.3rem;
  display: grid;
  gap: 0.08rem;
  justify-items: center;
  font: inherit;
  color: var(--mx-muted);
}
.mx-mode-btn.is-active { color: #140600; }
.mx-mode-btn.is-active small { color: rgba(20, 6, 0, 0.7); }
.mx-mode-btn strong {
  font-family: var(--mx-display);
  font-size: 0.9rem;
}
.mx-mode-btn small {
  font-family: var(--mx-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mx-auth-panel { display: none; }
.mx-auth-panel.is-active {
  display: grid;
  gap: 0.7rem;
  animation: mx-rise 0.35s var(--mx-ease);
}
.mx-auth-panel h3 {
  margin: 0;
  font-family: var(--mx-display);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--mx-ink);
}
.mx-panel-lede {
  margin: 0;
  color: var(--mx-muted);
  font-size: 0.92rem;
}

.mx-forgot {
  border-top: 1px solid var(--mx-line);
  padding-top: 0.8rem;
}
.mx-forgot summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--mx-acid);
  list-style: none;
}
.mx-forgot summary::-webkit-details-marker { display: none; }
.mx-forgot[open] summary { margin-bottom: 0.7rem; }
.mx-reset {
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--mx-line);
}
.mx-reset h4 {
  margin: 0 0 0.45rem;
  font-family: var(--mx-display);
  color: var(--mx-ink);
}

/* Toast */
.mx-toast.toast,
#authMessage.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  padding: 0.85rem 1.1rem;
  border-radius: var(--mx-radius);
  background: #0c0c10;
  color: var(--mx-ink);
  border: 1px solid var(--mx-line);
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(360px, calc(100% - 2rem));
}
#authMessage.toast.visible {
  opacity: 1;
  transform: translateY(0);
}
#authMessage.toast.success {
  color: var(--mx-acid);
  border-color: rgba(214, 255, 60, 0.35);
  background: rgba(214, 255, 60, 0.1);
}
#authMessage.toast.error {
  color: #ff9bb0;
  border-color: rgba(255, 107, 138, 0.45);
  background: rgba(255, 107, 138, 0.12);
}
#authMessage.toast.warning {
  color: #ffc48a;
  border-color: rgba(255, 59, 0, 0.4);
  background: rgba(255, 59, 0, 0.12);
}

@keyframes mx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .mx-gate { grid-template-columns: 1fr; }
  .mx-tabbar {
    grid-template-columns: repeat(2, 1fr);
  }
  .mx-profile-grid,
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .mx-identity { grid-template-columns: 1fr; }
  .mx-panel-head { flex-direction: column; }
  .mx-world { width: min(1080px, calc(100% - 1.2rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .mx-blob,
  .mx-orbit,
  .mx-avatar-ring,
  .mx-logged,
  .mx-gate,
  .mx-panel,
  .mx-auth-panel,
  .mx-hero {
    animation: none !important;
  }
  .mx-tab-liquid,
  .mx-mode-liquid,
  .mx-chip-link,
  .mx-btn,
  .profile-item,
  .order-row,
  .mx-toggle {
    transition: none !important;
  }
}
