/* Mobile Apps — same shell as Corporate (technology-page) but dark hero + lab */

body.ma-page-dark #maPageRoot {
  background: #03050c;
}

body.ma-page-dark .tech-hero {
  background: linear-gradient(165deg, #0a1224 0%, #060a14 55%, #03050c 100%);
  color: rgba(255, 255, 255, 0.92);
}

body.ma-page-dark .tech-hero-kicker {
  color: var(--accent-light);
}

body.ma-page-dark .tech-hero-title {
  color: #fff;
}

body.ma-page-dark .tech-hero-lead {
  color: rgba(255, 255, 255, 0.68);
}

body.ma-page-dark .tech-hero-note {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 180, 216, 0.28);
  color: rgba(200, 220, 240, 0.92);
}

body.ma-page-dark .subpage-back {
  color: var(--accent-light);
}

body.ma-page-dark .tech-rsl-outer {
  background: linear-gradient(180deg, #070b14 0%, #020308 100%);
}

#maLabRoot.tech-rsl-app {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ma-lab {
  background: linear-gradient(180deg, #0c101c 0%, #080c14 100%);
  color: rgba(255, 255, 255, 0.9);
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.ma-lab-head {
  padding: 16px 22px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ma-lab-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.ma-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding: 18px 20px 28px;
  align-items: start;
}

.ma-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.38);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ma-card-top {
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-card-top h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.ma-card[data-theme="pulse"] {
  --ma-accent: #ff5c5c;
  --ma-glow: rgba(255, 92, 92, 0.45);
}

.ma-card[data-theme="ledger"] {
  --ma-accent: #e8c547;
  --ma-glow: rgba(232, 197, 71, 0.4);
}

.ma-card[data-theme="echo"] {
  --ma-accent: #c4b5fd;
  --ma-glow: rgba(196, 181, 253, 0.45);
}

.ma-card[data-theme="aurora"] {
  --ma-accent: #38e8ff;
  --ma-glow: rgba(56, 232, 255, 0.45);
}

/* —— iPhone-style portrait frame (~9 : 19.65, tall like iPhone 17 class) —— */

.ma-device-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 18px;
  min-height: 0;
}

.ma-device {
  width: min(232px, 34vw);
  aspect-ratio: 9 / 19.65;
  max-height: min(60vh, 640px);
  margin-inline: auto;
  border-radius: 44px;
  padding: 3px;
  background: linear-gradient(150deg, #5a5a62 0%, #222228 45%, #3a3a42 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 26px 70px rgba(0, 0, 0, 0.55);
}

.ma-device-screen {
  border-radius: 41px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #020208;
  min-height: 0;
}

.ma-island-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 10px 0 2px;
  position: relative;
  z-index: 3;
}

.ma-island {
  width: 34%;
  height: 28px;
  border-radius: 20px;
  background: #0a0a10;
  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    0 4px 14px rgba(0, 0, 0, 0.5);
}

.ma-pages {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.ma-page {
  display: none;
  flex-direction: column;
  position: absolute;
  inset: 0;
  padding: 10px 10px 12px;
  overflow-y: auto;
  gap: 8px;
  background: transparent;
}

.ma-page.is-active {
  display: flex;
}

/* —— Pulse: top brand + segmented control —— */

.ma-skin-pulse {
  background: radial-gradient(100% 70% at 50% 0%, rgba(255, 70, 70, 0.2), transparent 52%), #0c0608;
}

.ma-pulse-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 12px 6px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.ma-pulse-brand {
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ma-segbar {
  display: flex;
  margin: 0 8px 8px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 2px;
}

.ma-seg {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 7px 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.ma-seg.is-active {
  color: #1a0505;
  background: linear-gradient(180deg, #ff8a7a, var(--ma-accent));
  box-shadow: 0 0 20px var(--ma-glow);
}

.ma-pulse-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ma-pulse-tile {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.ma-pulse-tile span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.ma-pulse-tile strong {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.ma-pulse-ring-sm {
  width: 72px;
  height: 72px;
  margin: 6px auto;
  border-radius: 50%;
  background: conic-gradient(var(--ma-accent) 72%, rgba(255, 255, 255, 0.06) 0);
  box-shadow: 0 0 24px var(--ma-glow);
}

.ma-pulse-caption {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 4px;
}

.ma-pulse-ok {
  color: var(--ma-accent);
  font-weight: 800;
}

.ma-pulse-session-label {
  margin: 4px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ma-pulse-timer-ring {
  width: 96px;
  height: 96px;
  margin: 8px auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--ma-accent);
  transform-origin: center;
  animation: ma-spin 2.8s linear infinite paused;
}

.ma-skin-pulse .ma-pulse-timer-ring.is-running {
  animation-play-state: running;
}

@keyframes ma-spin {
  to {
    transform: rotate(360deg);
  }
}

.ma-pulse-time {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.ma-pulse-block {
  text-align: center;
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.ma-pulse-timeline {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ma-pulse-timeline li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.ma-pulse-timeline time {
  font-weight: 800;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.ma-pulse-timeline li.is-today {
  border-color: rgba(255, 92, 92, 0.45);
  box-shadow: 0 0 0 1px var(--ma-accent);
}

.ma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.ma-btn-pulse {
  background: linear-gradient(180deg, #ff9a8e, var(--ma-accent));
  color: #1a0505;
  box-shadow: 0 6px 22px var(--ma-glow);
  margin-top: auto;
}

.ma-btn-dim {
  margin-top: 4px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Ledger: header + top tabs + keypad —— */

.ma-skin-ledger {
  background: linear-gradient(180deg, #0a1018 0%, #05080e 100%);
}

.ma-led-head {
  padding: 4px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-led-kicker {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.ma-led-balance {
  margin: 4px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

.ma-led-balance-num {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ma-accent);
  letter-spacing: -0.02em;
}

.ma-topsegbar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ma-topseg {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.ma-topseg.is-active {
  color: #0a0a0f;
  background: var(--ma-accent);
  border-color: transparent;
  box-shadow: 0 0 18px var(--ma-glow);
}

.ma-led-chart-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.ma-led-donut {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ma-accent) 0 58%, rgba(94, 234, 212, 0.85) 58% 88%, rgba(255, 255, 255, 0.08) 0);
  box-shadow: inset 0 0 0 6px #0a1018, 0 0 20px var(--ma-glow);
}

.ma-led-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.ma-led-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ma-led-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ma-led-strip {
  font-size: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ma-btn-ledger {
  background: var(--ma-accent);
  color: #0a0a0f;
  box-shadow: 0 6px 22px var(--ma-glow);
  margin-top: auto;
}

.ma-led-to-label {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ma-led-display {
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 10px 8px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ma-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.ma-keypad button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ma-keypad button:active {
  transform: scale(0.97);
}

.ma-key-w {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.ma-btn-ghost-led {
  margin-top: 4px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ma-list-ledger {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ma-list-ledger li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.ma-led-neg {
  opacity: 0.75;
  font-size: 11px;
}

.ma-led-pos {
  color: var(--ma-accent);
  font-size: 11px;
  font-weight: 700;
}

.ma-toast {
  display: none;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 10px;
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.35);
  color: #b8ffc8;
  margin-bottom: 6px;
}

.ma-toast.is-on {
  display: block;
}

/* —— Echo: stack + FAB (no bottom tabs) —— */

.ma-skin-echo {
  background: radial-gradient(90% 60% at 80% 0%, rgba(167, 139, 250, 0.2), transparent 50%), #0b0814;
}

.ma-skin-echo[data-echo-screen="ech-list"] .ma-echo-back {
  visibility: hidden;
  pointer-events: none;
}

.ma-echo-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-echo-back {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.ma-echo-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.ma-echo-spacer {
  width: 32px;
}

.ma-pages-echo {
  position: relative;
}

.ma-page-echo-list {
  padding-bottom: 72px;
  overflow-y: auto;
}

.ma-echo-list {
  list-style: none;
  margin: 0;
  padding: 0 0 48px;
}

.ma-echo-list li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ma-echo-row {
  width: 100%;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
}

.ma-echo-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ma-echo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ma-accent);
}

.ma-echo-dot--teal {
  background: #5eead4;
}

.ma-echo-dot--sun {
  background: #fcd34d;
}

.ma-echo-subj {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.ma-echo-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.ma-echo-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(145deg, #ddd6fe, var(--ma-accent));
  color: #1a1030;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 12px 28px var(--ma-glow);
}

.ma-echo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}

.ma-echo-chip {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.2);
  color: #e9d5ff;
}

.ma-echo-chip--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.ma-echo-read-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #fff;
}

.ma-echo-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

.ma-echo-editor {
  flex: 1;
  min-height: 120px;
  resize: none;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 12px;
  font-size: 13px;
  font-family: inherit;
}

.ma-echo-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.ma-btn-echo {
  flex: 1;
  background: linear-gradient(180deg, #e9d5ff, var(--ma-accent));
  color: #1a1030;
  box-shadow: 0 6px 20px var(--ma-glow);
}

.ma-btn-echo-secondary {
  flex: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* —— Aurora: side rail + stage —— */

.ma-skin-aurora {
  background: radial-gradient(80% 50% at 0% 30%, rgba(56, 232, 255, 0.12), transparent 55%), #030810;
}

.ma-aur-shell {
  flex: 1;
  display: flex;
  min-height: 0;
}

.ma-aur-rail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
  width: 44px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

.ma-rail-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
}

.ma-rail-btn span {
  display: block;
  transform: scale(0.95);
}

.ma-rail-btn.is-active {
  color: var(--ma-accent);
  background: rgba(56, 232, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(56, 232, 255, 0.35);
}

.ma-aur-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.ma-aur-stage .ma-pages {
  flex: 1;
}

.ma-aur-visual {
  position: relative;
  height: 120px;
  display: grid;
  place-items: center;
  margin: 4px 0 6px;
}

.ma-aur-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ma-glow), transparent 70%);
  opacity: 0.9;
}

.ma-aur-disc {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 28px var(--ma-glow);
}

.ma-aur-track {
  text-align: center;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ma-aur-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 28px;
  margin-bottom: 10px;
}

.ma-aur-wave span {
  width: 4px;
  border-radius: 2px;
  background: var(--ma-accent);
  animation: ma-bounce 0.9s ease-in-out infinite paused;
  opacity: 0.55;
}

.ma-aur-wave span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.ma-aur-wave span:nth-child(2) {
  height: 70%;
  animation-delay: 0.08s;
}
.ma-aur-wave span:nth-child(3) {
  height: 100%;
  animation-delay: 0.16s;
}
.ma-aur-wave span:nth-child(4) {
  height: 55%;
  animation-delay: 0.24s;
}
.ma-aur-wave span:nth-child(5) {
  height: 80%;
  animation-delay: 0.32s;
}
.ma-aur-wave span:nth-child(6) {
  height: 45%;
  animation-delay: 0.4s;
}

.ma-skin-aurora.is-playing .ma-aur-wave span {
  animation-play-state: running;
}

@keyframes ma-bounce {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}

.ma-aur-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: auto;
}

.ma-aur-iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.ma-btn-aurora {
  background: linear-gradient(180deg, #7af8ff, var(--ma-accent));
  color: #031016;
  min-width: 88px;
  box-shadow: 0 8px 26px var(--ma-glow);
}

.ma-aur-section {
  margin: 0 0 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ma-aur-hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.ma-aur-cover {
  flex: 0 0 72px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, #ff6b9d, #7c3aed);
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
}

.ma-aur-cover--b {
  background: linear-gradient(160deg, #38bdf8, #0f172a);
}

.ma-aur-cover--c {
  background: linear-gradient(160deg, #fbbf24, #b45309);
}

.ma-aur-hint {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.4;
}

.ma-aur-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ma-aur-queue li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
}

.ma-aur-qtitle {
  flex: 1;
  min-width: 0;
}

.ma-aur-qbtns {
  display: flex;
  gap: 4px;
}

.ma-aur-qbtns button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.ma-aur-search {
  margin-bottom: 8px;
  font-size: 12px;
}

.ma-aur-find-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 960px) {
  .ma-grid {
    grid-template-columns: 1fr;
  }

  .ma-device {
    width: min(248px, 78vw);
    max-height: min(62vh, 600px);
  }
}
