/* A shared reading rhythm for discovery and the market workspace. */
:root{--product-control:color-mix(in srgb,var(--text) 5%,var(--panel));--product-focus:var(--zena-ink,#9873d7)}
:root[data-tier=free] #main .zc-overview.zn-directory-mode{padding:20px 22px 28px!important}
.zn-market-directory{gap:30px 26px}
.zn-topic-section{border-top:2px solid var(--category-color)}
.zn-topic-section>header{padding:16px 0 13px;margin:0}
.zn-topic-section h2{font-size:24px;font-weight:550;letter-spacing:-.5px}
.zn-topic-dot{display:none}
.zn-topic-section>header>button{border:0;padding:8px 0 8px 12px;font-size:12px}
.zn-topic-section>header>button:hover{color:var(--category-color)}

/* Image and fallback share the same centered backplate while artwork loads. */
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zart{display:inline-grid!important;place-items:center;align-self:start;width:34px!important;height:34px!important;min-width:34px;opacity:1!important;visibility:visible!important;background:#f6f6f5!important;color:#29272e;border:1px solid #ffffff20!important;border-radius:5px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zart>b{display:grid!important;place-items:center;inset:0;font-size:13px;font-weight:500}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zart:has(img[src])>b{display:none!important}
:root[data-tier=free] #main .zart img{object-fit:contain;object-position:center}

/* Question and activity above; outcome actions and observed history below. */
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event{padding:15px 0!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading{grid-template-columns:34px minmax(0,1fr) auto 54px!important;grid-template-rows:auto!important;gap:8px 12px!important;align-items:start!important;min-height:34px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-title{grid-column:2!important;grid-row:1!important;font-size:17px!important;font-weight:500!important;line-height:1.35!important;letter-spacing:-.2px;padding:0!important;text-align:left;min-height:34px;align-self:center}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zc-event-stats{grid-column:3!important;grid-row:1!important;justify-self:end!important;align-items:flex-end;gap:5px;margin:0!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-stats>span{gap:6px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-stats>b{font-size:11px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zc-bookmark{grid-column:4!important;grid-row:1!important;min-height:28px;align-self:start;justify-content:flex-end;gap:6px;font-size:11px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-metric{font-size:11px;padding:2px 5px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event>.zc-event-bottom{margin:10px 0 0!important;grid-template-columns:minmax(0,1fr) minmax(165px,41%)!important;grid-template-rows:minmax(56px,auto) auto!important;gap:8px 16px!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-contracts{align-self:center;align-items:center!important;gap:7px!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-contracts button[data-zc-id]{font-size:13px!important;padding:7px 9px!important;min-height:34px!important;border:1px solid var(--line)!important;background:transparent!important;border-radius:4px!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-contracts button[data-zc-id]:hover{border-color:var(--category-color,var(--product-focus))!important;background:var(--product-control)!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event>.zc-event-bottom>.zc-row-trace{height:62px!important}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-footer{margin:0!important;width:100%!important;gap:14px;min-height:30px}
:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-footer>.zc-context-button,:root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-more-outcomes{font-size:12px}

/* The open-market menu appears after a market has actually been opened. */
.zc-workspaces[data-empty=true]{display:none}
.zc-workspaces summary{font-size:12px}
.zc-home-tabs>.zc-workspaces{background:transparent;box-shadow:none;align-self:center}
.zc-home-tabs .zc-workspaces summary{height:34px;padding:0 11px;gap:9px;border-radius:5px;background:var(--panel);color:var(--text);border-color:var(--line);font-weight:500}
.zc-home-tabs .zc-workspaces summary:after{display:none}
.zc-workspace-icon{width:17px;height:17px;flex:none}.zc-workspace-chevron{width:12px;height:12px;flex:none;transition:transform 140ms ease}
.zc-workspaces[open] .zc-workspace-chevron{transform:rotate(180deg)}
.zc-workspaces summary>.zc-workspace-count{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border:1px solid var(--line);border-radius:4px;background:var(--panel2);font:11px var(--sans);font-variant-numeric:tabular-nums}
.zc-workspaces .zc-workspace-list{top:calc(100% + 8px);width:min(440px,calc(100vw - 32px));padding:0;border:1px solid var(--line);border-radius:7px;box-shadow:0 12px 32px #0005;background:var(--panel);color:var(--text);overflow:auto;max-height:min(480px,65vh)}
.zc-workspace-list>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid var(--line);font:11px var(--sans)}
.zc-workspace-list>header strong{font-weight:500;font-size:12px}
.zc-workspace-entry{display:flex;align-items:stretch;gap:6px;padding:5px 7px;border-bottom:1px solid var(--line)}.zc-workspace-entry:last-child{border-bottom:0}
.zc-workspace-entry>button[data-zc-tab]{flex:1;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;min-width:0;min-height:53px;padding:8px;border:0;border-radius:4px;background:transparent;color:var(--text);cursor:pointer}
.zc-workspace-entry .zc-market-tab-copy{min-width:0;display:grid;gap:5px}.zc-workspace-entry .zc-market-tab-copy small{font:11px/1.35 var(--sans);white-space:normal;overflow-wrap:anywhere}.zc-workspace-entry .zc-market-tab-copy b{font:500 13px/1.3 var(--sans)}
.zc-workspace-go{font:15px var(--sans);flex:none}
.zc-workspace-close{align-self:center;flex:none;width:30px;height:32px;padding:0;border:0;border-radius:4px;background:none;color:var(--text);font:19px var(--sans);cursor:pointer}
.zc-workspace-entry>button:hover{background:var(--panel2)}.zc-workspace-entry>button:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
@media(max-width:600px){.zc-home-tabs .zc-workspaces summary{min-height:36px;font-size:12px;gap:7px}.zc-workspace-list .zc-workspace-entry>button[data-zc-tab]{min-height:58px}.zc-workspace-close{width:36px;height:40px}}
.zc-category-bar{min-height:48px}
.zc-category-bar button{font-size:13px!important}
.zc-category-bar .zc-mode-switch>button{font-weight:500}

/* Header context supports the price; it does not become a second hero. */
:root[data-tier=free] #main.zc-market-page .zmkband .zmkq{font-size:25px!important}
:root[data-tier=free] #main.zc-market-page .zmkband .zmkfair{color:var(--text)}
:root[data-tier=free] #main.zc-market-page .zc-briefing-label{color:var(--text);font-size:12px}
:root[data-tier=free] #main.zc-market-page .zc-brief-fact>small{font-size:11px}
:root[data-tier=free] #main.zc-market-page .zc-brief-coverage>.zc-stories>a{background:transparent;padding:7px 0 7px 12px!important;border-radius:0}
:root[data-tier=free] #main.zc-market-page .zc-brief-coverage>.zc-stories strong{font-size:13px!important}
:root[data-tier=free] #main.zc-market-page .zc-brief-coverage>.zc-stories span{font-size:11px}
:root[data-tier=free] #main.zc-market-page .zc-market-nav button{font-size:12px}
:root[data-tier=free] #main.zc-market-page .zc-market-nav .zc-change-outcome{border-color:transparent}
:root[data-tier=free] #main.zc-market-page .landfig>div>span{font-size:11px}
:root[data-tier=free] #main.zc-market-page .landfig b{font-size:20px}
:root[data-tier=free] #main.zc-market-page .obtab{font-size:12px}
.zc-context-tools button{font-size:12px;border-color:transparent;background:none}
.zc-context-tools button[aria-pressed=true]{border-color:var(--product-focus);background:var(--product-control)}
/* Keep chart actions inside the clipped pane; the shared chart toolbar follows them. */
:root[data-tier=free] #main.zc-market-page .zc-context-tools{position:relative;min-height:34px;height:34px;padding:3px 8px;flex:none;gap:8px}
:root[data-tier=free] #main.zc-market-page .zc-context-tools button{font-size:12px}
:root[data-tier=free] #main.zc-market-page .zc-comparison:not(:has([data-chart-kind=spot])) .pxctl-snap{top:34px!important}
:root[data-tier=free] #main.zc-market-page .zc-comparison:has([data-chart-kind=spot]) .pxctl-snap{top:66px!important}
:root[data-tier=free] #main.zc-market-page .landfig:has(>.landfi:only-child){grid-template-columns:minmax(0,1fr)}
:root[data-tier=free] #main.zc-market-page .landfig:has(>.landfi:only-child) .landfi{grid-column:1}
@media(min-width:761px) and (max-width:1250px){
 :root[data-tier=free] #main .zn-directory-mode .zc-event-heading{grid-template-columns:34px minmax(0,1fr) 54px!important}
 :root[data-tier=free] #main .zn-directory-mode .zc-event-heading>.zc-bookmark{grid-column:3!important}
 :root[data-tier=free] #main .zn-directory-mode .zc-event-heading>.zc-event-stats{grid-column:2/-1!important;grid-row:2!important;justify-self:start!important;flex-direction:row;align-items:center}
}
@media(max-width:760px){
 :root[data-tier=free] #main .zc-overview.zn-directory-mode{padding:16px!important}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading{grid-template-columns:34px minmax(0,1fr) 50px!important}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zc-bookmark{grid-column:3!important}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-heading>.zc-event-stats{grid-column:2/-1!important;grid-row:2!important;justify-self:start!important;flex-direction:row;align-items:center}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event>.zc-event-bottom{grid-template-columns:minmax(0,1fr) minmax(110px,38%)!important;gap:8px 12px!important}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-contracts button[data-zc-id]{font-size:12px!important}
 .zc-category-bar button{font-size:12px!important}
}
@media(max-width:420px){
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event>.zc-event-bottom{grid-template-columns:minmax(0,1fr)!important}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event>.zc-event-bottom>.zc-row-trace{grid-column:1!important;grid-row:2!important;height:58px!important}
 :root[data-tier=free] #main .zc-overview:not(.zn-news-mode) .zc-event-footer{grid-row:3!important}
}

/* A bid-based gap is descriptive; it is not a recommendation to cross the ask. */
:root[data-tier=free] #main.zc-market-page .zmkgap .zmkgv{color:var(--text)!important}
:root[data-tier=free] #main.zc-market-page .zmkchg.flat{display:none}
:root[data-tier=free] #main.zc-market-page .zc-brief-fact>span,
:root[data-tier=free] #main.zc-market-page .zc-brief-fact>small,
:root[data-tier=free] #main.zc-market-page .zc-coverage-label,
:root[data-tier=free] #main.zc-market-page .zc-more-coverage summary{font-size:12px}
/* Price tools, news overlay and studies share one control row. */
:root[data-tier=free] :is(#main.zc-market-page,.xpandbox) .zc-comparison.zc-integrated-tools .zc-context-tools{display:flex;position:static;border:0;height:27px;min-height:27px;padding:0;margin-left:auto;gap:2px}
:root[data-tier=free] :is(#main.zc-market-page,.xpandbox) .zc-comparison.zc-integrated-tools .zc-context-tools>span{display:none}
:root[data-tier=free] :is(#main.zc-market-page,.xpandbox) .zc-comparison.zc-integrated-tools .zc-context-tools button{padding:4px 7px;font-size:12px;white-space:nowrap}
:root[data-tier=free] :is(#main.zc-market-page,.xpandbox) .zc-comparison.zc-integrated-tools:not(:has([data-chart-kind=spot])) .pxctl-snap{top:0!important}
:root[data-tier=free] :is(#main.zc-market-page,.xpandbox) .zc-comparison.zc-integrated-tools:has([data-chart-kind=spot]) .pxctl-snap{top:32px!important}
:root[data-tier=free] :is(#main.zc-market-page,.xpandbox) .zc-comparison.zc-integrated-tools .pxctl-snap{overflow-x:auto}
:root[data-tier=free] #main.zc-market-page .zc-chart-series>header>small{font-size:11px}

/* Reading mode and saved contracts stay accessible while topics swipe on their own row. */
@media(max-width:600px){
 :root[data-tier=free] #pnlBoard>.zc-board-header{display:block;position:relative}
 .zc-board-header>.zc-ribbon{width:100%}
 .zc-board-header .zc-category-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;min-width:0;padding:0!important}
 .zc-category-bar>.zc-mode-switch{grid-column:1;grid-row:1;border:0;padding-right:0}
 .zc-category-bar>.zc-watchlist{grid-column:2;grid-row:1;margin-left:0;padding-right:50px}
 .zc-category-bar>.zc-topics{grid-column:1/-1;grid-row:2;width:100%;min-width:0;border-top:1px solid var(--line)}
 .zc-board-header>.zc-board-options{position:absolute;top:5px;right:12px}
}

/* Keep the decision controls in view on short desktop workspaces. */
@media(min-width:1101px) and (max-height:780px){
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] .tkpv{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:0}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] .tkpvb,
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] :is(.tkpvgo,.tkpvc){grid-column:1/-1}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] .tkpvs{min-height:50px;padding:5px 8px;gap:3px;font-size:11px;line-height:14px}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] .tkpvs>b{font-size:21px;line-height:22px}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] :is(.tkpvgo,.tkpvc){min-height:30px;padding:5px 8px;font-size:11px;line-height:14px}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] .tkven{grid-column:2;grid-row:4;margin:0;padding:0;align-self:center}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=c] .zc-rules-button{grid-column:1;grid-row:4;position:static;align-self:center;justify-self:start;text-align:left;margin:0}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=d] .landw{gap:3px;min-height:0!important}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=d] .landfig .landfi{flex-direction:row;align-items:baseline;gap:7px;flex-wrap:wrap}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=d] .landfig b{font-size:18px;line-height:22px}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=d] .landplot{min-height:24px}
 :root[data-tier=free] #main.zc-market-page .pane[data-slot=d] .landh{height:22px;padding:0 8px}
}

/* The live quote and model estimate share a price scale, not a trading signal. */
.zmkband>.zq-guide{grid-column:1/-1;min-width:0;border-top:1px solid var(--line);padding-top:10px;margin-top:5px;font:11px/1.4 var(--sans);color:var(--text)}
.zq-figures{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.zq-figure{display:flex;align-items:baseline;gap:8px;min-width:0}.zq-figure>span{color:var(--text-dim)}.zq-figure b{font-size:17px;font-weight:500}.zq-figure.fair{justify-content:center}.zq-figure.fair b{color:var(--modeled)}.zq-figure.ask{justify-content:flex-end}
.zq-track{height:12px;margin:8px 7px 6px;position:relative;background:linear-gradient(var(--line),var(--line)) center/100% 1px no-repeat}.zq-track i{position:absolute;top:2px}.zq-spread{height:8px;min-width:1px;background:var(--text);opacity:.15}.zq-marker{width:8px;height:8px;border:1px solid var(--text);background:var(--panel);border-radius:50%;transform:translateX(-50%)}.zq-marker.fair{background:var(--modeled);border-color:var(--modeled);border-radius:0;transform:translateX(-50%) rotate(45deg);z-index:1}
.zq-reading{display:flex;justify-content:space-between;gap:6px 18px;flex-wrap:wrap;color:var(--text-dim)}.zq-help{margin-top:4px}.zq-help summary{cursor:pointer;width:fit-content;color:var(--text-dim);font-size:10px}.zq-help summary:focus-visible{outline:2px solid var(--modeled);outline-offset:3px}.zq-help dl{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;margin:10px 0 3px}.zq-help dt{font-weight:500}.zq-help dd{margin:2px 0 0;color:var(--text-dim)}
@media(max-width:600px){.zq-figure{display:grid;gap:1px}.zq-figure.fair{text-align:center}.zq-figure.ask{text-align:right}.zq-figure b{font-size:15px}.zq-help dl{grid-template-columns:1fr}.zq-reading{font-size:10px}}

/* Keep the quote explanation in the existing price row; one principal model figure. */
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide{flex:1 1 340px;max-width:460px;min-width:0;margin:0 0 0 5px;border:0;padding:0;font:10px/1.4 var(--sans)}
:root[data-tier=free] #main.zc-market-page .zmkrow:has(>.zq-guide)>:is(.zmkfair,.zmkgap){display:none!important}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-figures{gap:8px}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-figure{display:grid;gap:1px}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-figure.fair{text-align:center}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-figure.ask{text-align:right}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-figure b{font-size:17px;line-height:22px}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-figure.fair b{font-size:22px}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-track{height:8px;margin-top:5px;margin-bottom:3px}
:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-reading{gap:2px 8px;font-size:10px}
@media(max-width:760px){:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide{flex-basis:100%;max-width:none;margin:3px 0 0}:root[data-tier=free] #main.zc-market-page .zmkrow>.zq-guide .zq-help dl{grid-template-columns:1fr}}

.bkquote-state{font:11px/1.4 var(--sans);padding:0 0 7px;color:var(--text)}

/* Optional definitions do not take height away from the chart and resting orders. */
@media(min-width:761px){
 :root[data-tier=free] #main.zc-market-page .zq-help{position:relative;z-index:30}
 :root[data-tier=free] #main.zc-market-page .zq-help[open]>dl{position:absolute;top:100%;left:0;z-index:1;width:100%;min-width:320px;max-height:min(320px,55dvh);overflow:auto;margin:6px 0 0;padding:16px;border:1px solid var(--line);border-radius:4px;background:var(--panel);box-shadow:0 8px 24px #0002;font-size:11px;line-height:1.45}
}
