/* Ordo Mentis approved cockpit UI.
   Cosmetic layer only: calculator math, DataHub wiring, and safety gates stay in page JS. */

:root {
  --om-bg: #030608;
  --om-rail: rgba(4, 9, 12, .92);
  --om-panel: rgba(7, 18, 23, .72);
  --om-panel-2: rgba(9, 23, 30, .82);
  --om-panel-3: rgba(12, 30, 38, .64);
  --om-line: rgba(150, 176, 180, .22);
  --om-line-strong: rgba(215, 181, 109, .42);
  --om-gold: #d6a636;
  --om-green: #51c878;
  --om-teal: #d6a636;
  --om-orange: #f07f38;
  --om-red: #ff5353;
  --om-ink: #f3f5f2;
  --om-muted: #9ba8aa;
  --om-dim: #657274;
  --om-shadow: 0 18px 58px rgba(0, 0, 0, .48);
}

* {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html {
  background: var(--om-bg);
}

body {
  min-height: 100vh;
  color: var(--om-ink);
  background:
    radial-gradient(980px 640px at 18% 4%, rgba(215, 166, 54, .10), transparent 52%),
    radial-gradient(900px 620px at 82% 6%, rgba(49, 201, 184, .13), transparent 56%),
    linear-gradient(135deg, #060809 0%, #061112 48%, #030608 100%) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  left: 50%;
  top: 50%;
  width: min(58vw, 740px);
  height: min(calc(100vh - 92px), 820px);
  transform: translate(-50%, -48%);
  background: url("/brand/ordo-watermark.png") center / contain no-repeat;
  opacity: .075;
  filter: saturate(.58) contrast(1.08);
}

body::after {
  content: none !important;
  display: none !important;
}

.wrap,
.om-shell {
  position: relative;
  z-index: 1;
}

.om-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 10px;
  padding: 6px;
}

.om-sidebar,
.om-panel,
.om-module,
.om-card,
.om-status,
.panel,
.notice,
.note,
.modal,
.verdict,
.stat,
.result-card,
.ibox,
.auth-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    linear-gradient(180deg, var(--om-panel), rgba(3, 8, 11, .84)) !important;
  border: 1px solid var(--om-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--om-shadow) !important;
  backdrop-filter: blur(18px) saturate(138%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(138%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.om-panel::before,
.om-module::before,
.om-card::before,
.om-status::before,
.panel::before,
.card::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), transparent 36%),
    radial-gradient(circle at 12% 0%, rgba(215, 166, 54, .06), transparent 34%) !important;
}

.om-panel > *,
.om-module > *,
.om-card > *,
.om-status > *,
.panel > *,
.card > *,
.verdict > *,
.stat > *,
.result-card > * {
  position: relative;
  z-index: 1;
}

.om-sidebar {
  min-height: calc(100vh - 12px);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.om-logo {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px 4px 18px;
  border-bottom: 1px solid var(--om-line);
  text-decoration: none;
}

.om-logo img {
  width: 118px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .62));
}

.om-logo-title {
  margin-top: 4px;
  color: var(--om-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.om-logo-sub {
  color: var(--om-gold);
  font-size: 10px;
  text-transform: uppercase;
  display: block;
}

.om-nav {
  display: grid;
  gap: 8px;
}

.om-nav a,
.snav a,
.topnav a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  color: var(--om-muted) !important;
  text-decoration: none !important;
  font-weight: 740 !important;
  background: transparent !important;
}

.om-nav a:hover,
.snav a:hover,
.topnav a:hover {
  color: var(--om-ink) !important;
  background: rgba(255, 255, 255, .045) !important;
}

.om-nav a.active,
.snav a.active,
.topnav a.active {
  color: #ffd160 !important;
  background: linear-gradient(90deg, rgba(214, 166, 54, .18), rgba(214, 166, 54, .04)) !important;
  border-color: rgba(214, 166, 54, .42) !important;
  box-shadow: inset -3px 0 0 var(--om-gold);
}

.om-nav svg,
.om-open-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.om-side-card {
  margin-top: auto;
  padding: 16px;
}

.om-side-card h3,
.om-user strong {
  margin: 0;
  font-size: 14px;
}

.om-balance {
  margin: 8px 0 2px;
  color: var(--om-ink);
  font-size: 25px;
  font-family: Georgia, "Times New Roman", serif;
}

.om-side-card p,
.om-user span {
  margin: 0;
  color: var(--om-muted);
  font-size: 12px;
}

.om-side-card .om-safe {
  margin-top: 8px;
}

.om-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.om-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--om-gold);
  border: 2px solid var(--om-gold);
}

.om-main {
  min-width: 0;
  padding: 26px 12px 12px;
}

.om-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 14px;
  align-items: start;
}

.om-top {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(560px, 1.7fr);
  gap: 14px;
  margin-bottom: 14px;
}

.om-title h1 {
  margin: 0;
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1;
}

.om-title p {
  margin: 8px 0 0;
  color: var(--om-muted);
  font-size: 16px;
}

.om-title .om-safe {
  margin-top: 6px;
}

.om-status {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.om-status-cell {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--om-line);
}

.om-status-cell:first-child {
  padding-left: 0;
  border-left: 0;
}

.om-label {
  color: var(--om-muted);
  font-size: 12px;
}

.om-value {
  color: var(--om-ink);
  font-size: 18px;
}

.om-online,
.om-safe {
  color: var(--om-green);
}

.om-danger {
  color: var(--om-red);
}

.om-gold {
  color: var(--om-gold);
}

.om-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.om-button,
.btn,
.card .go {
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 5px !important;
  border: 1px solid rgba(214, 166, 54, .46) !important;
  background: rgba(5, 12, 16, .48) !important;
  color: var(--om-ink) !important;
  font-weight: 780;
  text-decoration: none;
  box-shadow: none !important;
}

.om-button:hover,
.btn:hover {
  border-color: var(--om-gold) !important;
  color: #ffd160 !important;
}

.om-section {
  padding: 18px;
  margin-bottom: 14px;
}

.om-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.om-section h2,
.panel-title,
.card-title {
  margin: 0;
  color: var(--om-ink) !important;
  font-size: 20px;
  font-weight: 820;
  text-transform: none !important;
}

.om-section p,
.om-muted,
.lede,
.sub,
.hero p,
.field-desc,
.hint,
.desc,
footer {
  color: var(--om-muted) !important;
}

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

.om-module {
  min-height: 136px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px;
  color: var(--om-ink);
  text-decoration: none;
}

.om-open-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: var(--module, var(--om-gold));
}

.om-open-icon svg {
  width: 70px;
  height: 70px;
  stroke-width: 1.3;
}

.om-module h3 {
  margin: 0 0 7px;
  color: var(--module, var(--om-gold));
  font-size: 19px;
}

.om-module p {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--om-muted);
  font-size: 13px;
}

.om-table-wrap {
  overflow: auto;
}

.om-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 13px;
}

.om-table th,
.om-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(150, 176, 180, .13);
  text-align: left;
  white-space: nowrap;
}

.om-table th {
  color: var(--om-muted);
  font-size: 11px;
  font-weight: 700;
}

.om-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--om-green);
  background: rgba(81, 200, 120, .11);
  font-size: 11px;
  font-weight: 800;
}

.om-badge.red {
  color: var(--om-red);
  background: rgba(255, 83, 83, .12);
}

.om-right {
  display: grid;
  gap: 14px;
}

.om-agent {
  padding: 18px;
}

.om-agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.om-agent-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.om-eye-small {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.om-agent-logo {
  float: right;
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin: 0 0 10px 16px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .55));
}

.om-kv {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.om-kv div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(150, 176, 180, .12);
  padding-bottom: 6px;
  color: var(--om-muted);
}

.om-kv strong {
  color: var(--om-ink);
  font-weight: 650;
}

.om-bottom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 18px 22px;
  border-color: rgba(214, 166, 54, .58) !important;
}

.om-bottom div {
  padding: 0 26px;
  border-left: 1px solid var(--om-line);
}

.om-bottom div:first-child {
  border-left: 0;
}

.om-bottom strong {
  display: block;
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
}

.om-bottom span {
  color: var(--om-muted);
  font-size: 12px;
}

input,
select,
textarea {
  background: rgba(3, 8, 11, .76) !important;
  border: 1px solid rgba(150, 176, 180, .22) !important;
  border-radius: 6px !important;
  color: var(--om-ink) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--om-gold) !important;
  outline: 2px solid rgba(214, 166, 54, .20) !important;
}

.brand-mark,
.logo-tile img,
.caesar-orb img,
.eye-stage img {
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .42));
}

.topnav,
.snav {
  background: var(--om-rail) !important;
  border: 1px solid var(--om-line) !important;
  border-radius: 8px !important;
  padding: 20px 14px !important;
  box-shadow: var(--om-shadow);
  backdrop-filter: blur(18px) saturate(138%);
  -webkit-backdrop-filter: blur(18px) saturate(138%);
}

.topnav::before,
.snav::before {
  content: "Ordo Mentis";
  min-height: 64px;
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 0 0 14px 62px;
  color: var(--om-ink);
  font-size: 18px;
  font-weight: 850;
  background: url("/brand/ordo-logo.png") 0 0 / 52px auto no-repeat;
  border-bottom: 1px solid var(--om-line);
}

body[data-topic] > .wrap > :not(.topnav):not(.snav) {
  min-width: 0;
}

body[data-topic] .page-head h1,
body[data-topic] > .wrap > header h1 {
  font-size: clamp(34px, 4.2vw, 54px) !important;
  line-height: 1 !important;
}

body[data-topic] .layout,
body[data-topic] .dash-grid,
body[data-topic] .console-grid {
  position: relative;
  z-index: 1;
}

@media (min-width: 1040px) {
  body[data-topic] {
    padding: 24px 18px !important;
  }

  body[data-topic] > .wrap {
    max-width: 1640px !important;
    display: grid !important;
    grid-template-columns: 270px minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
  }

  body[data-topic] .topnav,
  body[data-topic] .snav {
    grid-column: 1;
    grid-row: 1 / span 40;
    position: sticky;
    top: 18px;
    min-height: calc(100vh - 48px);
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
  }

  body[data-topic] > .wrap > :not(.topnav):not(.snav) {
    grid-column: 2;
  }
}

@media (max-width: 1320px) {
  .om-shell {
    grid-template-columns: 235px minmax(0, 1fr);
  }

  .om-grid,
  .om-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  body::before {
    width: min(92vw, 620px);
    opacity: .052;
  }

  .om-shell {
    display: block;
    padding: 10px;
  }

  .om-sidebar {
    min-height: 0;
    margin-bottom: 10px;
  }

  .om-logo {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }

  .om-logo img {
    width: 74px;
  }

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

  .om-main {
    padding: 14px 0 0;
  }

  .om-status,
  .om-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .om-status-cell,
  .om-bottom div {
    border-left: 0;
    padding: 8px 0;
  }

  .om-modules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    padding: 0 !important;
  }

  .om-nav {
    grid-template-columns: 1fr;
  }

  .om-module {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 16px;
  }

  .om-open-icon,
  .om-open-icon svg {
    width: 58px;
    height: 58px;
  }

  .om-status,
  .om-bottom {
    grid-template-columns: 1fr;
  }

  body[data-topic] {
    padding: 14px 10px !important;
  }

  .topnav::before,
  .snav::before {
    display: none;
  }

  .topnav,
  .snav {
    margin-bottom: 16px !important;
  }
}

/* ===== Approved cockpit renderer (v4 mockup contract) ===== */
body.om-approved {
  margin: 0 !important;
  padding: 4px !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  color: #f4f7f4 !important;
  background:
    radial-gradient(980px 620px at 9% 0%, rgba(13, 83, 112, .18), transparent 58%),
    radial-gradient(980px 680px at 88% 7%, rgba(10, 95, 88, .12), transparent 60%),
    linear-gradient(135deg, #030608 0%, #061014 48%, #030608 100%) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

body.om-approved::before {
  left: calc(226px + ((100vw - 236px) / 2)) !important;
  top: 50% !important;
  width: min(820px, calc(100vw - 640px)) !important;
  min-width: 520px !important;
  height: calc(100vh - 36px) !important;
  transform: translate(-50%, -49%) !important;
  background: url("/brand/ordo-watermark.png") center / contain no-repeat !important;
  opacity: .24 !important;
  filter: grayscale(.12) saturate(.78) contrast(1.05) !important;
  z-index: 0 !important;
}

body.om-approved::after {
  content: none !important;
}

body.om-approved .om-cockpit,
body.om-approved .om-cockpit * {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

body.om-approved .om-cockpit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: calc(100vh - 8px);
}

body.om-approved .om-left-rail,
body.om-approved .om-frame,
body.om-approved .om-glass {
  border: 1px solid rgba(135, 165, 172, .24) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .014)),
    linear-gradient(180deg, rgba(5, 18, 24, .74), rgba(2, 8, 11, .86)) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .38) !important;
  backdrop-filter: blur(16px) saturate(132%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(132%) !important;
}

body.om-approved .om-left-rail {
  position: sticky;
  top: 4px;
  height: calc(100vh - 8px);
  min-height: 900px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  overflow: hidden;
}

body.om-approved .om-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 0 18px;
  color: #d7aa3f;
  text-decoration: none;
  text-align: center;
}

body.om-approved .om-brand img {
  width: 118px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .65));
}

body.om-approved .om-brand-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: .92;
  text-transform: uppercase;
}

body.om-approved .om-brand-sub {
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

body.om-approved .om-nav-list {
  display: grid;
  gap: 5px;
}

body.om-approved .om-nav-list a {
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px !important;
  color: #a7b2b8 !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 720 !important;
}

body.om-approved .om-nav-list a.active {
  color: #ffc247 !important;
  border-color: rgba(214, 166, 54, .42) !important;
  background: linear-gradient(90deg, rgba(214, 166, 54, .16), rgba(214, 166, 54, .035)) !important;
  box-shadow: inset -3px 0 0 #d6a636;
}

body.om-approved .om-nav-ico {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 190, 196, .38);
  border-radius: 5px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
}

body.om-approved .om-side-card {
  padding: 14px;
}

body.om-approved .om-side-card h3,
body.om-approved .om-side-card p {
  margin: 0;
}

body.om-approved .om-side-card h3 {
  font-size: 14px;
}

body.om-approved .om-side-card p,
body.om-approved .om-muted {
  color: #9ba8ad !important;
  font-size: 12px;
}

body.om-approved .om-money {
  margin: 6px 0 2px;
  color: #f4f7f4;
  font-size: 24px;
  line-height: 1;
}

body.om-approved .om-user-row {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

body.om-approved .om-avatar-round {
  width: 34px;
  height: 34px;
  border: 2px solid #d6a636;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #d6a636;
  font-weight: 900;
}

body.om-approved .om-workspace {
  min-width: 0;
  display: grid;
  gap: 10px;
}

body.om-approved .om-market-strip {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(250px, .7fr) minmax(285px, .85fr) minmax(210px, .56fr);
  min-height: 112px;
  overflow: hidden;
}

body.om-approved .om-strip-cell {
  padding: 13px 22px;
  border-left: 1px solid rgba(135, 165, 172, .18);
}

body.om-approved .om-strip-cell:first-child {
  border-left: 0;
}

body.om-approved .om-strip-title,
body.om-approved .om-panel-title {
  color: #d6dde0;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

body.om-approved .om-ticker-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
}

body.om-approved .om-ticker {
  padding: 0 15px;
  border-left: 1px solid rgba(135, 165, 172, .14);
}

body.om-approved .om-ticker:first-child {
  padding-left: 0;
  border-left: 0;
}

body.om-approved .om-ticker strong,
body.om-approved .om-kpi-value {
  display: block;
  color: #f4f7f4;
  font-size: 18px;
  font-weight: 500;
}

body.om-approved .om-pos,
body.om-approved .om-good {
  color: #55d979 !important;
}

body.om-approved .om-neg,
body.om-approved .om-bad {
  color: #ff5757 !important;
}

body.om-approved .om-warn,
body.om-approved .om-gold {
  color: #f0b33f !important;
}

body.om-approved .om-cyan {
  color: #f0b33f !important;
}

body.om-approved .om-clock strong { display: block; font-size: 13px; color: var(--om-ink, #f3f5f2); }
body.om-approved .om-clock span { font-size: 12px; }

body.om-approved .om-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 10px;
  align-items: start;
}

body.om-approved .om-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 14px;
  align-items: start;
}

body.om-approved .om-main-stack,
body.om-approved .om-right-rail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.om-approved .om-page-head {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
}

body.om-approved .om-page-head h1 {
  margin: 0;
  color: #f7f9f6;
  font-size: 30px;
  line-height: 1;
  font-weight: 860;
}

body.om-approved .om-page-head p,
body.om-approved .om-card-sub {
  margin: 4px 0 0;
  color: #a8b3b8;
  font-size: 13px;
}

body.om-approved .om-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.om-approved .om-btn,
body.om-approved button.om-btn,
body.om-approved .btn {
  min-height: 32px;
  padding: 7px 14px !important;
  border: 1px solid rgba(214, 166, 54, .54) !important;
  border-radius: 5px !important;
  color: #f5bd45 !important;
  background: rgba(4, 13, 17, .58) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  text-decoration: none !important;
  cursor: pointer;
}

body.om-approved .om-btn.cyan {
  border-color: rgba(214, 166, 54, .55) !important;
  color: #f0b33f !important;
}

body.om-approved .om-card {
  padding: 14px 16px;
  min-width: 0;
}

body.om-approved .om-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body.om-approved .om-card h2,
body.om-approved .om-card h3 {
  margin: 0;
  color: #f5f8f5;
  font-size: 18px;
  line-height: 1.1;
}

body.om-approved .om-input-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid rgba(135, 165, 172, .18);
  border-radius: 7px;
  overflow: hidden;
}

body.om-approved .om-input-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.om-approved .om-input-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.om-approved .om-input-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.om-approved .om-field {
  min-height: 92px;
  padding: 12px;
  border-left: 1px solid rgba(135, 165, 172, .13);
}

body.om-approved .om-field:first-child {
  border-left: 0;
}

body.om-approved label {
  display: block;
  margin: 0 0 7px;
  color: #cbd5d7;
  font-size: 12px;
  font-weight: 760;
}

body.om-approved .om-help {
  display: block;
  margin-top: 5px;
  color: #8f9ca2;
  font-size: 11px;
}

body.om-approved input,
body.om-approved select,
body.om-approved textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px !important;
  border: 1px solid rgba(135, 165, 172, .24) !important;
  border-radius: 4px !important;
  color: #f5f8f5 !important;
  background: rgba(2, 7, 10, .62) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 15px !important;
}

body.om-approved textarea {
  resize: vertical;
}

body.om-approved .om-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(135, 165, 172, .24);
  border-radius: 5px;
  overflow: hidden;
}

body.om-approved .om-seg button {
  min-height: 34px;
  border: 0 !important;
  border-left: 1px solid rgba(135, 165, 172, .15) !important;
  border-radius: 0 !important;
  color: #a8b3b8 !important;
  background: rgba(4, 13, 17, .7) !important;
  font: inherit !important;
  font-weight: 780 !important;
}

body.om-approved .om-seg button:first-child {
  border-left: 0 !important;
}

body.om-approved .om-seg button.active {
  color: #06100b !important;
  background: #55d979 !important;
}

body.om-approved .om-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.om-approved .om-metric-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.om-approved .om-metric {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(135, 165, 172, .18);
  border-radius: 7px;
  background: rgba(255, 255, 255, .032);
}

body.om-approved .om-metric span {
  display: block;
  color: #98a5aa;
  font-size: 11px;
}

body.om-approved .om-metric strong,
body.om-approved .stat-value,
body.om-approved .result-value {
  display: block;
  margin-top: 6px;
  color: #f4f7f4;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
}

body.om-approved .om-forecast-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 10px;
}

body.om-approved table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

body.om-approved th,
body.om-approved td {
  padding: 7px 9px;
  border-bottom: 1px solid rgba(135, 165, 172, .13);
  color: #d9e0df;
  text-align: left;
  white-space: nowrap;
}

body.om-approved th {
  color: #94a1a6;
  font-size: 11px;
  font-weight: 600;
}

body.om-approved .om-table-scroll {
  overflow: auto;
}

/* forecast-ui.js injects its real .ordo-forecast panel afterend of #checklist inside a
   forecast-grid card. Let that card span the full grid width so the 6-column forecast
   table is not squished into a half-width cell (the cause of the misaligned/"missing"
   columns on forex et al.); hide the static sample once the real forecast is present;
   keep the forecast table scrollable as a fallback. */
body.om-approved .om-forecast-grid > .om-card:has(.ordo-forecast) { grid-column: 1 / -1; }
body.om-approved .om-card:has(.ordo-forecast) .om-sample-forecast { display: none; }
body.om-approved .ordo-forecast { width: 100%; margin-top: 10px; }

body.om-approved .om-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #55d979;
  background: rgba(85, 217, 121, .12);
  font-size: 11px;
  font-weight: 820;
}

body.om-approved .om-pill.red {
  color: #ff5757;
  background: rgba(255, 87, 87, .12);
}

body.om-approved .om-pill.warn {
  color: #f0b33f;
  background: rgba(240, 179, 63, .12);
}

body.om-approved .om-right-card {
  padding: 16px;
}

body.om-approved .om-right-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.om-approved .om-right-title h2 {
  margin: 0;
  color: #f4f7f4;
  font-size: 21px;
}

body.om-approved .om-eye {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5));
}

body.om-approved .om-kv {
  display: grid;
  gap: 8px;
}

body.om-approved .om-kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(135, 165, 172, .11);
  color: #a5b0b5;
  font-size: 13px;
}

body.om-approved .om-footer-banner {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 26px;
  color: #f0b33f;
  font-size: 21px;
  text-align: center;
}

body.om-approved .om-footer-banner::before,
body.om-approved .om-footer-banner::after {
  content: "";
  height: 1px;
  background: rgba(214, 166, 54, .65);
}

body.om-approved .om-hidden-compat {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.om-approved .modal-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: 80 !important;
}

body.om-approved .modal-bg:not(.show) {
  display: none !important;
}

body.om-approved .modal {
  max-width: 440px;
  margin: 14vh auto;
  padding: 18px;
}

body.om-approved .ordo-tomas-chat {
  right: 18px;
  bottom: 18px;
}

@media (max-width: 1220px) {
  body.om-approved .om-cockpit {
    grid-template-columns: 1fr;
  }

  body.om-approved .om-left-rail {
    position: relative;
    height: auto;
    min-height: 0;
  }

  body.om-approved::before {
    left: 50% !important;
    width: min(860px, 86vw) !important;
    min-width: 0 !important;
  }

  body.om-approved .om-page-grid,
  body.om-approved .om-home-grid,
  body.om-approved .om-market-strip {
    grid-template-columns: 1fr;
  }

  body.om-approved .om-input-grid,
  body.om-approved .om-input-grid.cols-4,
  body.om-approved .om-input-grid.cols-5,
  body.om-approved .om-input-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.om-approved .om-input-grid,
  body.om-approved .om-input-grid.cols-4,
  body.om-approved .om-input-grid.cols-5,
  body.om-approved .om-input-grid.cols-3,
  body.om-approved .om-metric-grid,
  body.om-approved .om-metric-grid.cols-4,
  body.om-approved .om-forecast-grid,
  body.om-approved .om-footer-banner {
    grid-template-columns: 1fr;
  }
}
