:root {
  --rrtb-navy: #0b2236;
  --rrtb-ink: #162230;
  --rrtb-bg: #eef2f5;
  --rrtb-muted: #637181;
  --rrtb-amber: #f4a000;
  --rrtb-panel: #f8fafc;
  --rrtb-line: #d4dee8;
  --rrtb-deep: #061521;
  --rrtb-terminal: #0a1c2c;
}

body {
  background: var(--rrtb-bg);
  color: var(--rrtb-ink);
}

.public-page {
  background:
    linear-gradient(180deg, #dfe7ee 0%, #edf2f6 360px, #f6f8fa 100%);
}

.navbar {
  border-bottom: 1px solid #d9e1e8;
  background: #fff;
}

.public-page .navbar {
  border-bottom-color: rgba(255, 255, 255, .08);
  background: #071827;
}

.exchange-status-strip {
  border-bottom: 1px solid rgba(148, 169, 190, .18);
  background: #061521;
  color: #dbe7f1;
}

.exchange-status-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(148, 169, 190, .18);
}

.status-cell {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(11, 34, 54, .98), rgba(6, 21, 33, .98));
  padding: 10px 14px;
}

.status-cell span {
  display: block;
  color: #7d91a5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-cell strong {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #eef5fa;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.status-cell-primary strong {
  color: #f4b02f;
}

.status-cell i {
  color: #2fce72;
  font-size: 8px;
}

.navbar .container-xl {
  gap: 12px;
}

.navbar-brand {
  min-width: 0;
  text-decoration: none;
  white-space: normal;
}

.navbar .btn {
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  border: 3px solid #f8fafc;
  background: var(--rrtb-navy);
  box-shadow: inset 0 0 0 4px #173047;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.public-page .brand-mark {
  border-color: rgba(255, 255, 255, .86);
  background: #071827;
  box-shadow:
    inset 0 0 0 4px #15324c,
    0 0 0 1px rgba(244, 160, 0, .35);
}

.brand-title {
  display: block;
  color: var(--rrtb-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.public-page .brand-title {
  color: #fff;
}

.brand-subtitle {
  display: block;
  color: var(--rrtb-muted);
  font-size: 14px;
  font-weight: 500;
}

.public-page .brand-subtitle {
  color: #a8b6c4;
}

.public-page .navbar .btn-outline-secondary {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .035);
  color: #dce6ef;
}

.public-page .navbar .btn-outline-secondary:hover {
  border-color: rgba(244, 160, 0, .7);
  background: rgba(244, 160, 0, .12);
  color: #fff;
}

.hero {
  padding: 28px 0 20px;
  border-bottom: 1px solid #d9e1e8;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fa 100%);
}

.eyebrow {
  margin-bottom: 8px;
  color: #1c6cb0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--rrtb-navy);
  font-size: 40px;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 520px;
  margin: 16px 0 0;
  color: #465466;
  font-size: 16px;
  line-height: 1.45;
}

.hero-note {
  border-left: 4px solid var(--rrtb-amber);
  border-radius: 6px;
  background: #fff8e6;
  padding: 14px 16px;
  color: #4a3a12;
  font-size: 14px;
  line-height: 1.45;
}

.intake-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-bottom: 1px solid #1a344c;
  background:
    linear-gradient(90deg, rgba(5, 18, 31, .97) 0%, rgba(5, 18, 31, .9) 40%, rgba(5, 18, 31, .5) 72%, rgba(5, 18, 31, .24) 100%),
    linear-gradient(180deg, rgba(5, 18, 31, .1) 0%, rgba(5, 18, 31, .78) 100%),
    url("rrtb-hero-ops.jpg") center / cover no-repeat;
  padding: 44px 0 34px;
}

.intake-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(244, 160, 0, .1) 45.2%, transparent 45.5%),
    radial-gradient(circle at 26% 86%, rgba(244, 160, 0, .16), transparent 24%),
    radial-gradient(circle at 72% 28%, rgba(38, 133, 196, .16), transparent 28%);
  opacity: .78;
}

.intake-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 82%);
}

.intake-hero .container-xl {
  position: relative;
  z-index: 1;
}

.intake-hero h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-size: 46px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
}

.intake-hero .eyebrow {
  color: #f6b333;
}

.intake-hero .hero-copy {
  color: #d6e1ea;
}

.hero-system-label {
  max-width: 500px;
  margin: 0 0 10px;
  color: #8fa7ba;
  font-size: 15px;
  font-weight: 750;
}

.market-tape {
  display: flex;
  max-width: 560px;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(158, 181, 199, .24);
  border-radius: 8px;
  background: rgba(7, 24, 39, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.market-tape span {
  flex: 1 1 150px;
  padding: 10px 12px;
  color: #dce7ef;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, .055);
}

.terminal-board {
  max-width: 560px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(158, 181, 199, .24);
  border-radius: 8px;
  background: rgba(3, 16, 28, .72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 14px 34px rgba(0, 0, 0, .24);
}

.terminal-board-head,
.terminal-row {
  display: grid;
  grid-template-columns: 1fr .8fr 1fr;
  gap: 10px;
  align-items: center;
}

.terminal-board-head {
  border-bottom: 1px solid rgba(158, 181, 199, .18);
  background: rgba(255, 255, 255, .055);
  padding: 10px 12px;
}

.terminal-board-head span,
.terminal-board-head strong,
.terminal-row span,
.terminal-row strong,
.section-kicker,
.form-kicker {
  display: block;
  color: #7d91a5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terminal-board-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #2fce72;
}

.terminal-board-head strong i {
  font-size: 8px;
}

.terminal-row {
  padding: 11px 12px;
}

.terminal-row + .terminal-row {
  border-top: 1px solid rgba(158, 181, 199, .12);
}

.terminal-row span {
  color: #d8e4ee;
  text-transform: none;
}

.terminal-code {
  color: #f4b02f !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-row strong {
  justify-self: end;
  color: #9db1c3;
  text-transform: none;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  padding: 7px 10px;
  color: #ecf4fa;
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.intake-panel {
  overflow: hidden;
  border: 1px solid rgba(177, 194, 211, .92);
  border-radius: 8px;
  background: rgba(248, 250, 252, .98);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .32),
    0 0 0 1px rgba(255, 255, 255, .36);
}

.ticket-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(148, 169, 190, .22);
  background:
    linear-gradient(180deg, #0e2a42 0%, #071827 100%);
  padding: 10px 14px;
  color: #dce8f2;
}

.ticket-topbar span,
.ticket-topbar strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.ticket-topbar strong {
  color: #f4b02f;
}

.intake-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid #d9e1e8;
  background:
    linear-gradient(180deg, #e8eef4 0%, #dce6ef 100%);
  padding: 10px;
}

.intake-switch button {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid #cad6e1;
  border-radius: 8px;
  background: #f9fbfd;
  color: #4b5c70;
  font-weight: 850;
  padding: 10px 12px;
  text-align: left;
}

.intake-switch button.active {
  border-color: #09243a;
  background: #09243a;
  color: #fff;
  box-shadow:
    0 2px 8px rgba(11, 34, 54, .18),
    inset 0 -2px 0 var(--rrtb-amber);
}

.intake-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 8px;
  background: #eef3f8;
  color: #0b2236;
  font-size: 21px;
}

.intake-switch button.active .intake-option-icon {
  background: rgba(255, 255, 255, .12);
  color: #f6b333;
}

.intake-option-copy {
  min-width: 0;
}

.intake-option-copy strong,
.intake-option-copy small {
  display: block;
}

.intake-option-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.intake-option-copy small {
  margin-top: 5px;
  color: #7a8796;
  font-size: 12px;
  font-weight: 750;
}

.intake-switch button.active .intake-option-copy small {
  color: #b9c6d3;
}

.intake-panel-body {
  background:
    linear-gradient(90deg, rgba(11, 34, 54, .045) 0 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%);
  background-size: 24px 24px, auto;
  padding: 22px;
}

.intake-panel-body[hidden] {
  display: none;
}

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

.intake-panel-head h2 {
  margin: 4px 0 0;
  color: var(--rrtb-ink);
  font-size: 24px;
  font-weight: 850;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  color: var(--rrtb-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.form-kicker {
  color: #1b6ea9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

.form-wide {
  grid-column: 1 / -1;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: #3a4858;
  font-size: 13px;
  font-weight: 850;
}

.form-field .form-control,
.form-field .form-select {
  min-height: 48px;
  border-color: #cbd7e2;
  border-radius: 8px;
  background-color: #fff;
  color: #172638;
  font-size: 15px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .03);
}

.form-field .form-control:focus,
.form-field .form-select:focus {
  border-color: #d99a1c;
  box-shadow:
    0 0 0 3px rgba(244, 160, 0, .16),
    inset 0 1px 0 rgba(15, 23, 42, .03);
}

.form-field textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.submit-stack {
  margin-top: 18px;
}

.intake-submit {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  font-size: 18px;
}

.submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  color: #637181;
  font-size: 13px;
  font-weight: 750;
}

.market-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.market-snapshot-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  color: #102033;
  font-size: 22px;
  font-weight: 850;
}

.snapshot-code {
  border: 1px solid #cbd7e2;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: #0b2236;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  border: 1px solid #cad7e2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  padding: 16px;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .06),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

.metric-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #061521, #f4a000);
}

.metric-card-supply::before {
  background: linear-gradient(90deg, #061521, #2f8f64);
}

.metric-code {
  position: absolute;
  top: 14px;
  right: 14px;
  color: #93a2b1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
}

.metric-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5b6979;
  font-size: 13px;
  font-weight: 850;
}

.metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #eef3f8;
  color: #0b2236;
  font-size: 17px;
}

.metric-card-supply .metric-icon {
  background: #eef8f2;
  color: #247451;
}

.metric-value {
  margin-top: 12px;
  color: #0b2236;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.metric-caption {
  margin-top: 8px;
  color: #7a8796;
  font-size: 12px;
  font-weight: 750;
}

.page-body {
  padding: 22px 0 26px;
}

.connection-protocol {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #bfcdda;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .06),
    0 16px 44px rgba(16, 24, 40, .08);
}

.protocol-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 169, 190, .22);
  background:
    linear-gradient(180deg, #102d45 0%, #071827 100%);
  padding: 18px 20px;
}

.protocol-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: #eef5fa;
  font-size: 21px;
  font-weight: 850;
}

.protocol-mode {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(244, 160, 0, .35);
  border-radius: 999px;
  background: rgba(244, 160, 0, .12);
  padding: 0 10px;
  color: #ffd071;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.protocol-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #dbe5ee;
}

.protocol-step {
  min-width: 0;
  background:
    linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: 18px;
}

.protocol-step-index {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid #cbd7e2;
  border-radius: 999px;
  background: #eef3f8;
  padding: 0 9px;
  color: #0b2236;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
}

.protocol-step strong {
  display: block;
  margin-top: 12px;
  color: #102033;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.protocol-step p {
  margin: 8px 0 0;
  color: #5d6c7c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.app-card,
.stat-card {
  border-color: #d9e1e8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.market-board {
  overflow: hidden;
  border: 1px solid #bfcdda;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .06),
    0 16px 44px rgba(16, 24, 40, .08);
}

.market-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(148, 169, 190, .22);
  background:
    linear-gradient(180deg, #102d45 0%, #071827 100%);
  padding: 18px 20px;
}

.market-board-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: #eef5fa;
  font-size: 21px;
  font-weight: 850;
}

.section-kicker {
  color: #7f91a4;
}

.board-header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.board-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  padding: 0 10px;
  color: #dce8f2;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.board-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 1px solid rgba(47, 206, 114, .35);
  border-radius: 999px;
  background: rgba(47, 206, 114, .12);
  padding: 6px 10px;
  color: #69efa0;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.board-live i {
  font-size: 8px;
}

.market-table-wrap {
  overflow-x: auto;
}

.market-table {
  margin: 0;
}

.market-table thead th {
  border-bottom: 1px solid #dce4ec;
  background: #eef3f7;
  color: #4a596a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-table tbody td {
  border-top-color: #edf1f5;
  padding: 14px 20px;
}

.market-table tbody tr:hover td {
  background: #f8fbfd;
}

.location-cell strong,
.location-cell span {
  display: block;
}

.location-cell strong {
  color: #172638;
  font-size: 15px;
  font-weight: 850;
}

.location-cell span {
  margin-top: 2px;
  color: #6d7b8a;
  font-size: 13px;
  font-weight: 700;
}

.fuel-chip,
.sos-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.fuel-chip {
  border: 1px solid #bdd6ed;
  background: #eef6ff;
  color: #155f9c;
}

.sos-chip {
  border: 1px solid #f3c9c9;
  background: #fff2f2;
  color: #c93636;
}

.board-number {
  color: #172638;
  font-size: 17px;
  font-weight: 850;
}

.updated-cell,
.muted-dash {
  color: #6d7b8a;
  font-weight: 750;
}

.empty-board {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6d7b8a;
  font-weight: 750;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rrtb-ink);
  font-size: 18px;
  font-weight: 800;
}

.form-label,
label {
  color: #425162;
  font-weight: 700;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
}

.btn-primary {
  border-color: var(--rrtb-navy);
  background: var(--rrtb-navy);
}

.btn-warning {
  border-color: var(--rrtb-amber);
  background: var(--rrtb-amber);
  color: #111827;
}

.table thead th {
  color: #425162;
  background: #eef2f6;
}

.alert {
  border-radius: 8px;
}

.ops-body {
  background: #edf1f4;
}

.ops-messages {
  position: sticky;
  top: 8px;
  z-index: 20;
}

.ops-filters {
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.ops-dispatcher {
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .05),
    0 14px 36px rgba(16, 24, 40, .06);
}

.ops-dispatcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #dbe3ea;
  padding: 14px;
}

.ops-dispatcher-head p {
  margin: 6px 0 0;
  color: #647386;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.ops-dispatcher-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.ops-match-card {
  min-width: 0;
  border: 1px solid #d8e1ea;
  border-top: 4px solid #6b7b8e;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.ops-match-card-ready {
  border-top-color: #2f8f64;
}

.ops-match-card-review {
  border-top-color: #f4a000;
}

.ops-match-card-confirmed {
  border-top-color: #1c6cb0;
}

.ops-match-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ops-match-card-head strong {
  display: block;
  color: #162230;
  font-size: 14px;
  font-weight: 850;
}

.ops-match-card-head span:not(.ops-score) {
  display: block;
  color: #6b7b8e;
  font-size: 12px;
  font-weight: 700;
}

.ops-score {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #0b2236;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.ops-match-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ops-match-pair > div {
  min-width: 0;
  border: 1px solid #e0e7ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px;
}

.ops-match-pair span {
  display: block;
  color: #6b7b8e;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ops-match-pair strong {
  display: block;
  margin-top: 4px;
  color: #162230;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.ops-match-pair p {
  margin: 5px 0 0;
  color: #465466;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ops-match-reason {
  margin-top: 10px;
  border-radius: 8px;
  background: #eef3f8;
  padding: 8px 10px;
  color: #4f6072;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.ops-column {
  min-width: 0;
  border-top: 4px solid #6b7b8e;
  border-radius: 8px;
  background: #e5ebf0;
  padding: 10px;
}

.ops-column-new {
  border-top-color: #1c6cb0;
}

.ops-column-work {
  border-top-color: #f4a000;
}

.ops-column-transfer {
  border-top-color: #2f8f64;
}

.ops-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ops-column-header h2,
.ops-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--rrtb-ink);
  font-size: 17px;
  font-weight: 850;
}

.ops-column-items {
  display: grid;
  gap: 10px;
}

.ops-card {
  border-color: #d4dde6;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

.ops-card .card-body {
  padding: 14px;
}

.ops-card-title {
  color: var(--rrtb-ink);
  font-size: 15px;
  font-weight: 850;
}

.ops-fuel-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  border-radius: 8px;
  background: #f2f6f9;
  padding: 9px 10px;
  color: #263646;
}

.ops-contact {
  margin-top: 10px;
  color: #263646;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ops-section-label {
  margin-bottom: 6px;
  color: #647386;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ops-matches {
  margin-top: 12px;
  border-top: 1px solid #dbe3ea;
  padding-top: 10px;
}

.ops-match {
  border-left: 3px solid #2f8f64;
  border-radius: 6px;
  background: #f4fbf7;
  padding: 8px 10px;
}

.ops-match + .ops-match {
  margin-top: 7px;
}

.ops-actions,
.ops-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ops-actions .btn,
.ops-row-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ops-empty {
  border: 1px dashed #c7d1dc;
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
  color: #647386;
  text-align: center;
}

.ops-terms {
  max-width: 320px;
  white-space: normal;
}

@media (max-width: 575.98px) {
  .exchange-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-cell {
    padding: 8px 10px;
  }

  .status-cell:nth-child(n + 3) {
    display: none;
  }

  .hero,
  .intake-hero {
    padding: 22px 0 18px;
  }

  .hero .row,
  .intake-hero .row {
    --tblr-gutter-x: 0;
  }

  .hero-note {
    display: none;
  }

  .brand-title {
    font-size: 21px;
  }

  .brand-subtitle {
    display: none;
  }

  .intake-hero h1 {
    font-size: 30px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-badges {
    gap: 6px;
  }

  .hero-badges span {
    border-radius: 8px;
    font-size: 12px;
  }

  .hero-badges span:nth-child(3) {
    display: none;
  }

  .terminal-board,
  .market-tape {
    display: none;
  }

  .intake-switch {
    gap: 6px;
    padding: 8px;
  }

  .intake-panel-body {
    padding: 14px;
  }

  .intake-panel-head {
    display: flex;
    align-items: flex-start;
  }

  .privacy-pill {
    padding: 6px 8px;
    font-size: 11px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .intake-switch button {
    min-height: 58px;
    gap: 8px;
    padding: 8px;
  }

  .intake-option-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 17px;
  }

  .intake-option-copy strong {
    font-size: 14px;
  }

  .intake-option-copy small {
    display: none;
  }

  .form-field .form-control,
  .form-field .form-select {
    min-height: 44px;
    font-size: 14px;
  }

  .intake-submit {
    min-height: 52px;
    font-size: 16px;
  }

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

  .metric-card {
    min-height: 110px;
    padding: 14px;
  }

  .metric-topline {
    gap: 6px;
    font-size: 12px;
  }

  .metric-icon {
    width: 26px;
    height: 26px;
  }

  .metric-value {
    font-size: 28px;
  }

  .protocol-head {
    display: block;
    padding: 14px;
  }

  .protocol-head h2 {
    font-size: 18px;
  }

  .protocol-mode {
    margin-top: 10px;
    white-space: normal;
  }

  .protocol-steps {
    grid-template-columns: 1fr;
  }

  .protocol-step {
    padding: 14px;
  }

  .market-board-header {
    align-items: flex-start;
    padding: 14px;
  }

  .board-header-actions {
    display: none;
  }

  .market-board-header h2 {
    font-size: 18px;
  }

  .market-table {
    min-width: 680px;
  }

  .market-table tbody td {
    padding: 12px 14px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protocol-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .ops-dispatcher-head,
  .ops-match-pair {
    grid-template-columns: 1fr;
  }

  .ops-dispatcher-head {
    display: grid;
  }

  .ops-dispatcher-metrics {
    justify-content: flex-start;
  }

  .ops-board {
    grid-template-columns: 1fr;
  }
}
