/* Market context (#301). Scoped under .market-view; the shared language comes from method.css. */
.market-view .mc-barometer { border:1px solid var(--m-rule); border-radius:8px; padding:18px 20px; margin:18px 0; background:var(--m-card); }
.market-view .mc-barometer h3 { margin:0 0 8px; }
.market-view .mc-phase { font-size:1.2rem; margin:0 0 6px; }
.market-view .mc-phase[data-phase="bull"] strong { color:var(--m-accent); }
.market-view .mc-phase[data-phase="bear"] strong { color:var(--m-depart); }
.market-view .mc-rule, .market-view .mc-asof, .market-view .mc-coverage, .market-view .mc-periods, .market-view .mc-note { line-height:1.55; color:var(--m-ink-soft); }
.market-view .mc-notice { padding:12px 14px; border-radius:6px; background:var(--m-warn-ground); color:var(--m-ink); line-height:1.5; }
.market-view .mc-alert { border-left:3px solid var(--m-warn); }
.market-view .mc-link { font:inherit; color:var(--m-accent); background:none; border:0; padding:0; text-decoration:underline; cursor:pointer; min-height:0; }
.market-view .mc-table-wrap { overflow-x:auto; margin:8px 0 18px; }
.market-view .mc-table { border-collapse:collapse; width:100%; font-size:.9rem; }
.market-view .mc-table-caption { margin:18px 0 0; color:var(--m-ink-soft); font-size:.9rem; }
.market-view .mc-table th, .market-view .mc-table td { padding:8px 10px; border-bottom:1px solid var(--m-rule); text-align:left; vertical-align:top; }
.market-view .mc-table td { white-space:nowrap; }
.market-view .mc-table th small { display:block; font-weight:400; color:var(--m-ink-soft); }
.market-view .mc-table td[data-state="insufficient"] { color:var(--m-warn); }
.market-view .mc-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap:20px; }
.market-view .mc-card { border:1px solid var(--m-rule); border-radius:8px; padding:18px; background:var(--m-card); min-width:0; overflow-wrap:anywhere; }
.market-view .mc-card h3 { margin-top:0; }
.market-view .mc-tag { font-size:.75rem; font-weight:500; padding:2px 6px; border-radius:4px; background:var(--m-ground); border:1px solid var(--m-rule); vertical-align:middle; }
.market-view .mc-tag-not { background:var(--m-depart-ground); color:var(--m-depart); }
.market-view .mc-facts { display:grid; gap:6px; margin:12px 0; }
.market-view .mc-facts > div { display:grid; grid-template-columns:minmax(120px, 1fr) 2fr; gap:4px 12px; padding:6px 0; border-bottom:1px solid var(--m-rule); }
.market-view .mc-facts dt { font-weight:600; }
.market-view .mc-facts dd { margin:0; font-variant-numeric:tabular-nums; }
.market-view .mc-departure { color:var(--m-depart); font-weight:600; }
/* The chart sits flat inside its card: a second bordered panel would cost a phone a sixth of its width. */
.market-view .mc-card .chart-panel { border:0; padding:0; margin:14px 0 0; background:none; box-shadow:none; }
.market-view .chart-axis { font-size:14px; }
.market-view .chart-axis-inside { paint-order:stroke; stroke:var(--m-card, #fff); stroke-width:3px; }
@media (max-width:760px) {
  .market-view .mc-facts > div { grid-template-columns:1fr; }
  .market-view .chart-axis { font-size:24px; }
  .market-view .mc-barometer, .market-view .mc-card { padding:12px; }
}
/* The Watchlist footer's way in (#301), outside the market view's scope. */
.market-open-link { font:inherit; color:inherit; background:none; border:0; padding:8px 0; min-height:44px; text-decoration:underline; cursor:pointer; text-align:left; }
/* Manual economic events (#348): a bordered panel above the context, labels never hidden on a phone. */
.market-view .economic-events { border:1px solid var(--m-rule); border-radius:8px; padding:18px 20px; margin:18px 0; background:var(--m-card); overflow-wrap:anywhere; }
.market-view .economic-events h2 { margin-top:0; }
.market-view .economic-events h3 { margin:16px 0 6px; }
.market-view .ee-source, .market-view .ee-fresh, .market-view .ee-meta, .market-view .ee-ref, .market-view .ee-local { line-height:1.5; color:var(--m-ink-soft); }
.market-view .ee-manual, .market-view .ee-empty { padding:10px 12px; border-radius:6px; background:var(--m-warn-ground); color:var(--m-ink); line-height:1.5; }
.market-view .ee-provisional { display:block; font-size:.9rem; color:var(--m-depart); }
.market-view .ee-window { display:grid; gap:8px; margin:12px 0; }
.market-view .ee-window-form, .market-view .ee-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:end; }
.market-view .ee-window-form input { width:6em; }
.market-view .ee-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.market-view .ee-event { border-top:1px solid var(--m-rule); padding-top:10px; display:grid; gap:4px; }
.market-view .ee-when { font-variant-numeric:tabular-nums; }
.market-view .ee-form { display:grid; gap:10px; grid-template-columns:repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin:10px 0; }
.market-view .ee-form label { display:grid; gap:4px; }
.market-view .ee-form select { max-width:100%; }
.market-view .ee-timing { display:flex; gap:16px; border:0; padding:0; margin:0; }
.market-view .ee-timing label { display:flex; align-items:center; gap:6px; min-height:44px; }
.market-view .ee-timed:not([hidden]) { display:contents; }
.market-view .ee-why, .market-view .ee-fault { color:var(--m-depart); grid-column:1/-1; }
.market-view .ee-form .ee-actions { grid-column:1/-1; }
.market-view .ee-more summary, .market-view .ee-add summary { cursor:pointer; min-height:44px; box-sizing:border-box; padding:12px 0; font-weight:600; color:var(--m-accent); }
.market-view .economic-events button { min-height:44px; padding:6px 14px; font:inherit; }
.market-view .ee-window-form label { display:flex; align-items:center; gap:6px; }
.market-view .ee-window-form input { min-height:44px; }
.market-view [aria-invalid="true"] { outline:2px solid var(--m-depart); }
@media (max-width:760px) { .market-view .economic-events { padding:12px; } }
.market-view .ee-form input:not([type="radio"]), .market-view .ee-form select { min-height:44px; font:inherit; }
