.monthly-fx {
  color: #192e47;
  margin: 0 0 20px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}
.monthly-fx[hidden] { display: none; }
.mf-header, .mf-heading, .mf-dates, .mf-legend, #mf-event {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.mf-header, .mf-heading { justify-content: space-between; }
.mf-header { margin-bottom: 15px; }
.mf-header h3 { font-size: 24px; margin: 0; }
.mf-heading h4 { font-size: 17px; margin: 0; }
.mf-header p, .mf-heading p, .mf-event-note { margin: 4px 0 0; color: #526579; font-size: 13px; }
.mf-dates span { background: #e1edf8; padding: 6px 10px; border-radius: 5px; font-size: 12px; font-weight: 650; }
.mf-dates .mf-preview-tag { background: #f2ebfa; color: #62478b; }
.mf-up { color: #127153; }
.mf-down { color: #a72c4b; }
.mf-panel { background: #fff; border: 1px solid #d8e3ef; border-radius: 9px; padding: 16px; margin-top: 12px; min-width: 0; }
.mf-legend { margin-top: 12px; }
.mf-legend label { display: inline-flex; align-items: center; gap: 5px; }
.mf-legend i { width: 8px; height: 8px; border-radius: 50%; }
.mf-panel canvas { display: block; width: 100%; height: 226px; }
.mf-history-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.mf-history-controls label { display: flex; align-items: center; gap: 6px; }
.mf-history-meeting, .mf-history-note { color: #526579; font-size: 12px; margin: 10px 0 0; }
.mf-history-readout {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  background: #f3f7fb; border: 1px solid #e4ebf2; border-radius: 6px; margin: 10px 0 2px; padding: 8px 10px;
}
.mf-history-readout p { margin: 0; font-weight: 650; font-size: 13px; }
.mf-history-readout dl { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.mf-history-readout dl div { display: flex; align-items: baseline; gap: 5px; }
.mf-history-readout dt { color: #526579; font-size: 12px; }
.mf-history-readout dd { font-size: 13px; font-weight: 650; margin: 0; }
.mf-rate-history canvas { height: 330px; cursor: crosshair; touch-action: pan-y; }
.mf-history-date { display: flex; align-items: center; gap: 8px; }
.mf-history-date input { accent-color: #235877; flex: 1; min-width: 0; }
.mf-table-scroll { overflow-x: auto; }
.mf-panel table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 13px; }
.mf-panel caption { font-weight: 650; text-align: left; padding: 8px 0 4px; }
.mf-panel th, .mf-panel td { padding: 8px; border-bottom: 1px solid #e4ebf2; text-align: right; }
.mf-panel th:first-child { text-align: left; }
.mf-market-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.mf-market-dates p { font-size: 12px; }
.mf-market-overview .mf-market-scenario { display: flex; align-items: center; gap: 8px; }
.mf-market-overview .mf-market-table { margin-top: 12px; table-layout: fixed; white-space: normal; }
.mf-market-table thead { background: #f3f7fb; }
.mf-market-table th, .mf-market-table td { padding: 5px 8px; vertical-align: middle; }
.mf-market-overview .mf-market-table { min-width: 650px; }
.mf-official-notice { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid #a8692e;
  background: #fff5e8; color: #71451f; font-size: 13px; }
.mf-market-table thead th { font-size: 12px; }
.mf-market-table thead th:first-child { width: 16%; }
.mf-market-table .mf-market-focus { text-align: left; }
.mf-market-table th.mf-market-focus { width: 25%; }
.mf-market-table td.mf-market-focus { color: #344a61; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.mf-market-table tbody tr { cursor: pointer; }
.mf-market-table tbody tr:hover,
.mf-market-table tr[data-selected] { background: #f3f8fc; }
.mf-market-table tbody tr[data-selected] th { box-shadow: inset 3px 0 #417ca9; }
.mf-market-table small { display: block; color: #526579; font-size: 11px; font-weight: 450; line-height: 1.25; }
.mf-market-table strong { color: #192e47; font-size: 14px; font-weight: 700; }
.mf-market-table :is(strong, .mf-market-meeting, .mf-market-rate-change, .mf-market-basket-change) { white-space: nowrap; }
:is(.mf-market-table, .mf-score-table) button {
  border: 1px solid transparent; border-radius: 5px; background: transparent; color: #235877;
  cursor: pointer; font-size: 13px; font-weight: 700; padding: 0 4px;
}
:is(.mf-market-table, .mf-score-table) button:is(:hover, [aria-pressed="true"]) { background: #e1edf8; border-color: #b3cada; }
:is(.mf-market-table, .mf-score-table) button:focus-visible { outline: 2px solid #235877; outline-offset: 1px; }
.mf-market-table .mf-market-meeting { padding-left: 5px; }
.mf-market-table small.mf-up { color: #127153; }
.mf-market-table small.mf-down { color: #a72c4b; }
.mf-market-table :is(.mf-market-status, .mf-market-current-status) { color: #82502b; margin-top: 2px; }
.mf-market-strip { display: block; max-width: 92px; height: 4px; margin: 3px 0 0 auto; background: #e3edf5; border-radius: 4px; overflow: hidden; }
.mf-market-strip span { display: block; height: 100%; background: #427ba7; }
.mf-market-basket-cell { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.mf-market-basket-cell div { flex: 0 0 auto; }
.mf-market-table canvas.mf-market-trend { flex: 0 1 66px; width: 66px; min-width: 0; height: 18px; }
.mf-market-table [hidden], .mf-market-table canvas[hidden] { display: none; }
.mf-policy-currencies { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mf-policy-currencies button {
  min-width: 42px; min-height: 36px; padding: 5px 8px; border: 1px solid #cbdbe7;
  border-radius: 6px; background: #fff; color: #235877; font: inherit; font-size: 12px;
  font-weight: 700; cursor: pointer;
}
.mf-policy-currencies button:hover { background: #f3f7fb; }
.mf-policy-currencies button[aria-pressed="true"] { background: #235877; border-color: #235877; color: #fff; }
.mf-policy-currencies button:focus-visible { outline: 2px solid #235877; outline-offset: 2px; }
.mf-policy-summary { margin: 10px 0 0; font-size: 14px; line-height: 1.45; }
.mf-policy-details a { color: #235877; text-decoration: underline; text-underline-offset: .14em; }
.mf-policy-details h5 { margin: 0; color: #192e47; font-size: 13px; }
.mf-policy-watch { margin-top: 12px; }
.mf-policy-watch ul { margin: 4px 0 0; padding-left: 18px; color: #344a61; font-size: 13px; line-height: 1.45; }
.mf-reactions { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4ebf2; }
.mf-reactions .mf-table-scroll { margin-top: 8px; }
.mf-reactions table { min-width: 430px; }
.mf-reactions thead { background: #f3f7fb; }
.mf-reactions thead th { font-size: 12px; }
.mf-reactions tbody th { white-space: normal; font-weight: 650; }
.mf-reactions tbody th small { display: block; margin-top: 2px; color: #526579; font-size: 11px; font-weight: 450; }
.mf-reactions tbody th time { white-space: nowrap; }
.mf-score-table :is(th, td):nth-child(n+6) { background: #f8f3fc; }
.mf-score-table caption small { display: block; color: #526579; font-size: 12px; font-weight: 400; margin-top: 3px; }
.mf-score-table tbody tr { cursor: pointer; }
.mf-score-table tbody tr:is(:hover, [data-selected]) > * { background: #f3f8fc; }
.mf-score-table tbody tr[data-selected] th { box-shadow: inset 3px 0 #417ca9; }
.mf-rate-bias { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e4ebf2; }
.mf-rate-bias h5 { margin: 0; font-size: 15px; }
.mf-rate-bias .mf-table-scroll { margin-top: 8px; }
.mf-rate-bias table { min-width: 350px; }
.mf-rate-bias thead { background: #f3f7fb; }
.mf-rate-bias th, .mf-rate-bias td { padding: 5px 8px; }
.mf-rate-bias th small { color: #526579; font-size: 11px; font-weight: 450; }
.mf-rate-bias tbody th small { margin-left: 5px; }
.mf-rate-bias .mf-current-rate-time:not([hidden]) { display: block; color: #526579; font-size: 11px; line-height: 1.25; }
.mf-rate-bias th .mf-rate-bias-row-status { color: #82502b; }
.mf-rate-bias-value { font-weight: 700; }
.mf-rate-bias button { border: 1px solid transparent; border-radius: 5px; background: transparent; color: #235877;
  padding: 0 4px; font-size: 13px; font-weight: 700; cursor: pointer; }
.mf-rate-bias button:is(:hover, [aria-expanded="true"]):not(:disabled) { background: #e1edf8; border-color: #b3cada; }
.mf-rate-bias button:focus-visible { outline: 2px solid #235877; outline-offset: 1px; }
.mf-rate-bias button:disabled { color: inherit; cursor: default; }
.mf-rate-bias-detail { padding: 10px 12px; margin-top: 8px; border: 1px solid #e4ebf2; border-radius: 6px; background: #f3f7fb; }
.mf-rate-bias-detail h6 { margin: 0; font-size: 13px; }
.mf-rate-bias-detail dl { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 6px 0 0; }
.mf-rate-bias-detail [hidden] { display: none; }
.mf-rate-bias-detail dl div { display: flex; align-items: baseline; gap: 5px; }
.mf-rate-bias-detail dt, .mf-rate-bias-detail p { color: #526579; font-size: 12px; }
.mf-rate-bias-detail dd { margin: 0; font-size: 12px; font-weight: 700; }
.mf-rate-bias-detail p { margin: 6px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.mf-rate-bias-detail a { color: #235877; text-decoration: underline; text-underline-offset: .14em; }
.mf-score-chart-heading { margin-top: 16px; }
.mf-pairs .mf-heading > div { flex: 1 1 475px; }
.mf-pairs #mf-pairs-window { font-size: 12px; font-weight: 650; }
.mf-pairs .mf-table-scroll { max-height: 360px; margin-top: 12px; }
.mf-pairs thead th { position: sticky; top: 0; z-index: 2; background: #fff; }
.mf-pairs th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
.mf-pairs thead th:first-child { z-index: 3; }
.mf-pairs :is(th, td):nth-child(4) { background: #f8f3fc; }
.mf-pairs th.mf-pair-market { color: #235877; min-width: 80px; white-space: normal; }
.mf-pairs tr :is(th, td):nth-child(2),
.mf-pairs tr :is(th, td):last-child { text-align: left; }
.mf-pairs td:last-child > span + span { margin-left: 14px; }
.mf-panel label { color: #344a61; font-size: 12px; }
.mf-panel select, .mf-panel input[type="number"], #mf-event button {
  font: inherit; border: 1px solid #bdcddd; border-radius: 5px; padding: 6px 8px; color: #192e47; background: #fff;
}
#mf-event input[type="number"] { width: 100%; min-width: 95px; }
#mf-event button { cursor: pointer; font-size: 13px; }
#mf-event button[type="submit"] { background: #235877; color: #fff; border-color: #235877; }
#mf-event { margin-top: 12px; align-items: end; }
#mf-event label { display: grid; gap: 4px; }
#mf-event button:disabled { opacity: .55; cursor: default; }
.mf-current-reading { display: grid; gap: 2px; padding: 6px 10px; border-radius: 5px; background: #f8f3fc; }
.mf-current-reading span, .mf-current-reading small { font-size: 11px; color: #526579; }
.mf-current-reading strong { font-size: 13px; }
.mf-event-note { margin-top: 10px; }
@media (max-width: 530px) {
  .mf-panel { padding: 10px; }
  .mf-market-overview .mf-market-table { min-width: 475px; }
  .mf-market-table th, .mf-market-table td { padding: 5px 3px; }
  .mf-market-table thead th { font-size: 11px; }
  .mf-market-table small { font-size: 10px; }
  .mf-market-table td.mf-market-focus { font-size: 11px; }
  .mf-market-table strong { font-size: 13px; }
  .mf-market-basket-cell { gap: 3px; }
  .mf-market-table canvas.mf-market-trend { flex-basis: 27px; width: 27px; height: 13px; }
}

.mf-view-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.mf-view-switcher button {
  background: #fff; color: #2e475f; font: inherit; font-size: 13px;
  border: 1px solid #d8e3ef; border-radius: 6px; padding: 8px 12px; cursor: pointer;
}
.mf-view-switcher button[aria-pressed="true"] { background: #e1edf8; color: #192e47; border-color: #9db8cf; }
#page-macro[data-monthly-fx-view="monthly"] > .page-header,
#page-macro[data-monthly-fx-view="monthly"] > .macro-terminal-section { display: none; }

.mf-policy-indicators table { min-width: 590px; }
.mf-policy-indicators tbody td { font-variant-numeric: tabular-nums; }
.mf-policy-indicators tbody td small { display: block; margin-top: 2px; color: #526579; font-size: 11px; }
.mf-policy-indicators tr[data-policy-focus] { background: #edf6f3; }
.mf-indicator-focus { display: inline-block; margin-left: 8px; color: #205a49; font-size: 11px; white-space: nowrap; }

.mf-rate-spread {
  border-top: 1px solid #dbe5ec; margin-top: 14px; padding-top: 12px;
  container: mf-spread / inline-size;
}
.mf-rate-spread summary { cursor: pointer; font-weight: 650; padding-block: 5px; }
.mf-spread-controls {
  display: grid; grid-template-columns: repeat(2, minmax(74px, 1fr)) auto minmax(104px, 1.25fr) auto;
  align-items: end; gap: 8px; max-inline-size: 640px; margin: 10px 0; padding: 10px;
  border: 1px solid var(--border, #dbe5ec); border-radius: 10px; background: var(--panel-2, #f3f8fa);
}
.mf-spread-controls label {
  display: grid; gap: 4px; min-inline-size: 0; color: var(--muted, #526579); font-size: 12px; font-weight: 600;
}
.mf-rate-spread .mf-spread-controls select, .mf-rate-spread button {
  box-sizing: border-box; min-block-size: 38px; min-inline-size: 0; padding: 7px 10px;
  border: 1px solid var(--border-strong, #c9dae5); border-radius: 8px; background-color: var(--panel, #fff);
  color: var(--text, #173149); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.mf-rate-spread .mf-spread-controls select { inline-size: 100%; }
.mf-rate-spread :is(select,button):hover:not(:disabled) {
  border-color: var(--accent, #235877); background-color: var(--accent-soft, #e4f0f3);
}
.mf-rate-spread :is(select,button):focus-visible { outline: 2px solid var(--accent, #235877); outline-offset: 2px; }
.mf-rate-spread #mf-spread-refresh {
  border-color: var(--border-strong, #c9dae5); background-color: var(--accent-soft, #e4f0f3);
  color: var(--accent, #235877);
}
.mf-rate-spread button:disabled { opacity: .58; cursor: default; }
@container mf-spread (max-width: 470px) {
  .mf-spread-controls { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .mf-spread-controls label:last-of-type { grid-column: span 2; }
  .mf-rate-spread .mf-spread-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (pointer: coarse) {
  .mf-rate-spread .mf-spread-controls select, .mf-rate-spread button { min-block-size: 44px; font-size: 16px; }
}
.mf-spread-at { margin: 12px 0 6px; font-size: .84rem; color: #455d70; }
.mf-spread-readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.mf-spread-readout > div { background: var(--panel-2, #f1f6f9); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.mf-spread-readout dt { font-size: .84rem; }
.mf-spread-readout dd { margin: 2px 0; font-weight: 680; font-variant-numeric: tabular-nums; }
.mf-spread-readout small { display: block; color: #455d70; }
.mf-spread-first { border-inline-start: 3px solid #127d9b; }
.mf-spread-second { border-inline-start: 3px solid #ae5829; }
.mf-spread-gap { border-inline-start: 3px solid #7051a2; }
.mf-spread-key { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: .82rem; color: #455d70; }
.mf-spread-key::before { content: ''; width: 16px; height: 9px; flex: none; background: rgba(112, 81, 162, 0.22); border: 1px solid #7051a2; border-radius: 2px; }
#mf-spread-chart { display: block; width: 100%; height: 258px; margin: 0; }
.mf-spread-inspect { display: flex; align-items: center; gap: 8px; }
.mf-spread-slider { display: flex; flex: 1; align-items: center; gap: 8px; font-size: .82rem; }
.mf-spread-slider input { flex: 1; min-width: 70px; }
