:root {
  color-scheme: dark;
  --bg: #0b0c0a;
  --panel: rgba(18, 20, 17, 0.92);
  --panel-2: rgba(28, 29, 24, 0.84);
  --ink: #f5f2e8;
  --muted: rgba(245, 242, 232, 0.66);
  --dim: rgba(245, 242, 232, 0.42);
  --line: rgba(245, 242, 232, 0.14);
  --line-strong: rgba(245, 242, 232, 0.28);
  --green: #7ddf64;
  --gold: #f2c14e;
  --red: #ff6b6b;
  --cyan: #72d6d1;
  --ink-dark: #10110e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(140deg, rgba(125, 223, 100, 0.11), transparent 28rem),
    linear-gradient(230deg, rgba(255, 107, 107, 0.1), transparent 26rem),
    linear-gradient(180deg, #0b0c0a 0%, #13140f 42%, #090a08 100%);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.ops-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 8, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.ops-bar nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}

.ops-bar nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.ops-bar nav a:hover,
.ops-bar nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.artist-field {
  display: grid;
  grid-template-columns: auto minmax(140px, 190px);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.artist-field span,
.label {
  color: var(--dim);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.artist-field input {
  min-width: 0;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--ink);
  padding: 0 9px;
  outline: none;
}

.artist-field input:focus {
  border-color: rgba(114, 214, 209, 0.72);
}

.icon-button,
.run-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 900;
}

.icon-button {
  width: 42px;
  display: grid;
  place-items: center;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.run-button {
  padding: 0 14px;
  background: var(--green);
  color: var(--ink-dark);
  border-color: rgba(125, 223, 100, 0.78);
}

.icon-button:hover,
.run-button:hover {
  transform: translateY(-1px);
  border-color: var(--cyan);
}

.icon-button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink-dark);
}

.monitor-shell {
  width: min(1560px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.status-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr 0.9fr;
  gap: 10px;
}

.status-card,
.panel,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.25);
}

.status-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.status-card.primary {
  border-color: rgba(125, 223, 100, 0.36);
  background: linear-gradient(135deg, rgba(125, 223, 100, 0.14), rgba(18, 20, 17, 0.92));
}

.status-card strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.status-card small,
.metric-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.alert-card[data-tone="ok"] {
  border-color: rgba(125, 223, 100, 0.42);
}

.alert-card[data-tone="warn"] {
  border-color: rgba(242, 193, 78, 0.56);
}

.alert-card[data-tone="error"] {
  border-color: rgba(255, 107, 107, 0.62);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.72fr);
  gap: 12px;
  margin-top: 12px;
}

.panel {
  padding: 16px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

h1,
h2 {
  margin: 4px 0 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
}

h2 {
  font-size: clamp(20px, 2vw, 30px);
}

.sync-stack {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sync-stack span:first-child {
  color: var(--cyan);
  text-transform: uppercase;
}

.map-panel {
  min-height: 620px;
}

#neuralMap {
  display: block;
  width: 100%;
  height: min(54vh, 560px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(114, 214, 209, 0.12), rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.42));
  background-size: 44px 44px, 44px 44px, cover;
}

.allocation-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(120px, 1fr);
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gauge {
  aspect-ratio: 1 / 1;
  min-height: 118px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, var(--panel) 0 48%, transparent 49%),
    conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(255, 255, 255, 0.1) 0);
  border: 1px solid var(--line);
}

.gauge div {
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(8, 9, 7, 0.86);
}

.gauge strong {
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1;
}

.gauge span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.queue-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.queue-box div {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.queue-box strong {
  font-size: 34px;
  line-height: 1;
}

meter {
  width: 100%;
  height: 12px;
}

.error-box {
  min-height: 130px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.08);
  overflow: auto;
}

.error-box ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.error-box li {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card {
  min-height: 118px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.metric-card strong {
  display: block;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.dense-list {
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  padding-right: 2px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.row strong,
.row span,
.row small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.row strong {
  display: block;
  font-size: 14px;
}

.row span,
.row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tag {
  min-width: 74px;
  display: inline-flex;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
}

.tag.executed,
.tag.ok {
  color: var(--ink-dark);
  background: var(--green);
  border-color: var(--green);
}

.tag.planned,
.tag.warn {
  color: var(--ink-dark);
  background: var(--gold);
  border-color: var(--gold);
}

.tag.error {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.is-paused .run-button,
.is-paused #refreshButton {
  opacity: 0.7;
}

@media (max-width: 1180px) {
  .ops-bar {
    grid-template-columns: 1fr;
  }

  .ops-bar nav {
    justify-content: flex-start;
  }

  .toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .status-strip,
  .work-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .monitor-shell {
    width: min(100% - 18px, 1560px);
  }

  .artist-field {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .artist-field input {
    width: 100%;
  }

  .status-strip,
  .metrics-grid,
  .gauge-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 500px;
  }

  #neuralMap {
    min-height: 330px;
    height: 46vh;
  }
}

/* BEGIN quantumskyes:adaptive-neon-scrollbar-css */
/*
  Adaptive Neon Scrollbar

  Optional MCP part. Add data-mcp-neon-scrollbar to html, body, or a scroll
  container when a site explicitly asks for visible neon scrollbars.
  This keeps native scrollbars visible and adds always-visible, draggable
  neon rails on the exact viewport edges.
*/

:root{
  --mcp-neon-scrollbar-size:18px;
  --mcp-neon-scrollbar-bg:rgba(3,7,11,.62);
  --mcp-neon-scrollbar-track:rgba(7,16,23,.52);
  --mcp-neon-scrollbar-rail:rgba(53,183,255,.34);
  --mcp-neon-scrollbar-a:var(--gold2,var(--gold,var(--brand-gold,var(--accent,#f3d483))));
  --mcp-neon-scrollbar-b:var(--cyan,var(--brand-cyan,var(--accent-2,#35b7ff)));
  --mcp-neon-scrollbar-c:var(--mint,var(--brand-mint,var(--success,#6ff2c7)));
  --mcp-neon-scrollbar-d:var(--violet,var(--brand-violet,var(--accent-3,#a88cff)));
}

html[data-mcp-neon-scrollbar],
html[data-mcp-neon-scrollbar] body,
[data-mcp-neon-scrollbar]{
  scrollbar-width:auto !important;
  scrollbar-color:var(--mcp-neon-scrollbar-b) var(--mcp-neon-scrollbar-track);
  -ms-overflow-style:auto !important;
}

html[data-mcp-neon-scrollbar] *,
[data-mcp-neon-scrollbar] *{
  scrollbar-width:auto !important;
  scrollbar-color:var(--mcp-neon-scrollbar-b) var(--mcp-neon-scrollbar-track);
  -ms-overflow-style:auto !important;
}

html[data-mcp-neon-scrollbar]::-webkit-scrollbar,
html[data-mcp-neon-scrollbar] body::-webkit-scrollbar,
html[data-mcp-neon-scrollbar] *::-webkit-scrollbar,
[data-mcp-neon-scrollbar]::-webkit-scrollbar,
[data-mcp-neon-scrollbar] *::-webkit-scrollbar{
  width:14px !important;
  height:14px !important;
  display:block !important;
  background:var(--mcp-neon-scrollbar-track) !important;
}

.mcp-neon-scroll-rail{
  position:fixed;
  z-index:9999;
  pointer-events:auto;
  opacity:.94;
  border:1px solid var(--mcp-neon-scrollbar-rail);
  border-radius:999px;
  background:
    linear-gradient(180deg,rgba(243,212,131,.16),rgba(53,183,255,.12) 45%,rgba(168,140,255,.12) 76%,rgba(111,242,199,.10)),
    var(--mcp-neon-scrollbar-track);
  box-shadow:
    inset 0 0 10px rgba(53,183,255,.22),
    inset 0 0 18px rgba(243,212,131,.10),
    0 0 14px rgba(53,183,255,.20),
    0 0 22px rgba(243,212,131,.10);
  contain:layout style paint;
  transform:translateZ(0);
  touch-action:none;
  user-select:none;
}

.mcp-neon-scroll-rail-y{
  top:0;
  right:0;
  bottom:var(--mcp-neon-scrollbar-size);
  width:var(--mcp-neon-scrollbar-size);
  cursor:ns-resize;
}

.mcp-neon-scroll-rail-x{
  left:0;
  right:var(--mcp-neon-scrollbar-size);
  bottom:0;
  height:var(--mcp-neon-scrollbar-size);
  cursor:ew-resize;
  background:
    linear-gradient(90deg,rgba(243,212,131,.16),rgba(53,183,255,.12) 45%,rgba(168,140,255,.12) 76%,rgba(111,242,199,.10)),
    var(--mcp-neon-scrollbar-track);
}

.mcp-neon-scroll-corner{
  position:fixed;
  right:0;
  bottom:0;
  z-index:9999;
  width:var(--mcp-neon-scrollbar-size);
  height:var(--mcp-neon-scrollbar-size);
  border:1px solid var(--mcp-neon-scrollbar-rail);
  border-radius:12px 0 0 0;
  background:
    radial-gradient(circle,var(--mcp-neon-scrollbar-b),transparent 64%),
    var(--mcp-neon-scrollbar-bg);
  box-shadow:0 0 22px rgba(53,183,255,.30);
  pointer-events:none;
  contain:layout style paint;
  transform:translateZ(0);
}

.mcp-neon-scroll-thumb{
  position:absolute;
  border:3px solid transparent;
  border-radius:999px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.76),rgba(255,255,255,.20)) padding-box,
    linear-gradient(180deg,var(--mcp-neon-scrollbar-a),var(--mcp-neon-scrollbar-b),var(--mcp-neon-scrollbar-d),var(--mcp-neon-scrollbar-c)) border-box;
  box-shadow:
    0 0 11px rgba(53,183,255,.72),
    0 0 22px rgba(243,212,131,.32),
    0 0 30px rgba(111,242,199,.16),
    inset 0 0 12px rgba(255,255,255,.36);
  cursor:grab;
  pointer-events:auto;
  touch-action:none;
  will-change:transform,width,height;
}

.mcp-neon-scroll-thumb:active,
.mcp-neon-scroll-rail.is-dragging .mcp-neon-scroll-thumb{
  cursor:grabbing;
  box-shadow:
    0 0 13px rgba(53,183,255,.86),
    0 0 26px rgba(243,212,131,.40),
    0 0 34px rgba(168,140,255,.20),
    inset 0 0 15px rgba(255,255,255,.44);
}

html.mcp-neon-scroll-dragging,
html.mcp-neon-scroll-dragging *{
  scroll-behavior:auto !important;
}

html.mcp-neon-scroll-dragging .mcp-neon-scroll-rail{
  opacity:1;
}

.mcp-neon-scroll-rail-y .mcp-neon-scroll-thumb{
  top:0;
  left:0;
  width:100%;
  min-height:78px;
  transform:translate3d(0,var(--mcp-scroll-y,0px),0);
}

.mcp-neon-scroll-rail-x .mcp-neon-scroll-thumb{
  top:0;
  left:0;
  height:100%;
  min-width:84px;
  transform:translate3d(var(--mcp-scroll-x,0px),0,0);
  background:
    linear-gradient(90deg,rgba(255,255,255,.76),rgba(255,255,255,.20)) padding-box,
    linear-gradient(90deg,var(--mcp-neon-scrollbar-a),var(--mcp-neon-scrollbar-b),var(--mcp-neon-scrollbar-d),var(--mcp-neon-scrollbar-c)) border-box;
}

@media(max-width:680px){
  :root{--mcp-neon-scrollbar-size:15px}
  .mcp-neon-scroll-thumb{border-width:2px}
  .mcp-neon-scroll-rail-y .mcp-neon-scroll-thumb{min-height:72px}
  .mcp-neon-scroll-rail-x .mcp-neon-scroll-thumb{min-width:78px}
}

.mcp-neon-scroll-rail{
  position:fixed;
  z-index:180;
  pointer-events:none;
  opacity:.94;
  border:1px solid var(--mcp-neon-scrollbar-rail);
  border-radius:999px;
  background:
    linear-gradient(180deg,rgba(243,212,131,.14),rgba(53,183,255,.10) 45%,rgba(168,140,255,.11) 76%,rgba(111,242,199,.09)),
    rgba(3,7,11,.50);
  box-shadow:
    inset 0 0 13px rgba(53,183,255,.24),
    0 0 18px rgba(53,183,255,.20),
    0 0 28px rgba(243,212,131,.12);
  backdrop-filter:blur(10px);
}

.mcp-neon-scroll-rail-y{
  top:92px;
  right:8px;
  bottom:16px;
  width:15px;
}

.mcp-neon-scroll-rail-x{
  left:16px;
  right:16px;
  bottom:8px;
  height:15px;
  background:
    linear-gradient(90deg,rgba(243,212,131,.14),rgba(53,183,255,.10) 45%,rgba(168,140,255,.11) 76%,rgba(111,242,199,.09)),
    rgba(3,7,11,.50);
}

.mcp-neon-scroll-thumb{
  position:absolute;
  border:3px solid transparent;
  border-radius:999px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.18)) padding-box,
    linear-gradient(180deg,var(--mcp-neon-scrollbar-a),var(--mcp-neon-scrollbar-b),var(--mcp-neon-scrollbar-d),var(--mcp-neon-scrollbar-c)) border-box;
  box-shadow:
    0 0 14px rgba(53,183,255,.86),
    0 0 30px rgba(243,212,131,.42),
    0 0 44px rgba(111,242,199,.22),
    inset 0 0 12px rgba(255,255,255,.34);
}

.mcp-neon-scroll-rail-y .mcp-neon-scroll-thumb{
  top:0;
  left:0;
  width:100%;
  min-height:78px;
  transform:translate3d(0,var(--mcp-scroll-y,0px),0);
}

.mcp-neon-scroll-rail-x .mcp-neon-scroll-thumb{
  top:0;
  left:0;
  height:100%;
  min-width:78px;
  transform:translate3d(var(--mcp-scroll-x,0px),0,0);
  background:
    linear-gradient(90deg,rgba(255,255,255,.72),rgba(255,255,255,.18)) padding-box,
    linear-gradient(90deg,var(--mcp-neon-scrollbar-a),var(--mcp-neon-scrollbar-b),var(--mcp-neon-scrollbar-d),var(--mcp-neon-scrollbar-c)) border-box;
}

@media(max-width:680px){
  .mcp-neon-scroll-rail-y{top:112px;right:5px;bottom:12px;width:12px}
  .mcp-neon-scroll-rail-x{left:10px;right:10px;bottom:5px;height:12px}
  .mcp-neon-scroll-thumb{border-width:2px}
}
/* END quantumskyes:adaptive-neon-scrollbar-css */

/* BEGIN quantumskyes:skyesol-living-background-css */
.skyesol-living-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.skyesol-grain,
.skyesol-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.skyesol-grain {
  z-index: -1;
  opacity: .1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

.skyesol-scanline {
  z-index: 10;
  opacity: .045;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.22), rgba(255,255,255,.22) 1px, transparent 1px, transparent 6px);
}

.skyesol-living-page {
  background:
    linear-gradient(180deg, rgba(5,5,11,.94), rgba(3,3,7,.98)),
    radial-gradient(1200px 760px at 14% 4%, rgba(138,99,255,.2), transparent 58%),
    radial-gradient(1100px 760px at 82% 16%, rgba(39,242,255,.12), transparent 58%),
    radial-gradient(900px 660px at 55% 92%, rgba(201,168,76,.12), transparent 60%);
}

.skyesol-living-page.motion-paused *,
.skyesol-living-page.motion-paused *::before,
.skyesol-living-page.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: .01ms !important;
}

@media (prefers-reduced-motion: reduce), (max-width: 760px) {
  .skyesol-scanline {
    opacity: .028;
  }

  .skyesol-grain {
    opacity: .065;
  }
}
/* END quantumskyes:skyesol-living-background-css */

/* BEGIN quantumskyes:neon-motion-chrome-css */
:root {
  --neon-bg: #05030b;
  --neon-gold: #ffd76a;
  --neon-cyan: #61f6ff;
  --neon-pink: #ff4fd8;
  --neon-violet: #9b5cff;
  --neon-ink: #fff8e7;
  --neon-scrollbar-track: rgba(5, 3, 11, .58);
  --neon-scrollbar-rail: rgba(97, 246, 255, .28);
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: color-mix(in srgb, var(--neon-cyan) 78%, transparent) var(--neon-scrollbar-track);
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  border: 1px solid var(--neon-scrollbar-rail);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 215, 106, .16), rgba(97, 246, 255, .12) 46%, rgba(155, 92, 255, .13) 78%, rgba(255, 79, 216, .10)),
    rgba(5, 3, 11, .46);
  box-shadow:
    inset 0 0 14px rgba(97, 246, 255, .24),
    inset 0 0 24px rgba(255, 215, 106, .13),
    0 0 18px rgba(97, 246, 255, .12);
}

::-webkit-scrollbar-track:horizontal {
  background:
    linear-gradient(90deg, rgba(255, 215, 106, .16), rgba(97, 246, 255, .12) 46%, rgba(155, 92, 255, .13) 78%, rgba(255, 79, 216, .10)),
    rgba(5, 3, 11, .46);
}

::-webkit-scrollbar-thumb {
  min-width: 72px;
  min-height: 70px;
  border: 4px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .18)) padding-box,
    linear-gradient(180deg, var(--neon-gold), var(--neon-cyan), var(--neon-violet), var(--neon-pink)) border-box;
  box-shadow:
    0 0 12px rgba(97, 246, 255, .78),
    0 0 24px rgba(255, 215, 106, .38),
    0 0 36px rgba(155, 92, 255, .20),
    inset 0 0 12px rgba(255, 255, 255, .34);
}

::-webkit-scrollbar-thumb:horizontal {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .18)) padding-box,
    linear-gradient(90deg, var(--neon-gold), var(--neon-cyan), var(--neon-violet), var(--neon-pink)) border-box;
}

::-webkit-scrollbar-thumb:hover {
  border-width: 3px;
  box-shadow:
    0 0 16px rgba(97, 246, 255, .92),
    0 0 34px rgba(255, 215, 106, .50),
    0 0 48px rgba(255, 79, 216, .25),
    inset 0 0 14px rgba(255, 255, 255, .42);
}

.neon-motion-chrome {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  color: var(--neon-ink);
}

.neon-motion-chrome::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .82), transparent 78%);
}

.neon-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 4px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--neon-gold), var(--neon-cyan), var(--neon-pink));
  box-shadow: 0 0 22px rgba(97, 246, 255, .42);
}

.neon-scanline {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent),
    repeating-linear-gradient(180deg, rgba(97, 246, 255, .04) 0 1px, transparent 1px 8px);
  background-size: 38vw 100%, 100% 8px;
  mix-blend-mode: screen;
}

.neon-cursor-trail {
  position: fixed;
  left: -150px;
  top: -150px;
  z-index: 70;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 215, 106, .18), rgba(97, 246, 255, .11) 38%, rgba(255, 79, 216, .08) 56%, transparent 72%);
  filter: blur(10px);
  mix-blend-mode: screen;
}

.neon-motion-chrome__label {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 75;
  max-width: min(280px, calc(100vw - 36px));
  border: 1px solid rgba(255, 215, 106, .28);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(5, 3, 11, .72);
  color: rgba(255, 248, 231, .84);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.neon-gradient-text {
  background: linear-gradient(92deg, #fff8e7 0%, var(--neon-gold) 30%, var(--neon-cyan) 60%, var(--neon-pink) 86%, #fff8e7 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: neonTitleShimmer 7s linear infinite;
}

.neon-glow-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42), 0 0 34px rgba(97, 246, 255, .1);
}

.neon-glow-panel::before {
  content: "";
  position: absolute;
  inset: -80% -20%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: rotate(18deg);
  animation: neonSweep 7s ease-in-out infinite;
}

.neon-magnetic {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.neon-magnetic:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(97, 246, 255, .62);
  box-shadow: 0 18px 54px rgba(97, 246, 255, .14), 0 0 28px rgba(255, 215, 106, .16);
}

@keyframes neonTitleShimmer {
  from { background-position: 0% center; }
  to { background-position: 220% center; }
}

@keyframes neonSweep {
  0%, 62% { translate: -120% 0; }
  100% { translate: 120% 0; }
}

@media (pointer: coarse), (max-width: 760px) {
  .neon-cursor-trail {
    display: none;
  }

  .neon-motion-chrome__label {
    position: static;
    display: inline-flex;
    margin: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .neon-cursor-trail,
  .neon-scanline {
    display: none;
  }
}
/* END quantumskyes:neon-motion-chrome-css */

/* BEGIN quantumskyes:premium-text-effects-css */
.neon-gradient-text,.premium-text-effects-lab,.skye-gradient-text{
  color:transparent;
  background:linear-gradient(90deg,#fff 0%,var(--mcp-neon-scrollbar-a,#f3d483) 31%,var(--mcp-neon-scrollbar-b,#35b7ff) 63%,var(--mcp-neon-scrollbar-c,#6ff2c7) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  text-shadow:0 0 28px rgba(53,183,255,.18),0 0 34px rgba(243,212,131,.12);
}
/* END quantumskyes:premium-text-effects-css */
