/* Godziny Rynku Forex & Zegar Sesji na Żywo v2.2 PL (zintegrowany z layoutem MyBank.pl) */

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #cbd5e1;
  --heading: #0f172a;
  --text: #1e293b;
  --text-muted: #475569;
  --text-dim: #64748b;
  --accent: #174f7f;
  --accent-hover: #123f66;
  --accent-soft: rgba(23, 79, 127, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* Szeroki layout na MyBank.pl (1120px bez ciasnego paska bocznego obok zegara) */
.MainLayout.MainLayout--mh {
  grid-template-columns: 1fr;
}

.MainLayout.MainLayout--mh .MainLeft {
  --SzerLewo: 1120px;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
}

.MainLayout.MainLayout--mh .MainLeft > p:not(.articleLead),
.MainLayout.MainLayout--mh .MainLeft > ul,
.MainLayout.MainLayout--mh .faq-container,
.MainLayout.MainLayout--mh .mh-pl-bridge,
.MainLayout.MainLayout--mh .tool-related,
.MainLayout.MainLayout--mh .mh-embed-section {
  max-width: 880px;
}

.MainLayout.MainLayout--mh .MainRightAside {
  position: static;
  margin-top: 1.5rem;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  align-items: start;
}

.MainLayout.MainLayout--mh .MainRightAside .newsGrid-aside {
  grid-column: 1 / -1;
}

.mh-pl-calc-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 1.15rem;
  margin: 1rem 0 1.6rem;
  overflow-x: auto;
}

.mh-pl-calc-wrap .comp-table {
  margin: 0;
  width: 100%;
  font-size: .85rem;
}

.mh-pl-calc-wrap .comp-table th,
.mh-pl-calc-wrap .comp-table td {
  padding: .48rem .58rem;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.mh-pl-embed-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.2rem 0 1.6rem;
}

.mh-pl-embed-code {
  margin: 0 0 .75rem;
  padding: .75rem .9rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mh-pl-bridge {
  margin: 1.25rem 0;
  padding: .9rem 1.1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #174f7f;
  border-radius: 8px;
  font-size: .92rem;
  line-height: 1.55;
}

/* Forex Market Hours & Session Overlap Clock v2.2 — uses global tokens from style.css */

/* Scoped wide desktop layout (matches .topbar__inner 1100px without affecting other site pages) */
.page-wrap.page-wrap--wide {
  max-width: 1100px;
  padding-top: 1.35rem;
}

.page-wrap.page-wrap--wide .article-lead {
  max-width: 920px;
  margin-bottom: 1rem;
}

.page-wrap.page-wrap--wide article > p,
.page-wrap.page-wrap--wide article > ul,
.page-wrap.page-wrap--wide .faq-container,
.page-wrap.page-wrap--wide .fm-tool-bridge,
.page-wrap.page-wrap--wide .related {
  max-width: 860px;
}

.page-wrap.page-wrap--wide .calc {
  padding: 1rem 1.15rem 1.15rem;
  margin: 1.1rem 0 1.65rem;
}

.page-wrap.page-wrap--wide .calc__table {
  margin-top: 0;
  font-size: .84rem;
}

.page-wrap.page-wrap--wide .calc__table th,
.page-wrap.page-wrap--wide .calc__table td {
  padding: .48rem .58rem;
  vertical-align: middle;
}

.page-wrap.page-wrap--wide .calc__table td {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
}

/* Enforce [hidden] over flex/inline-flex component rules */
.mh-app [hidden] {
  display: none !important;
}

.mh-live-status:empty {
  display: none;
}

.mh-app,
.mh-app *,
.mh-app *::before,
.mh-app *::after {
  box-sizing: border-box;
}

.mh-app {
  margin: .95rem 0 1.65rem;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ── Trading Desk Dark Mode Override ── */
.mh-app[data-mh-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111c32;
  --surface-2: #172540;
  --border: #26354d;
  --heading: #f8fafc;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.24);
  background: #09101d;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #1e2d45;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.28);
}

/* ── Hero Status & 4-Column KPIs ── */
.mh-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.05rem;
  margin-bottom: .7rem;
}

.mh-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
}

.mh-hero__right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.mh-status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.mh-pill {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .28rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
}

.mh-pill--open {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.mh-pill--weekend {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.mh-pill--overlap {
  background: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid #7dd3fc;
}

.mh-pill--watch {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.mh-pill--holiday {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.mh-app[data-mh-theme="dark"] .mh-pill--open {
  background: rgba(22, 163, 74, 0.2);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
}

.mh-app[data-mh-theme="dark"] .mh-pill--weekend {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
}

.mh-app[data-mh-theme="dark"] .mh-pill--overlap {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4);
}

.mh-app[data-mh-theme="dark"] .mh-pill--watch {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
}

.mh-app[data-mh-theme="dark"] .mh-pill--holiday {
  background: rgba(234, 88, 12, 0.22);
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.45);
}

.mh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.mh-clock-readout {
  text-align: right;
}

.mh-clock-readout__main {
  font: 700 1.32rem/1.15 var(--sans);
  color: var(--heading);
}

.mh-clock-readout__sub {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .12rem;
}

.mh-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .7rem;
}

.mh-kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .62rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .16rem;
  min-width: 0;
}

.mh-kpi--triple {
  border-color: #f59e0b;
  background: #fffbeb;
}

.mh-kpi--warn {
  border-color: #dc2626;
  background: #fef2f2;
}

.mh-app[data-mh-theme="dark"] .mh-kpi--triple {
  background: rgba(245, 158, 11, 0.14);
}

.mh-app[data-mh-theme="dark"] .mh-kpi--warn {
  background: rgba(220, 38, 38, 0.18);
}

.mh-kpi__label {
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.mh-kpi__val {
  font: 700 1.02rem/1.25 var(--sans);
  color: var(--heading);
  overflow-wrap: anywhere;
}

.mh-kpi__sub {
  font-size: .74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Buttons & Primary Controls ── */
.mh-desk-btn,
.mh-action-btn,
.mh-jump-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  border-radius: 6px;
  min-height: 34px;
  padding: .28rem .72rem;
  font: 600 .77rem/1.2 var(--sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}

.mh-desk-btn:hover,
.mh-action-btn:hover,
.mh-jump-btn:hover {
  border-color: var(--accent);
}

.mh-desk-btn[aria-pressed="true"],
.mh-desk-btn[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.mh-theme-btn {
  border-radius: 999px;
  padding: .28rem .78rem;
}

.mh-drawer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .3rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}

.mh-desk-btn[aria-expanded="true"] .mh-drawer-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.mh-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin-bottom: .7rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.mh-controls__row {
  display: grid;
  grid-template-columns: minmax(210px, 1.45fr) auto minmax(200px, 1.35fr) minmax(150px, 1fr);
  gap: .65rem .85rem;
  align-items: end;
}

.mh-field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}

.mh-field label {
  font-size: .74rem;
  font-weight: 700;
  color: var(--heading);
}

.mh-field select,
.mh-field input[type="date"] {
  min-height: 40px;
  padding: .38rem .6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 500 .85rem/1.2 var(--sans);
  width: 100%;
  box-sizing: border-box;
}

.mh-field select:focus,
.mh-field input[type="date"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.mh-toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  width: fit-content;
}

.mh-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 700 .82rem/1 var(--sans);
  min-height: 40px;
  padding: 0 13px;
  cursor: pointer;
}

.mh-toggle-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.mh-controls__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .5rem;
  padding-top: .55rem;
  border-top: 1px solid var(--border);
}

.mh-controls__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
}

.mh-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
}

.mh-preset {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  border-radius: 6px;
  min-height: 32px;
  padding: .2rem .52rem;
  font: 600 .735rem/1.2 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}

.mh-preset:hover {
  border-color: var(--accent);
}

.mh-preset[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Collapsible Desk Tools & My Window Drawer ── */
.mh-drawer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.mh-drawer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1rem;
}

.mh-drawer__row + .mh-drawer__row {
  padding-top: .55rem;
  border-top: 1px solid var(--border);
}

.mh-drawer__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
}

.mh-check-label {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--heading);
  min-height: 32px;
  cursor: pointer;
}

.mh-check-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.mh-win-range {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-size: .8rem;
}

.mh-win-range select {
  min-height: 34px;
  padding: .2rem .45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: 600 .8rem var(--sans);
}

/* ── Context Banners & Summaries ── */
.mh-dst-banner {
  border-radius: var(--radius-sm);
  padding: .62rem .9rem;
  margin-bottom: .65rem;
  font-size: .83rem;
  line-height: 1.48;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mh-dst-banner--mismatch {
  border-color: #f59e0b;
  border-left: 4px solid #d97706;
  background: #fffbeb;
  color: #78350f;
}

.mh-app[data-mh-theme="dark"] .mh-dst-banner--mismatch {
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.mh-holiday-banner {
  border-radius: var(--radius-sm);
  padding: .62rem .9rem;
  margin-bottom: .65rem;
  font-size: .83rem;
  line-height: 1.48;
  border: 1px solid #fdba74;
  border-left: 4px solid #ea580c;
  background: #fff7ed;
  color: #7c2d12;
}

.mh-app[data-mh-theme="dark"] .mh-holiday-banner {
  background: rgba(234, 88, 12, 0.18);
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.5);
}

.mh-pair-note {
  font-size: .84rem;
  color: var(--text-muted);
  margin: .15rem 0 .7rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  align-items: center;
}

.mh-pair-note a {
  font-weight: 600;
}

.mh-window-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #0d9488;
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  margin-bottom: .75rem;
  font-size: .84rem;
  line-height: 1.48;
}

/* ── Dual-Axis 24-Hour Visual Timeline ── */
.mh-timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.05rem 1rem;
  margin-bottom: 1rem;
}

.mh-timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem .9rem;
  margin-bottom: .65rem;
}

.mh-timeline-head h2 {
  margin: 0;
  font-size: 1.04rem;
  color: var(--heading);
}

.mh-timeline-head h2::after {
  display: none;
}

.mh-timeline-meta {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: var(--sans);
}

.mh-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: .15rem;
}

.mh-board {
  min-width: 680px;
  padding-top: 2px;
  padding-right: 2px;
}

.mh-axis-row,
.mh-track-row,
.mh-curve-row,
.mh-marker-row {
  display: grid;
  grid-template-columns: 184px 1fr;
  align-items: center;
  gap: .75rem;
}

.mh-axis-row {
  margin-bottom: .95rem;
}

.mh-axis-row--utc {
  margin-top: .4rem;
  margin-bottom: 0;
}

.mh-axis {
  position: relative;
  height: 20px;
  border-bottom: 1px solid var(--border);
}

.mh-axis--bottom {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  padding-top: 4px;
}

.mh-axis-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font: 600 .68rem/1 var(--sans);
  color: var(--text-dim);
  white-space: nowrap;
}

.mh-axis--bottom .mh-axis-tick {
  top: 5px;
}

.mh-axis-tick:first-child {
  transform: none;
}

.mh-axis-tick--end {
  transform: translateX(-100%);
}

.mh-tracks-wrap {
  position: relative;
  cursor: crosshair;
}

.mh-gridlines {
  position: absolute;
  inset: 0 0 0 calc(184px + .75rem);
  pointer-events: none;
}

.mh-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.mh-gridline[style*="100%"] {
  transform: translateX(-1px);
}

.mh-overlap-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(21, 94, 117, 0.09);
  border-left: 1px dashed rgba(21, 94, 117, 0.45);
  border-right: 1px dashed rgba(21, 94, 117, 0.45);
}

.mh-app[data-mh-theme="dark"] .mh-overlap-band {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
}

.mh-personal-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(13, 148, 136, 0.14);
  border-left: 2px solid rgba(13, 148, 136, 0.72);
  border-right: 2px solid rgba(13, 148, 136, 0.72);
  z-index: 1;
}

.mh-app[data-mh-theme="dark"] .mh-personal-band {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(45, 212, 191, 0.78);
}

.mh-now-line {
  position: absolute;
  top: -13px;
  bottom: -4px;
  width: 2px;
  background: #ef4444;
  z-index: 4;
}

.mh-now-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #dc2626;
  color: #fff;
  font: 700 .62rem/1.15 var(--sans);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  z-index: 6;
}

.mh-now-badge--left {
  left: 0;
  transform: translateX(0);
}

.mh-now-badge--right {
  left: auto;
  right: 0;
  transform: translateX(0);
}

.mh-scrub-line {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #f59e0b;
  z-index: 5;
  display: none;
}

.mh-track-row {
  padding: .34rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  z-index: 2;
}

.mh-track-row--dim {
  opacity: .38;
}

.mh-track-label {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  min-width: 0;
}

.mh-track-name {
  font-weight: 700;
  font-size: .84rem;
  color: var(--heading);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .32rem;
}

.mh-live-tag {
  font-size: .61rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: #dcfce7;
  color: #14532d;
}

.mh-app[data-mh-theme="dark"] .mh-live-tag {
  background: rgba(34, 197, 94, 0.24);
  color: #86efac;
}

.mh-holiday-tag {
  font-size: .61rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ffedd5;
  color: #9a3412;
}

.mh-app[data-mh-theme="dark"] .mh-holiday-tag {
  background: rgba(249, 115, 22, 0.24);
  color: #fed7aa;
}

.mh-track-sub {
  font: 500 .71rem/1.2 var(--sans);
  color: var(--text-dim);
}

.mh-lane {
  position: relative;
  height: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.mh-bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 600 .69rem/1 var(--sans);
  white-space: nowrap;
  overflow: hidden;
  padding: 0 6px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mh-bar--holiday {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(245, 158, 11, 0.9),
    rgba(245, 158, 11, 0.9) 8px,
    rgba(180, 83, 9, 0.95) 8px,
    rgba(180, 83, 9, 0.95) 16px
  ) !important;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ── Pair Intraday SVG Curve ── */
.mh-curve-row {
  margin-top: .5rem;
}

.mh-curve-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 0 0;
  overflow: hidden;
}

.mh-curve-svg {
  display: block;
  width: 100%;
  height: 70px;
}

.mh-curve-stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ── Staggered 2-lane Fixings & Rollover Track ── */
.mh-marker-row {
  margin-top: .45rem;
}

.mh-marker-lane {
  position: relative;
  height: 50px;
}

.mh-marker-pin {
  position: absolute;
  transform: translateX(-50%);
  font: 700 .64rem/1.2 var(--sans);
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--heading);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.mh-marker-pin--left {
  transform: translateX(0);
}

.mh-marker-pin--right {
  transform: translateX(-100%);
}

.mh-marker-pin[data-lane="0"] {
  top: 2px;
}

.mh-marker-pin[data-lane="1"] {
  top: 26px;
}

.mh-marker-pin--triple {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
}

.mh-app[data-mh-theme="dark"] .mh-marker-pin--triple {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fde68a;
}

/* ── Interactive Time Scrubber Bar & Readout ── */
.mh-scrub-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  margin-top: .7rem;
  padding: .55rem .8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mh-scrub-controls label {
  font-size: .77rem;
  font-weight: 700;
  color: var(--heading);
}

.mh-scrub-hint {
  font-size: .74rem;
  color: var(--text-dim);
}

.mh-scrub-slider {
  flex: 1 1 220px;
  accent-color: #d97706;
  min-height: 26px;
  cursor: pointer;
}

.mh-scrub-panel {
  margin-top: .5rem;
  padding: .65rem .85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius-sm);
  font-size: .81rem;
}

.mh-scrub-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: .35rem;
}

.mh-scrub-cities {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  font-family: var(--sans);
  font-size: .75rem;
}

.mh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  margin-top: .65rem;
  font-size: .76rem;
  color: var(--text-muted);
}

.mh-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.mh-swatch {
  width: 12px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.mh-overlaps-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-top: .8rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.mh-ov-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .58rem .78rem;
}

.mh-ov-card--peak {
  border-top: 3px solid var(--accent);
}

.mh-ov-card__name {
  font-size: .77rem;
  font-weight: 700;
  color: var(--heading);
}

.mh-ov-card__time {
  font: 700 .94rem/1.3 var(--sans);
  color: var(--accent);
  margin-top: .14rem;
}

.mh-ov-card__dur {
  font-size: .73rem;
  color: var(--text-dim);
}

/* ── Tables Grid & Static Global Time Zones Formatting ── */
.mh-tables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.mh-tables-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mh-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.05rem;
  min-width: 0;
}

.mh-table-card h3 {
  margin: 0 0 .5rem;
  font-size: .98rem;
  color: var(--heading);
}

.mh-table-scroll {
  overflow-x: auto;
}

.mh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .81rem;
}

.mh-table th,
.mh-table td {
  text-align: left;
  padding: .44rem .46rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.mh-table th {
  font-size: .71rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-dim);
  white-space: nowrap;
}

.mh-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

.mh-table td.mono {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mh-status-chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
}

.mh-status-chip--regular {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.mh-status-chip--holiday {
  background: rgba(234, 88, 12, 0.16);
  color: #9a3412;
}

.mh-status-chip--weekend {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
}

.mh-app[data-mh-theme="dark"] .mh-status-chip--regular {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.mh-app[data-mh-theme="dark"] .mh-status-chip--holiday {
  background: rgba(249, 115, 22, 0.22);
  color: #fed7aa;
}

.mh-tz-name {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}

.mh-tz-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  line-height: 1.35;
}

.mh-tz-row {
  white-space: nowrap;
}

.mh-tz-row em {
  font-style: normal;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 4px;
  font-family: var(--sans);
  font-size: .69rem;
}

.mh-live-status {
  min-height: 1.1em;
  font-size: .79rem;
  color: var(--text-muted);
  margin: .1rem 0 0;
}

/* ── Compact / Embed Mode ── */
.mh-app[data-fm-compact="true"] {
  margin: 0;
}

.mh-app[data-fm-compact="true"] .mh-hero {
  padding: .75rem .88rem;
  margin-bottom: .55rem;
}

.mh-app[data-fm-compact="true"] .mh-clock-readout__main {
  font-size: 1.06rem;
}

.mh-app[data-fm-compact="true"] .mh-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .55rem;
}

.mh-app[data-fm-compact="true"] .mh-kpi {
  padding: .48rem .65rem;
}

.mh-app[data-fm-compact="true"] .mh-controls {
  padding: .65rem .85rem;
  margin-bottom: .55rem;
}

.mh-app[data-fm-compact="true"] .mh-controls__row {
  grid-template-columns: 1fr auto;
  gap: .55rem;
}

.mh-app[data-fm-compact="true"] .mh-timeline-card {
  padding: .72rem .85rem;
  margin-bottom: 0;
}

.mh-app[data-fm-compact="true"] .mh-board {
  min-width: 0;
  width: 100%;
}

@media (min-width: 391px) {
  .mh-app[data-fm-compact="true"] .mh-scroll {
    overflow-x: visible;
  }
}

.mh-app[data-fm-compact="true"] .mh-axis-row {
  margin-bottom: .8rem;
}

.mh-app[data-fm-compact="true"] .mh-track-row {
  padding: .24rem 0;
}

.mh-app[data-fm-compact="true"] .mh-lane {
  height: 26px;
}

.mh-app[data-fm-compact="true"] .mh-axis-row,
.mh-app[data-fm-compact="true"] .mh-track-row,
.mh-app[data-fm-compact="true"] .mh-curve-row,
.mh-app[data-fm-compact="true"] .mh-marker-row {
  grid-template-columns: 108px 1fr;
  gap: .5rem;
}

.mh-app[data-fm-compact="true"] .mh-gridlines {
  left: calc(108px + .5rem);
}

.mh-app[data-fm-compact="true"] .mh-curve-svg {
  height: 44px;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 899px) {
  .mh-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mh-controls__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mh-tables-split {
    grid-template-columns: 1fr;
  }
  .mh-overlaps-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mh-hero__right {
    margin-left: 0;
  }
  .mh-clock-readout {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .mh-kpis,
  .mh-controls__row,
  .mh-app[data-fm-compact="true"] .mh-controls__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .mh-app[data-fm-compact="true"] .mh-board {
    min-width: 360px;
  }
}
