/* Site console — layout and component classes ported from
   design_handoff_bmv080_console/standalone, retheme onto the site's own
   design tokens (landing.css) rather than the handoff's Nocturne palette:
   the mine console lives inside the same product as the rest of the pitch
   site, so it keeps the same ground, ink and yellow accent, not a second
   brand. Everything past :root is scoped under .nocturne-scope so it can't
   leak into the shared masthead/footer. */

:root {
  --color-bg: var(--ground);
  --color-surface: var(--raised);
  --color-text: var(--ink);
  --color-accent: var(--accent);
  --color-accent-2: var(--accent);
  --color-divider: var(--hairline);

  --color-neutral-100: var(--ink);
  --color-neutral-800: var(--hairline);
  --color-neutral-900: var(--sunk);

  --color-accent-300: var(--accent);

  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

.nocturne-scope {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  padding: 1.75rem 0 3.5rem;
}
.nocturne-scope h1,
.nocturne-scope h2,
.nocturne-scope h3,
.nocturne-scope h4,
.nocturne-scope h5,
.nocturne-scope h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
.nocturne-scope h1 {
  font-size: 40px;
}
.nocturne-scope h2 {
  font-size: 32px;
}
.nocturne-scope h3 {
  font-size: 25px;
}
.nocturne-scope h4 {
  font-size: 20px;
  margin: 0;
}
.nocturne-scope h5 {
  font-size: 16px;
}
.nocturne-scope h6 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nocturne-scope p {
  margin: 0 0 var(--space-3);
}
.nocturne-scope a {
  color: var(--color-accent);
  text-underline-offset: 3px;
}
.nocturne-scope img {
  display: block;
  max-width: 100%;
}
.nocturne-scope :focus {
  outline: none;
}
.nocturne-scope :focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.nocturne-scope ::selection {
  background: color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.nocturne-scope .mono {
  font-family: var(--font-mono);
}
.nocturne-scope .muted {
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.nocturne-scope .dim {
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

/* — rules — */
.nocturne-scope .hr {
  height: 1px;
  border: 0;
  margin: var(--space-4) 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px),
    transparent
  );
}

/* — buttons — */
.nocturne-scope .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.nocturne-scope .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.nocturne-scope .btn-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.nocturne-scope .btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}
.nocturne-scope .btn-primary:active {
  background: color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.nocturne-scope .btn-secondary {
  border-color: var(--color-divider);
}
.nocturne-scope .btn-secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}
.nocturne-scope .btn-secondary:active {
  background: color-mix(in srgb, var(--color-text) 14%, transparent);
}
.nocturne-scope .btn-ghost {
  color: var(--color-accent);
  padding-inline: var(--space-1);
}
.nocturne-scope .btn-ghost:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.nocturne-scope .btn-ghost:active {
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
}
.nocturne-scope .btn-block {
  width: 100%;
  margin-top: var(--space-2);
}

/* — forms — */
.nocturne-scope .input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.nocturne-scope .input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.nocturne-scope .input:focus-visible {
  border-color: var(--color-accent);
  outline-offset: 0;
}
.nocturne-scope input[type='range'] {
  accent-color: var(--color-accent);
  width: 100%;
}

/* — cards — */
.nocturne-scope .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

/* — tags — */
.nocturne-scope .tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.nocturne-scope .tag-neutral {
  background: var(--color-neutral-800);
  color: var(--color-neutral-100);
}
.nocturne-scope .tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

/* — tables — */
.nocturne-scope .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.nocturne-scope .table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2);
  border-bottom: 1px solid transparent;
}
.nocturne-scope .table td {
  padding: var(--space-2);
  border-bottom: 1px solid transparent;
}
.nocturne-scope .table thead tr {
  background: linear-gradient(
      to right,
      transparent,
      var(--color-divider) 48px,
      var(--color-divider) calc(100% - 48px),
      transparent
    )
    no-repeat bottom / 100% 1px;
}
.nocturne-scope .table tbody tr {
  background: linear-gradient(
      to right,
      transparent,
      color-mix(in srgb, var(--color-text) 8%, transparent) 48px,
      color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px),
      transparent
    )
    no-repeat bottom / 100% 1px;
}
.nocturne-scope .table tbody tr:hover {
  background:
    linear-gradient(
        color-mix(in srgb, var(--color-text) 4%, transparent),
        color-mix(in srgb, var(--color-text) 4%, transparent)
      )
      no-repeat 0 0 / 100% 100%,
    linear-gradient(
        to right,
        transparent,
        color-mix(in srgb, var(--color-text) 8%, transparent) 48px,
        color-mix(in srgb, var(--color-text) 8%, transparent) calc(100% - 48px),
        transparent
      )
      no-repeat bottom / 100% 1px;
}

/* — page layout (from the standalone prototype's page-level <style>) — */
.nocturne-scope .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@keyframes nocturne-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
.nocturne-scope .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fcf97;
  animation: nocturne-pulse 2s ease-in-out infinite;
}
.nocturne-scope .head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.nocturne-scope .head h1 {
  font-size: 40px;
  margin: 0 0 6px;
}
.nocturne-scope .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 18px;
}
.nocturne-scope .tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
}
.nocturne-scope .tab {
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border-radius: 7px;
  padding: 7px 15px;
  border: 1px solid transparent;
  background: transparent;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
.nocturne-scope .tab:hover {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
}
.nocturne-scope .tab[aria-selected='true'] {
  border-color: var(--color-accent);
  color: var(--color-accent-300);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
}
.nocturne-scope .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.nocturne-scope .stat {
  padding: 20px 22px;
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.nocturne-scope .stat b {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 30px;
  line-height: 1;
}
.nocturne-scope .cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.nocturne-scope .cols-air {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
}
.nocturne-scope .track {
  height: 8px;
  border-radius: 4px;
  background: var(--color-neutral-900);
  display: block;
}
.nocturne-scope .track > span {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.nocturne-scope .chan {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.nocturne-scope .kicker {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.nocturne-scope .axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 8px;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.nocturne-scope .num {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}
.nocturne-scope .exposure-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(120px, 1fr) 88px 76px 76px 96px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}
.nocturne-scope .alert-item {
  border-left: 2px solid var(--color-accent);
  padding: 2px 0 2px 12px;
}
@media (max-width: 900px) {
  .nocturne-scope .cols,
  .nocturne-scope .cols-air {
    grid-template-columns: minmax(0, 1fr);
  }
  .nocturne-scope .exposure-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
