:root {
  --symbol-command-bg: #010e17;
  --symbol-command-panel: #041925;
  --symbol-command-card: #061f2d;
  --symbol-command-line: rgba(84, 217, 241, .24);
  --symbol-command-accent: #45d9ef;
  --symbol-command-mint: #31d6a0;
  --symbol-command-gold: #f0c355;
  --symbol-command-text: #effbff;
  --symbol-command-muted: #9fb7c5;
}

.atlas-symbol-command-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: clamp(22px, 4vw, 42px) 0;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid var(--symbol-command-line);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(69, 217, 239, .055) 1px, transparent 1px),
    linear-gradient(rgba(69, 217, 239, .055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(69, 217, 239, .08), transparent 54%),
    var(--symbol-command-panel);
  background-size: 46px 46px, 46px 46px, auto, auto;
  box-shadow: inset 3px 0 0 var(--symbol-command-accent);
}
.atlas-symbol-command-entry::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--symbol-command-mint));
}
.atlas-symbol-command-entry__route {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  gap: 9px;
  align-items: center;
  color: var(--symbol-command-muted);
  font: 800 .6rem/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.atlas-symbol-command-entry__route i { height: 1px; background: linear-gradient(90deg, var(--symbol-command-line), rgba(49, 214, 160, .5)); }
.atlas-symbol-command-entry__copy p { margin: 0 0 6px; color: var(--symbol-command-accent); font: 900 .66rem/1.2 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.atlas-symbol-command-entry__copy h2 { margin: 0; color: var(--symbol-command-text); font-size: clamp(1.35rem, 3vw, 2.35rem); letter-spacing: 0; }
.atlas-symbol-command-entry__copy > span { display: block; margin-top: 9px; color: var(--symbol-command-muted); font: 700 .68rem/1.45 "JetBrains Mono", monospace; }
.atlas-symbol-command-entry > button {
  min-width: 230px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border: 1px solid var(--symbol-command-accent);
  border-radius: 5px;
  background: var(--symbol-command-accent);
  color: #02121a;
  font: 900 .68rem/1.2 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform 110ms ease, filter 180ms ease;
}
.atlas-symbol-command-entry > button:active { transform: scale(.985); }
.atlas-symbol-command-entry > button:hover { filter: brightness(1.08); }

html.atlas-symbol-command-open,
html.atlas-symbol-command-open body { overflow: hidden !important; overscroll-behavior: none; }
.atlas-symbol-command[hidden] { display: none !important; }
.atlas-symbol-command {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
.atlas-symbol-command.is-open { opacity: 1; pointer-events: auto; }
.atlas-symbol-command__backdrop { position: absolute; inset: 0; background: rgba(0, 8, 14, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.atlas-symbol-command__panel {
  position: relative;
  width: min(1180px, 100%);
  height: min(900px, calc(100dvh - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(69, 217, 239, .38);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(69, 217, 239, .045) 1px, transparent 1px),
    linear-gradient(rgba(69, 217, 239, .045) 1px, transparent 1px),
    var(--symbol-command-bg);
  background-size: 58px 58px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255,255,255,.04);
  transform: translateY(22px) scale(.985);
  transition: transform 300ms cubic-bezier(.2,.8,.2,1);
}
.atlas-symbol-command__panel > * {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}
body[data-site="atlas"] .atlas-symbol-command__panel > main.atlas-symbol-command__stage {
  width: auto;
  max-width: none;
  margin: 0;
}
.atlas-symbol-command.is-open .atlas-symbol-command__panel { transform: none; }
.atlas-symbol-command__top {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--symbol-command-line);
  background: rgba(3, 20, 30, .94);
}
.atlas-symbol-command__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.atlas-symbol-command__brand img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.atlas-symbol-command__brand span { display: grid; gap: 2px; min-width: 0; }
.atlas-symbol-command__brand b { color: var(--symbol-command-accent); font: 900 .78rem/1.2 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.atlas-symbol-command__brand small { color: var(--symbol-command-muted); font: 800 .58rem/1.2 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.atlas-symbol-command__close { width: 50px; height: 50px; flex: 0 0 50px; border: 1px solid var(--symbol-command-line); border-radius: 5px; background: var(--symbol-command-card); color: var(--symbol-command-text); font: 300 2rem/1 Arial, sans-serif; }
.atlas-symbol-command__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--symbol-command-line);
  background: linear-gradient(90deg, rgba(69,217,239,.09), rgba(49,214,160,.025));
}
.atlas-symbol-command__live { display: flex; align-items: center; gap: 8px; color: var(--symbol-command-mint); font: 900 .6rem/1.2 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.atlas-symbol-command__live i { width: 9px; height: 9px; border-radius: 50%; background: var(--symbol-command-mint); box-shadow: 0 0 18px rgba(49,214,160,.7); }
.atlas-symbol-command__identity div { min-width: 0; }
.atlas-symbol-command__identity p { margin: 0; color: var(--symbol-command-accent); font: 900 .62rem/1.2 "JetBrains Mono", monospace; letter-spacing: .08em; }
.atlas-symbol-command__identity h2 { margin: 6px 0; overflow: hidden; color: var(--symbol-command-text); font-size: clamp(1.3rem, 2.5vw, 2rem); letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.atlas-symbol-command__identity small { color: var(--symbol-command-muted); font-size: .72rem; }
.atlas-symbol-command__identity > a { min-height: 48px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--symbol-command-accent); border-radius: 5px; color: var(--symbol-command-accent); font: 900 .6rem/1.2 "JetBrains Mono", monospace; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.atlas-symbol-command__crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px clamp(18px, 3vw, 34px);
  overflow-x: auto;
  border-bottom: 1px solid var(--symbol-command-line);
  scrollbar-width: thin;
}
.atlas-symbol-command__crumbs button { min-height: 42px; flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--symbol-command-line); border-radius: 5px; background: rgba(4,25,37,.86); color: var(--symbol-command-accent); font: 900 .56rem/1.2 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.atlas-symbol-command__crumbs span { color: var(--symbol-command-muted); }
.atlas-symbol-command__stage { min-height: 0; padding: clamp(18px, 3vw, 34px); overflow-y: auto; overscroll-behavior: contain; }
.atlas-symbol-command__stage-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; margin-bottom: 22px; }
.atlas-symbol-command__stage-head span { color: var(--symbol-command-accent); font: 900 .62rem/1.2 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.atlas-symbol-command__stage-head h3 { margin: 7px 0; color: var(--symbol-command-text); font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: 0; }
.atlas-symbol-command__stage-head p { max-width: 72ch; margin: 0; color: var(--symbol-command-muted); font-size: .82rem; line-height: 1.55; }
.atlas-symbol-command__stage-head b { color: var(--symbol-command-accent); font: 800 clamp(2rem, 4vw, 3.5rem)/.9 "JetBrains Mono", monospace; }
.atlas-symbol-command__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.atlas-symbol-command__card {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label count" "title count" "copy count";
  gap: 6px 14px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--symbol-command-line);
  border-radius: 6px;
  background: rgba(5, 28, 41, .9);
  color: var(--symbol-command-text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.atlas-symbol-command__card:hover,
.atlas-symbol-command__card:focus-visible,
.atlas-symbol-command__card.is-current { border-color: var(--symbol-command-accent); background: rgba(8, 45, 59, .94); }
.atlas-symbol-command__card:hover { transform: translateY(-2px); }
.atlas-symbol-command__card > span { grid-area: label; color: var(--symbol-command-muted); font: 900 .56rem/1.2 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.atlas-symbol-command__card > strong { grid-area: title; font-size: 1.05rem; }
.atlas-symbol-command__card > small { grid-area: copy; color: var(--symbol-command-muted); font-size: .7rem; line-height: 1.42; }
.atlas-symbol-command__card > b { grid-area: count; align-self: center; color: var(--symbol-command-accent); font: 800 1.05rem/1.2 "JetBrains Mono", monospace; }
.atlas-symbol-command__card > b i { margin-left: 8px; font-style: normal; }
.atlas-symbol-command__path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.atlas-symbol-command__path button { min-height: 138px; display: grid; align-content: center; gap: 8px; padding: 16px; border: 1px solid var(--symbol-command-line); border-radius: 6px; background: rgba(5,28,41,.9); color: var(--symbol-command-text); text-align: left; }
.atlas-symbol-command__path button span { color: var(--symbol-command-accent); font: 900 .56rem/1.2 "JetBrains Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.atlas-symbol-command__path button strong { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; }
.atlas-symbol-command__path button small { color: var(--symbol-command-muted); font-size: .65rem; }
.atlas-symbol-command__path button i { color: var(--symbol-command-accent); font-style: normal; }
.atlas-symbol-command__overview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.atlas-symbol-command__overview-actions button { min-height: 52px; padding: 12px; border: 1px solid var(--symbol-command-line); border-radius: 5px; background: var(--symbol-command-card); color: var(--symbol-command-accent); font: 900 .6rem/1.3 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.atlas-symbol-command__overview-actions button:first-child { border-color: var(--symbol-command-accent); background: var(--symbol-command-accent); color: #02121a; }
.atlas-symbol-command__current { margin-bottom: 12px; }
.atlas-symbol-command__file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label label nav" "ticker name nav" "ticker meta nav"; gap: 4px 14px; align-items: center; padding: 18px; border: 1px solid var(--symbol-command-gold); border-radius: 6px; background: rgba(39,34,18,.45); }
.atlas-symbol-command__file > span { grid-area: label; color: var(--symbol-command-gold); font: 900 .56rem/1.2 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.atlas-symbol-command__file > strong { grid-area: ticker; color: var(--symbol-command-gold); font: 800 1.5rem/1 "JetBrains Mono", monospace; }
.atlas-symbol-command__file h3 { grid-area: name; margin: 0; color: var(--symbol-command-text); font-size: 1rem; }
.atlas-symbol-command__file p { grid-area: meta; margin: 0; color: var(--symbol-command-muted); font-size: .68rem; }
.atlas-symbol-command__file nav { grid-area: nav; display: flex; gap: 7px; }
.atlas-symbol-command__file nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 12px; border: 1px solid var(--symbol-command-line); border-radius: 5px; color: var(--symbol-command-accent); font: 900 .54rem/1.2 "JetBrains Mono", monospace; text-decoration: none; text-transform: uppercase; }
.atlas-symbol-command__symbols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.atlas-symbol-command__symbol { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "ticker name state" "ticker meta state"; gap: 3px 12px; align-items: center; min-height: 86px; padding: 13px; border: 1px solid var(--symbol-command-line); border-radius: 5px; background: rgba(5,28,41,.88); color: var(--symbol-command-text); text-decoration: none; }
.atlas-symbol-command__symbol > span { grid-area: ticker; overflow: hidden; color: var(--symbol-command-accent); font: 800 1rem/1 "JetBrains Mono", monospace; text-overflow: ellipsis; }
.atlas-symbol-command__symbol > strong { grid-area: name; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-symbol-command__symbol > small { grid-area: meta; overflow: hidden; color: var(--symbol-command-muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.atlas-symbol-command__symbol > i { grid-area: state; color: var(--symbol-command-accent); font: 900 .52rem/1.2 "JetBrains Mono", monospace; font-style: normal; text-transform: uppercase; }
.atlas-symbol-command__pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-top: 14px; }
.atlas-symbol-command__pagination button { min-height: 44px; border: 1px solid var(--symbol-command-line); border-radius: 5px; background: var(--symbol-command-card); color: var(--symbol-command-accent); font: 900 .56rem/1.2 "JetBrains Mono", monospace; text-transform: uppercase; }
.atlas-symbol-command__pagination button:last-child { justify-self: stretch; }
.atlas-symbol-command__pagination span { color: var(--symbol-command-muted); font: 800 .56rem/1.2 "JetBrains Mono", monospace; }
.atlas-symbol-command__loading,
.atlas-symbol-command__error { min-height: 240px; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--symbol-command-muted); text-align: center; }
.atlas-symbol-command__loading span { width: 44px; height: 44px; border: 2px solid var(--symbol-command-line); border-top-color: var(--symbol-command-accent); border-radius: 50%; animation: atlas-symbol-command-spin 800ms linear infinite; }
.atlas-symbol-command__loading strong,
.atlas-symbol-command__error strong { color: var(--symbol-command-text); font-size: 1rem; }
.atlas-symbol-command__loading small,
.atlas-symbol-command__error p { margin: 0; font-size: .7rem; }
.atlas-symbol-command__error button,
.atlas-symbol-command__error a { min-height: 46px; display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--symbol-command-accent); border-radius: 5px; background: var(--symbol-command-accent); color: #02121a; font: 900 .6rem/1.2 "JetBrains Mono", monospace; text-decoration: none; text-transform: uppercase; }
.atlas-symbol-command__footer { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 18px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--symbol-command-line); background: rgba(3,20,30,.94); }
.atlas-symbol-command__footer a { min-height: 40px; display: inline-flex; align-items: center; padding: 8px 12px; color: var(--symbol-command-muted); font: 800 .54rem/1.2 "JetBrains Mono", monospace; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
@keyframes atlas-symbol-command-spin { to { transform: rotate(360deg); } }

html[data-theme="light"] .atlas-symbol-command-entry { background: linear-gradient(90deg, rgba(15,118,145,.055) 1px, transparent 1px), linear-gradient(rgba(15,118,145,.055) 1px, transparent 1px), #f4fafc; background-size: 46px 46px; }
html[data-theme="light"] .atlas-symbol-command-entry__copy h2 { color: #071725; }
html[data-theme="light"] .atlas-symbol-command__backdrop { background: rgba(217, 231, 238, .72); }
html[data-theme="light"] .atlas-symbol-command__panel { --symbol-command-bg: #f7fbfd; --symbol-command-panel: #eef7fa; --symbol-command-card: #ffffff; --symbol-command-line: rgba(15,118,145,.24); --symbol-command-accent: #0f7892; --symbol-command-mint: #067d63; --symbol-command-gold: #8c6400; --symbol-command-text: #071725; --symbol-command-muted: #536875; background: linear-gradient(90deg, rgba(15,118,145,.05) 1px, transparent 1px), linear-gradient(rgba(15,118,145,.05) 1px, transparent 1px), var(--symbol-command-bg); background-size: 58px 58px; box-shadow: 0 34px 90px rgba(20,49,61,.24); }
html[data-theme="light"] .atlas-symbol-command__top,
html[data-theme="light"] .atlas-symbol-command__footer { background: rgba(244,250,252,.97); }
html[data-theme="light"] .atlas-symbol-command__identity { background: linear-gradient(90deg, rgba(15,118,145,.08), rgba(6,125,99,.03)); }
html[data-theme="light"] .atlas-symbol-command__crumbs button,
html[data-theme="light"] .atlas-symbol-command__card,
html[data-theme="light"] .atlas-symbol-command__path button,
html[data-theme="light"] .atlas-symbol-command__overview-actions button,
html[data-theme="light"] .atlas-symbol-command__symbol { background: rgba(255,255,255,.95); }

@media (max-width: 720px) {
  .atlas-symbol-command-entry { grid-template-columns: 1fr; padding: 18px 14px; }
  .atlas-symbol-command-entry__route { gap: 5px; font-size: .48rem; }
  .atlas-symbol-command-entry > button { width: 100%; min-width: 0; min-height: 52px; }
  .atlas-symbol-command { padding: 0; }
  .atlas-symbol-command__panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; transform: translateY(26px); }
  .atlas-symbol-command__top { min-height: calc(70px + env(safe-area-inset-top)); padding: max(12px, env(safe-area-inset-top)) 14px 12px; }
  .atlas-symbol-command__brand img { width: 44px; height: 44px; }
  .atlas-symbol-command__identity { grid-template-columns: 1fr auto; gap: 12px; padding: 15px 14px; }
  .atlas-symbol-command__live { grid-column: 1 / -1; }
  .atlas-symbol-command__identity > a { min-height: 44px; padding: 9px 11px; }
  .atlas-symbol-command__identity h2 { font-size: 1.12rem; }
  .atlas-symbol-command__crumbs { padding: 9px 14px; }
  .atlas-symbol-command__stage { padding: 18px 14px; }
  .atlas-symbol-command__stage-head { grid-template-columns: 1fr; gap: 10px; }
  .atlas-symbol-command__stage-head b { font-size: 1.8rem; }
  .atlas-symbol-command__cards,
  .atlas-symbol-command__symbols { grid-template-columns: 1fr; }
  .atlas-symbol-command__card { min-height: 124px; }
  .atlas-symbol-command__path { grid-template-columns: 1fr 1fr; }
  .atlas-symbol-command__path button { min-height: 116px; }
  .atlas-symbol-command__overview-actions { grid-template-columns: 1fr; }
  .atlas-symbol-command__file { grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: "label label" "ticker name" "meta meta" "nav nav"; }
  .atlas-symbol-command__file p { grid-area: meta; }
  .atlas-symbol-command__file nav { margin-top: 8px; }
  .atlas-symbol-command__file nav a { flex: 1; justify-content: center; }
  .atlas-symbol-command__symbol { grid-template-columns: 62px minmax(0, 1fr); grid-template-areas: "ticker name" "ticker meta" "state state"; }
  .atlas-symbol-command__symbol > i { margin-top: 5px; }
  .atlas-symbol-command__pagination { grid-template-columns: 1fr 1fr; }
  .atlas-symbol-command__pagination span { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .atlas-symbol-command__footer { justify-content: center; }
}

@media (max-width: 380px) {
  .atlas-symbol-command-entry__route span:nth-of-type(2),
  .atlas-symbol-command-entry__route span:nth-of-type(3) { display: none; }
  .atlas-symbol-command-entry__route { grid-template-columns: auto 1fr auto; }
  .atlas-symbol-command-entry__route i:nth-of-type(2),
  .atlas-symbol-command-entry__route i:nth-of-type(3) { display: none; }
  .atlas-symbol-command__identity > a span { display: none; }
  .atlas-symbol-command__footer a { padding-inline: 7px; font-size: .48rem; }
}

@media (min-width: 1800px) {
  .atlas-symbol-command__panel { width: min(1480px, calc(100% - 48px)); height: min(1080px, calc(100dvh - 48px)); }
  .atlas-symbol-command__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atlas-symbol-command__symbols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-symbol-command,
  .atlas-symbol-command__panel,
  .atlas-symbol-command__card,
  .atlas-symbol-command-entry > button { transition: none !important; }
  .atlas-symbol-command__loading span { animation: none; }
}
