@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap");
@import url("./tokens.css");
@import url("./ox-fields.css");
@import url("./notifications.css");
@import url("./watchlist.css");

:root {
  --ox-bg: #0a0c10;
  --ox-sidebar: #0e1118;
  --ox-card: #181c26;
  --ox-border: #2a3140;
  --ox-text: #f3f4f6;
  --ox-muted: #9ca3af;
}

body {
  background: var(--ox-bg);
  color: var(--ox-text);
  font-size: 14px;
  font-family: var(--ox-font-sans);
}

.ox-app {
  min-height: 100vh;
  display: flex;
}

.ox-sidebar {
  width: var(--ox-sidebar-width);
  min-height: 100vh;
  background: var(--ox-sidebar);
  border-right: 1px solid var(--ox-border);
  position: fixed;
  left: 0;
  top: 0;
  padding: 16px 12px;
  overflow-y: auto;
}

.ox-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 20px;
}

.ox-brand-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
}

.ox-brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ox-muted);
}

.ox-nav-group {
  margin-bottom: 16px;
}

.ox-nav-group-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ox-text-muted);
  padding: 0 10px 8px;
  font-weight: 600;
}

.ox-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: var(--ox-radius-md);
  color: var(--ox-text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: 0.15s ease;
}

.ox-nav-link:hover {
  background: var(--ox-card-hover);
  color: var(--ox-text);
}

.ox-nav-link.active {
  background: var(--ox-accent-dim);
  color: var(--ox-accent);
}

.ox-main {
  margin-left: var(--ox-sidebar-width);
  width: calc(100% - var(--ox-sidebar-width));
  min-height: 100vh;
}

.ox-topbar {
  height: var(--ox-topbar-height);
  background: var(--ox-bg-elevated);
  border-bottom: 1px solid var(--ox-border);
}

.ox-topbar-kpi {
  min-width: 88px;
}

.ox-content {
  padding: 20px;
}

.ox-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}

.ox-card {
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-lg);
}

.ox-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.ox-kpi-card {
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-md);
  padding: 14px 16px;
}

.ox-kpi-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ox-text-muted);
  font-weight: 600;
}

.ox-kpi-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.ox-kpi-delta {
  font-size: 12px;
  color: var(--ox-text-secondary);
  margin-top: 4px;
}

.ox-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

.ox-badge-success {
  background: var(--ox-success-dim);
  color: var(--ox-success);
  border-color: rgba(52, 211, 153, 0.3);
}

.ox-badge-warning {
  background: var(--ox-warning-dim);
  color: var(--ox-warning);
  border-color: rgba(251, 191, 36, 0.3);
}

.ox-badge-danger {
  background: var(--ox-danger-dim);
  color: var(--ox-danger);
  border-color: rgba(251, 113, 133, 0.3);
}

.ox-badge-neutral {
  background: rgba(107, 114, 128, 0.15);
  color: var(--ox-text-secondary);
  border-color: var(--ox-border);
}

.ox-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--ox-radius-md);
  border: 1px solid var(--ox-border);
  font-size: 13px;
}

.ox-alert-warning {
  background: var(--ox-warning-dim);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fde68a;
}

.ox-alert-danger {
  background: var(--ox-danger-dim);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

/* Toast notifications — bottom-right, solid contrast on dark UI */
.toast-container {
  z-index: 11000;
  pointer-events: none;
}

.toast-container .toast {
  pointer-events: auto;
}

.ox-toast {
  min-width: 300px;
  max-width: 440px;
  border-radius: var(--ox-radius-md);
  border: 1px solid var(--ox-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  opacity: 1 !important;
}

.ox-toast .toast-body {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  padding: 14px 16px;
}

.ox-toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.ox-toast-close {
  flex-shrink: 0;
  opacity: 0.85;
  filter: invert(1) grayscale(1);
}

.ox-toast-close:hover {
  opacity: 1;
}

.ox-toast-info {
  background: #1e2430;
  border-color: #475569;
}

.ox-toast-success {
  background: #14532d;
  border-color: #22c55e;
}

.ox-toast-success .toast-body {
  color: #ecfdf5;
}

.ox-toast-error {
  background: #7f1d1d;
  border-color: #f87171;
}

.ox-toast-error .toast-body {
  color: #fef2f2;
}

.ox-toast-warning {
  background: #78350f;
  border-color: #fbbf24;
}

.ox-toast-warning .toast-body {
  color: #fffbeb;
}

/* Visible toggles — see ox-fields.css for pro styling */

.ox-rule-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ox-rule-switch-label {
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  color: var(--ox-text-secondary);
}

.ox-rule-switch-label.is-on {
  color: #34d399;
}

.ox-rule-switch-label.is-off {
  color: #9ca3af;
}

.ox-stub-card {
  padding: 32px;
  text-align: center;
}

.ox-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.ox-watchlist-tile {
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}

.ox-watchlist-tile:hover {
  border-color: rgba(96, 165, 250, 0.45);
}

.ox-watchlist-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.ox-watchlist-symbol {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ox-watchlist-meta {
  font-size: 11px;
  color: var(--ox-text-muted);
  margin-top: 2px;
}

.ox-watchlist-ltp {
  font-size: 26px;
  font-weight: 800;
  color: var(--ox-accent);
}

.ox-watchlist-actions {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .ox-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .ox-main {
    margin-left: 0;
    width: 100%;
  }

  .ox-app {
    flex-direction: column;
  }
}

.text-muted-custom {
  color: var(--ox-muted);
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
}

.quick-action {
  text-decoration: none;
  color: var(--ox-text);
}

.quick-action:hover {
  color: #60a5fa;
}

.option-chain-table-wrap {
  max-height: calc(100vh - 260px);
  border-radius: var(--ox-radius-md);
  overflow: auto;
  border: 1px solid var(--ox-border);
  background: var(--ox-bg-elevated);
}

/* ===== Premium Option Chain (oc-) ===== */

.oc-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ox-text-muted);
  font-size: 0.9rem;
}

.oc-chain-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.78rem;
  font-family: var(--ox-font-sans);
  margin: 0;
}

.oc-chain-table thead {
  position: sticky;
  top: 0;
  z-index: 4;
}

.oc-chain-table th {
  padding: 0.45rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ox-text-muted);
  background: #0f131a;
  border-bottom: 1px solid var(--ox-border);
  white-space: nowrap;
  text-align: center;
}

.oc-head-group th {
  padding: 0.55rem 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.oc-zone-call {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0.05) 100%);
  color: var(--ox-accent);
  border-right: 1px solid var(--ox-border);
}

.oc-zone-strike {
  background: #141820;
  color: var(--ox-text-secondary);
}

.oc-zone-put {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.12) 0%, rgba(251, 113, 133, 0.04) 100%);
  color: var(--ox-danger);
  border-left: 1px solid var(--ox-border);
}

.oc-chain-table td {
  padding: 0.3rem 0.35rem;
  border-bottom: 1px solid var(--ox-border-subtle);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--ox-text-secondary);
  background: var(--ox-card);
}

.oc-row:hover td {
  background: var(--ox-card-hover);
}

/* ITM shading — calls below spot, puts above spot */
.oc-itm-call td:nth-child(-n+6) {
  background: rgba(56, 189, 248, 0.06);
}

.oc-itm-put td:nth-child(n+9) {
  background: rgba(251, 113, 133, 0.06);
}

.oc-itm-call:hover td:nth-child(-n+6),
.oc-itm-put:hover td:nth-child(n+9) {
  background: rgba(255, 255, 255, 0.04);
}

.oc-strike-cell {
  background: #12161e !important;
  border-left: 1px solid var(--ox-border);
  border-right: 1px solid var(--ox-border);
  min-width: 72px;
}

.oc-iv-cell {
  background: #12161e !important;
  color: var(--ox-text-muted);
  font-size: 0.72rem;
}

.oc-strike-val {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ox-text);
}

.oc-strike-atm {
  color: var(--ox-accent);
}

.oc-atm .oc-strike-cell,
.oc-atm .oc-iv-cell {
  background: rgba(56, 189, 248, 0.1) !important;
}

.oc-greek,
.oc-chgoi {
  font-size: 0.74rem;
}

.oc-oi-cell {
  min-width: 72px;
}

.oc-oi-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.oc-oi-val {
  font-weight: 600;
  color: var(--ox-text);
  font-size: 0.76rem;
}

.oc-oi-pct {
  font-size: 0.65rem;
  line-height: 1;
}

.oc-oi-bar {
  width: 100%;
  max-width: 52px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.oc-oi-bar-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.5), var(--ox-accent));
}

.oc-ltp-cell {
  min-width: 108px;
  padding: 0.25rem 0.4rem !important;
}

.oc-ltp-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
}

.oc-ltp-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
}

.oc-ltp-price {
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--ox-font-mono);
  color: var(--ox-text);
}

.oc-ltp-pct {
  font-size: 0.62rem;
  line-height: 1;
  font-family: var(--ox-font-mono);
}

.oc-ltp-actions {
  display: flex;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.oc-row:hover .oc-ltp-actions,
.oc-ltp-actions:focus-within {
  opacity: 1;
}

.oc-act {
  width: 22px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}

.oc-act.buy {
  background: var(--ox-success);
  color: #042f1a;
}

.oc-act.sell {
  background: #f97316;
  color: #fff;
}

.oc-act:hover {
  filter: brightness(1.12);
  transform: scale(1.06);
}

.oc-leg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.oc-leg-badge.buy {
  background: var(--ox-success);
  color: #042f1a;
}

.oc-leg-badge.sell {
  background: #f97316;
  color: #fff;
}

.oc-spot-divider td {
  padding: 0.65rem 0 !important;
  border: 0 !important;
  background: transparent !important;
  position: relative;
}

.oc-spot-line {
  position: relative;
  height: 0;
  z-index: 3;
}

.oc-spot-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ox-accent) 15%, var(--ox-accent) 85%, transparent);
  opacity: 0.85;
}

.oc-spot-pill {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: #1a2230;
  border: 1px solid var(--ox-accent);
  color: var(--ox-text);
  font-size: 0.72rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.oc-spot-pill strong {
  color: var(--ox-accent);
}

.oc-spot-chg {
  font-size: 0.68rem;
}

.oc-spot-pill.up .oc-spot-chg {
  color: var(--ox-success);
}

.oc-spot-pill.down .oc-spot-chg {
  color: var(--ox-danger);
}

@media (hover: none) {
  .oc-ltp-actions {
    opacity: 1;
  }
}

/* Legacy chain buttons — kept for any older markup */

.table-dark {
  --bs-table-bg: #111827;
  --bs-table-striped-bg: #0f172a;
  --bs-table-hover-bg: #1e293b;
  --bs-table-border-color: #263244;
}

.table-primary {
  --bs-table-bg: rgba(37, 99, 235, 0.35) !important;
}

.chain-action-cell {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.chain-btn {
  width: 26px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.chain-btn.buy {
  background: #16a34a;
  color: #fff;
}

.chain-btn.sell {
  background: #dc2626;
  color: #fff;
}

.chain-btn:hover {
  filter: brightness(1.15);
}

/* ===== Order Mode Toggle ===== */

.order-mode-toggle{

    display:flex;
    align-items:center;

    background:#111827;

    border:1px solid #2d3748;

    border-radius:10px;

    overflow:hidden;

    height:38px;

}

.mode-btn{

    position:relative;

    border:none;

    background:transparent;

    color:#9ca3af;

    padding:0 18px;

    height:100%;

    font-size:13px;

    font-weight:600;

    transition:.25s;

    display:flex;

    align-items:center;

    gap:8px;

}

.mode-btn:hover{

    background:#1e293b;

    color:white;

}

.mode-btn.active{

    background:#2563eb;

    color:white;

}

.mode-btn i{

    font-size:13px;

}

.basket-count{
    margin-left:6px;
    min-width:18px;
    height:18px;
    border-radius:20px;
    background:#ef4444;
    color:white;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 5px;
}
.filter-field {
  width: 180px;
}

.filter-field.wide {
  width: 260px;
}

.order-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: #020617;
  border: 1px solid #263244;
  border-radius: 12px;
  padding: 3px;
  height: 38px;
}

.mode-btn {
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #94a3b8;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.18s ease;
  white-space: nowrap;
}

.mode-btn:hover {
  color: #fff;
  background: #111827;
}

.mode-btn.active {
  background: #2563eb;
  color: #fff;
}

.basket-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  font-weight: 800;
}

/* ===========================
   Strike Column
=========================== */

.strike-column{
    width:110px;
    text-align:center;
    vertical-align:middle;
}

.strike-box{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:82px;
    height:38px;
    border-radius:10px;
    background:#111827;
    border:1px solid #334155;
    font-size:18px;
    font-weight:800;
    color:#ffffff;
    letter-spacing:.5px;
    transition:.2s;
}

.strike-box:hover{
    background:#1e293b;
}

.atm-strike{
    background:#2563eb;
    border:2px solid #60a5fa;
    color:#ffffff;
    box-shadow:0 0 12px rgba(37,99,235,.45);
    transform:scale(1.04);
}

.atm-row{
    background:rgba(37,99,235,.08);
}

.option-chain-table th,
.option-chain-table td {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

.chain-btn {
  width: 32px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.chain-btn.buy {
  background: #16a34a;
}

.chain-btn.sell {
  background: #dc2626;
}

.chain-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.strike-column {
  width: 120px;
  text-align: center;
}

.strike-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 40px;
  border-radius: 12px;
  background: #111827;
  border: 1px solid #334155;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.atm-row {
  background: rgba(37, 99, 235, 0.12);
}

.atm-strike {
  background: #2563eb;
  border-color: #60a5fa;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
}

/* ===========================
   Protection Rules Page
=========================== */

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 6px;
}

.page-header p {
  color: var(--ox-muted);
  margin: 0;
}

.protection-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.template-card {
  background: #020617;
  border: 1px solid #263244;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.18s ease;
}

.template-card:hover,
.template-card.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
}

.template-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px;
}

.template-card p {
  color: var(--ox-muted);
  margin: 0 0 6px;
}

.template-actions {
  margin-top: 10px;
}

.selector-section {
  margin-bottom: 18px;
}

.selector-section h3 {
  font-size: 14px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.selector-item {
  background: #020617;
  border: 1px solid #263244;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  cursor: pointer;
}

.selector-item:hover {
  border-color: #2563eb;
}

.selector-item span {
  font-weight: 800;
}

.selector-item small {
  grid-column: 2;
  color: var(--ox-muted);
}

.action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #020617;
  color: #94a3b8;
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px;
  border-bottom: 1px solid var(--ox-border);
}

.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #263244;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.08);
}

.data-table small {
  display: block;
  color: var(--ox-muted);
  margin-top: 3px;
}

.empty-state {
  background: #020617;
  border: 1px dashed #334155;
  border-radius: 14px;
  padding: 18px;
  color: var(--ox-muted);
  text-align: center;
}

.danger-panel {
  margin-top: 18px;
}

.ox-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  display: grid;
  place-items: center;
  z-index: 9999;
}

.ox-modal {
  width: min(720px, 94vw);
  background: #111827;
  border: 1px solid var(--ox-border);
  border-radius: 20px;
  padding: 20px;
  color: var(--ox-text);
}

.ox-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
}

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

.form-grid label {
  color: #cbd5e1;
  font-weight: 700;
}

.form-grid input,
.form-grid select {
  width: 100%;
  margin-top: 6px;
  background: #020617;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
}

.ox-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* Bootstrap modify-order modal — dark theme */
#modifyOrderModal .modal-content {
  background: var(--ox-card, #181c26);
  color: var(--ox-text, #f3f4f6);
  border: 1px solid var(--ox-border, #2a3140);
}

#modifyOrderModal .modal-header,
#modifyOrderModal .modal-footer {
  border-color: var(--ox-border, #2a3140);
}

#modifyOrderModal .form-label {
  color: var(--ox-text-secondary, #9ca3af);
  font-weight: 600;
}

#modifyOrderModal .form-control,
#modifyOrderModal .form-select {
  background-color: var(--ox-input-bg);
  color: var(--ox-input-text);
  border-color: var(--ox-input-border);
}

#modifyOrderModal .form-control:focus,
#modifyOrderModal .form-select:focus {
  background-color: var(--ox-input-bg-focus);
  color: var(--ox-input-text);
  border-color: var(--ox-accent);
  box-shadow: 0 0 0 3px var(--ox-accent-dim);
}

#modifyOrderModal .btn-close {
  filter: invert(1);
}

@media (max-width: 1100px) {
  .protection-layout {
    grid-template-columns: 1fr;
  }
}
/* Fix Protection Rules modal conflict with Bootstrap */
#templateModalHost .ox-modal-backdrop,
#ruleModalHost .ox-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  display: grid !important;
  place-items: center;
  z-index: 9999;
}

#templateModalHost .ox-modal,
#ruleModalHost .ox-modal {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: min(720px, 94vw);
  height: auto;
  background: #111827;
  border: 1px solid var(--ox-border);
  border-radius: 20px;
  padding: 20px;
  color: var(--ox-text);
  overflow: visible;
}

.strategy-panel {
  min-height: 420px;
}

.strategy-panel-page {
  position: sticky;
  top: 1rem;
}

.strategy-bot-layout .col-xl-4 {
  align-self: flex-start;
}

.strategy-leg-lots-input,
.strategy-lots-input {
  width: 4.25rem;
  min-width: 4.25rem;
  text-align: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.strategy-legs-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--ox-border);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.strategy-leg-row:last-child {
  border-bottom: none !important;
}

.trading-desk-layout .position-detail-panel {
  position: sticky;
  top: 1rem;
  min-height: 420px;
}

.trading-desk-layout .order-detail-panel {
  position: sticky;
  top: 1rem;
  min-height: 420px;
}

.position-row,
.order-row {
  cursor: pointer;
}

.desk-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.desk-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ox-border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.desk-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ox-muted);
  margin-bottom: 0.15rem;
}

.desk-stat-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--ox-muted);
}

.desk-empty-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.position-exit-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1080;
  display: flex;
  justify-content: flex-end;
}

.position-exit-drawer {
  width: min(420px, 100vw);
  height: 100%;
  border-radius: 0;
  border-left: 1px solid var(--ox-border);
  display: flex;
  flex-direction: column;
}

.position-exit-drawer-header,
.position-exit-drawer-footer {
  padding: 1rem;
  border-bottom: 1px solid var(--ox-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.position-exit-drawer-footer {
  border-bottom: none;
  border-top: 1px solid var(--ox-border);
  margin-top: auto;
  justify-content: flex-end;
}

.position-exit-drawer-body {
  padding: 1rem;
  overflow-y: auto;
}

.exit-qty-input {
  width: 7rem;
}

@media (max-width: 1199.98px) {
  .trading-desk-layout .position-detail-panel,
  .trading-desk-layout .order-detail-panel {
    position: static;
    min-height: auto;
  }
}

.tv-symbol-results {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--ox-border);
  border-radius: 8px;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.15);
}

.tv-symbol-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0.45rem 0.6rem;
}

.tv-symbol-item:hover,
.tv-symbol-item.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--ox-border);
}

.tv-symbol-item.active {
  border-color: rgba(13, 110, 253, 0.55);
}

.tv-symbol-meta {
  background: rgba(255, 255, 255, 0.03);
}

.tv-format-recommended {
  box-shadow: 0 0 0 1px rgba(25, 135, 84, 0.35);
}

.strategy-conditions-list .strategy-condition-row select,
.strategy-conditions-list .strategy-condition-row input {
  font-size: 0.8rem;
}

#strategyEntryPreview .text-success,
#strategyEntryPreview .text-danger {
  font-family: var(--bs-font-monospace, monospace);
  font-size: 0.75rem;
}

.ox-desk-settings-wrap {
  position: relative;
}

.ox-desk-settings-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1080;
  width: min(320px, 92vw);
  padding: 14px;
  border: 1px solid var(--ox-border);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.ox-desk-settings-popover.show {
  display: block;
}

.ox-desk-settings-section + .ox-desk-settings-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.ox-desk-settings-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin-bottom: 8px;
}

.ox-desk-settings-radio,
.ox-desk-settings-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  cursor: pointer;
}

.ox-desk-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ox-desk-filter-tag {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

.ox-desk-filter-tag.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.position-group-row td {
  background: rgba(148, 163, 184, 0.08);
  font-weight: 600;
}

.position-group-row .group-chevron {
  width: 1rem;
  display: inline-block;
}

.position-child-row td:first-child {
  padding-left: 2rem;
}

.position-closed-row {
  opacity: 0.72;
}

/* Strategy Bot desk + builder */
.sb-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sb-topnav h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.sb-nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.sb-nav-link {
  border: none;
  background: transparent;
  color: var(--ox-text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.sb-nav-link:hover {
  color: var(--ox-text);
  background: rgba(255, 255, 255, 0.04);
}

.sb-nav-link.active {
  color: var(--ox-accent);
  background: var(--ox-accent-dim);
  font-weight: 600;
}

.sb-card {
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-md);
  overflow: hidden;
}

.sb-portfolio-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.sb-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sb-kpi-label {
  font-size: 0.72rem;
  color: var(--ox-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sb-kpi-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sb-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ox-border);
}

.sb-tab {
  border: none;
  background: transparent;
  color: var(--ox-text-muted);
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.sb-tab.active {
  color: var(--ox-accent);
  border-bottom-color: var(--ox-accent);
  font-weight: 600;
}

.sb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.sb-table th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  color: var(--ox-text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--ox-border);
  background: rgba(0, 0, 0, 0.15);
}

.sb-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--ox-border);
  vertical-align: middle;
}

.sb-table tbody tr.sb-strategy-row:hover td {
  background: var(--ox-card-hover);
  cursor: pointer;
}

.sb-strategy-name {
  font-weight: 600;
}

.sb-strategy-meta {
  font-size: 0.78rem;
  color: var(--ox-text-muted);
}

.sb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.sb-dot.tp {
  background: var(--ox-success);
}

.sb-dot.sl {
  background: var(--ox-danger);
}

.sb-builder-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.sb-back-btn {
  border: 1px solid var(--ox-border);
  background: transparent;
  color: var(--ox-text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sb-spot-pill {
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ox-border);
}

.sb-analytics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--ox-border);
}

@media (max-width: 900px) {
  .sb-analytics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sb-analytic {
  text-align: center;
}

.sb-analytic-label {
  font-size: 0.72rem;
  color: var(--ox-text-muted);
  margin-bottom: 0.2rem;
}

.sb-analytic-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.sb-legs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ox-border);
  flex-wrap: wrap;
}

.sb-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ox-border);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.sb-stepper button {
  border: none;
  background: transparent;
  color: var(--ox-text);
  width: 28px;
  height: 30px;
  cursor: pointer;
  font-size: 1rem;
}

.sb-stepper button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sb-stepper input,
.sb-stepper .sb-stepper-val {
  width: 52px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--ox-text);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.sb-bs-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.sb-bs-btn.buy {
  background: var(--ox-accent-dim);
  color: var(--ox-accent);
}

.sb-bs-btn.sell {
  background: var(--ox-danger-dim);
  color: var(--ox-danger);
}

.sb-ltp-cell .ltp {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sb-ltp-cell .entry {
  font-size: 0.72rem;
  color: var(--ox-text-muted);
}

.sb-ltp-up .ltp {
  color: var(--ox-success);
}

.sb-ltp-down .ltp {
  color: var(--ox-danger);
}

.sb-legs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--ox-border);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sb-margin-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--ox-text-muted);
  border-top: 1px solid var(--ox-border);
}

.sb-config-panel {
  padding: 0;
}

.sb-config-section {
  border-bottom: 1px solid var(--ox-border);
}

.sb-config-section:last-child {
  border-bottom: none;
}

.sb-config-head {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.sb-config-body {
  padding: 0 1rem 1rem;
}

.sb-radio-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.sb-radio-pill {
  border: 1px solid var(--ox-border);
  background: transparent;
  color: var(--ox-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
}

.sb-radio-pill.active {
  border-color: var(--ox-accent);
  color: var(--ox-accent);
  background: var(--ox-accent-dim);
}

.sb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ox-success-dim);
  color: var(--ox-success);
  font-weight: 600;
}

.sb-live-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ox-success);
  animation: sb-pulse 1.5s infinite;
}

@keyframes sb-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sb-builder-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
}

@media (max-width: 1100px) {
  .sb-builder-grid {
    grid-template-columns: 1fr;
  }
}

.sb-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.sb-chain-section {
  margin-top: 1rem;
}

.sb-chain-section .option-chain-table-wrap {
  max-height: 480px;
  overflow: auto;
}

.sb-wizard-root {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sb-wizard-enter {
  animation: sbWizardFadeIn 0.22s ease-out;
}

@keyframes sbWizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sb-wizard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.65rem 1rem;
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-md);
}

.sb-wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: none;
  background: transparent;
  color: var(--ox-text-muted);
  font-size: 0.88rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.sb-wizard-step:hover:not(:disabled) {
  color: var(--ox-text);
  background: rgba(255, 255, 255, 0.04);
}

.sb-wizard-step:disabled {
  cursor: default;
  opacity: 0.55;
}

.sb-wizard-step.active {
  color: var(--ox-accent);
  background: var(--ox-accent-dim);
  font-weight: 600;
}

.sb-wizard-step.done {
  color: var(--ox-text);
}

.sb-wizard-step.done .sb-wizard-num {
  background: var(--ox-accent);
  color: #fff;
}

.sb-wizard-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ox-text-muted);
}

.sb-wizard-step.active .sb-wizard-num {
  background: var(--ox-accent);
  color: #fff;
}

.sb-wizard-connector {
  width: 3rem;
  height: 2px;
  background: var(--ox-border);
  margin: 0 0.35rem;
  transition: background 0.2s ease;
}

.sb-wizard-connector.done {
  background: var(--ox-accent);
}

.sb-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.1rem;
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-md);
  position: sticky;
  bottom: 0.5rem;
  z-index: 2;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.sb-wizard-actions-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.sb-chain-section-full .option-chain-table-wrap {
  max-height: min(62vh, 720px);
  overflow: auto;
}

.strategy-leg-lots-input,
.strategy-lots-input {
  width: 4.25rem;
  min-width: 4.25rem;
  text-align: center;
}

.sb-desk-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.75rem;
  border-radius: var(--ox-radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.85rem;
  color: var(--ox-text);
}

.sb-subhead-row th {
  padding-top: 0.25rem !important;
  padding-bottom: 0.45rem !important;
  font-size: 0.68rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid var(--ox-border);
}

.sb-live-note {
  margin: 0.75rem 1rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  font-size: 0.8rem;
  color: var(--ox-text-muted);
}

.sb-leg-exit-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sb-leg-exit-modal {
  width: min(100%, 380px);
  background: var(--ox-card);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-md);
  padding: 1rem 1.1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.sb-global-exit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1070;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sb-global-exit-modal {
  width: min(100%, 420px);
  background: var(--ox-card);
  color: var(--ox-text);
  border: 1px solid var(--ox-border);
  border-radius: var(--ox-radius-md);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.sb-global-exit-note {
  font-size: 0.82rem;
  color: var(--ox-text-secondary);
  background: var(--ox-accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
}

.sb-global-exit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ox-success);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 999px;
}

.ox-mb-control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ox-border);
  border-radius: 12px;
  background: var(--ox-bg-elevated);
}

.ox-mb-control-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ox-text-secondary);
}

.ox-mb-control-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
}

.ox-mb-account-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--ox-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ox-text);
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
}

.ox-mb-account-pill.active {
  border-color: var(--ox-accent);
  background: var(--ox-accent-dim);
}

.ox-mb-health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
}

.ox-mb-health-dot.connected { background: #22c55e; }
.ox-mb-health-dot.disconnected { background: #6b7280; }
.ox-mb-health-dot.expired { background: #f59e0b; }
.ox-mb-health-dot.error { background: #ef4444; }

.ox-mb-broker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
}

.ox-mb-control-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ox-broker-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ox-broker-filter-tag {
  border: 1px solid var(--ox-border);
  border-radius: 999px;
  background: transparent;
  color: var(--ox-text-secondary);
  padding: 0.2rem 0.7rem;
  font-size: 0.76rem;
}

.ox-broker-filter-tag.active {
  border-color: var(--ox-accent);
  color: var(--ox-accent);
  background: var(--ox-accent-dim);
}
  padding: 0.2rem 0.55rem;
}