.market-page { min-height: 100vh; }
.market-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 76px; }
.market-hero { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: end; margin-bottom: 24px; }
.market-hero h1 { margin: 0; color: var(--bj-ink); }
.market-hero .lead { margin: 16px 0 0; max-width: 70ch; }
.notice { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(154,123,69,.28); border-radius: 18px; background: rgba(232,220,192,.35); color: var(--bj-muted); line-height: 1.55; font-size: 13px; }
.notice strong { color: var(--bj-ink); font-size: 15px; }
.market-card { margin-top: 18px; padding: 22px; border: 1px solid var(--bj-line); border-radius: 20px; background: var(--bj-card); box-shadow: var(--bj-shadow); }
.controls-card { margin-top: 0; }
.market-controls { display: flex; align-items: end; gap: 14px; flex-wrap: wrap; }
.market-controls label { display: grid; gap: 8px; color: var(--bj-muted); font-size: 13px; font-weight: 700; }
.market-controls input { min-height: 44px; padding: 0 12px; border: 1px solid var(--bj-line); border-radius: 12px; background: #fff; color: var(--bj-ink); font: inherit; }
.status { margin: 14px 0 0; color: var(--bj-muted); font-size: 14px; }
.market-location { margin: 14px 0 0; color: var(--bj-muted); font-size: 13px; }
.market-location strong { color: var(--bj-ink); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.summary-card { display: grid; gap: 8px; margin-top: 18px; }
.summary-card span, .macro-grid span { color: var(--bj-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.summary-card strong { font-size: 22px; color: var(--bj-ink); }
.summary-card small { color: var(--bj-muted); line-height: 1.4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; color: var(--bj-ink); font-size: clamp(22px, 3vw, 30px); }
.section-heading > span { color: var(--bj-muted); font-size: 13px; text-align: right; }
.section-heading .eyebrow { margin-bottom: 8px; }
.chart-wrap { width: 100%; overflow: hidden; border-radius: 14px; background: linear-gradient(180deg, #fbfaf6, #f3efe7); }
#priceChart { display: block; width: 100%; height: 360px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; color: var(--bj-muted); font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.bull-dot { background: #27745e; } .bear-dot { background: #b4584b; } .wait-dot { background: #a18d6b; }
.macro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.macro-grid div { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #faf8f3; }
.macro-grid strong { color: var(--bj-ink); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--bj-line); text-align: left; vertical-align: middle; font-size: 13px; }
th { color: var(--bj-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--bj-ink); }
.setup { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-weight: 800; font-size: 11px; white-space: nowrap; }
.setup.bull { color: #176348; background: #e5f3ed; } .setup.bear { color: #93443a; background: #f8e8e4; } .setup.wait { color: #756448; background: #f1ebdf; }
.match { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.match.aligned { color: #176348; background: #e5f3ed; }
.match.diverged { color: #93443a; background: #f8e8e4; }
.match.mixed { color: #756448; background: #f1ebdf; }
.empty-card { color: var(--bj-muted); } .empty-card strong { color: var(--bj-ink); } .empty-card p { margin-bottom: 0; }
.disclaimer { max-width: 80ch; margin: 20px auto 0; color: var(--bj-muted); font-size: 12px; line-height: 1.6; text-align: center; }
@media (max-width: 800px) { .market-hero { grid-template-columns: 1fr; } .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .macro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .market-shell { width: min(100% - 20px, 1180px); padding-top: 28px; } .market-card { padding: 16px; border-radius: 16px; } .summary-grid { grid-template-columns: 1fr; } .market-controls .btn { width: 100%; } .section-heading { align-items: start; flex-direction: column; } .section-heading > span { text-align: left; } }
