:root {
  color-scheme: dark;
  --black: #000;
  --near-black: #050505;
  --panel: #0a0a0a;
  --line: #3c3c3c;
  --line-soft: #242424;
  --text: #f4f4ed;
  --muted: #a8a8a0;
  --orange: #ff9f00;
  --amber: #ffc033;
  --green: #00f060;
  --red: #ff253a;
  --blue: #0067c5;
  --nav-red: #b80018;
  --nav-red-dark: #65000b;
  --steel: #5c5c5c;
  --navy: #08083e;
  --footer-height: 39px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  color: var(--text);
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  letter-spacing: 0;
  padding-bottom: var(--footer-height);
}

a {
  color: inherit;
}

.terminal-frame {
  min-height: 100vh;
  background: var(--black);
  border-left: 2px solid #13206e;
  border-right: 2px solid #13206e;
}

.terminal-top {
  border-bottom: 1px solid var(--line);
}

.system-bar {
  display: grid;
  grid-template-columns: 26px 26px minmax(190px, 310px) 64px minmax(230px, 360px) minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 30px;
  gap: 4px;
  padding: 0 3px;
  border-bottom: 1px solid #202020;
  background: #161616;
}

.sys-arrow,
.security-picker,
.small-picker,
.menu-picker,
.system-bar a {
  display: grid;
  min-height: 26px;
  place-items: center;
  border: 1px solid #454545;
  background: linear-gradient(#f2f2f2, #9e9e9e);
  color: #000;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sys-arrow {
  color: #d5d5d5;
  background: #222;
}

.small-picker {
  font-weight: 900;
}

.menu-picker {
  justify-content: start;
  padding: 0 12px;
}

.system-spacer {
  min-width: 0;
}

.system-bar a {
  padding: 0 10px;
  background: #050505;
  color: #fff;
}

.quote-band {
  display: grid;
  grid-template-columns: 184px minmax(320px, 0.85fr) minmax(220px, 0.45fr) minmax(420px, 1fr);
  min-height: 58px;
  align-items: stretch;
  border-bottom: 1px solid #151515;
  background: #000;
}

.quote-symbol,
.quote-market,
.quote-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 4px 16px;
  overflow: hidden;
}

.quote-symbol {
  border-left: 16px solid #178fc7;
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
}

.quote-symbol small {
  align-self: end;
  color: var(--orange);
  font-size: 1.2rem;
  line-height: 1;
}

.quote-market {
  justify-content: start;
  gap: 20px;
  color: var(--orange);
  font-size: 1.65rem;
}

.quote-market span {
  white-space: nowrap;
}

.quote-market b {
  color: #fff;
  font-weight: 500;
}

.quote-market strong {
  font-weight: 500;
}

.quote-spark {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: 6px 10px;
}

.quote-spark svg {
  width: 100%;
  height: 38px;
}

.quote-spark polyline {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.quote-spark .spark-red {
  stroke: var(--red);
}

.quote-meta {
  justify-content: end;
  gap: 28px;
  padding-right: 24px;
  color: var(--orange);
  font-size: 1.6rem;
}

.quote-meta b,
.quote-meta strong {
  color: #fff;
  font-weight: 500;
}

.terminal-tabs {
  display: grid;
  grid-template-columns: 184px 180px 200px minmax(250px, 1fr);
  min-height: 32px;
  border-bottom: 1px solid #323232;
  background: linear-gradient(#ff3644, var(--nav-red) 46%, var(--nav-red-dark));
}

.terminal-tabs span,
.terminal-tabs strong {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 8px;
  border-right: 1px solid rgba(0, 0, 0, 0.45);
  overflow: hidden;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-tabs span:first-child {
  background: #ff9f23;
  color: #000;
}

.terminal-tabs strong {
  justify-content: end;
  padding-right: 16px;
}

.terminal-main {
  padding: 0 2px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 184px minmax(500px, 1fr) 314px;
  min-height: calc(100vh - 129px);
  border-bottom: 1px solid #1c1c1c;
}

.function-rail {
  border-right: 1px solid #555;
  background: #1d1d1d;
}

.rail-group {
  border-bottom: 1px solid #555;
}

.rail-group h2 {
  margin: 0;
  padding: 2px 4px;
  background: linear-gradient(#626262, #2f2f2f);
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.1;
}

.rail-group a {
  display: block;
  padding: 2px 10px 3px 18px;
  color: var(--orange);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.33rem;
  line-height: 1.05;
  text-decoration: none;
}

.rail-group a.active {
  background: var(--blue);
  color: #fff;
}

.research-screen {
  min-width: 0;
  border-right: 1px solid #555;
  background: #000;
}

.center-view[hidden] {
  display: none;
}

.pane-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 4px;
  border-bottom: 1px solid #333;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.18rem;
}

.pane-title strong {
  color: var(--orange);
  font-weight: 500;
}

.primer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
  padding: 4px;
  border-bottom: 1px solid #2a2a2a;
}

.primer-panel h1,
.feed-block h2,
.feed-header h2 {
  margin: 0 0 3px;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.05;
}

.primer-panel h1 span,
.feed-header h2 span {
  color: #fff;
}

.primer-panel p {
  margin: 0 0 4px;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.18;
}

.primer-panel .orange-copy {
  color: var(--orange);
}

.terminal-preview {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 58px;
  gap: 5px;
  min-height: 130px;
  padding: 6px;
  border: 1px solid #262626;
  background: #050505;
}

.mini-chart {
  position: relative;
  overflow: hidden;
  border: 1px solid #242424;
  background:
    linear-gradient(180deg, transparent 48%, #383838 49%, transparent 51%),
    linear-gradient(90deg, transparent 48%, #222 49%, transparent 51%),
    #030303;
}

.mini-chart::after {
  content: "";
  position: absolute;
  inset: 10px 4px 9px;
  clip-path: polygon(0 70%, 10% 52%, 21% 58%, 32% 34%, 43% 45%, 55% 22%, 67% 39%, 80% 16%, 100% 28%, 100% 100%, 0 100%);
  background: var(--green);
}

.chart-red::after {
  clip-path: polygon(0 20%, 10% 34%, 24% 28%, 36% 50%, 52% 47%, 66% 69%, 82% 58%, 100% 76%, 100% 100%, 0 100%);
  background: var(--red);
}

.mini-bars {
  grid-row: span 2;
  background:
    linear-gradient(to top, var(--green) 0 22%, transparent 22%),
    linear-gradient(to top, var(--red) 0 42%, transparent 42%),
    linear-gradient(to top, var(--green) 0 60%, transparent 60%),
    linear-gradient(to top, var(--red) 0 30%, transparent 30%),
    #030303;
  background-size: 12px 100%, 12px 100%, 12px 100%, 12px 100%, auto;
  background-position: 4px 0, 20px 0, 36px 0, 52px 0, 0 0;
  background-repeat: no-repeat;
  border: 1px solid #242424;
}

.pager {
  display: inline-grid;
  grid-template-columns: 44px 148px 44px;
  margin: 0 0 18px 199px;
  border: 1px solid #333;
  background: #111;
}

.pager button,
.pager span {
  min-height: 28px;
  border: 0;
  border-right: 1px solid #333;
  background: #151515;
  color: #cfcfcf;
  font: inherit;
}

.pager span {
  display: grid;
  place-items: center;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.1rem;
}

.pager button:last-child {
  border-right: 0;
}

.about-terminal {
  margin: 0 4px 18px;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
  background: #030303;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.about-terminal-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  min-height: 30px;
}

.about-terminal-title h2 {
  margin: 0;
  color: #fff;
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.05;
}

.about-terminal-title strong {
  min-height: 29px;
  padding: 2px 4px;
  background: #ff9f23;
  color: #000;
  font-size: 1.16rem;
  font-weight: 500;
}

.about-terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: 18px;
  padding: 6px 0 7px;
}

.about-terminal-copy p {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.14;
}

.about-terminal-copy .orange-copy {
  color: var(--orange);
}

.about-terminal-facts {
  display: grid;
  gap: 3px;
  margin: 0;
}

.about-terminal-facts div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 25px;
}

.about-terminal-facts dt,
.about-terminal-facts dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-terminal-facts dt {
  color: #fff;
}

.about-terminal-facts dd {
  color: var(--orange);
}

.about-terminal-facts a {
  color: var(--orange);
  text-decoration: none;
}

.about-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 6px 0 4px;
  border-top: 1px solid #242424;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.08;
}

.about-social-row a,
.about-social-row span {
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.about-social-row b {
  color: #fff;
  font-weight: 500;
}

.about-notice {
  margin: 0;
  padding: 0 0 7px;
  color: var(--muted);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.98rem;
  line-height: 1.12;
}

.social-terminal {
  margin: 0 4px 18px;
  border-top: 1px solid #2e2e2e;
  border-bottom: 1px solid #2e2e2e;
  background: #030303;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.social-terminal-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
  min-height: 30px;
}

.social-terminal-title h2 {
  margin: 0;
  color: #fff;
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.05;
}

.social-terminal-title strong {
  min-height: 29px;
  padding: 2px 4px;
  background: #ff9f23;
  color: #000;
  font-size: 1.16rem;
  font-weight: 500;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 5px 0 7px;
}

.social-link {
  display: grid;
  min-width: 0;
  min-height: 54px;
  align-content: center;
  padding: 5px 8px;
  border-left: 3px solid var(--orange);
  background: #080808;
  color: var(--orange);
  text-decoration: none;
}

.social-link span,
.social-link small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link span {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.05;
}

.social-link small {
  color: var(--orange);
  font-size: 1rem;
  line-height: 1.05;
}

.social-notice {
  margin: 0;
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.15;
}

.feed-block {
  padding: 0 4px;
}

.feed-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: end;
}

.feed-header strong {
  min-height: 29px;
  padding: 2px 4px;
  background: #ff9f23;
  color: #000;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.16rem;
  font-weight: 500;
}

.terminal-list {
  margin: 0 0 6px;
  padding: 0;
  color: var(--orange);
  counter-reset: item;
  list-style: none;
}

.terminal-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 26px;
  color: var(--orange);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.26rem;
  line-height: 1.08;
  counter-increment: item;
}

.terminal-list li::before {
  content: counter(item) ")";
  color: #fff;
}

.terminal-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-list li {
  grid-template-columns: 38px minmax(0, 1fr) 60px;
}

.recent-list time {
  color: var(--orange);
  text-align: right;
}

.resume-screen {
  padding: 4px;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 4px 4px 10px;
  border-bottom: 1px solid #333;
}

.resume-hero .eyebrow,
.resume-hero h1,
.resume-hero p {
  margin: 0;
}

.resume-hero h1 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.05;
}

.resume-hero p {
  color: var(--orange);
  font-size: 1.18rem;
  line-height: 1.16;
}

.resume-action {
  align-self: start;
  min-width: 94px;
  padding: 4px 8px;
  background: var(--orange);
  color: #000;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.resume-section {
  padding: 8px 4px;
  border-bottom: 1px solid #262626;
}

.resume-section h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.05;
}

.resume-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  min-height: 29px;
  color: var(--orange);
  font-size: 1.14rem;
  line-height: 1.08;
}

.resume-entry strong,
.resume-entry span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resume-entry strong {
  color: #fff;
  font-weight: 500;
}

.resume-entry time {
  color: var(--orange);
  text-align: right;
  white-space: nowrap;
}

.resume-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resume-section p,
.resume-section li {
  margin: 0 0 3px;
  color: var(--orange);
  font-size: 1.08rem;
  line-height: 1.12;
}

.resume-section strong {
  color: #fff;
  font-weight: 500;
}

.resume-section ul {
  margin: 0;
  padding-left: 18px;
}

.right-stack {
  display: grid;
  align-content: start;
  background: #000;
}

.terminal-table {
  border-bottom: 1px solid #555;
  background: #050505;
}

.table-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  min-height: 28px;
  background: linear-gradient(#777, #2f2f2f);
  color: #fff;
}

.watchlist-title {
  grid-template-columns: minmax(0, 1fr) 48px 82px 50px;
}

.table-title span,
.table-title strong {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 4px;
  overflow: hidden;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-title strong {
  justify-content: end;
  color: #fff;
}

.terminal-table h3 {
  margin: 0;
  padding: 2px 3px;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.08;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  min-height: 26px;
  padding: 0 4px;
  color: var(--orange);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.12rem;
  line-height: 1.05;
}

.market-row {
  grid-template-columns: minmax(0, 1fr) 48px 82px 50px;
  min-height: 28px;
  font-size: 1.08rem;
}

.table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row strong {
  color: var(--orange);
  font-weight: 500;
  text-align: right;
}

.market-name {
  font-size: 1.04rem;
}

.delay-badge {
  display: none;
  min-width: 14px;
  height: 14px;
  margin-left: 4px;
  padding: 0 3px;
  border: 1px solid var(--orange);
  background: #111;
  color: var(--orange);
  cursor: help;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 12px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.delay-badge.is-visible {
  display: inline-block;
}

.market-spark {
  display: block;
  width: 44px;
  height: 22px;
  padding: 0 2px;
}

.market-spark svg {
  display: block;
  width: 100%;
  height: 22px;
}

.market-spark polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.market-spark [data-spark-full] {
  stroke: #fff;
}

.market-spark [data-spark-tail] {
  stroke: var(--green);
}

.market-spark.spark-down [data-spark-tail] {
  stroke: var(--red);
}

.market-spark.spark-flat [data-spark-tail] {
  stroke: var(--orange);
}

.market-row [data-market-price] {
  padding: 0 3px;
  border-radius: 2px;
  color: #fff;
  transition: background 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.market-row [data-market-price].price-flash-up {
  animation: price-flash-up 0.85s ease-out;
}

.market-row [data-market-price].price-flash-down {
  animation: price-flash-down 0.85s ease-out;
}

.table-row.gain strong:last-child {
  color: var(--green);
}

.table-row.loss strong:last-child {
  color: var(--red);
}

@keyframes price-flash-up {
  0% {
    background: rgba(0, 240, 96, 0.9);
    box-shadow: 0 0 0 1px var(--green);
    color: #000;
  }

  45% {
    background: rgba(0, 240, 96, 0.28);
    color: var(--green);
  }

  100% {
    background: transparent;
    box-shadow: none;
    color: #fff;
  }
}

@keyframes price-flash-down {
  0% {
    background: rgba(255, 37, 58, 0.95);
    box-shadow: 0 0 0 1px var(--red);
    color: #000;
  }

  45% {
    background: rgba(255, 37, 58, 0.28);
    color: var(--red);
  }

  100% {
    background: transparent;
    box-shadow: none;
    color: #fff;
  }
}

.terminal-note {
  margin: 0;
  padding: 2px 4px 3px;
  overflow: hidden;
  color: var(--muted);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-table {
  padding-bottom: 4px;
}

.exchange-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 58px;
  padding: 5px 4px;
  border-bottom: 1px solid #222;
}

.terminal-clock-row {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 62px;
}

.clock-code {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: 4px;
  border: 1px solid #404040;
  background: linear-gradient(#3d3d3d, #111);
  color: var(--orange);
  text-align: center;
}

.clock-code span {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.clock-code strong {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.exchange-row > div:not(.clock-widget):not(.clock-code) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.exchange-name {
  overflow: hidden;
  color: var(--orange);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-row strong {
  color: var(--green);
  font-size: 1.22rem;
  font-weight: 500;
}

.exchange-row small {
  overflow: hidden;
  color: var(--muted);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-widget {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background:
    linear-gradient(var(--orange), var(--orange)) 50% 5px / 2px 5px no-repeat,
    linear-gradient(var(--orange), var(--orange)) 50% calc(100% - 5px) / 2px 5px no-repeat,
    linear-gradient(90deg, var(--orange), var(--orange)) 5px 50% / 5px 2px no-repeat,
    linear-gradient(90deg, var(--orange), var(--orange)) calc(100% - 5px) 50% / 5px 2px no-repeat,
    #050505;
}

.clock-widget::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #030303;
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  border-radius: 999px;
  transform-origin: 50% 100%;
  z-index: 2;
}

.hour-hand {
  height: 11px;
  background: #fff;
  transform: translateX(-50%) rotate(var(--hour-angle, 0deg));
}

.minute-hand {
  height: 15px;
  background: var(--orange);
  transform: translateX(-50%) rotate(var(--minute-angle, 0deg));
}

.sweep-hand {
  width: 1px;
  height: 17px;
  background: var(--green);
  transform: translateX(-50%) rotate(var(--sweep-angle, 0deg));
}

.clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  transform: translate(-50%, -50%);
  z-index: 3;
}

.market-countdown {
  display: grid;
  gap: 2px;
  margin: 5px 4px 0;
  padding: 5px;
  border: 1px solid #353535;
  background: #080808;
}

.market-countdown span,
.market-countdown small {
  overflow: hidden;
  color: var(--muted);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-countdown strong {
  color: var(--green);
  font-size: 1.18rem;
  font-weight: 500;
}

.terminal-footer {
  position: fixed;
  right: 2px;
  bottom: 0;
  left: 2px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: var(--footer-height);
  padding: 0 8px;
  background: var(--navy);
  border-top: 1px solid #1c1c1c;
  color: #fff;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1rem;
}

.terminal-footer.is-important-news {
  animation: important-news-flash 1s steps(2, end) infinite;
  background: #be0000;
  border-top-color: #ff3b3b;
}

.terminal-footer a {
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.news-ticker {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0 10px;
}

.news-ticker.is-important-news {
  font-weight: 700;
}

.news-headline {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes important-news-flash {
  0%,
  100% {
    background: #be0000;
    box-shadow: 0 -1px 0 #ff3b3b inset;
  }

  50% {
    background: #5e0000;
    box-shadow: 0 -1px 0 #ff8b8b inset;
  }
}

/* About page compatibility */
.site-header,
main:not(.terminal-main),
footer:not(.terminal-footer) {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid var(--orange);
  background: #000;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 36px;
  place-items: center;
  background: var(--orange);
  color: #000;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid #333;
  background: #000;
}

.site-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  background: #151515;
  color: var(--orange);
  text-decoration: none;
}

.site-nav a.active {
  background: var(--orange);
  color: #000;
}

.command-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2px;
  margin-bottom: 8px;
}

.command-ribbon span {
  min-width: 0;
  padding: 7px 9px;
  overflow: hidden;
  background: #111;
  color: var(--orange);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-hero > div,
.panel {
  border: 1px solid #3a3a3a;
  background: #050505;
}

.profile-hero > div {
  min-height: 220px;
  padding: 14px;
}

.terminal-titlebar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2px;
  margin: -14px -14px 14px;
}

.terminal-titlebar span {
  padding: 8px 10px;
  overflow: hidden;
  background: var(--orange);
  color: #000;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-titlebar span:nth-child(3) {
  background: var(--green);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.profile-hero h1 {
  margin-bottom: 10px;
  color: var(--orange);
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 4rem;
  line-height: 0.95;
}

.lead,
.muted {
  color: var(--muted);
  line-height: 1.45;
}

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

.panel {
  padding: 14px;
}

.span-2 {
  grid-column: span 2;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  padding: 8px;
  border: 1px solid #303030;
  background: #090909;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.skill-grid li {
  padding: 7px 8px;
  border-left: 3px solid var(--orange);
  background: #090909;
  color: var(--text);
}

.note-list {
  color: var(--muted);
}

.text-link {
  color: var(--orange);
  font-weight: 900;
  text-decoration: none;
}

footer:not(.terminal-footer) {
  display: flex;
  justify-content: space-between;
  padding: 18px 0 28px;
  color: var(--muted);
}

footer:not(.terminal-footer) a {
  color: var(--orange);
  text-decoration: none;
}

@media (max-width: 1120px) {
  .quote-band {
    grid-template-columns: 170px minmax(250px, 0.8fr) minmax(160px, 0.45fr) minmax(280px, 1fr);
  }

  .quote-symbol,
  .quote-market,
  .quote-meta {
    font-size: 1.32rem;
  }

  .quote-meta {
    gap: 16px;
    padding-right: 14px;
  }

  .terminal-tabs {
    grid-template-columns: 170px 170px 190px minmax(180px, 1fr);
  }

  .workspace-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .right-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #555;
  }

  .terminal-table {
    border-right: 1px solid #555;
  }
}

@media (max-width: 900px) {
  .system-bar,
  .quote-band,
  .terminal-tabs,
  .workspace-grid,
  .primer-panel,
  .about-terminal-title,
  .about-terminal-grid,
  .social-terminal-title,
  .feed-header,
  .right-stack,
  .terminal-footer,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .system-spacer,
  .quote-spark {
    display: none;
  }

  .workspace-grid {
    min-height: auto;
  }

  .function-rail {
    border-right: 0;
  }

  .rail-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-group h2 {
    grid-column: 1 / -1;
  }

  .rail-group a {
    padding-left: 10px;
  }

  .pager {
    margin-left: 4px;
  }

  .right-stack {
    grid-template-columns: 1fr;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .terminal-table {
    border-right: 0;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .quote-symbol,
  .quote-market,
  .quote-meta {
    padding: 4px 8px;
    font-size: 1.24rem;
  }

  .terminal-tabs span,
  .terminal-tabs strong,
  .rail-group a,
  .terminal-list li {
    font-size: 1.05rem;
  }

  .recent-list li {
    grid-template-columns: 30px minmax(0, 1fr) 52px;
  }

  .site-header {
    flex-direction: column;
  }

  .profile-hero h1 {
    font-size: 2.8rem;
  }
}
