:root {
      color-scheme: dark;
      --fxmd-bg: var(--fxmd-page-bg); --fxmd-panel: var(--fxmd-surface);
      --fxmd-panel-2: var(--fxmd-surface-raised); --fxmd-muted: var(--fxmd-text-muted);
      --fxmd-soft: var(--fxmd-text-muted); --fxmd-green: var(--fxmd-mint);
      --fxmd-red: var(--fxmd-magenta); --fxmd-link: var(--fxmd-cyan);
    }
    * { box-sizing: border-box; }
    html, body {
      margin: 0;
      min-height: 100%;
      background: transparent;
      font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--fxmd-text);
    }
    body.fxmd-theme-light {
      color-scheme: light;
      --fxmd-bg: Canvas; --fxmd-panel: Canvas; --fxmd-panel-2: color-mix(in srgb, CanvasText 5%, Canvas);
      --fxmd-border: color-mix(in srgb, CanvasText 25%, Canvas); --fxmd-text: CanvasText;
      --fxmd-muted: color-mix(in srgb, CanvasText 75%, Canvas); --fxmd-soft: var(--fxmd-muted);
      --fxmd-cyan: LinkText; --fxmd-green: CanvasText; --fxmd-amber: CanvasText;
      --fxmd-red: CanvasText; --fxmd-link: LinkText; --fxmd-cta-ink: Canvas;
    }
    body.fxmd-theme-transparent {
      --fxmd-bg: transparent;
      --fxmd-panel: var(--fxmd-surface);
      --fxmd-panel-2: var(--fxmd-surface-raised);
    }
    a { color: var(--fxmd-link); text-decoration: none; }
    .fxmd-widget {
      width: 100%;
      background: var(--fxmd-bg);
      border: 1px solid var(--fxmd-border);
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .fxmd-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px 10px;
      border-bottom: 1px solid var(--fxmd-border);
      background: var(--fxmd-panel);
    }
    .fxmd-kicker { margin: 0 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fxmd-cyan); font-weight: 700; }
    .fxmd-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.2; }
    .fxmd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
    .fxmd-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fxmd-panel-2); color: var(--fxmd-muted); border: 1px solid var(--fxmd-border); }
    .fxmd-live { color: var(--fxmd-green); border-color: color-mix(in srgb, var(--fxmd-green) 40%, transparent); }
    .fxmd-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--fxmd-link); white-space: nowrap; }
    .fxmd-brand img { width: 18px; height: 18px; border-radius: 4px; }
    .fxmd-brand small { display: block; font-size: 10px; font-weight: 500; color: var(--fxmd-muted); white-space: normal; }
    .fxmd-brand-head { flex: 0 0 auto; text-align: end; }
    a.fxmd-pill { color: var(--fxmd-link); border-color: color-mix(in srgb, var(--fxmd-link) 40%, transparent); }
    .fxmd-body { padding: 6px 0; }
    .fxmd-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--fxmd-border); cursor: pointer; }
    .fxmd-row:last-child { border-bottom: 0; }
    .fxmd-row:hover { background: var(--fxmd-panel); }
    .fxmd-day { font-size: 12px; font-weight: 700; }
    .fxmd-time { font-size: 12px; color: var(--fxmd-muted); }
    .fxmd-event strong { display: block; font-size: 14px; }
    .fxmd-sub { font-size: 11px; color: var(--fxmd-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
    .fxmd-currency { font-size: 12px; font-weight: 800; color: var(--fxmd-cyan); }
    .fxmd-value { font-size: 15px; font-weight: 800; color: var(--fxmd-green); text-align: end; }
    .fxmd-value small { display: block; font-size: 10px; font-weight: 500; color: var(--fxmd-muted); }
    .fxmd-imp { display: inline-flex; gap: 2px; }
    .fxmd-imp i { width: 6px; height: 6px; border-radius: 50%; background: var(--fxmd-border); }
    .fxmd-imp.high i { background: var(--fxmd-red); }
    .fxmd-imp.medium i:nth-child(-n+2) { background: var(--fxmd-amber); }
    .fxmd-imp.low i:first-child { background: var(--fxmd-soft); }
    .fxmd-focus { padding: 18px 16px 12px; text-align: center; }
    .fxmd-focus-title { margin: 0; font-size: 18px; font-weight: 800; }
    .fxmd-focus-detail { margin: 4px 0 12px; font-size: 12px; color: var(--fxmd-muted); }
    .fxmd-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .fxmd-unit { background: var(--fxmd-panel); border: 1px solid var(--fxmd-border); border-radius: 8px; padding: 10px 4px; }
    .fxmd-unit strong { display: block; font-size: 24px; font-weight: 800; color: var(--fxmd-cyan); font-variant-numeric: tabular-nums; }
    .fxmd-unit span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--fxmd-muted); }
    .fxmd-empty { padding: 24px 16px; text-align: center; color: var(--fxmd-muted); font-size: 13px; }
    table.fxmd-table { width: 100%; border-collapse: collapse; }
    .fxmd-table th, .fxmd-table td { padding: 9px 16px; text-align: start; font-size: 13px; border-bottom: 1px solid var(--fxmd-border); }
    .fxmd-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fxmd-muted); font-weight: 700; }
    .fxmd-table th.num, .fxmd-table td.num { text-align: end; font-weight: 800; font-variant-numeric: tabular-nums; }
    .fxmd-table tr:last-child td { border-bottom: 0; }
    .fxmd-heat-cool { color: var(--fxmd-cyan); }
    .fxmd-heat-mild { color: var(--fxmd-green); }
    .fxmd-heat-warm { color: var(--fxmd-amber); }
    .fxmd-heat-hot { color: var(--fxmd-red); }
    .fxmd-score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 4px; }
    .fxmd-score .fxmd-unit strong { font-size: 18px; }
    .fxmd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--fxmd-border); background: var(--fxmd-panel); font-size: 11px; color: var(--fxmd-muted); }
    .fxmd-ctas { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px 10px; background: var(--fxmd-panel); }
    .fxmd-cta { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--fxmd-border); color: var(--fxmd-text); background: var(--fxmd-panel-2); }
    .fxmd-cta.primary { color: var(--fxmd-cta-ink); background: var(--fxmd-cyan); border-color: var(--fxmd-cyan); }
    .fxmd-note { font-size: 10px; color: var(--fxmd-soft); padding: 0 16px 8px; }
    @media (max-width: 480px) {
      .fxmd-row { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; }
      .fxmd-score { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .fxmd-foot { align-items: flex-start; flex-direction: column; }
      /* Narrow embeds (a phone, a blog sidebar): stack the brand under the
         title instead of letting it squeeze the title and clip itself. */
      .fxmd-head { flex-direction: column; gap: 8px; }
      .fxmd-brand-head { text-align: start; }
      .fxmd-brand { white-space: normal; }
    }
  
.fxmd-title { font-size: 18px; letter-spacing: -.02em; line-height: 1.35; }
.fxmd-kicker { display: none; }
.fxmd-head { padding: 16px; }
.fxmd-meta { margin-top: 10px; }
.fxmd-row { min-height: 70px; }
.fxmd-event { min-width: 0; overflow-wrap: anywhere; }
.fxmd-value, .fxmd-unit strong, .fxmd-table .num { font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.fxmd-unit strong { font-size: clamp(20px, 6vw, 30px); }
.fxmd-cta { display: inline-flex; min-height: 40px; align-items: center; border-radius: 8px; font-size: 12px; }
.fxmd-ctas { background: var(--fxmd-bg); padding: 12px 16px; }
.fxmd-foot { flex-wrap: wrap; font-size: 11px; }
.fxmd-brand { font-size: 12px; }
.fxmd-note { font-size: 12px; margin: 0; color: var(--fxmd-muted); }
a:focus-visible { outline: 2px solid var(--fxmd-link); outline-offset: 3px; }
@media (max-width: 480px) {
  .fxmd-head { flex-direction: row; }
  .fxmd-row { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 10px 12px; }
  .fxmd-foot { flex-direction: row; }
  .fxmd-table th, .fxmd-table td { padding: 10px 8px; font-size: 12px; }
  .fxmd-event strong { font-size: 13px; }
}
