.market-page { padding-top: 27px; }
.market-heading, .market-actions, .monitor-head, .monitor-tools, .monitor-foot, .activity-board header, .feed-meta, .metric-label { display: flex; align-items: center; }
.market-heading, .monitor-tools, .monitor-foot, .activity-board header, .feed-meta { justify-content: space-between; }
.market-heading { gap: 16px; margin-bottom: 22px; }
.market-heading h1, .directory-mast h1 { font-size: clamp(29px, 2.5vw, 38px); font-weight: 650; line-height: 1.12; letter-spacing: -.055em; }
.market-heading p, .directory-mast p { margin-top: 7px; font-size: 13px; color: var(--muted); }
.market-actions { gap: 16px; flex: none; }
.market-actions time { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.market-actions .primary { padding: 8px 13px; }
.market-page .panel { border-radius: 8px; }
.market-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-block: 18px; }
.market-metric { min-width: 0; padding-inline: clamp(14px,1.6vw,25px); }
.market-metric + .market-metric { border-left: 1px solid var(--line); }
.metric-label { gap: 7px; color: var(--muted); font-size: 12px; font-weight: 550; }
.metric-label svg { color: var(--blue-text); }
.market-metric:nth-child(2) svg { color: var(--positive); }
.market-metric:nth-child(3) svg { color: #846bc3; }
.market-metric:nth-child(4) svg { color: var(--accent-text); }
.market-metric strong, .plot-total strong, .directory-mast dd { display: block; font-size: 32px; line-height: 1.15; letter-spacing: -.055em; font-weight: 630; font-variant-numeric: tabular-nums; }
.market-metric strong { margin: 7px 0 3px; }
.market-metric:hover strong { color: var(--blue-text); }
.market-metric small { font-size: 11px; color: var(--muted); }
.market-metric small b { font-weight: 650; color: var(--positive-text); }
.market-columns { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(278px, 1fr); gap: 18px; margin-top: 20px; align-items: start; }
.monitor-head { min-height: 56px; gap: 8px; padding: 12px 18px; }
.monitor-head h2, .activity-board h2 { font-size: 16px; font-weight: 650; letter-spacing: -.035em; }
.monitor-head .text-link { margin-left: auto; }
.section-symbol { display: flex; align-items: center; color: var(--ink); }
.monitor-tools { padding: 0 18px 13px; gap: 8px; }
.scope-switch, .brief-period { display: inline-flex; gap: 2px; padding: 2px; border-radius: 5px; }
.scope-switch { border: 1px solid var(--line); background: var(--bg); }
.scope-switch button, .brief-period button { border: 0; padding: 5px 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 550; border-radius: 3px; }
.scope-switch button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px #15232e2a; }
.market-search { display: inline-flex; align-items: center; gap: 5px; padding: 0 4px 0 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); max-width: 47%; }
.market-search input { width: 108px; min-width: 0; border: 0; padding: 6px 0; font-size: 11px; background: transparent; }
.market-search button { padding: 4px; border: 0; background: transparent; color: var(--muted); }
.monitor-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 13px; }
.monitor-table th, .monitor-table td { padding: 0 12px; text-align: right; }
.monitor-table th:first-child, .monitor-table td:first-child { padding-left: 18px; text-align: left; }
.monitor-table th:last-child, .monitor-table td:last-child { padding-right: 18px; }
.monitor-table th { height: 34px; background: var(--bg); font-size: 10.5px; font-weight: 550; color: var(--muted); border-block: 1px solid var(--line); white-space: nowrap; }
.monitor-table th button { border: 0; padding: 5px 0; background: transparent; color: inherit; font: inherit; }
.monitor-table th button span { margin-left: 4px; font: 11px system-ui; }
.monitor-table th[aria-sort] { color: var(--ink); }
.monitor-table td { height: 54px; border-bottom: 1px solid var(--line); }
.monitor-table tr:hover td { background: var(--blue-soft); }
.monitor-table td:nth-child(2) { font-weight: 650; }
.monitor-identity { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; }
.monitor-identity .software-badge { width: 31px; height: 31px; font-size: 9px; }
.monitor-identity strong { display: block; font-size: 13px; font-weight: 630; line-height: 1.25; }
.monitor-identity small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.monitor-identity:hover strong { color: var(--blue-text); text-decoration: underline; }
.week-volume { color: var(--positive-text); }
.monitor-spark { width: 65px; height: 22px; color: var(--positive); }
.monitor-spark polyline { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.monitor-foot { min-height: 39px; padding: 8px 18px; gap: 8px; color: var(--muted); font-size: 11px; }
.market-page .text-link { font-size: 11px; }
.market-side { display: grid; gap: 16px; min-width: 0; }
.activity-board { padding: 17px 18px 14px; border: 1px solid #2a3b56; border-radius: 8px; color: #f6f9ff; background: #192a45; }
.activity-board header { gap: 5px; }
.activity-board h2 { display: flex; align-items: center; gap: 7px; font-size: 14px; white-space: nowrap; }
.activity-board h2 svg { color: #9dbaff; }
.brief-period { gap: 1px; background: #101e33; }
.brief-period button { min-width: 24px; padding: 4px 5px; font-size: 9px; color: #b8c7df; }
.brief-period button[aria-pressed="true"] { color: #fff; background: #415572; }
.brief-period button:focus-visible { outline-color: #b8cfff; }
.plot-total { display: flex; align-items: baseline; gap: 7px; margin-block: 12px 9px; font-size: 11px; color: #bdcbe0; }
.plot-total strong { color: #fff; font-size: 31px; }
.plot-grid { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; }
.plot-scale, .plot-dates { display: flex; justify-content: space-between; color: #acbcd4; font-size: 9px; font-variant-numeric: tabular-nums; }
.plot-scale { flex-direction: column; text-align: right; height: 92px; line-height: 1; }
.volume-plot { display: block; width: 100%; height: 92px; overflow: visible; }
.plot-dates { margin-top: 5px; }
.plot-guide { fill: none; stroke: #536880; stroke-width: .8; stroke-dasharray: 2 4; }
.plot-line { fill: none; stroke: #91b2ff; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.feed-panel .monitor-head { min-height: 47px; border-bottom: 1px solid var(--line); }
.signal-feed { padding: 5px 16px 8px; }
.signal-feed button { display: flex; position: relative; width: 100%; gap: 10px; padding: 9px 0; border: 0; text-align: left; background: none; }
.feed-marker { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #497adb; margin-top: 5px; }
.signal-feed button:nth-child(2) .feed-marker { background: #29977a; }
.signal-feed button:nth-child(3) .feed-marker { background: #a17ccc; }
.signal-feed button:nth-child(4) .feed-marker { background: #c6933b; }
.signal-feed button:not(:last-child)::after { content: ""; position: absolute; left: 3px; width: 1px; top: 25px; bottom: -9px; background: var(--line); }
.feed-record { flex: 1; min-width: 0; }
.feed-meta { gap: 8px; font-size: 10px; color: var(--muted); }
.feed-meta b { font-weight: 560; }
.feed-record > strong { display: block; margin: 2px 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.signal-feed button:hover strong { color: var(--blue-text); text-decoration: underline; }
.feed-record small { display: block; color: var(--muted); font-size: 10.5px; }
.market-lower { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-block: 18px; }
.market-lower .editorial-link { padding: 10px 18px; }
.directory-mast { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 15px; margin: 24px 0; }
.directory-back { color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 2px; margin-bottom: 10px; }
.directory-back:hover { color: var(--blue-text); }
.directory-mast dl { display: flex; gap: 20px; margin: 0; }
.directory-mast dl div { display: grid; padding-left: 16px; border-left: 1px solid var(--line); }
.directory-mast dt { color: var(--muted); font-size: 11px; }
.directory-mast dd { grid-row: 1; margin: 0; font-size: 25px; }
.directory-page .directory-toolbar { padding: 14px; }
.directory-page .directory-table td { padding-block: 10px; }
.directory-card .compare-check { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 12px; }
@media (min-width: 961px) and (max-width: 1260px), (min-width: 741px) and (max-width: 850px) {
  .market-columns { grid-template-columns: minmax(0,1fr); }
  .market-side { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
}
@media (max-width: 740px) {
  .market-page { padding-top: 20px; }
  .market-heading { flex-wrap: wrap; margin-bottom: 16px; }
  .market-actions { width: 100%; justify-content: space-between; }
  .market-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
  .market-metric { padding: 12px 14px; }
  .market-metric:nth-child(3) { border-left: 0; }
  .market-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .market-metric strong { font-size: 27px; margin: 4px 0 1px; }
  .market-columns, .market-lower { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 14px; }
  .monitor-head { min-height: 46px; }
  .directory-controls .with-icon { flex-basis: 100%; }
  .directory-actions { justify-content: space-between; }
}
@media (max-width: 550px) {
  .market-heading h1 { font-size: 29px; }
  .monitor-table th:nth-child(3), .monitor-table td:nth-child(3), .monitor-table th:nth-child(4), .monitor-table td:nth-child(4) { display: none; }
  .monitor-table td, .monitor-table th { padding-inline: 7px; }
  .monitor-table th:first-child, .monitor-table td:first-child { padding-left: 12px; }
  .monitor-table th:last-child, .monitor-table td:last-child { padding-right: 12px; }
  .monitor-tools, .monitor-head, .monitor-foot { padding-inline: 12px; }
  .monitor-identity { gap: 7px; }
  .monitor-spark { width: 49px; }
  .scope-switch button { padding: 6px; }
  .market-search input { width: 89px; }
  .market-side { gap: 14px; }
  .directory-controls > * { flex-basis: 100%; }
}
