:root {
  --bg: #0f1318;
  --panel: #171d24;
  --panel-2: #121820;
  --field: #202833;
  --ink: #e8edf2;
  --muted: #8e99a6;
  --line: #2c3642;
  --line-bright: #3e4b58;
  --accent: #b58a3b;
  --accent-dark: #d0a04b;
  --steel: #4f6f8f;
  --danger: #8f3f3b;
  --shadow: none;
  --rail-width: 450px;
  --topbar-height: 54px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.38 Inter, "IBM Plex Sans", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  min-height: var(--topbar-height);
  background: #111820;
  border-bottom: 1px solid #05070a;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 12px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}
.brand span { display: block; color: #a7b0bb; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.brand strong { display: block; font-size: 15px; letter-spacing: 0; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 34px;
  min-height: 30px;
  padding: 5px 7px;
  background: #1b242e;
  border: 1px solid var(--line-bright);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #d9e0e8;
  margin: 3px 0;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.topnav a {
  color: #d9e0e8;
  padding: 7px 9px;
  border-radius: 1px;
  font-size: 12px;
  border: 1px solid transparent;
}
.topnav a:hover { background: #1b242e; border-color: var(--line); text-decoration: none; }
.topnav .nav-disabled {
  border: 1px solid transparent;
  color: #687585;
  cursor: not-allowed;
  display: inline-flex;
  font-size: 12px;
  padding: 7px 9px;
}
.trade-rail {
  position: fixed;
  inset: var(--topbar-height) auto 0 0;
  width: var(--rail-width);
  background: #0d1117;
  border-right: 1px solid #05070a;
  color: var(--ink);
  overflow: auto;
  padding: 12px 10px;
}
.trade-rail h2 {
  font-size: 15px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trade-rail h3 {
  color: #b3bdc8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.rail-box {
  border: 1px solid var(--line);
  border-radius: 1px;
  margin-bottom: 8px;
  padding: 8px;
  background: #111820;
}
.rail-filters label {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #c3ccd6;
  font-size: 12px;
}
.rail-filters input,
.rail-filters select {
  min-height: 24px;
  padding: 2px 6px;
}
.rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rail-actions h3,
.rail-actions .wide {
  grid-column: 1 / -1;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rail-actions form {
  display: contents;
}
.rail-button {
  background: #1b242e;
  border: 1px solid #3a4654;
  border-radius: 1px;
  color: #dfe6ed;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-height: 24px;
  padding: 3px 7px;
  text-align: center;
}
.rail-button:hover { background: #263241; border-color: #53606f; text-decoration: none; }
.rail-button:disabled { opacity: 0.55; cursor: not-allowed; }
.rail-button.danger { background: #442326; border-color: #7e3b3e; color: #f0d5d5; }
.rail-table-wrap {
  border: 1px solid #05070a;
  max-height: calc(100vh - 560px);
  min-height: 250px;
  overflow: auto;
  background: #0a0e13;
}
.rail-table {
  border-collapse: collapse;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  min-width: 590px;
  width: 100%;
}
.rail-table th,
.rail-table td {
  border-bottom: 1px solid #151c24;
  color: #dde5ee;
  padding: 2px 5px;
  white-space: nowrap;
}
.rail-table th {
  background: #111820;
  color: #aab5c2;
  font-size: 10px;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.rail-table th a {
  color: #cfd7e0;
  display: block;
}
.rail-table tr.selected,
.rail-table tr:hover {
  background: #1d3448;
  cursor: pointer;
}
.rail-table tr.selected-multi {
  background: #2a2417;
  outline: 1px solid rgba(181, 138, 59, 0.65);
  outline-offset: -1px;
}
.rail-table a {
  color: #eef4fa;
  font-weight: 800;
}
.select-col {
  width: 26px;
  text-align: center;
}
.rail-count {
  color: #aab5c2;
  margin: 10px 0 0;
  font-size: 12px;
}
.main {
  margin-left: var(--rail-width);
  max-width: none;
  padding: calc(var(--topbar-height) + 16px) 28px 28px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; margin-bottom: 0; font-weight: 800; }
h2 { font-size: 15px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
h3 { font-size: 13px; margin: 20px 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.actions, .row-actions, .inline-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
button, .button {
  border: 1px solid #8b6b32;
  border-radius: 1px;
  background: var(--accent);
  color: #15120a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 11px;
  font-weight: 700;
  text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-dark); text-decoration: none; }
button.secondary, .button.secondary {
  background: #1b242e;
  border: 1px solid #3a4654;
  color: #e6edf5;
}
button.secondary:hover, .button.secondary:hover { background: #263241; }
button.danger, .button.danger { background: var(--danger); border-color: #a95450; color: #f8e3e2; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  padding: 14px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.panel-header p, .section-note { color: var(--muted); margin-bottom: 0; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.metric-strip > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1px;
  color: var(--ink);
  padding: 12px;
}
.metric-strip span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.metric-strip strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.macro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.macro-grid p {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 1px;
  color: var(--ink);
  min-height: 110px;
  padding: 10px;
}
.macro-grid strong { display: block; margin-bottom: 6px; }
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}
input, select, textarea {
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line-bright);
  border-radius: 1px;
  color: var(--ink);
  font: inherit;
  min-height: 30px;
  padding: 5px 8px;
}
input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
}
textarea { resize: vertical; }
label { display: block; font-weight: 800; margin-bottom: 4px; color: #c9d2dc; font-size: 12px; }
small { color: var(--muted); display: block; margin-top: 4px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}
.compact-form { max-width: 980px; }
.tk-section {
  border: 1px solid var(--line);
  border-radius: 1px;
  margin: 0 0 12px;
  padding: 16px 10px 10px;
  background: rgba(10, 14, 19, 0.18);
}
.tk-section legend {
  color: #d8e0e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 8px;
  text-transform: uppercase;
}
.tk-section .form-grid {
  align-items: start;
}
.exposure-calcs input[readonly] {
  background: #121820;
  color: #f0c46c;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.field.wide, .check { grid-column: 1 / -1; }
.field.compact { min-width: 280px; }
.help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: transparent;
  color: #dddddd;
  border: 1px solid #9a9a9a;
  font-size: 12px;
  margin-left: 4px;
}
.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}
.form-actions.bottom { justify-content: flex-end; }
.sticky-save {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 10px 0 14px;
  border-bottom: 1px solid var(--line);
}
.tabs a, .tab-button {
  background: #111820;
  border-radius: 0;
  color: #aeb9c6;
  font-weight: 700;
  padding: 7px 11px;
  min-height: 30px;
}
.tab-button {
  border: 1px solid var(--line);
  border-bottom: 0;
  margin-right: 2px;
}
.tab-button.is-active {
  background: #202833;
  border-color: var(--line-bright);
  border-top: 2px solid var(--accent);
  color: #ffffff;
  box-shadow: none;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.institutional-sentence {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1px;
  margin-top: 18px;
  padding: 14px;
}
.institutional-sentence span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.institutional-sentence p {
  font-style: italic;
  margin-bottom: 0;
}
.leg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
details {
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 10px;
  background: var(--panel-2);
}
summary { cursor: pointer; font-weight: 800; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill {
  background: #1d2833;
  border: 1px solid var(--line-bright);
  border-radius: 1px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-tag {
  background: #1b242e;
  border: 1px solid var(--line-bright);
  border-left: 3px solid var(--steel);
  color: #dbe4ed;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  text-transform: uppercase;
}
.status-tag.current {
  border-left-color: var(--accent);
  color: #f0c46c;
}
.grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.item-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.item-card.muted { opacity: 0.72; }
.item-card.selected-multi {
  background: #1f1d16;
  border-color: rgba(181, 138, 59, 0.72);
}
.item-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.item-top p { color: var(--muted); margin-bottom: 0; }
.macro-select {
  flex: 0 0 auto;
  margin-top: 3px;
}
.flash-stack { margin-bottom: 14px; }
.flash {
  border-radius: 1px;
  margin-bottom: 8px;
  padding: 10px 12px;
  color: #dde8f1;
  background: #17281d;
  border: 1px solid #31553c;
}
.flash.warning { background: #2d2416; border-color: #755d2a; color: #f3d695; }
.empty { color: var(--muted); padding: 18px; text-align: center; }
.inline-add {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.event-form { margin-top: 16px; }
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 20px;
}
.upload-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 14px;
}
.attachment-list { display: grid; gap: 8px; }
.attachment-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.utility-grid form {
  border: 1px solid var(--line);
  border-radius: 1px;
  padding: 12px;
}
.note-row td { color: var(--muted); background: #111820; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
}
.public-topbar {
  justify-content: space-between;
}
.public-main {
  padding: calc(var(--topbar-height) + 28px) 24px 0;
}
.public-flashes,
.landing-hero,
.landing-section,
.landing-final,
.public-footer {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - var(--topbar-height) - 36px);
  padding: 34px 0 60px;
}
.landing-copy h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0 0 22px;
  text-transform: none;
}
.hero-subhead {
  color: #c6ced8;
  font-size: 17px;
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 24px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.clarity-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.trade-os-visual {
  background: #101720;
  border: 1px solid var(--line-bright);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  padding: 16px;
}
.visual-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.visual-header span,
.workflow-node span,
.visual-table span,
.pricing-grid span {
  color: var(--muted);
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.visual-header strong {
  color: #f1c66f;
}
.workflow-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.workflow-node {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 92px;
  padding: 12px;
}
.workflow-node::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 10px;
  border-top: 1px solid rgba(201, 154, 58, 0.54);
}
.workflow-node:nth-child(2n)::after {
  display: none;
}
.workflow-node strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-top: 10px;
}
.visual-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 14px;
}
.visual-table div {
  background: #0d1218;
  padding: 10px;
}
.visual-table strong {
  color: #dce4ed;
  display: block;
  margin-top: 5px;
}
.landing-section {
  border-top: 1px solid var(--line);
  padding: 76px 0;
}
.landing-section.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 44px;
}
.landing-section h2,
.landing-final h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}
.landing-section p,
.compare-card li,
.feature-grid p,
.audience-grid p,
.pricing-grid p,
.landing-final p {
  color: #b9c3cf;
  font-size: 15px;
  line-height: 1.55;
}
.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}
.feature-grid,
.audience-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
}
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.audience-grid,
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-grid article,
.audience-grid article,
.pricing-grid article,
.compare-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}
.feature-grid h3,
.audience-grid h3,
.pricing-grid h3,
.compare-card h3 {
  margin-top: 0;
  color: #f0f3f6;
}
.pricing-beta-note {
  border-left: 2px solid rgba(201, 154, 58, 0.74);
  margin-top: 12px;
  padding-left: 12px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  position: relative;
}
.pricing-card.flagship {
  border-color: rgba(201, 154, 58, 0.72);
  box-shadow: inset 0 1px 0 rgba(201, 154, 58, 0.16);
}
.pricing-card-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.plan-positioning {
  margin: 8px 0 0;
}
.plan-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 1px solid rgba(201, 154, 58, 0.68);
  color: #f1c66f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}
.price-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.price-block strong {
  color: #f2f5f7;
  display: block;
  font-size: 27px;
  letter-spacing: 0;
  line-height: 1;
}
.price-block strong span {
  color: var(--muted);
  display: inline;
  font-size: 13px;
  letter-spacing: 0;
  margin-left: 4px;
  text-transform: none;
}
.price-block p,
.price-block small {
  color: #b9c3cf;
  display: block;
  margin: 7px 0 0;
}
.price-block small {
  color: var(--muted);
  font-size: 12px;
}
.plan-features {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
}
.plan-features li {
  color: #c7d0da;
  font-size: 13px;
  line-height: 1.4;
  margin: 7px 0;
  padding-left: 14px;
  position: relative;
}
.plan-features li::before {
  content: "";
  background: rgba(201, 154, 58, 0.85);
  height: 4px;
  left: 0;
  position: absolute;
  top: 8px;
  width: 4px;
}
.pricing-cta {
  justify-content: center;
  margin-top: auto;
  width: 100%;
}
.pricing-actions,
.admin-actions,
.inline-admin-form {
  display: grid;
  gap: 6px;
}
.admin-actions button,
.admin-actions select {
  width: 100%;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.compare-card ul {
  margin: 0;
  padding-left: 18px;
}
.compare-card li {
  margin: 9px 0;
}
.accent-card {
  border-color: rgba(201, 154, 58, 0.55);
}
.philosophy {
  background: #111820;
  border: 1px solid var(--line);
  padding: 42px;
}
.landing-final {
  border: 1px solid rgba(201, 154, 58, 0.42);
  background: #111820;
  padding: 46px;
  text-align: center;
}
.public-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 0 46px;
}
.public-footer strong {
  color: var(--ink);
}
.blog-hero,
.blog-index-layout,
.blog-post,
.more-posts,
.contact-page {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.blog-hero {
  border-bottom: 1px solid var(--line);
  padding: 42px 0 34px;
}
.blog-hero h1,
.blog-post-header h1 {
  font-size: clamp(36px, 6vw, 66px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 16px;
  text-transform: none;
}
.blog-hero p,
.blog-post-header p {
  color: #c6ced8;
  font-size: 16px;
  line-height: 1.58;
  max-width: 780px;
}
.blog-index-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 26px 0 68px;
}
.blog-list {
  display: grid;
  gap: 12px;
}
.blog-card,
.blog-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}
.blog-card.featured {
  border-color: rgba(201, 154, 58, 0.66);
  box-shadow: inset 0 1px 0 rgba(201, 154, 58, 0.14);
}
.blog-card h2,
.blog-card h3,
.blog-sidebar h2 {
  color: #f0f3f6;
  letter-spacing: 0;
  margin: 8px 0 10px;
  text-transform: none;
}
.blog-card h2 {
  font-size: 24px;
}
.blog-card h3,
.blog-sidebar h2 {
  font-size: 16px;
}
.blog-card p,
.blog-sidebar p {
  color: #b9c3cf;
  font-size: 14px;
  line-height: 1.58;
}
.blog-card-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card-meta span:not(:first-child)::before {
  color: var(--line-bright);
  content: "/";
  margin-right: 8px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.tag-row span {
  border: 1px solid var(--line-bright);
  color: #c7d0da;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}
.text-link {
  color: #f1c66f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.back-link {
  display: inline-block;
  margin-bottom: 18px;
}
.blog-post {
  max-width: 900px;
  padding: 36px 0 34px;
}
.blog-post-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 22px;
}
.blog-content {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
}
.blog-content h2,
.blog-content h3 {
  color: #f0f3f6;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 28px 0 10px;
  text-transform: none;
}
.blog-content h2 {
  font-size: 24px;
}
.blog-content h3 {
  font-size: 18px;
}
.blog-content p,
.blog-content li {
  color: #c2cbd5;
  font-size: 15px;
  line-height: 1.72;
}
.blog-content p {
  margin: 0 0 16px;
}
.blog-content ul,
.blog-content ol {
  padding-left: 22px;
}
.blog-content blockquote {
  border-left: 2px solid rgba(201, 154, 58, 0.74);
  color: #c6ced8;
  margin: 22px 0;
  padding: 4px 0 4px 16px;
}
.blog-content code {
  background: #0d1218;
  border: 1px solid var(--line);
  color: #dce4ed;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 4px;
}
.more-posts {
  border-top: 1px solid var(--line);
  padding: 42px 0 58px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.contact-page {
  padding: 38px 0 62px;
}
.contact-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 24px;
}
.contact-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 14px;
  text-transform: none;
}
.contact-hero p {
  color: #c6ced8;
  font-size: 16px;
  line-height: 1.58;
  max-width: 760px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}
.contact-panel,
.contact-aside {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}
.contact-panel h2,
.contact-aside h2 {
  color: #f0f3f6;
  margin-top: 0;
}
.contact-aside p,
.contact-aside li {
  color: #b9c3cf;
  font-size: 14px;
  line-height: 1.58;
}
.contact-aside ul {
  margin: 12px 0;
  padding-left: 18px;
}
.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 0 20px;
}
.legal-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding-bottom: 22px;
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
  text-transform: none;
}
.legal-effective {
  color: #c6ced8;
  font-weight: 800;
  margin: 0 0 10px;
}
.legal-counsel-note {
  border-left: 2px solid rgba(201, 154, 58, 0.74);
  color: #b9c3cf;
  max-width: 760px;
  padding-left: 12px;
}
.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
}
.legal-card section {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.legal-card section:first-child {
  padding-top: 0;
}
.legal-card section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.legal-card h2 {
  color: #f0f3f6;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  text-transform: none;
}
.legal-card h3 {
  color: #cfd7df;
  font-size: 12px;
  letter-spacing: 0.07em;
  margin: 18px 0 8px;
  text-transform: uppercase;
}
.legal-card p {
  color: #b9c3cf;
  font-size: 14px;
  line-height: 1.62;
  margin: 0 0 10px;
}
.policy-check {
  align-items: flex-start;
  border: 1px solid var(--line);
  background: #111820;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}
.policy-check input {
  flex: 0 0 auto;
  min-height: 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.policy-check span,
.auth-policy-links {
  color: #b9c3cf;
  font-size: 12px;
  line-height: 1.45;
}
.auth-policy-links {
  border-top: 1px solid var(--line);
  margin: 14px 0 0;
  padding-top: 12px;
}
body.theme-light .hero-subhead,
body.theme-light .landing-section p,
body.theme-light .compare-card li,
body.theme-light .feature-grid p,
body.theme-light .audience-grid p,
body.theme-light .pricing-grid p,
body.theme-light .landing-final p {
  color: #465360;
}
body.theme-light .trade-os-visual,
body.theme-light .philosophy,
body.theme-light .landing-final {
  background: #ffffff;
}
body.theme-light .visual-table div {
  background: #f8fafc;
}
body.theme-light .feature-grid h3,
body.theme-light .audience-grid h3,
body.theme-light .pricing-grid h3,
body.theme-light .compare-card h3 {
  color: #17202a;
}
body.theme-light .price-block strong {
  color: #17202a;
}
body.theme-light .price-block p,
body.theme-light .price-block small,
body.theme-light .plan-features li {
  color: #465360;
}
body.theme-light .plan-badge {
  color: #7d5b23;
}
body.theme-light .blog-card,
body.theme-light .blog-sidebar,
body.theme-light .blog-content,
body.theme-light .contact-panel,
body.theme-light .contact-aside {
  background: #ffffff;
}
body.theme-light .blog-hero p,
body.theme-light .blog-post-header p,
body.theme-light .blog-card p,
body.theme-light .blog-sidebar p,
body.theme-light .blog-content p,
body.theme-light .blog-content li,
body.theme-light .contact-hero p,
body.theme-light .contact-aside p,
body.theme-light .contact-aside li {
  color: #465360;
}
body.theme-light .blog-card h2,
body.theme-light .blog-card h3,
body.theme-light .blog-sidebar h2,
body.theme-light .blog-content h2,
body.theme-light .blog-content h3,
body.theme-light .contact-panel h2,
body.theme-light .contact-aside h2 {
  color: #17202a;
}
body.theme-light .blog-content code {
  background: #f5f7f9;
  color: #17202a;
}
body.theme-light .legal-card,
body.theme-light .policy-check {
  background: #ffffff;
}
body.theme-light .legal-card h2 {
  color: #17202a;
}
body.theme-light .legal-card h3 {
  color: #465360;
}
body.theme-light .legal-card p,
body.theme-light .legal-counsel-note,
body.theme-light .policy-check span,
body.theme-light .auth-policy-links {
  color: #465360;
}
.settings-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 820px;
}
.option-group {
  border: 1px solid var(--line);
  border-radius: 1px;
  margin: 0;
  padding: 14px 12px 10px;
  background: var(--panel-2);
}
.option-group legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 6px;
  text-transform: uppercase;
}
.radio-option {
  align-items: center;
  display: flex;
  gap: 8px;
  margin: 7px 0;
}
.radio-option input {
  accent-color: var(--accent);
  min-height: 14px;
  width: 14px;
}

body.theme-light {
  --bg: #eef1f4;
  --panel: #ffffff;
  --panel-2: #f5f7f9;
  --field: #ffffff;
  --ink: #17202a;
  --muted: #5f6b78;
  --line: #cbd3dc;
  --line-bright: #9daaba;
  --accent: #9f742d;
  --accent-dark: #7d5b23;
  --steel: #416883;
  --danger: #93423d;
}
body.theme-light .topbar {
  background: #f8fafc;
  border-bottom-color: #c5ced8;
}
body.theme-light .brand,
body.theme-light .brand strong {
  color: #111820;
}
body.theme-light .brand span,
body.theme-light .topnav a {
  color: #354151;
}
body.theme-light .topnav a:hover,
body.theme-light .nav-toggle,
body.theme-light .rail-box,
body.theme-light .rail-table th,
body.theme-light .topnav {
  background: #e8edf2;
}
body.theme-light .nav-toggle span {
  background: #17202a;
}
body.theme-light .trade-rail,
body.theme-light .rail-table-wrap {
  background: #dfe5eb;
  border-color: #bdc8d4;
}
body.theme-light .trade-rail h2,
body.theme-light .trade-rail h3,
body.theme-light .rail-filters label,
body.theme-light label,
body.theme-light .rail-table td,
body.theme-light .rail-table a,
body.theme-light .rail-table th a {
  color: #17202a;
}
body.theme-light .rail-button,
body.theme-light button.secondary,
body.theme-light .button.secondary,
body.theme-light .tab-button,
body.theme-light details {
  background: #e8edf2;
  border-color: #b8c3cf;
  color: #17202a;
}
body.theme-light .rail-button:hover,
body.theme-light button.secondary:hover,
body.theme-light .button.secondary:hover {
  background: #dce3ea;
}
body.theme-light .rail-button.danger,
body.theme-light button.danger,
body.theme-light .button.danger {
  background: #8f3f3b;
  border-color: #77302d;
  color: #fff;
}
body.theme-light .rail-table tr.selected,
body.theme-light .rail-table tr:hover {
  background: #cfe0ef;
}
body.theme-light .rail-table tr.selected-multi,
body.theme-light .item-card.selected-multi {
  background: #fff5dd;
}
body.theme-light input,
body.theme-light select,
body.theme-light textarea {
  background: #ffffff;
  color: #17202a;
}
body.theme-light .tab-button.is-active {
  background: #ffffff;
  color: #17202a;
}
body.theme-light .exposure-calcs input[readonly] {
  background: #f5f7f9;
  color: #7d5b23;
}
body.theme-light .note-row td {
  background: #f5f7f9;
}
body.theme-light .flash {
  background: #e5f2e8;
  border-color: #a8cdb1;
  color: #16351d;
}
body.theme-light .flash.warning {
  background: #fff4d9;
  border-color: #d7b763;
  color: #4f3c12;
}

body.text-small {
  font-size: 12px;
  line-height: 1.32;
}
body.text-small .main,
body.text-small .trade-rail {
  font-size: 12px;
}
body.text-small h1 { font-size: 21px; }
body.text-small h2 { font-size: 13px; }
body.text-small h3 { font-size: 12px; }
body.text-small label,
body.text-small .rail-filters label,
body.text-small .rail-button,
body.text-small button,
body.text-small .button,
body.text-small th,
body.text-small .pill,
body.text-small .status-tag {
  font-size: 11px;
}
body.text-small .rail-table {
  font-size: 10px;
}
body.text-small .rail-table th {
  font-size: 9px;
}
body.text-small input,
body.text-small select,
body.text-small textarea {
  min-height: 27px;
  padding: 4px 7px;
}
body.text-small .tabs a,
body.text-small .tab-button {
  min-height: 27px;
  padding: 5px 9px;
}
body.text-small .panel {
  padding: 12px;
}
@media (max-width: 980px) {
  .topbar { position: static; flex-direction: column; align-items: stretch; }
  .trade-rail { position: static; width: auto; max-height: none; }
  .main { margin-left: 0; padding: 18px; }
  .metric-strip, .macro-grid, .form-grid, .leg-grid, .grid-list, .split-panel, .utility-grid { grid-template-columns: 1fr; }
  .landing-hero,
  .landing-section.split,
  .blog-index-layout,
  .blog-related-grid,
  .contact-layout,
  .feature-grid,
  .audience-grid,
  .pricing-grid,
  .compare-grid,
  .workflow-map {
    grid-template-columns: 1fr;
  }
  .landing-hero {
    min-height: auto;
    padding-top: 28px;
  }
  .workflow-node::after {
    display: none;
  }
  .filters { grid-template-columns: 1fr; }
  .inline-add { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .topbar {
    align-items: center;
    flex-direction: row;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    order: 3;
  }
  .topnav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 8px;
    width: min(320px, calc(100vw - 16px));
    background: #111820;
    border: 1px solid var(--line-bright);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    padding: 6px;
    z-index: 30;
  }
  .topnav.is-open {
    display: grid;
    gap: 4px;
  }
  .topnav a {
    display: block;
    padding: 9px 10px;
  }
}

@media (max-width: 980px) {
  .topbar {
    position: sticky;
    top: 0;
    align-items: center;
    flex-direction: row;
  }
}
