/* ============================================================
   Sector Strength · styles.css  v19
   Self-contained (nav + footer included — no site.css dependency)
   Template: Options page design system
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;font-size:16px;scroll-behavior:smooth}

:root{
  --bg:#0b1220;
  --surface:rgba(255,255,255,.03);--surface2:rgba(255,255,255,.05);
  --border:#243246;--border2:#334155;
  --text:#e6edf3;--text-muted:#9fb2c9;--text-dim:#9fb2c9;
  --blue:#3b82f6;--blue2:#60a5fa;--blue3:#93c5fd;
  --green:#10b981;--green2:#34d399;
  --yellow:#f59e0b;--yellow2:#fbbf24;
  --red:#ef4444;--red2:#f87171;
  --purple:#8b5cf6;--purple2:#a78bfa;
  --font:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Helvetica,Arial,sans-serif;
  --font-humanist:'Nunito Sans','Segoe UI','Gill Sans',Arial,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
}

body{background:var(--bg);color:var(--text);font-family:var(--font);line-height:1.5;min-height:100vh}
a{color:var(--blue2);text-decoration:none}
a:hover{color:var(--blue3)}

/* ================================================================
   NAV (self-contained)
   ================================================================ */
.site-nav{
  position:sticky;top:0;z-index:200;
  background:rgba(11,18,32,0.88);
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1200px;margin:0 auto;height:68px;padding:0 24px;
  display:flex;align-items:center;justify-content:space-between;
}
.nav-logo{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:var(--text);letter-spacing:.02em}
.nav-logo:hover{color:var(--text)}
.nav-logo-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:transparent;border-radius:8px;border:none;box-shadow:none}
.nav-logo-img{width:38px;height:38px;display:block}
.nav-logo-text{position:relative;top:0.5px}
.nav-links{display:flex;align-items:center;gap:6px}
.nav-links a{font-size:15px;font-weight:600;color:var(--text-muted);padding:8px 12px;border-radius:8px;transition:color .15s,background .15s}
.nav-links a:hover{color:var(--text);background:var(--surface)}
.nav-links a.active{color:var(--text)}
.nav-link-muted{opacity:.8}

.nav-toggle{display:none;align-items:center;justify-content:center;width:48px;height:44px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}
.nav-toggle:hover{border-color:var(--border2);background:var(--surface2)}
.nav-toggle-bars{position:relative;display:block;width:18px;height:2px;background:currentColor;border-radius:2px}
.nav-toggle-bars::before,.nav-toggle-bars::after{content:"";position:absolute;left:0;width:18px;height:2px;background:currentColor;border-radius:2px}
.nav-toggle-bars::before{top:-6px}
.nav-toggle-bars::after{top:6px}
.nav-drawer{max-width:1200px;margin:0 auto;padding:10px 24px 14px;border-top:1px solid var(--border)}
.nav-drawer a{display:block;font-size:14px;padding:16px 14px;border-radius:12px;color:var(--text);font-weight:700}
.nav-drawer a:hover{background:var(--surface2)}

/* ================================================================
   PAGE SHELL
   ================================================================ */
.page{max-width:1200px;margin:0 auto;padding:32px 24px 110px}

/* ---- PAGE HEADER ---- */
.page-header{margin-bottom:36px}
.page-header-inner{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:24px;flex-wrap:wrap;padding-bottom:28px;
  border-bottom:1px solid var(--border);
}
.page-header-eyebrow{
  font-family:var(--mono);font-size:12px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--blue2);margin-bottom:10px;opacity:.8;
}
.page-header h1{
  font-family:var(--font-humanist);
  font-size:clamp(30px,4.2vw,48px);font-weight:800;
  color:var(--text);letter-spacing:-.02em;line-height:1.1;
}
.page-header p{font-size:16px;color:var(--text-muted);margin-top:8px;font-weight:500;max-width:560px}
.stat-row{display:flex;gap:24px;flex-shrink:0}
.stat{text-align:right}
.stat-val{font-family:var(--font-humanist);font-weight:800;font-size:26px;color:var(--text);line-height:1}
.stat-label{font-family:var(--mono);font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--text-muted);margin-top:4px}

/* ================================================================
   TOOL CARDS
   ================================================================ */
.tool-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:24px 24px 24px 28px;
  margin-bottom:16px;
  position:relative;overflow:hidden;
  box-shadow:0 4px 24px rgba(0,0,0,.22);
}
.tool-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,rgba(59,130,246,.95),rgba(59,130,246,.10));
}
.card-eyebrow{
  font-family:var(--mono);font-size:12px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--blue2);opacity:.8;margin-bottom:8px;
}
.tool-card h2{
  font-family:var(--font-humanist);font-size:20px;font-weight:700;
  color:var(--text);letter-spacing:-.015em;margin-bottom:6px;
}
.tool-card .desc{font-size:13.5px;color:var(--text-muted);margin-bottom:16px;line-height:1.5}

/* ================================================================
   CONTROLS ROW
   ================================================================ */
.controls-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.controls-row .label{
  font-family:var(--mono);font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--text-muted);font-weight:600;
}
.status-text{font-size:12px;color:var(--text-muted)}

/* ================================================================
   CUSTOM TIMEFRAME DROPDOWN
   ================================================================ */
.tf-wrap{position:relative;display:inline-block;min-width:120px}
.tf-native{position:absolute;inset:0;opacity:0;pointer-events:none;width:1px;height:1px}
.tf-btn{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;min-width:120px;padding:8px 12px;border-radius:10px;
  background:rgba(255,255,255,.03);border:1px solid var(--border);
  color:var(--text);font-weight:700;font-size:13px;cursor:pointer;
  transition:background .15s,border-color .15s;
}
.tf-btn:hover{background:rgba(255,255,255,.05);border-color:var(--border2)}
.tf-caret{opacity:.65}
.tf-menu{
  position:absolute;top:calc(100% + 6px);left:0;min-width:100%;
  padding:6px;border-radius:12px;
  background:rgba(15,23,42,.98);border:1px solid var(--border);
  box-shadow:0 18px 45px rgba(0,0,0,.5);z-index:40;
}
.tf-opt{
  width:100%;text-align:left;padding:9px 10px;border-radius:8px;
  background:transparent;border:0;color:var(--text);
  font-weight:700;font-size:13px;cursor:pointer;
}
.tf-opt:hover{background:rgba(96,165,250,.12)}
.tf-opt[aria-selected="true"]{background:rgba(96,165,250,.18)}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:8px 14px;border-radius:8px;border:1px solid var(--border);
  background:var(--surface);color:var(--text);
  font-weight:600;font-size:12.5px;cursor:pointer;
  transition:background .15s,border-color .15s,transform .12s;
}
.btn:hover{background:var(--surface2);border-color:var(--border2)}
.btn:active{transform:translateY(1px)}
.btn-ghost{opacity:.85}

/* ================================================================
   PILL / BADGE
   ================================================================ */
.pill{
  display:inline-flex;align-items:center;gap:4px;
  padding:3px 9px;border-radius:5px;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);
  font-size:11px;font-family:var(--mono);color:rgba(255,255,255,.8);white-space:nowrap;line-height:1;
}
.pill.rk-on{background:rgba(245,158,11,.2);border-color:rgba(245,158,11,.4);color:rgba(255,246,224,.95)}
.pill.rk-mix{background:rgba(234,179,8,.18);border-color:rgba(234,179,8,.4);color:rgba(255,252,220,.95)}
.pill.rk-off{background:rgba(59,130,246,.18);border-color:rgba(59,130,246,.4);color:rgba(230,242,255,.95)}

/* ================================================================
   STRENGTH BARS
   ================================================================ */
.bars{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.barRow{display:grid;grid-template-columns:200px 1fr 68px;gap:12px;align-items:center}
.barLabel{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden}
.barLabel .sym{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;display:inline-block}
.barLabel .pill{flex:0 0 auto}
.barTrack{position:relative;height:8px;border-radius:999px;background:rgba(255,255,255,.05);overflow:hidden;border:1px solid rgba(255,255,255,.07)}
.barFill{position:absolute;top:0;bottom:0;border-radius:999px}
.barMid{position:absolute;top:-4px;bottom:-4px;left:50%;width:1px;background:rgba(255,255,255,.12)}
.barVal{font-family:var(--mono);font-size:13px;font-weight:600;text-align:right;color:var(--text)}

/* ================================================================
   SPREADS CHECKBOXES
   ================================================================ */
.checks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 16px;margin-bottom:16px}
.chk{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted);cursor:pointer;padding:4px 0}
.chk input[type=checkbox]{width:15px;height:15px;flex-shrink:0;accent-color:var(--blue2);cursor:pointer}
.chk:hover{color:var(--text)}

.chk .swatch{width:10px;height:10px;border-radius:2px;display:inline-block;flex-shrink:0;opacity:.95;box-shadow:0 0 0 1px rgba(255,255,255,.18) inset}
.chk input[type=checkbox]:not(:checked)+.swatch{opacity:.25}

/* ================================================================
   CANVAS
   ================================================================ */
canvas.plot{width:100%;height:260px;background:rgba(255,255,255,.02);border:1px solid var(--border);border-radius:12px;display:block}

/* ================================================================
   CACHE ROW
   ================================================================ */
.cache-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);min-width:0}
.cache-label{font-size:11px;color:var(--text-muted);font-family:var(--mono)}

/* ================================================================
   HELP / DETAILS
   ================================================================ */
details.help{margin-top:16px;border:1px dashed rgba(36,50,70,.8);border-radius:12px;padding:12px 16px}
details.help[open]{background:rgba(255,255,255,.015)}
details.help summary{cursor:pointer;list-style:none;font-size:14px;font-weight:600;color:var(--text-muted);display:flex;align-items:center;gap:6px}
details.help summary::marker{display:none}
details.help summary::-webkit-details-marker{display:none}
details.help summary::before{content:"▸";font-size:10px;transition:transform .15s;display:inline-block}
details.help[open] summary::before{transform:rotate(90deg)}
details.help .help-body{margin-top:12px;font-size:14px;color:var(--text-muted);padding-left:4px}
details.help ul{margin:6px 0 0 18px;padding:0}
details.help li{margin:5px 0;line-height:1.5}

/* ================================================================
   DISCLAIMER
   ================================================================ */
.disclaimer{
  margin-top:32px;padding:14px 18px;border-radius:10px;
  background:rgba(245,158,11,.06);border:1px solid rgba(245,158,11,.18);
  font-size:12px;color:var(--text-muted);line-height:1.6;
}
.disclaimer strong{color:rgba(251,191,36,.9)}

/* ================================================================
   FOOTER
   ================================================================ */
footer{
  border-top:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  margin-top:72px;padding:28px 24px;
  max-width:1200px;margin-left:auto;margin-right:auto;
}
.footer-left{font-size:14px;color:var(--text-dim)}
.footer-left a{color:var(--text-muted)}
.footer-left a:hover{color:var(--text)}
.footer-right{font-family:var(--mono);font-size:11px;color:var(--text-dim);letter-spacing:.08em}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media(max-width:820px){
  .nav-links{display:none}
  .nav-toggle{display:flex}
  .page{padding:28px 16px 96px}
  .page-header-inner{flex-direction:column;align-items:flex-start}
  .stat-row{width:100%;justify-content:flex-start}
  .stat{text-align:left}
  .page-header h1{font-size:28px}
  footer{flex-direction:column;align-items:flex-start;gap:8px;padding:20px 16px}
}

@media(max-width:600px){
  .nav-inner{padding:0 16px}
  .tool-card{padding:18px 16px 18px 20px}
  .barRow{grid-template-columns:1fr 1fr 56px;gap:8px}
  .barLabel .sym{max-width:100%}
  .barVal{font-size:12px}
  .checks-grid{grid-template-columns:1fr 1fr}
  canvas.plot{height:200px}
}

@media(max-width:380px){
  .checks-grid{grid-template-columns:1fr}
}


@media(max-width:900px){
  .regime-metrics{grid-template-columns:repeat(2,minmax(180px,1fr));}
}

@media(max-width:640px){
  .regime-state{font-size:32px;}
  .rotation-callout-grid{grid-template-columns:1fr;}
  .rotation-item-wide{grid-column:auto;}
}

/* ── Global dropdown dark mode fix ──────────────────────────── */
select{color-scheme:dark}
select option{background:#0f1a2e;color:#e6edf3}

.cache-row .status-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cache-row .pill{flex-shrink:0;white-space:nowrap}
.cache-row .btn{flex-shrink:0}

/* ================================================================
   MARKET CYCLE / ROTATION STATE
   ================================================================ */

.regime-header-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  align-items:start;
  gap:24px;
  margin-bottom:14px;
}
.regime-header-main{
  min-width:0;
  max-width:820px;
}
.regime-header-row h2{margin-bottom:0;}
.regime-desc{
  max-width:820px;
  margin-top:14px;
  margin-bottom:0;
}
.status-update-card-top{
  width:420px;
  margin-top:54px;
  justify-self:end;
}
.regime-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:18px;
  align-items:start;
  margin-bottom:16px;
}
.regime-main,
.regime-side{min-width:0;}
.regime-main{overflow:hidden;}
.mini-scorecard{
  width:100%;
  box-sizing:border-box;
}
.regime-main,
.mini-scorecard{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
  border-radius:14px;
  padding:18px 18px 16px;
}
.regime-main{position:relative;padding-left:18px;}
.regime-card::before{width:5px;background:linear-gradient(180deg,rgba(16,185,129,.95),rgba(59,130,246,.18));}
.regime-card.tone-good::before{background:linear-gradient(180deg,rgba(16,185,129,.95),rgba(59,130,246,.18));}
.regime-card.tone-mixed::before{background:linear-gradient(180deg,rgba(245,158,11,.95),rgba(245,158,11,.22));}
.regime-card.tone-bad::before{background:linear-gradient(180deg,rgba(239,68,68,.95),rgba(239,68,68,.22));}
.regime-kicker,
.mini-scorecard-head{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:10px;
}
.regime-explainer{font-size:12px;color:var(--text-muted);margin:0 0 14px;line-height:1.55;}
.regime-state{
  font-family:var(--font-humanist);
  font-size:clamp(28px,3.3vw,40px);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.08;
  margin-bottom:16px;
}
.regime-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.metric-chip{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  padding:10px 12px;
  min-width:0;
}
.metric-chip-label{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:6px;
}
.metric-chip-value{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
  color:var(--text);
  white-space:normal;
  overflow-wrap:anywhere;
}
.metric-chip-number{
  display:block;
  font-size:15px;
  font-weight:700;
  line-height:1.05;
}
.metric-chip-word{
  display:block;
  font-size:15px;
  font-weight:700;
  line-height:1.05;
}
#cycleStateScore,#cycleConfidence,#cycleBreadth,#cycleDefensive{
  font-size:15px;
}
.metric-chip-value.tone-good,.mini-score-value.tone-good,.driver-score.tone-good{color:#8ef0c3;}
.metric-chip-value.tone-mixed,.mini-score-value.tone-mixed,.driver-score.tone-mixed{color:#ffd37a;}
.metric-chip-value.tone-bad,.mini-score-value.tone-bad,.driver-score.tone-bad{color:#ff9a9a;}
.regime-summary{
  font-size:13.5px;
  color:var(--text);
  line-height:1.75;
  margin-bottom:12px;
  max-width:68ch;
}

.regime-subcopy{
  display:block;
  margin-bottom:10px;
}
.backup-state-line{
  display:block;
  font-size:15px;
  line-height:1.45;
  color:var(--text-muted);
}
.backup-state-line .backup-label{
  color:var(--text-muted);
  font-weight:700;
}
.backup-state-line .backup-value{
  font-size:17px;
  font-weight:800;
}
.backup-state-line.tone-good .backup-value{color:#8ef0c3;}
.backup-state-line.tone-mixed .backup-value{color:#ffd37a;}
.backup-state-line.tone-bad .backup-value{color:#ff9a9a;}
.regime-reason,
.regime-note{
  font-size:12.5px;
  color:var(--text-muted);
  line-height:1.55;
}
.mini-score-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.mini-score-box{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  padding:12px;
}
.mini-score-label{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:8px;
}
.mini-score-value{
  display:block;
  font-size:18px;
  font-weight:700;
  line-height:1.12;
  margin-bottom:6px;
}
.mini-score-state{
  display:block;
  font-size:12px;
  color:var(--text-muted);
  line-height:1.4;
}

.status-update-card{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  border-radius:14px;
  padding:14px 16px;
  margin-top:12px;
}
.status-update-head{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:8px;
}
.status-update-line{
  font-size:13px;
  line-height:1.7;
  color:rgba(255,255,255,.8);
}
.status-update-line + .status-update-line{margin-top:2px;}
.status-update-line span{
  color:rgba(255,255,255,.58);
  font-weight:600;
}

.driver-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:14px;
}
.driver-grid-rail{
  grid-template-columns:1fr;
  margin-top:14px;
  margin-bottom:0;
}
.driver-pill{
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  padding:12px;
  min-height:172px;
}
.driver-pill.tone-good{
  background:rgba(16,185,129,.08);
  border-color:rgba(16,185,129,.22);
}
.driver-pill.tone-mixed{
  background:rgba(245,158,11,.08);
  border-color:rgba(245,158,11,.20);
}
.driver-pill.tone-bad{
  background:rgba(239,68,68,.08);
  border-color:rgba(239,68,68,.18);
}
.driver-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.driver-label{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.driver-score{
  font-size:13px;
  font-weight:700;
  color:var(--text);
  line-height:1.35;
  text-align:right;
}
.driver-text{
  font-size:12.5px;
  line-height:1.6;
  color:var(--text);
}
.ai-brief-text{
  font-size:13px;
  line-height:1.75;
  color:var(--text);
  max-width:90ch;
}


.driver-evidence{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.08);
  display:grid;
  gap:5px;
}
.driver-evidence-row{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px;
  align-items:start;
  font-size:13px;
  line-height:1.5;
  color:var(--text-muted);
}
.driver-evidence-key{
  font-weight:800;
  font-size:13px;
  color:var(--text);
  white-space:nowrap;
}
.driver-evidence-value{
  min-width:0;
  font-size:13px;
  color:var(--text-muted);
}


.decision-inline{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.decision-inline h3{
  font-size:18px;
  line-height:1.2;
  margin:2px 0 12px;
}
.decision-inline-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
}
.decision-inline-row{
  padding:10px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.decision-inline-row:first-child{border-top:0;padding-top:0;}
.decision-label{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:6px;
}
.decision-value{
  display:block;
  font-size:15px;
  line-height:1.35;
  color:var(--text);
  margin-bottom:4px;
}
.decision-text{
  margin:0;
  font-size:12.5px;
  line-height:1.6;
  color:var(--text-muted);
}
.rotation-callout{
  margin-top:12px;
  margin-bottom:10px;
  border:1px solid rgba(59,130,246,.24);
  background:linear-gradient(180deg,rgba(59,130,246,.08),rgba(255,255,255,.02));
  border-radius:14px;
  padding:12px;
}
.rotation-callout-head{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:10px;
}
.rotation-callout-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.rotation-item{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  padding:10px 12px;
}
.rotation-item-wide{grid-column:span 1}
.rotation-item-label{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:6px;
}
.rotation-item-value{
  display:block;
  font-size:15px;
  line-height:1.4;
  color:var(--text);
}
.ai-brief-card{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
  border-radius:14px;
  padding:16px 18px;
}
.ai-brief-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.ai-brief-head h3{
  font-size:18px;
  line-height:1.2;
  margin:2px 0 0;
}
.ai-brief-text{
  font-size:14px;
  line-height:1.7;
  color:var(--text);
}

.regime-footer-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--border);
}

@media(max-width:1080px){
  .regime-header-row{grid-template-columns:1fr;}
  .regime-header-main,.regime-desc{max-width:none;}
  .status-update-card-top{width:100%;margin-top:0;justify-self:stretch;}
  .regime-hero{grid-template-columns:1fr}
  .driver-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:820px){
  .regime-metrics{grid-template-columns:repeat(2,minmax(180px,1fr))}
  .driver-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .decision-grid{grid-template-columns:1fr;}
}

@media(max-width:560px){
  .metric-chip{padding:9px 10px}
  .regime-state{font-size:30px}
  .driver-grid{grid-template-columns:1fr}
  .mini-score-grid{grid-template-columns:1fr}
}

@media(max-width:1100px){
  .driver-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:700px){
  .driver-grid{grid-template-columns:1fr;}
}

.driver-grid-rail .driver-pill{min-height:auto;}
@media(max-width:1080px){
  .driver-grid-rail{grid-template-columns:1fr;}
}
@media(max-width:820px){
  .driver-grid-rail{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .driver-grid-rail{grid-template-columns:1fr;}
}
@media(max-width:1100px){
  .driver-grid-rail{grid-template-columns:1fr;}
}
@media(max-width:700px){
  .driver-grid-rail{grid-template-columns:1fr;}
}


/* ================================================================
   SIMPLE SECTOR STRENGTH LAYOUT
   ================================================================ */
.toolbar-row{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:18px
}
.snapshot-updated{font-size:13px;color:var(--text-muted)}

.summary-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px
}
.summary-card{padding:22px}
.summary-value{
  margin-top:8px;font-family:var(--font-humanist);font-size:28px;font-weight:800;
  color:var(--text);line-height:1.15
}
.summary-note{margin-top:8px;color:var(--text-muted);font-size:14px}

.section-title{
  font-family:var(--font-humanist);font-size:24px;font-weight:800;color:var(--text)
}
.table-head-row{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:16px
}
.table-head-note{color:var(--text-muted);font-size:13px}

.sector-table-wrap{overflow:auto}
.sector-table{width:100%;border-collapse:collapse}
.sector-table th{
  text-align:left;font-size:13px;color:var(--text-muted);font-weight:800;
  padding:12px 10px;border-bottom:1px solid var(--border);white-space:nowrap
}
.sector-table td{
  padding:14px 10px;border-bottom:1px solid rgba(255,255,255,.06);font-size:15px;vertical-align:middle
}
.sector-sym{font-weight:800;color:var(--text)}
.sector-name{font-size:13px;color:var(--text-muted);margin-top:2px}
.pos{color:var(--green2);font-weight:800}
.neg{color:var(--red2);font-weight:800}
.neu{color:var(--text-muted);font-weight:700}
.status-pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 10px;border-radius:5px;border:1px solid var(--border2);
  background:rgba(255,255,255,.03);font-size:12px;font-weight:800;color:var(--text)
}
.loading-cell{color:var(--text-muted);text-align:center}

@media (max-width: 900px){
  .summary-grid{grid-template-columns:1fr}
}


.sector-table tbody tr.row-strong{background:rgba(16,185,129,.055)}
.sector-table tbody tr.row-rotation-in{background:rgba(96,165,250,.055)}
.sector-table tbody tr.row-rotation-out{background:rgba(251,146,60,.055)}
.sector-table tbody tr.row-weak{background:rgba(239,68,68,.055)}
.sector-table tbody tr.row-mixed{background:transparent}

.sector-table tbody tr:hover{
  background:rgba(255,255,255,.035);
}

.sector-dot{
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  margin-left:6px;
  background:#60a5fa;
  box-shadow:0 0 0 1px rgba(96,165,250,.18), 0 0 8px rgba(96,165,250,.22);
  vertical-align:middle;
}

.status-pill.status-strong{
  background:rgba(16,185,129,.10);
  border-color:rgba(16,185,129,.30);
  color:#b8ffe3;
}
.status-pill.status-rotation-in{
  background:rgba(96,165,250,.10);
  border-color:rgba(96,165,250,.32);
  color:#d6e7ff;
}
.status-pill.status-rotation-out{
  background:rgba(251,146,60,.10);
  border-color:rgba(251,146,60,.32);
  color:#ffe6cf;
}
.status-pill.status-weak{
  background:rgba(239,68,68,.10);
  border-color:rgba(239,68,68,.30);
  color:#ffc7c7;
}
.status-pill.status-mixed{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.12);
  color:var(--text);
}

.cycle-explainer-card{margin-top:20px;}
.cycle-copy,.cycle-note{color:var(--text-muted);font-size:13px;line-height:1.7;max-width:920px;}
.cycle-copy{margin:0 0 14px;}
.cycle-note{margin:14px 0 0;}
.cycle-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px;}
.cycle-card{border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:12px 14px;background:rgba(255,255,255,.02);transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;}
.cycle-title{font-weight:800;margin-bottom:4px;}
.cycle-sub{font-size:12px;color:var(--text-muted);line-height:1.5;}
.cycle-early{border-color:rgba(59,130,246,.28);}
.cycle-mid{border-color:rgba(16,185,129,.28);}
.cycle-late{border-color:rgba(245,158,11,.28);}
.cycle-risk{border-color:rgba(239,68,68,.28);}
.cycle-card.is-active{border-width:2px;box-shadow:0 0 0 1px rgba(255,255,255,.03),0 0 18px rgba(255,255,255,.04);}
.cycle-card.is-secondary{border-width:2px;box-shadow:0 0 0 1px rgba(255,255,255,.02);opacity:.96;}
.cycle-early.is-active{border-color:rgba(59,130,246,.52);}
.cycle-mid.is-active{border-color:rgba(16,185,129,.52);}
.cycle-late.is-active{border-color:rgba(245,158,11,.52);}
.cycle-risk.is-active{border-color:rgba(239,68,68,.52);}
.cycle-early.is-secondary{border-color:rgba(59,130,246,.4);}
.cycle-mid.is-secondary{border-color:rgba(16,185,129,.4);}
.cycle-late.is-secondary{border-color:rgba(245,158,11,.4);}
.cycle-risk.is-secondary{border-color:rgba(239,68,68,.4);}
.trend-cell{width:96px;}
.spark{display:block;color:rgba(148,163,184,.8);}
.spark-up{color:#34d399;}
.spark-down{color:#f87171;}
.spark-flat{color:rgba(148,163,184,.8);}
.spark-empty{color:var(--text-dim);font-size:12px;}
@media(max-width:900px){.cycle-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.cycle-cards{grid-template-columns:1fr;}.trend-cell{width:auto;}}


.sector-meta{
  color: rgba(230,237,243,.72);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 2px;
}
.sector-persist{
  color: rgba(230,237,243,.92);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}


.summary-card .card-eyebrow{text-transform:uppercase}
.market-phase-pill{
  display:inline-flex;align-items:center;gap:6px;
  margin:2px 0 14px;padding:7px 12px;border-radius:5px;
  border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);
  font-size:12px;font-weight:800;color:var(--text);
}
.sector-table tbody tr.row-candidate{background:rgba(34,197,94,.04)}
.sector-table tbody tr.row-improving{background:rgba(96,165,250,.045)}
.sector-table tbody tr.row-neutral{background:transparent}
.sector-table tbody tr.row-weakening{background:rgba(245,158,11,.045)}
.sector-table tbody tr.row-rotation-out{background:rgba(239,68,68,.045)}
.status-pill.status-candidate{
  background:rgba(34,197,94,.10);border-color:rgba(34,197,94,.28);color:#dcffe9;
}
.status-pill.status-improving{
  background:rgba(96,165,250,.10);border-color:rgba(96,165,250,.28);color:#dbeafe;
}
.status-pill.status-neutral{
  background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.12);color:var(--text);
}
.status-pill.status-weakening{
  background:rgba(245,158,11,.10);border-color:rgba(245,158,11,.28);color:#ffedd5;
}
.status-pill.status-rotation-out{
  background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.28);color:#fecaca;
}
.cycle-card.is-active{
  border-width:2px;
  box-shadow:0 0 0 1px rgba(255,255,255,.04),0 0 22px rgba(255,255,255,.06);
  background:rgba(255,255,255,.035);
}
.cycle-card.is-secondary{
  border-width:1px;
  box-shadow:none;
  background:rgba(255,255,255,.018);
  opacity:.94;
}
.cycle-early.is-active{border-color:rgba(59,130,246,.68);box-shadow:0 0 0 1px rgba(59,130,246,.16),0 0 20px rgba(59,130,246,.14)}
.cycle-mid.is-active{border-color:rgba(16,185,129,.68);box-shadow:0 0 0 1px rgba(16,185,129,.16),0 0 20px rgba(16,185,129,.14)}
.cycle-late.is-active{border-color:rgba(245,158,11,.72);box-shadow:0 0 0 1px rgba(245,158,11,.18),0 0 20px rgba(245,158,11,.16)}
.cycle-risk.is-active{border-color:rgba(239,68,68,.70);box-shadow:0 0 0 1px rgba(239,68,68,.16),0 0 20px rgba(239,68,68,.14)}
.cycle-early.is-secondary{border-color:rgba(59,130,246,.34)}
.cycle-mid.is-secondary{border-color:rgba(16,185,129,.34)}
.cycle-late.is-secondary{border-color:rgba(245,158,11,.36)}
.cycle-risk.is-secondary{border-color:rgba(239,68,68,.36)}
.sector-persist{color:rgba(230,237,243,.88);font-size:12px;line-height:1.35;margin-top:3px}
.sector-reason{color:rgba(230,237,243,.55);font-size:11px;line-height:1.35;margin-top:3px}


.debug-panel{margin-top:24px}.debug-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.debug-item{background:rgba(255,255,255,.02);border:1px solid rgba(129,157,207,.18);border-radius:14px;padding:12px}.debug-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}.debug-head span{color:#9fb2d2;font-size:12px}.debug-scores{font-size:12px;color:#b9c8df;margin-bottom:8px}.debug-flags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.debug-flags span,.debug-reasons code{display:inline-block;background:rgba(24,38,64,.9);border:1px solid rgba(129,157,207,.2);border-radius:5px;padding:3px 8px;font-size:11px;color:#dce8ff}.debug-reasons{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.debug-item details summary{cursor:pointer;color:#9fb2d2;font-size:12px}.debug-item pre{white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:1.45;color:#c9d7ee;margin:10px 0 0}


.sector-subrs{font-size:12px;color:rgba(167,182,204,.78);margin-top:4px;}

.strength-cell{font-weight:800;color:#e8edf7;letter-spacing:.02em;white-space:nowrap;}
.sector-table th:nth-child(2), .sector-table td:nth-child(2){width:90px;}

/* Benchmark selector additions */
.toolbar-controls{display:flex;align-items:flex-end;gap:18px;flex-wrap:wrap;}
.toolbar-control{display:flex;flex-direction:column;gap:2px;}
.benchmark-wrap{min-width:148px;}
.tf-btn-caret{opacity:.65;font-size:11px;line-height:1;}
.benchmark-note{
  display:inline-flex;align-items:center;gap:8px;
  margin:-4px 0 18px;padding:8px 12px;border-radius:5px;
  border:1px solid rgba(96,165,250,.22);
  background:rgba(96,165,250,.07);
  color:rgba(219,234,254,.94);font-size:13px;font-weight:700;
}
.summary-card .summary-note{min-height:38px;}
.sector-dot{display:inline-block;width:6px;height:6px;border-radius:999px;background:#60a5fa;margin-left:6px;vertical-align:middle;box-shadow:0 0 12px rgba(96,165,250,.75);}
@media(max-width:640px){
  .toolbar-row{align-items:flex-start;}
  .toolbar-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px;}
  .toolbar-control .tf-wrap,.toolbar-control .tf-btn{width:100%;min-width:0;}
  .snapshot-updated{width:100%;}
  .benchmark-note{width:100%;border-radius:12px;align-items:flex-start;}
}

/* ================================================================
   Header stats alignment fix - 2026-05-01
   Keeps the sector count / comparison / view stats pinned right on desktop.
   ================================================================ */
.page-header-inner > div:first-child{
  flex:1 1 560px;
  min-width:0;
  max-width:820px;
}
.stat-row{
  margin-left:auto;
  justify-content:flex-end;
  align-self:flex-end;
}

@media(max-width:820px){
  .page-header-inner > div:first-child{
    max-width:none;
    flex:1 1 auto;
  }
  .stat-row{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
    align-self:flex-start;
  }
}


/* Current-period relative movers card */
.period-rs-card{
  margin-bottom:18px;
}
.period-rs-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.period-rs-explain{
  max-width:420px;
  font-size:12px;
  line-height:1.45;
  color:var(--text-muted);
  text-align:right;
}
.period-rs-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.period-rs-item{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  border:1px solid rgba(129,157,207,.18);
  background:rgba(255,255,255,.025);
  border-radius:12px;
  padding:12px 14px;
}
.period-rs-rank{
  width:24px;
  height:24px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:11px;
  font-weight:800;
  color:var(--text-muted);
  background:rgba(96,165,250,.10);
  border:1px solid rgba(96,165,250,.22);
}
.period-rs-main{
  min-width:0;
  flex:1 1 auto;
}
.period-rs-symbol{
  font-family:var(--font-humanist);
  font-size:22px;
  font-weight:900;
  color:var(--text);
  line-height:1.05;
}
.period-rs-sub{
  margin-top:3px;
  font-size:11px;
  color:var(--text-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.period-rs-value-wrap{
  text-align:right;
  flex:0 0 auto;
}
.period-rs-value{
  font-size:15px;
  font-weight:900;
}
.period-rs-item.is-positive .period-rs-value{color:var(--green2)}
.period-rs-item.is-negative .period-rs-value{color:var(--red2)}
.period-rs-item.is-neutral .period-rs-value{color:var(--text-muted)}
.period-rs-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:5px;
  padding:3px 7px;
  border-radius:5px;
  font-size:10px;
  font-weight:800;
  color:var(--text);
  background:rgba(255,255,255,.055);
  border:1px solid rgba(129,157,207,.18);
}
.period-rs-item.is-positive .period-rs-badge{
  color:var(--green2);
  background:rgba(16,185,129,.08);
  border-color:rgba(16,185,129,.22);
}
.period-rs-item.is-negative .period-rs-badge{
  color:var(--red2);
  background:rgba(239,68,68,.08);
  border-color:rgba(239,68,68,.22);
}
.period-rs-footnote{
  margin-top:12px;
  color:var(--text-muted);
  font-size:12px;
  line-height:1.5;
}
@media(max-width:900px){
  .period-rs-head{
    flex-direction:column;
  }
  .period-rs-explain{
    max-width:none;
    text-align:left;
  }
  .period-rs-grid{
    grid-template-columns:1fr;
  }
}


/* ================================================================
   Market Watch Calendar · Sector Strength template alignment v1.3
   ================================================================ */
.calendar-page .page-header p{max-width:720px}
.stat-val-sm{font-size:15px;line-height:1.25;max-width:220px;white-space:normal;word-break:break-word}
.calendar-toolbar-card{margin-top:-4px}
.calendar-toolbar-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.calendar-toolbar-note{color:var(--text-muted);font-size:13px;max-width:420px;line-height:1.5}
.calendar-filter-grid{display:grid;grid-template-columns:1.4fr repeat(3,minmax(160px,.7fr));gap:14px;margin-bottom:16px}
.calendar-filter-grid label{display:flex;flex-direction:column;gap:7px;min-width:0}
.calendar-filter-grid label span{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);font-weight:700}
.calendar-filter-grid input,.calendar-filter-grid select{width:100%;min-height:42px;border-radius:10px;border:1px solid var(--border);background:rgba(255,255,255,.035);color:var(--text);padding:9px 11px;font-weight:700;outline:none}
.calendar-filter-grid input::placeholder{color:rgba(159,178,201,.62)}
.calendar-filter-grid input:focus,.calendar-filter-grid select:focus{border-color:rgba(96,165,250,.75);box-shadow:0 0 0 3px rgba(96,165,250,.12)}
.calendar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.calendar-actions .btn{min-height:38px}
.calendar-note-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:-2px 0 18px}
.calendar-note{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:5px;border:1px solid rgba(96,165,250,.22);background:rgba(96,165,250,.07);color:rgba(219,234,254,.94);font-size:13px;font-weight:700}
.calendar-note.warn{border-color:rgba(245,158,11,.24);background:rgba(245,158,11,.075);color:#ffedd5}
#summaryGrid.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#summaryGrid .summary-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:20px 20px 18px;position:relative;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.18)}
#summaryGrid .summary-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,rgba(59,130,246,.95),rgba(59,130,246,.10))}
#summaryGrid .summary-card span{display:block;font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--blue2);opacity:.85;margin-bottom:8px;font-weight:800}
#summaryGrid .summary-card strong{display:block;font-family:var(--font-humanist);font-size:26px;font-weight:800;letter-spacing:-.015em;color:var(--text);line-height:1.1}
#summaryGrid .summary-card p{margin-top:8px;color:var(--text-muted);font-size:13px;line-height:1.45}
.watch-table-wrap{overflow:auto;border-radius:12px;border:1px solid rgba(255,255,255,.06)}
.watch-table{width:100%;border-collapse:collapse;min-width:1120px;background:rgba(255,255,255,.012)}
.watch-table th{text-align:left;font-size:12px;color:var(--text-muted);font-weight:900;padding:12px 10px;border-bottom:1px solid var(--border);white-space:nowrap;text-transform:uppercase;letter-spacing:.08em}
.watch-table td{padding:14px 10px;border-bottom:1px solid rgba(255,255,255,.06);font-size:14px;vertical-align:top;color:rgba(230,237,243,.92)}
.watch-table tbody tr:hover{background:rgba(255,255,255,.035)}
.watch-table tbody tr.today-row{background:rgba(96,165,250,.055)}
.watch-table tbody tr.red-circle{box-shadow:inset 4px 0 0 rgba(239,68,68,.82)}
.date-cell strong{display:block;color:var(--text);font-weight:900;white-space:nowrap}
.date-cell span{display:block;color:var(--text-muted);font-size:12px;margin-top:2px}
.event-title{font-weight:900;color:var(--text);line-height:1.25;margin-bottom:4px}
.event-category{display:inline-flex;align-items:center;padding:3px 8px;border-radius:5px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);color:var(--text-muted);font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}
.level-pill{display:inline-flex;align-items:center;justify-content:center;min-width:86px;padding:6px 10px;border-radius:5px;border:1px solid var(--border2);background:rgba(255,255,255,.035);font-size:12px;font-weight:900;white-space:nowrap}
.level-very-high{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.34);color:#fecaca}
.level-high{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.34);color:#ffedd5}
.level-medium-high{background:rgba(96,165,250,.12);border-color:rgba(96,165,250,.34);color:#dbeafe}
.level-medium{background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.28);color:#dcffe9}
.symbol-list{display:flex;flex-wrap:wrap;gap:6px;max-width:180px}
.symbol-pill{display:inline-flex;align-items:center;justify-content:center;padding:4px 7px;border-radius:5px;background:rgba(96,165,250,.10);border:1px solid rgba(96,165,250,.22);color:#dbeafe;font-family:var(--mono);font-size:11px;font-weight:800}
.visible-count{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:5px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);font-size:12px;font-weight:900;color:var(--text)}
.context-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.context-item{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);border-radius:12px;padding:14px}
.context-item span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);margin-bottom:7px}
.context-item strong{display:block;font-family:var(--font-humanist);font-size:22px;font-weight:800;color:var(--text);line-height:1.1}
.context-item small{display:block;color:var(--text-muted);font-size:12px;margin-top:6px}
.calendar-use-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.calendar-use-card{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.025);border-radius:14px;padding:18px}
.calendar-use-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:rgba(96,165,250,.13);border:1px solid rgba(96,165,250,.28);color:#dbeafe;font-weight:900;margin-bottom:10px}
.calendar-use-card h3{font-family:var(--font-humanist);font-size:18px;line-height:1.15;margin-bottom:8px;color:var(--text)}
.calendar-use-card p{color:var(--text-muted);font-size:14px;line-height:1.55}
.calendar-ai-note{margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08);color:var(--text-muted);font-size:14px;line-height:1.6}
@media(max-width:1000px){
  .calendar-filter-grid{grid-template-columns:1fr 1fr}
  #summaryGrid.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calendar-use-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .calendar-filter-grid{grid-template-columns:1fr}
  #summaryGrid.summary-grid{grid-template-columns:1fr}
  .calendar-note{width:100%;border-radius:12px;align-items:flex-start}
  .stat-val-sm{max-width:none;font-size:14px}
  .watch-table{min-width:980px}
}
@media print{
  .site-nav,.toolbar-row,.calendar-toolbar-card .calendar-actions,footer{display:none!important}
  body{background:#fff;color:#111}
  .page{max-width:none;padding:20px}
  .tool-card{box-shadow:none;background:#fff;color:#111;border-color:#ccc}
  .watch-table th,.watch-table td{color:#111;border-color:#ddd}
}

/* ================================================================
   Market Watch Calendar · experimental Render-style card layout v1.5
   Header/footer remain inherited from the site template.
   ================================================================ */
.calendar-page{
  max-width:1680px;
  padding-left:28px;
  padding-right:28px;
}
.calendar-page .page-header{margin-bottom:28px}
.calendar-page .page-header p{max-width:860px}
.calendar-page .tool-card,
.calendar-page #summaryGrid .summary-card,
.calendar-page .context-item{
  border-radius:6px;
  background:rgba(255,255,255,.022);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:none;
}
.calendar-page .tool-card{
  padding:22px 24px;
}
.calendar-toolbar-card{border-left:4px solid rgba(96,165,250,.8)}
.calendar-toolbar-head{align-items:flex-start}
.calendar-toolbar-note{max-width:560px}
.calendar-filter-grid{grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(180px,.7fr));gap:14px}
.calendar-filter-grid input,
.calendar-filter-grid select,
.calendar-actions .btn,
.visible-count,
.calendar-note,
.event-category{
  border-radius:5px;
}
.calendar-filter-grid input,
.calendar-filter-grid select{
  background:rgba(3,7,18,.42);
  border-color:rgba(255,255,255,.14);
}
.calendar-actions .btn{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.035);
  box-shadow:none;
}
.calendar-actions .btn:hover{background:rgba(255,255,255,.07)}
.calendar-note-row{margin:0 0 18px}
.calendar-note{
  padding:8px 11px;
  background:rgba(255,255,255,.025);
  border-color:rgba(255,255,255,.16);
}
.calendar-note.warn{background:rgba(245,158,11,.055);border-color:rgba(245,158,11,.22)}
#summaryGrid.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
#summaryGrid .summary-card{
  min-height:132px;
  padding:22px 24px 20px 28px;
}
#summaryGrid .summary-card::before{
  width:5px;
  background:linear-gradient(180deg,rgba(96,165,250,.95),rgba(96,165,250,.12));
}
#summaryGrid .summary-card.tone-bad::before{background:linear-gradient(180deg,rgba(239,68,68,.95),rgba(239,68,68,.12))}
#summaryGrid .summary-card.tone-warn::before{background:linear-gradient(180deg,rgba(245,158,11,.95),rgba(245,158,11,.12))}
#summaryGrid .summary-card.tone-good::before{background:linear-gradient(180deg,rgba(16,185,129,.95),rgba(16,185,129,.12))}
#summaryGrid .summary-card span{color:var(--text-muted)}
#summaryGrid .summary-card strong{font-size:31px}
.visible-count{
  padding:7px 10px;
  background:rgba(255,255,255,.035);
  border-color:rgba(255,255,255,.14);
}
.watch-card-list{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:18px;
}
.watch-event-card{
  --accent:#60a5fa;
  position:relative;
  display:grid;
  grid-template-columns:150px minmax(230px,1.05fr) minmax(320px,1.55fr) minmax(260px,1fr) minmax(260px,1fr);
  gap:22px;
  align-items:start;
  min-height:142px;
  padding:22px 24px 20px 32px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.022);
  border-radius:6px;
}
.watch-event-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,var(--accent),rgba(255,255,255,.05));
}
.watch-event-card:hover{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.24);
}
.today-card{background:rgba(96,165,250,.045)}
.red-circle-card{border-color:rgba(239,68,68,.32)}
.event-date-block strong{
  display:block;
  color:var(--text);
  font-size:15px;
  font-weight:900;
  line-height:1.25;
  margin-bottom:3px;
}
.event-date-block span,
.event-date-block em{
  display:block;
  color:var(--text-muted);
  font-style:normal;
  font-size:12px;
  line-height:1.45;
}
.event-main-block{min-width:0}
.event-meta-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.level-text{
  font-family:var(--mono);
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.level-text.level-very-high{color:#ff9a9a;background:transparent;border:0}
.level-text.level-high{color:#ffd37a;background:transparent;border:0}
.level-text.level-medium-high{color:#9bc7ff;background:transparent;border:0}
.level-text.level-medium{color:#8ef0c3;background:transparent;border:0}
.event-category{
  display:inline-flex;
  align-items:center;
  padding:2px 7px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  color:var(--text-muted);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.event-title{
  font-family:var(--font-humanist);
  font-size:18px;
  line-height:1.25;
  font-weight:900;
  color:var(--text);
  margin:0 0 10px;
}
.event-symbols{
  font-family:var(--mono);
  font-size:12px;
  line-height:1.6;
  color:#b8c7dd;
  overflow-wrap:anywhere;
}
.event-copy-block span{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  line-height:1.2;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:900;
  color:var(--text-muted);
  margin-bottom:8px;
}
.event-copy-block.risk-on span{color:#8ef0c3}
.event-copy-block.risk-off span{color:#ff9a9a}
.event-copy-block p{
  margin:0;
  color:rgba(230,237,243,.9);
  font-size:13.5px;
  line-height:1.62;
  overflow-wrap:anywhere;
}
.loading-cell{
  padding:22px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:6px;
  background:rgba(255,255,255,.022);
  color:var(--text-muted);
  font-size:14px;
}
.calendar-page .disclaimer{
  border-radius:3px;
  margin-top:24px;
}
@media(max-width:1380px){
  .calendar-page{max-width:1280px}
  .watch-event-card{
    grid-template-columns:140px minmax(220px,.9fr) minmax(300px,1.2fr);
  }
  .event-copy-block.risk-on,
  .event-copy-block.risk-off{grid-column:span 1}
}
@media(max-width:1000px){
  .calendar-page{max-width:100%;padding-left:18px;padding-right:18px}
  .calendar-filter-grid{grid-template-columns:1fr 1fr}
  #summaryGrid.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .watch-event-card{grid-template-columns:1fr 1fr;gap:16px}
  .event-copy-block{grid-column:1 / -1}
}
@media(max-width:640px){
  .calendar-filter-grid{grid-template-columns:1fr}
  #summaryGrid.summary-grid{grid-template-columns:1fr}
  .calendar-note{width:100%}
  .watch-event-card{grid-template-columns:1fr;padding:20px 18px 18px 24px}
  .calendar-page .tool-card{padding:18px 16px}
}
@media print{
  .calendar-toolbar-card,.calendar-note-row,.site-nav,footer{display:none!important}
  .calendar-page{max-width:none;padding:18px;background:#fff;color:#111}
  .calendar-page .tool-card,.watch-event-card,#summaryGrid .summary-card{background:#fff!important;color:#111!important;border-color:#ccc!important;break-inside:avoid}
  .event-title,.event-copy-block p,.event-date-block strong{color:#111!important}
  .event-symbols,.event-date-block span,.event-date-block em,.event-copy-block span{color:#444!important}
}


/* v1.5: slight rounding, not pill-like */
.calendar-page .tool-card,
.calendar-page #summaryGrid .summary-card,
.calendar-page .context-item,
.watch-event-card,
.loading-cell,
.calendar-page .disclaimer{border-radius:6px}
.calendar-filter-grid input,
.calendar-filter-grid select,
.calendar-actions .btn,
.visible-count,
.calendar-note,
.event-category{border-radius:5px}

/* ================================================================
   Market Watch Calendar · v1.6 status, reaction and crypto panels
   ================================================================ */
.calendar-intel-grid{
  display:grid;
  grid-template-columns:minmax(360px,.82fr) minmax(560px,1.18fr);
  gap:18px;
  margin-bottom:22px;
}
.catalyst-card,.reaction-card{border-left:4px solid rgba(96,165,250,.78)}
.catalyst-list{display:grid;grid-template-columns:1fr;gap:10px}
.catalyst-item{
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.022);
  border-radius:5px;
  padding:12px 14px;
}
.catalyst-title{font-size:13.5px;line-height:1.45;font-weight:800;color:var(--text)}
.catalyst-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px;color:var(--text-muted);font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;text-transform:uppercase}
.reaction-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.reaction-group{
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.018);
  border-radius:5px;
  padding:13px 14px;
  min-width:0;
}
.reaction-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.reaction-head strong{font-size:14px;color:var(--text);line-height:1.2}
.reaction-head span{font-size:11.5px;color:var(--text-muted);line-height:1.35;text-align:right;max-width:230px}
.reaction-tickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px}
.reaction-ticker{display:grid;grid-template-columns:54px minmax(52px,1fr) 58px;gap:8px;align-items:baseline;border-bottom:1px solid rgba(255,255,255,.055);padding:4px 0;font-family:var(--mono);font-size:11.5px;color:var(--text-muted)}
.reaction-ticker:last-child{border-bottom:0}
.reaction-symbol{font-weight:900;color:var(--text)}
.reaction-price{text-align:right;color:rgba(230,237,243,.78)}
.reaction-change{text-align:right;font-weight:900}
.reaction-ticker.tone-positive .reaction-change{color:#8ef0c3}
.reaction-ticker.tone-negative .reaction-change{color:#ff9a9a}
.reaction-ticker.tone-neutral .reaction-change{color:var(--text-muted)}
.watch-event-card{
  grid-template-columns:135px minmax(220px,.85fr) minmax(260px,1.08fr) minmax(230px,.98fr) minmax(230px,.98fr) minmax(255px,1fr);
  gap:18px;
}
.event-status-text{
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#dbeafe;
  border:1px solid rgba(96,165,250,.18);
  background:rgba(96,165,250,.07);
  border-radius:4px;
  padding:2px 7px;
}
.event-numbers{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  margin-top:10px;
  color:var(--text-muted);
  font-family:var(--mono);
  font-size:11px;
  line-height:1.45;
}
.event-copy-block.data-read span{color:#9bc7ff}
.event-copy-block.market-read span{color:#8ef0c3}
.event-copy-block.crypto-read span{color:#ffd37a}
.crypto-negative-line{margin-top:8px!important;color:rgba(255,210,122,.82)!important}
@media(max-width:1500px){
  .calendar-intel-grid{grid-template-columns:1fr}
  .watch-event-card{grid-template-columns:130px minmax(220px,.9fr) minmax(280px,1.1fr) minmax(280px,1.1fr)}
  .event-copy-block.market-read,.event-copy-block.crypto-read{grid-column:span 1}
}
@media(max-width:1080px){
  .reaction-groups{grid-template-columns:1fr}
  .watch-event-card{grid-template-columns:1fr 1fr;gap:16px}
  .event-copy-block{grid-column:1 / -1}
}
@media(max-width:640px){
  .calendar-intel-grid{grid-template-columns:1fr}
  .reaction-tickers{grid-template-columns:1fr}
  .reaction-head{display:block}
  .reaction-head span{display:block;text-align:left;margin-top:5px;max-width:none}
}
@media print{
  .calendar-intel-grid{display:none!important}
}

.summary-note-card {
  border-left: 5px solid #60a5fa;
}
.summary-note-text {
  margin: 0;
  color: #d9e7f7;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.reaction-ticker[data-stale="true"] .reaction-symbol::after,
.reaction-ticker.is-stale .reaction-symbol::after {
  content: " cached";
  color: #8ea5bf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ================================================================
   Market Watch Calendar v2 · clean rebuild
   Backend remains unchanged. Header/footer inherited from site shell.
   ================================================================ */
.mwc-v2{
  max-width:1540px;
  padding:36px 28px 110px;
}
.mwc-v2 *{box-sizing:border-box}
.mwc-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:36px;
  align-items:end;
  padding:8px 0 30px;
  border-bottom:1px solid rgba(148,163,184,.22);
  margin-bottom:22px;
}
.mwc-eyebrow{
  font-family:var(--mono);
  font-size:11px;
  line-height:1;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#7fb2ff;
  font-weight:800;
  margin-bottom:10px;
}
.mwc-hero h1{
  font-family:var(--font-humanist);
  font-size:clamp(36px,4vw,56px);
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.035em;
  color:#f3f7fb;
  margin:0;
}
.mwc-hero p{
  margin:12px 0 0;
  max-width:880px;
  color:rgba(216,226,239,.78);
  font-size:16px;
  line-height:1.62;
}
.mwc-hero-stats{
  display:flex;
  align-items:flex-end;
  gap:24px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mwc-hero-stats div{text-align:right;min-width:86px}
.mwc-hero-stats strong{
  display:block;
  font-family:var(--font-humanist);
  color:#f3f7fb;
  font-size:27px;
  line-height:1;
  font-weight:900;
}
.mwc-hero-stats div:last-child strong{font-size:14px;line-height:1.35;max-width:220px}
.mwc-hero-stats span{
  display:block;
  margin-top:6px;
  font-family:var(--mono);
  color:rgba(159,178,201,.78);
  font-size:10px;
  letter-spacing:.15em;
  text-transform:uppercase;
  font-weight:800;
}
.mwc-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.mwc-strip span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:6px;
  background:rgba(255,255,255,.024);
  color:rgba(226,235,246,.9);
  font-size:12.5px;
  font-weight:800;
}
.mwc-strip span:last-child{
  border-color:rgba(245,158,11,.28);
  background:rgba(245,158,11,.055);
  color:#ffe4b5;
}
.mwc-section{
  position:relative;
  background:rgba(255,255,255,.027);
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  padding:24px;
  margin-bottom:18px;
  box-shadow:0 14px 42px rgba(0,0,0,.18);
  overflow:hidden;
}
.mwc-section::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:4px;
  background:linear-gradient(180deg,rgba(96,165,250,.95),rgba(96,165,250,.12));
}
.mwc-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.mwc-section-head.compact{margin-bottom:16px}
.mwc-section h2{
  font-family:var(--font-humanist);
  margin:0;
  color:#f3f7fb;
  font-size:22px;
  line-height:1.18;
  letter-spacing:-.015em;
  font-weight:900;
}
.mwc-read-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.mwc-read-card{
  min-height:190px;
  background:rgba(255,255,255,.026);
  border:1px solid rgba(148,163,184,.16);
  border-radius:8px;
  padding:18px 18px 16px;
}
.mwc-read-card h3{
  margin:0 0 12px;
  color:#f3f7fb;
  font-size:17px;
  line-height:1.24;
  font-weight:900;
}
.mwc-read-card ul{margin:0;padding-left:18px;color:rgba(229,237,247,.88)}
.mwc-read-card li{margin:0 0 9px;font-size:13.5px;line-height:1.55}
.mwc-read-card.tone-1{border-top:3px solid rgba(96,165,250,.9)}
.mwc-read-card.tone-2{border-top:3px solid rgba(245,158,11,.9)}
.mwc-read-card.tone-3{border-top:3px solid rgba(16,185,129,.85)}
.mwc-read-card.tone-4{border-top:3px solid rgba(239,68,68,.78)}
.mwc-catalyst-list{display:grid;grid-template-columns:1fr;gap:10px}
.mwc-catalyst{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(255,255,255,.022);
  border-radius:7px;
  padding:14px 16px 14px 18px;
}
.mwc-catalyst::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:7px 0 0 7px;background:#60a5fa}
.mwc-catalyst.high::before{background:#ef4444}
.mwc-catalyst.medium::before{background:#f59e0b}
.mwc-catalyst.low::before{background:#10b981}
.mwc-catalyst h3{margin:0;color:#f3f7fb;font-size:16px;line-height:1.3;font-weight:900}
.mwc-catalyst p{margin:5px 0 0;color:rgba(216,226,239,.74);font-size:13px;line-height:1.4}
.mwc-catalyst > span{
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:900;
  color:#dbeafe;
  white-space:nowrap;
}
.mwc-catalyst.high > span{color:#ffaaaa}
.mwc-catalyst.medium > span{color:#ffd27a}
.mwc-catalyst.low > span{color:#98f0c7}
.mwc-reaction-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.mwc-reaction-card{
  background:rgba(255,255,255,.022);
  border:1px solid rgba(148,163,184,.16);
  border-radius:8px;
  padding:18px;
  min-width:0;
}
.mwc-reaction-card h3{
  margin:0 0 14px;
  color:#f3f7fb;
  font-size:18px;
  line-height:1.2;
  font-weight:900;
}
.mwc-reaction-card table{width:100%;border-collapse:collapse;table-layout:fixed}
.mwc-reaction-card th{
  text-align:left;
  color:rgba(159,178,201,.78);
  font-family:var(--mono);
  font-size:10.5px;
  letter-spacing:.12em;
  text-transform:uppercase;
  padding:0 8px 9px;
  border-bottom:1px solid rgba(148,163,184,.16);
}
.mwc-reaction-card td{
  padding:8px;
  border-bottom:1px solid rgba(148,163,184,.075);
  color:rgba(229,237,247,.88);
  font-family:var(--mono);
  font-size:12.5px;
  white-space:nowrap;
}
.mwc-reaction-card tr:last-child td{border-bottom:0}
.mwc-reaction-card td:first-child{font-weight:900;color:#f3f7fb}
.mwc-reaction-card td:nth-child(2),.mwc-reaction-card td:nth-child(3){text-align:right}
.mwc-reaction-card .pos{color:#8ef0c3;font-weight:900}
.mwc-reaction-card .neg{color:#ff9a9a;font-weight:900}
.mwc-reaction-card .neutral{color:rgba(216,226,239,.72);font-weight:800}
.mwc-filter-grid{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(170px,.7fr));
  gap:14px;
}
.mwc-filter-grid label{display:flex;flex-direction:column;gap:7px}
.mwc-filter-grid label span{
  font-family:var(--mono);
  color:rgba(159,178,201,.86);
  font-size:10.5px;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:900;
}
.mwc-filter-grid input,.mwc-filter-grid select{
  width:100%;
  min-height:42px;
  border-radius:6px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(3,7,18,.42);
  color:#f3f7fb;
  padding:9px 11px;
  font-weight:800;
  outline:none;
}
.mwc-filter-grid input::placeholder{color:rgba(159,178,201,.58)}
.mwc-filter-grid input:focus,.mwc-filter-grid select:focus{border-color:rgba(96,165,250,.75);box-shadow:0 0 0 3px rgba(96,165,250,.11)}
.mwc-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.mwc-btn{
  border:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.035);
  color:#f3f7fb;
  border-radius:6px;
  padding:9px 13px;
  font-weight:850;
  font-size:12.5px;
  cursor:pointer;
}
.mwc-btn:hover{background:rgba(255,255,255,.07)}
.mwc-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.mwc-stat-card{
  position:relative;
  background:rgba(255,255,255,.027);
  border:1px solid rgba(148,163,184,.18);
  border-radius:8px;
  padding:19px 20px 17px 24px;
  overflow:hidden;
}
.mwc-stat-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#60a5fa}
.mwc-stat-card.red::before{background:#ef4444}.mwc-stat-card.amber::before{background:#f59e0b}.mwc-stat-card.green::before{background:#10b981}
.mwc-stat-card span{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(159,178,201,.88);font-weight:900;margin-bottom:7px}
.mwc-stat-card strong{display:block;color:#f3f7fb;font-family:var(--font-humanist);font-size:30px;line-height:1.05;font-weight:900;letter-spacing:-.015em}
.mwc-stat-card p{margin:8px 0 0;color:rgba(216,226,239,.72);font-size:13px;line-height:1.38}
.mwc-count{border:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.035);border-radius:6px;padding:8px 11px;color:#f3f7fb;font-size:12.5px;font-weight:900}
.mwc-event-list{display:grid;grid-template-columns:1fr;gap:16px}
.mwc-event{
  --accent:#60a5fa;
  position:relative;
  background:rgba(255,255,255,.023);
  border:1px solid rgba(148,163,184,.17);
  border-radius:8px;
  overflow:hidden;
}
.mwc-event::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--accent),rgba(255,255,255,.05))}
.mwc-event-top{
  display:grid;
  grid-template-columns:130px minmax(0,1fr) minmax(280px,auto);
  gap:20px;
  align-items:start;
  padding:20px 22px 16px 28px;
  border-bottom:1px solid rgba(148,163,184,.12);
}
.mwc-date strong{display:block;color:#f3f7fb;font-size:16px;line-height:1.2;font-weight:950}
.mwc-date span,.mwc-date em{display:block;color:rgba(159,178,201,.86);font-size:12.5px;line-height:1.45;font-style:normal;margin-top:2px}
.mwc-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:9px}
.mwc-tags span{
  border:1px solid rgba(148,163,184,.16);
  background:rgba(255,255,255,.035);
  border-radius:5px;
  color:rgba(216,226,239,.82);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:900;
  padding:4px 7px;
}
.mwc-tags .very-high{color:#ffb4b4;border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.09)}
.mwc-tags .high{color:#ffd27a;border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.09)}
.mwc-tags .medium-high{color:#bfdbfe;border-color:rgba(96,165,250,.35);background:rgba(96,165,250,.09)}
.mwc-tags .medium{color:#9df2ca;border-color:rgba(16,185,129,.3);background:rgba(16,185,129,.08)}
.mwc-event h3{margin:0 0 9px;color:#f3f7fb;font-size:20px;line-height:1.22;font-weight:950;letter-spacing:-.01em}
.mwc-symbols{font-family:var(--mono);color:#c8d6e8;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.mwc-numbers{display:flex;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap;gap:9px 12px;text-align:right;padding-top:31px}
.mwc-num{font-family:var(--mono);color:rgba(216,226,239,.74);font-size:12px;white-space:nowrap}
.mwc-num strong{color:#f3f7fb;font-size:13px;font-weight:950;margin-left:3px}
.mwc-num.actual.good strong{color:#8ef0c3}.mwc-num.actual.bad strong{color:#ff9a9a}.mwc-num.actual.neutral strong{color:#f3f7fb}
.mwc-event-bottom{
  display:grid;
  grid-template-columns:1.15fr 1fr 1fr 1fr;
  gap:18px;
  padding:17px 22px 20px 28px;
}
.mwc-read span{
  display:block;
  font-family:var(--mono);
  font-size:10.5px;
  line-height:1.1;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:950;
  margin-bottom:7px;
  color:rgba(159,178,201,.88);
}
.mwc-read.why span{color:#c5d7ef}.mwc-read.data span{color:#8ec5ff}.mwc-read.market span{color:#8ef0c3}.mwc-read.crypto span{color:#ffd27a}
.mwc-read p{margin:0;color:rgba(229,237,247,.9);font-size:13.6px;line-height:1.56}
.mwc-loading{padding:24px;border:1px solid rgba(148,163,184,.17);border-radius:8px;background:rgba(255,255,255,.022);color:rgba(216,226,239,.74);font-size:14px}
.mwc-disclaimer{margin-top:22px;border:1px solid rgba(245,158,11,.20);background:rgba(245,158,11,.055);border-radius:6px;padding:13px 16px;color:rgba(216,226,239,.76);font-size:12.5px;line-height:1.58}
.mwc-disclaimer strong{color:#ffd27a}
@media(max-width:1220px){
  .mwc-hero{grid-template-columns:1fr}.mwc-hero-stats{justify-content:flex-start}.mwc-hero-stats div{text-align:left}
  .mwc-read-grid,.mwc-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mwc-event-top{grid-template-columns:110px minmax(0,1fr)}
  .mwc-numbers{grid-column:2 / -1;justify-content:flex-start;text-align:left;padding-top:0}
  .mwc-event-bottom{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .mwc-v2{padding-left:18px;padding-right:18px}
  .mwc-reaction-grid{grid-template-columns:1fr}
  .mwc-filter-grid{grid-template-columns:1fr 1fr}
  .mwc-event-top{grid-template-columns:1fr}.mwc-numbers{grid-column:auto}.mwc-event-bottom{grid-template-columns:1fr}
}
@media(max-width:640px){
  .mwc-read-grid,.mwc-stat-grid,.mwc-filter-grid{grid-template-columns:1fr}
  .mwc-section{padding:18px 16px}.mwc-event-top,.mwc-event-bottom{padding-left:22px;padding-right:16px}
  .mwc-catalyst{grid-template-columns:1fr}.mwc-catalyst > span{justify-self:start}
}
@media print{
  .mwc-current,.mwc-catalysts,.mwc-reactions,.mwc-filters,.site-nav,footer{display:none!important}
  .mwc-v2{max-width:none;padding:18px;background:#fff;color:#111}
  .mwc-event,.mwc-section,.mwc-stat-card{background:#fff!important;color:#111!important;border-color:#ccc!important;break-inside:avoid}
  .mwc-event h3,.mwc-date strong,.mwc-read p,.mwc-num strong{color:#111!important}
  .mwc-symbols,.mwc-date span,.mwc-date em,.mwc-read span,.mwc-num{color:#444!important}
}


/* v2.1 requested layout corrections */
.mwc-stat-grid{margin-top:22px;margin-bottom:18px}
.mwc-filters{margin-top:0;margin-bottom:18px}
.mwc-events{margin-top:0}
.mwc-num-sep{font-family:var(--mono);font-size:12px;color:rgba(216,226,239,.38);align-self:center;margin:0 -2px}
.mwc-data-num{font-weight:800;color:rgba(229,237,247,.94);white-space:nowrap}
.mwc-data-num strong{font-weight:950;color:#f3f7fb;margin-left:3px}
.mwc-data-num.actual.good strong{color:#8ef0c3}
.mwc-data-num.actual.bad strong{color:#ff9a9a}
.mwc-data-num.actual.neutral strong{color:#f3f7fb}
.mwc-data-sep{color:rgba(216,226,239,.45);margin:0 7px}
.mwc-data-period{color:rgba(229,237,247,.9)}
.mwc-read.data p{font-size:14px;line-height:1.58}


/* ================================================================
   Market Watch Calendar · v2.2 events-first layout
   ================================================================ */
.mwc-v2 .mwc-current,
.mwc-v2 .mwc-catalysts,
.mwc-v2 .mwc-reactions{display:none!important;}
.mwc-v2 .mwc-strip{margin-bottom:18px;}
.mwc-v2 .mwc-stat-grid{margin-top:0;margin-bottom:18px;}
.mwc-v2 .mwc-filters{margin-bottom:18px;}
.mwc-v2 .mwc-events{margin-top:0;}
.mwc-v2 .mwc-read.data .mwc-data-num strong,
.mwc-v2 .mwc-read.data .mwc-data-num{font-weight:800;}
.mwc-v2 .mwc-read.data .mwc-data-num.actual.good strong{color:#8ef0c3;}
.mwc-v2 .mwc-read.data .mwc-data-num.actual.bad strong{color:#ff9a9a;}
.mwc-v2 .mwc-read.data .mwc-data-num.actual.neutral strong{color:#e6edf3;}


/* ================================================================
   Market Watch Calendar · v2.3 restored Event Watch Table
   ================================================================ */
.mwc-table-section{
  padding:0;
  overflow:hidden;
}
.mwc-table-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:24px 26px 16px;
  border-bottom:1px solid rgba(148,163,184,.16);
}
.mwc-table-head h2{
  margin:0 0 8px;
  font-size:25px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--text);
}
.mwc-table-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}
.mwc-table-wrap{
  overflow:auto;
}
.mwc-watch-table{
  width:100%;
  min-width:1320px;
  border-collapse:collapse;
  background:rgba(15,23,42,.52);
}
.mwc-watch-table th{
  position:sticky;
  top:0;
  z-index:2;
  text-align:left;
  padding:14px 15px;
  color:#9fb2d2;
  background:rgba(12,18,32,.98);
  border-bottom:1px solid rgba(148,163,184,.20);
  font-family:var(--mono);
  font-size:12px;
  line-height:1.2;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:800;
  white-space:nowrap;
}
.mwc-watch-table td{
  vertical-align:top;
  padding:18px 15px;
  border-bottom:1px solid rgba(148,163,184,.13);
  color:rgba(230,237,243,.95);
  font-size:14.5px;
  line-height:1.55;
}
.mwc-watch-table tr.today-row td{
  background:rgba(96,165,250,.045);
}
.mwc-watch-table tr.red-circle-row td:first-child{
  box-shadow:inset 4px 0 0 #ef4444;
}
.mwc-watch-table .date-cell{
  width:92px;
  min-width:92px;
}
.mwc-watch-table .date-cell strong{
  display:block;
  color:var(--text);
  font-size:14.5px;
  font-weight:900;
  line-height:1.35;
}
.mwc-watch-table .date-cell span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12.5px;
}
.mwc-watch-table .time-cell{
  width:92px;
  min-width:92px;
  color:rgba(230,237,243,.88);
  white-space:nowrap;
}
.mwc-watch-table .level-cell{
  width:118px;
  min-width:118px;
}
.level-label{
  display:inline-block;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(255,255,255,.045);
  padding:4px 8px;
  border-radius:4px;
  font-size:12px;
  line-height:1.1;
  font-weight:850;
  white-space:nowrap;
}
.level-label.very-high{color:#fecaca;border-color:rgba(239,68,68,.36);background:rgba(239,68,68,.12)}
.level-label.high{color:#ffedd5;border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.11)}
.level-label.medium-high{color:#dbeafe;border-color:rgba(96,165,250,.35);background:rgba(96,165,250,.11)}
.level-label.medium{color:#dcffe9;border-color:rgba(16,185,129,.30);background:rgba(16,185,129,.10)}
.level-label.low{color:#cbd5e1;border-color:rgba(148,163,184,.24);background:rgba(148,163,184,.08)}
.event-cell{
  width:210px;
  min-width:210px;
}
.event-title{
  color:var(--text);
  font-size:15px;
  font-weight:900;
  line-height:1.35;
  margin-bottom:7px;
}
.event-category-text{
  display:block;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.3;
}
.why-cell{width:330px;min-width:330px}
.risk-on-cell,.risk-off-cell{width:270px;min-width:270px}
.symbols-cell{
  width:150px;
  min-width:150px;
  font-family:var(--mono);
  font-size:12.5px;
  line-height:1.7;
  color:#dbeafe;
  font-weight:750;
  word-spacing:6px;
}
.mwc-loading{
  text-align:center;
  color:var(--muted)!important;
  padding:30px!important;
}
@media(max-width:820px){
  .mwc-table-head{display:block;padding:20px 18px 14px}
  .mwc-count{margin-top:10px;display:inline-block}
  .mwc-watch-table{min-width:1180px}
}
@media print{
  .mwc-watch-table{min-width:0;background:#fff!important}
  .mwc-watch-table th{position:static;background:#f5f7fb!important;color:#334155!important}
  .mwc-watch-table td{color:#111827!important;border-color:#e5e7eb!important}
  .level-label{background:#fff!important;color:#111827!important;border-color:#cbd5e1!important}
  .symbols-cell,.event-title,.mwc-watch-table .date-cell strong{color:#111827!important}
}


/* ================================================================
   Market Watch Calendar · v3 restored table system
   ================================================================ */
.mwc-v2{max-width:1680px;}
.mwc-hero{margin-bottom:22px;}
.mwc-strip{margin-bottom:18px;}
.mwc-section.mwc-filters{margin-bottom:18px;}
.mwc-table-section{border-left:4px solid rgba(96,165,250,.8);}
.mwc-table-head{padding:26px 28px 20px;}
.mwc-table-head h2{font-size:28px;letter-spacing:-.02em;}
.mwc-table-head p{font-size:16px;line-height:1.55;}
.mwc-watch-table{min-width:1450px;}
.mwc-watch-table th{font-size:12px;letter-spacing:.14em;color:#b6c7df;background:rgba(3,7,18,.28);}
.mwc-watch-table td{font-size:16px;line-height:1.55;padding:20px 18px;color:#f3f7ff;vertical-align:top;}
.mwc-watch-table td.why-cell,.mwc-watch-table td.risk-on-cell,.mwc-watch-table td.risk-off-cell{max-width:340px;color:#eef4ff;}
.mwc-watch-table .date-cell strong{font-size:17px;line-height:1.35;color:#fff;}
.mwc-watch-table .date-cell span{font-size:13px;color:#b8c7dd;}
.time-cell{font-size:15px;color:#f2f6ff;white-space:nowrap;}
.level-label{display:inline-block;border-radius:3px;padding:3px 8px;font-size:12px;font-weight:900;line-height:1.25;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.035);}
.level-label.very-high{color:#ffd1d1;border-color:rgba(239,68,68,.45);background:rgba(239,68,68,.10);}
.level-label.high{color:#ffe8bf;border-color:rgba(245,158,11,.45);background:rgba(245,158,11,.08);}
.level-label.medium-high{color:#dbeafe;border-color:rgba(96,165,250,.42);background:rgba(96,165,250,.08);}
.level-label.medium{color:#d7ffe9;border-color:rgba(16,185,129,.34);background:rgba(16,185,129,.075);}
.level-label.low{color:#d7dee8;border-color:rgba(148,163,184,.28);background:rgba(148,163,184,.06);}
.event-title{font-size:16px;font-weight:900;line-height:1.35;color:#fff;margin-bottom:6px;}
.event-category-text{font-size:13px;color:#aebdd3;}
.symbols-cell{font-family:var(--mono);font-size:15px;font-weight:900;color:#f6f9ff;white-space:normal;line-height:1.65;min-width:150px;}
.mwc-watch-table tr.today-row td{background:rgba(96,165,250,.035);}
.mwc-watch-table tr.red-circle-row td:first-child{box-shadow:inset 5px 0 0 rgba(239,68,68,.85);}
.mwc-count{border-radius:4px;}
@media(max-width:900px){.mwc-watch-table{min-width:1280px}.mwc-table-head h2{font-size:24px}}
@media print{.mwc-watch-table{min-width:0}.symbols-cell{font-weight:700}.mwc-watch-table td{font-size:12px;padding:10px 8px}.mwc-watch-table th{font-size:10px}}


/* ================================================================
   Market Watch Calendar · v3.1 table polish
   ================================================================ */
.mwc-table-section{border-left:0!important;}
.mwc-table-section::before{display:none!important;}
.event-stats-line{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin-top:9px;line-height:1.45;}
.event-stats-line .mwc-num{font-size:12.5px;color:#b8c7dd;}
.event-stats-line .mwc-num strong{font-size:13px;font-weight:900;color:#f7fbff;}
.event-stats-line .mwc-num.actual.good strong{color:#8ef0c3;}
.event-stats-line .mwc-num.actual.bad strong{color:#ff9a9a;}
.event-stats-line .mwc-num.actual.neutral strong{color:#f7fbff;}
.event-stats-line .mwc-num-sep{margin:0 7px;color:rgba(184,199,221,.55);font-size:12px;}
.event-stats-line .mwc-num-period{color:rgba(184,199,221,.7);margin-left:1px;}
.symbols-cell{word-spacing:normal!important;letter-spacing:.01em;}


/* ================================================================
   Market Watch Calendar · v3.2 row bars and symbol polish
   ================================================================ */
.mwc-watch-table tr.level-row-very-high td:first-child{box-shadow:inset 5px 0 0 rgba(239,68,68,.88)!important;}
.mwc-watch-table tr.level-row-high td:first-child{box-shadow:inset 5px 0 0 rgba(245,158,11,.88)!important;}
.mwc-watch-table tr.level-row-medium-high td:first-child{box-shadow:inset 5px 0 0 rgba(96,165,250,.88)!important;}
.mwc-watch-table tr.level-row-medium td:first-child{box-shadow:inset 5px 0 0 rgba(16,185,129,.82)!important;}
.mwc-watch-table tr.level-row-low td:first-child{box-shadow:inset 5px 0 0 rgba(148,163,184,.65)!important;}
.symbols-cell{font-family:var(--mono);font-size:15px;font-weight:900;color:#f6f9ff;white-space:normal;line-height:1.6;min-width:170px;word-spacing:normal!important;letter-spacing:.01em;}
.event-stats-line:empty{display:none;}


/* ================================================================
   Market Watch Calendar · v3.3 gradient row bars + ticker spacing
   ================================================================ */
.mwc-watch-table tr.level-row-very-high td:first-child,
.mwc-watch-table tr.level-row-high td:first-child,
.mwc-watch-table tr.level-row-medium-high td:first-child,
.mwc-watch-table tr.level-row-medium td:first-child,
.mwc-watch-table tr.level-row-low td:first-child{
  box-shadow:none!important;
  position:relative;
  overflow:hidden;
}
.mwc-watch-table tr.level-row-very-high td:first-child::before,
.mwc-watch-table tr.level-row-high td:first-child::before,
.mwc-watch-table tr.level-row-medium-high td:first-child::before,
.mwc-watch-table tr.level-row-medium td:first-child::before,
.mwc-watch-table tr.level-row-low td:first-child::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  pointer-events:none;
}
.mwc-watch-table tr.level-row-very-high td:first-child::before{background:linear-gradient(180deg,rgba(239,68,68,.95),rgba(239,68,68,.18));}
.mwc-watch-table tr.level-row-high td:first-child::before{background:linear-gradient(180deg,rgba(245,158,11,.95),rgba(245,158,11,.16));}
.mwc-watch-table tr.level-row-medium-high td:first-child::before{background:linear-gradient(180deg,rgba(96,165,250,.95),rgba(96,165,250,.16));}
.mwc-watch-table tr.level-row-medium td:first-child::before{background:linear-gradient(180deg,rgba(16,185,129,.88),rgba(16,185,129,.14));}
.mwc-watch-table tr.level-row-low td:first-child::before{background:linear-gradient(180deg,rgba(148,163,184,.75),rgba(148,163,184,.12));}
.symbols-cell{
  min-width:230px!important;
  width:230px!important;
  max-width:260px!important;
  padding-right:34px!important;
  line-height:1.8!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
.symbol-token{display:inline-block;white-space:nowrap;}
.symbol-comma{display:inline;}
.event-stats-line .mwc-num-period{display:none!important;}
.mwc-watch-table th:last-child{padding-right:34px!important;}


/* ================================================================
   Market Watch Calendar · v3.4 table spacing polish
   ================================================================ */
.event-stats-line{
  gap:7px 14px!important;
}
.event-stats-line .mwc-num{
  display:inline-block;
  margin-right:12px;
}
.event-stats-line .mwc-num-sep,
.event-stats-line .mwc-num-period{
  display:none!important;
}
.symbols-cell{
  min-width:280px!important;
  width:280px!important;
  max-width:310px!important;
  padding-right:72px!important;
  padding-left:20px!important;
  line-height:1.75!important;
  box-sizing:border-box!important;
}
.symbol-token{
  display:inline!important;
  white-space:nowrap!important;
}
.symbol-comma{
  display:inline!important;
  margin-right:7px;
}
.mwc-watch-table th:last-child{
  padding-right:72px!important;
  padding-left:20px!important;
}
.mwc-watch-table tr.new-day-row td{
  border-top:10px solid #0b1220!important;
}
.mwc-watch-table tr.new-day-row td:first-child::before{
  top:10px!important;
}


/* ================================================================
   Market Watch Calendar · v3.5 risk calendar enrichment + ticker fit
   ================================================================ */
.mwc-watch-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.mwc-watch-table .col-date{width:9.5%;}
.mwc-watch-table .col-time{width:7%;}
.mwc-watch-table .col-level{width:8.5%;}
.mwc-watch-table .col-event{width:15%;}
.mwc-watch-table .col-why{width:21%;}
.mwc-watch-table .col-risk-on{width:17%;}
.mwc-watch-table .col-risk-off{width:17%;}
.mwc-watch-table .col-symbols{width:12%;}
.mwc-watch-table td{padding:18px 16px!important;}
.mwc-watch-table th{padding:13px 16px!important;}
.mwc-watch-table td.symbols-cell,
.mwc-watch-table th:last-child{
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  padding-left:18px!important;
  padding-right:38px!important;
  box-sizing:border-box!important;
}
.symbols-cell .symbols-text{
  display:block;
  white-space:normal!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  line-height:1.72!important;
}
.event-stats-line .mwc-num strong{
  padding-left:2px;
}
.event-stats-line .mwc-num.revision strong{color:#dbeafe;}
@media(max-width:1200px){
  .mwc-watch-table{min-width:1180px!important;}
}
@media print{
  .mwc-watch-table{table-layout:auto!important;min-width:0!important;}
  .mwc-watch-table td.symbols-cell{padding-right:12px!important;}
}

/* ================================================================
   Market Watch Calendar · v3.6 market-structure layer + symbol fit
   ================================================================ */
.mwc-watch-table .col-date{width:8.5%!important;}
.mwc-watch-table .col-time{width:6%!important;}
.mwc-watch-table .col-level{width:7.5%!important;}
.mwc-watch-table .col-event{width:15.5%!important;}
.mwc-watch-table .col-why{width:19%!important;}
.mwc-watch-table .col-risk-on{width:15%!important;}
.mwc-watch-table .col-risk-off{width:15%!important;}
.mwc-watch-table .col-symbols{width:13.5%!important;}
.mwc-watch-table td.symbols-cell,
.mwc-watch-table th:last-child{
  padding-left:20px!important;
  padding-right:54px!important;
}
.symbols-cell .symbols-text{
  display:block!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.75!important;
}

/* ================================================================
   Market Watch Calendar · v3.8 earnings/seasonality + print polish
   ================================================================ */
.mwc-watch-table{table-layout:fixed!important;width:100%!important;}
.mwc-watch-table .col-date{width:8%!important;}
.mwc-watch-table .col-time{width:5.5%!important;}
.mwc-watch-table .col-level{width:7%!important;}
.mwc-watch-table .col-event{width:15%!important;}
.mwc-watch-table .col-why{width:18%!important;}
.mwc-watch-table .col-risk-on{width:14%!important;}
.mwc-watch-table .col-risk-off{width:14.5%!important;}
.mwc-watch-table .col-symbols{width:18%!important;}
.mwc-watch-table td.symbols-cell,
.mwc-watch-table th:last-child{
  padding-left:22px!important;
  padding-right:42px!important;
  overflow:visible!important;
}
.symbols-cell .symbols-text{
  display:block!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.7!important;
  max-width:100%!important;
}
.event-stats-line .mwc-num,
.event-stats-line .mwc-num strong{font-size:12.5px!important;}
@media(max-width:1280px){.mwc-watch-table{min-width:1320px!important;}}
@media print{
  body{background:#0b1220!important;color:#e6edf3!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;}
  .site-header,.site-nav,footer,.mwc-hero,.mwc-strip,.mwc-stat-grid,.mwc-filters,.mwc-disclaimer{display:none!important;}
  .page.mwc-v2{max-width:none!important;width:100%!important;padding:0!important;margin:0!important;background:#0b1220!important;}
  .mwc-section{border:1px solid #253349!important;background:#111827!important;box-shadow:none!important;border-radius:8px!important;}
  .mwc-table-head{padding:16px 18px!important;border-bottom:1px solid #253349!important;}
  .mwc-table-head h2{font-size:22px!important;color:#fff!important;}
  .mwc-table-head p{font-size:11px!important;color:#b9c7dc!important;}
  .mwc-count{font-size:11px!important;color:#fff!important;border:1px solid #334155!important;background:#0f172a!important;}
  .mwc-table-wrap{overflow:visible!important;}
  .mwc-watch-table{table-layout:fixed!important;min-width:0!important;width:100%!important;border-collapse:collapse!important;}
  .mwc-watch-table th{font-size:8.5px!important;padding:7px 5px!important;background:#0f172a!important;color:#b9c7dc!important;border-bottom:1px solid #253349!important;}
  .mwc-watch-table td{font-size:9px!important;line-height:1.35!important;padding:7px 5px!important;background:#111827!important;color:#f3f7ff!important;border-bottom:1px solid #253349!important;}
  .mwc-watch-table .col-date{width:8%!important;}.mwc-watch-table .col-time{width:5.5%!important;}.mwc-watch-table .col-level{width:7%!important;}.mwc-watch-table .col-event{width:15%!important;}.mwc-watch-table .col-why{width:18%!important;}.mwc-watch-table .col-risk-on{width:14%!important;}.mwc-watch-table .col-risk-off{width:14.5%!important;}.mwc-watch-table .col-symbols{width:18%!important;}
  .event-title{font-size:10px!important}.symbols-cell,.symbols-cell .symbols-text{font-size:9px!important;line-height:1.45!important;padding-right:8px!important;}.level-label{font-size:8px!important;padding:1px 4px!important;border-radius:2px!important;}
  thead{display:table-header-group!important;} tr{break-inside:avoid!important;}
  @page{size:landscape;margin:8mm;}
}


/* ================================================================
   Market Watch Calendar · v3.9 mobile event-card layout
   Desktop table remains unchanged. Phones switch to stacked cards.
   ================================================================ */
@media(max-width:760px){
  .page.mwc-v2,
  .calendar-page,
  .mwc-page{
    width:100%!important;
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
    overflow-x:hidden!important;
  }
  .mwc-hero,
  .page-header{
    padding-left:0!important;
    padding-right:0!important;
  }
  .mwc-hero h1,
  .page-header h1{
    font-size:30px!important;
    line-height:1.08!important;
  }
  .mwc-hero p,
  .page-header p{
    font-size:14px!important;
    line-height:1.55!important;
    max-width:100%!important;
  }
  .mwc-strip,
  .calendar-note-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .mwc-stat-grid,
  #summaryGrid.summary-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .mwc-stat-card,
  #summaryGrid .summary-card{
    min-height:96px!important;
    padding:14px 15px!important;
  }
  .mwc-stat-card strong,
  #summaryGrid .summary-card strong{
    font-size:26px!important;
  }
  .mwc-filters,
  .calendar-toolbar-card{
    padding:16px!important;
  }
  .mwc-filter-grid,
  .calendar-filter-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .mwc-actions,
  .calendar-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .mwc-actions .btn,
  .calendar-actions .btn{
    width:100%!important;
    min-height:42px!important;
  }
  .mwc-section,
  .mwc-table-section{
    border-radius:8px!important;
    overflow:visible!important;
  }
  .mwc-table-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:18px 16px!important;
  }
  .mwc-table-head h2{
    font-size:23px!important;
    line-height:1.15!important;
  }
  .mwc-table-head p{
    font-size:13px!important;
    line-height:1.45!important;
  }
  .mwc-count,
  .visible-count{
    flex:0 0 auto!important;
    font-size:12px!important;
    padding:8px 9px!important;
  }
  .mwc-table-wrap{
    overflow:visible!important;
    border:0!important;
  }
  .mwc-watch-table{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    table-layout:auto!important;
    border-collapse:separate!important;
    border-spacing:0!important;
  }
  .mwc-watch-table colgroup,
  .mwc-watch-table thead{
    display:none!important;
  }
  .mwc-watch-table tbody{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
  }
  .mwc-watch-table tr{
    display:grid!important;
    grid-template-columns:1fr auto!important;
    gap:9px 14px!important;
    width:100%!important;
    min-width:0!important;
    position:relative!important;
    padding:18px 16px 18px 20px!important;
    background:rgba(255,255,255,.025)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  .mwc-watch-table tr.new-day-row td{
    border-top:0!important;
  }
  .mwc-watch-table tr.new-day-row{
    margin-top:4px!important;
  }
  .mwc-watch-table tr.level-row-very-high td:first-child::before,
  .mwc-watch-table tr.level-row-high td:first-child::before,
  .mwc-watch-table tr.level-row-medium-high td:first-child::before,
  .mwc-watch-table tr.level-row-medium td:first-child::before,
  .mwc-watch-table tr.level-row-low td:first-child::before{
    display:none!important;
  }
  .mwc-watch-table tr::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:5px;
    pointer-events:none;
  }
  .mwc-watch-table tr.level-row-very-high::before{background:linear-gradient(180deg,rgba(239,68,68,.95),rgba(239,68,68,.18));}
  .mwc-watch-table tr.level-row-high::before{background:linear-gradient(180deg,rgba(245,158,11,.95),rgba(245,158,11,.16));}
  .mwc-watch-table tr.level-row-medium-high::before{background:linear-gradient(180deg,rgba(96,165,250,.95),rgba(96,165,250,.16));}
  .mwc-watch-table tr.level-row-medium::before{background:linear-gradient(180deg,rgba(16,185,129,.88),rgba(16,185,129,.14));}
  .mwc-watch-table tr.level-row-low::before{background:linear-gradient(180deg,rgba(148,163,184,.75),rgba(148,163,184,.12));}
  .mwc-watch-table td{
    display:block!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#f3f7ff!important;
    font-size:14px!important;
    line-height:1.55!important;
  }
  .mwc-watch-table .date-cell{
    grid-column:1 / 2!important;
    grid-row:1!important;
    padding-left:0!important;
  }
  .mwc-watch-table .date-cell strong{
    font-size:19px!important;
    line-height:1.2!important;
    color:#fff!important;
    white-space:normal!important;
  }
  .mwc-watch-table .date-cell span{
    font-size:13px!important;
    color:#aebdd3!important;
    margin-top:4px!important;
  }
  .mwc-watch-table .level-cell{
    grid-column:2 / 3!important;
    grid-row:1!important;
    justify-self:end!important;
    align-self:start!important;
    padding:0!important;
  }
  .mwc-watch-table .time-cell{
    grid-column:1 / 2!important;
    grid-row:2!important;
    color:#d7e3f4!important;
    font-size:15px!important;
    padding-top:0!important;
  }
  .level-label{
    border-radius:4px!important;
    padding:5px 8px!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  .mwc-watch-table .event-cell{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    padding-top:6px!important;
  }
  .event-title{
    font-size:21px!important;
    line-height:1.22!important;
    margin-bottom:6px!important;
    color:#fff!important;
  }
  .event-category-text{
    font-size:13px!important;
    color:#aebdd3!important;
  }
  .event-stats-line{
    margin-top:9px!important;
    display:flex!important;
    flex-wrap:wrap!important;
    gap:7px 12px!important;
  }
  .event-stats-line .mwc-num,
  .event-stats-line .mwc-num strong{
    font-size:13px!important;
  }
  .mwc-watch-table .why-cell,
  .mwc-watch-table .risk-on-cell,
  .mwc-watch-table .risk-off-cell,
  .mwc-watch-table .symbols-cell{
    grid-column:1 / -1!important;
    margin-top:6px!important;
    padding-top:10px!important;
    border-top:1px solid rgba(255,255,255,.08)!important;
  }
  .mwc-watch-table .why-cell::before,
  .mwc-watch-table .risk-on-cell::before,
  .mwc-watch-table .risk-off-cell::before,
  .mwc-watch-table .symbols-cell::before{
    display:block;
    margin-bottom:5px;
    font-family:var(--mono);
    font-size:10px;
    letter-spacing:.12em;
    text-transform:uppercase;
    font-weight:900;
    color:#8fb6ff;
  }
  .mwc-watch-table .why-cell::before{content:"Why it matters";}
  .mwc-watch-table .risk-on-cell::before{content:"Risk-on";color:#8ef0c3;}
  .mwc-watch-table .risk-off-cell::before{content:"Risk-off";color:#ffb4b4;}
  .mwc-watch-table .symbols-cell::before{content:"Symbols";color:#ffd37a;}
  .mwc-watch-table .why-cell,
  .mwc-watch-table .risk-on-cell,
  .mwc-watch-table .risk-off-cell{
    font-size:14.5px!important;
    line-height:1.55!important;
  }
  .mwc-watch-table td.symbols-cell{
    padding-left:0!important;
    padding-right:0!important;
  }
  .symbols-cell .symbols-text{
    display:block!important;
    font-size:13.5px!important;
    line-height:1.65!important;
    color:#f8fbff!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    letter-spacing:.01em!important;
  }
}

@media(max-width:390px){
  .page.mwc-v2,
  .calendar-page,
  .mwc-page{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .mwc-watch-table tr{
    padding:16px 13px 16px 18px!important;
  }
  .event-title{font-size:19px!important;}
  .mwc-watch-table .date-cell strong{font-size:18px!important;}
  .mwc-stat-grid,#summaryGrid.summary-grid{grid-template-columns:1fr!important;}
}

/* Market Watch Calendar · About this page card */
.about-page-card{
  margin-top:24px;
  border-left:0!important;
}

.about-page-card .section-title{
  margin-top:4px;
}

.about-page-lead{
  max-width:none;
  width:100%;
  margin:10px 0 18px;
  color:rgba(230,237,243,.88);
  font-size:15px;
  line-height:1.7;
}

.about-page-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}

.about-page-grid article{
  border:1px solid rgba(255,255,255,.11);
  background:rgba(255,255,255,.022);
  border-radius:6px;
  padding:16px 17px;
}

.about-page-grid h3{
  margin:0 0 8px;
  color:#e6edf3;
  font-size:15px;
  line-height:1.25;
  font-weight:900;
}

.about-page-grid p,
.about-page-note{
  margin:0;
  color:rgba(230,237,243,.76);
  font-size:13.5px;
  line-height:1.65;
}

.about-page-note{
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(230,237,243,.68);
}

@media(max-width:900px){
  .about-page-grid{
    grid-template-columns:1fr;
  }
}
