/* TTL V2 Market Workspace UI 1.0.1 — read-only chart links */
.topbar .version{max-width:min(52vw,880px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.market-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px;padding:2px 2px 0}
.market-workspace-head h2{font-size:26px;margin:4px 0 7px}.market-workspace-head p{margin:0;color:var(--muted);max-width:760px;line-height:1.5}
.workspace-kicker{color:#63a7f5;font-size:11px;font-weight:800;letter-spacing:.11em}.workspace-state{min-width:170px;display:grid;grid-template-columns:auto 1fr;gap:3px 9px;align-items:center;padding:12px 14px;background:#111c2a;border:1px solid var(--line);border-radius:11px}.workspace-state small{grid-column:2;color:var(--muted)}
.market-metrics{grid-template-columns:repeat(4,minmax(180px,1fr))}.market-filter-panel{overflow:visible}.market-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(130px,.8fr)) auto auto;gap:12px;align-items:end;padding:14px 16px}.market-filters label{display:flex;flex-direction:column;gap:6px}.market-filters label span{font-size:10px;color:#8298af;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.market-filters input,.market-filters select{width:100%;height:38px;border:1px solid #2a3c52;border-radius:8px;background:#0e1825;color:var(--text);padding:0 11px;font:inherit;font-size:13px}.market-filters input:focus,.market-filters select:focus{outline:2px solid rgba(47,128,237,.32);border-color:#397ccc}.market-clear,.market-primary{height:38px;border:1px solid #315882;border-radius:8px;background:#17345a;color:#e8f2ff;padding:0 14px;font-weight:800;cursor:pointer}.market-clear:hover,.market-primary:hover{background:#1d4678}.market-primary{display:inline-flex;align-items:center;margin-top:12px}.market-visible{display:flex;flex-direction:column;min-width:55px;align-items:center}.market-visible strong{font-size:20px}.market-visible span{font-size:10px;color:var(--muted);text-transform:uppercase}
.market-table th,.market-table td{vertical-align:middle}.market-table tbody tr{transition:background .15s ease}.market-table tbody tr:hover{background:#142236}.market-table tr[hidden]{display:none}.market-subvalue{display:block;color:var(--muted);font-size:10px;margin-top:4px}.market-signed.positive{color:var(--green)}.market-signed.negative{color:var(--red)}.freshness{display:inline-flex;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:800}.freshness.fresh{color:#67dbaa;background:rgba(53,196,141,.1)}.freshness.stale{color:#ff7b84;background:rgba(231,91,101,.1)}.regime-label{font-size:10px;color:#aec0d2}.regime-trend-up{color:#67dbaa}.regime-trend-down{color:#ff7b84}.regime-high-volatility{color:#f0bd60}.market-empty-filter{text-align:center;color:var(--muted);padding:28px}
.watch-toggle{width:31px;height:31px;display:grid;place-items:center;border:1px solid #30445d;border-radius:8px;background:#111d2b;color:#758aa1;font-size:20px;line-height:1;cursor:pointer}.watch-toggle:hover,.watch-toggle.active{color:#f0bd60;border-color:#997436;background:rgba(215,165,74,.1)}.watch-star{color:#f0bd60;font-size:22px}.watchlist-empty .placeholder-body{padding:48px 20px}
.market-symbol-link{display:inline;color:#f5f9ff;font-size:15px;font-weight:900;text-decoration:none}.market-symbol-link span{display:none}.market-symbol-link:hover,.market-symbol-link:focus-visible{color:#fff;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}.market-symbol-link:focus-visible{outline:2px solid rgba(99,167,245,.55);outline-offset:3px}
.market-help-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.market-help-grid>div{padding:14px;background:#101a28;border:1px solid #23344a;border-radius:9px}.market-help-grid strong{font-size:12px}.market-help-grid p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.market-map-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr)}.market-map-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:10px;padding:14px}.market-tile{position:relative;min-height:122px;padding:13px;border:1px solid #314258;border-radius:10px;background:#111d2b;overflow:hidden}.market-tile:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.13;background:linear-gradient(140deg,transparent 40%,currentColor)}.market-tile .watch-toggle{position:absolute;right:8px;top:8px;width:27px;height:27px;font-size:17px;z-index:1}.tile-long{color:#67dbaa;background:rgba(53,196,141,.075)}.tile-short{color:#ff7b84;background:rgba(231,91,101,.075)}.tile-neutral{color:#9eb0c2}.readiness-ring-ready{box-shadow:inset 0 0 0 1px rgba(53,196,141,.55)}.readiness-ring-developing{box-shadow:inset 0 0 0 1px rgba(215,165,74,.48)}.readiness-ring-blocked{opacity:.68}.market-tile-top{display:flex;flex-direction:column;gap:5px;padding-right:31px}.market-tile-top strong{color:var(--text);font-size:14px}.market-tile-top span{font-size:10px;font-weight:800}.market-tile-price{color:var(--text);font-size:18px;font-weight:800;margin:13px 0}.market-tile-meta{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#93a6ba;font-size:9px;white-space:nowrap}.distribution-list{display:flex;flex-direction:column;gap:15px}.distribution-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:11px}.distribution-track{height:6px;background:#0d1622;border-radius:999px;overflow:hidden}.distribution-track i{display:block;height:100%;min-width:3px;background:linear-gradient(90deg,#286fc2,#55a0f2);border-radius:inherit}.market-legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.market-legend span{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800}.market-legend i{width:10px;height:10px;border-radius:3px}.legend-long{background:var(--green)}.legend-short{background:var(--red)}.legend-neutral{background:#71869e}.market-legend p{flex:1;min-width:300px;margin:0;color:var(--muted);font-size:12px}
@media(max-width:1450px){.market-map-grid{grid-template-columns:repeat(3,minmax(145px,1fr))}.market-filters{grid-template-columns:repeat(3,1fr)}.market-visible{align-items:flex-start}}
@media(max-width:1100px){.market-workspace-head{flex-direction:column}.workspace-state{width:100%}.market-map-layout{grid-template-columns:1fr}.market-map-grid{grid-template-columns:repeat(3,1fr)}.market-help-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.market-metrics{grid-template-columns:1fr}.market-filters{grid-template-columns:1fr}.market-map-grid{grid-template-columns:repeat(2,minmax(120px,1fr));padding:10px}.market-help-grid{grid-template-columns:1fr}.market-workspace-head h2{font-size:22px}.market-legend p{min-width:100%}}
/* Scoped source information; keep complete version text readable. */
[data-market-version] .version{display:block;max-width:none;white-space:normal;overflow:visible;overflow-wrap:anywhere;margin-top:8px}
/* Market workspace: signed movement and an immediately visible heatmap. */
.market-source-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;padding:14px 16px;font-size:12px}
.market-source-line>strong{font-size:13px}.market-source-line>span{color:#a9bacd}.market-source-line>details{position:relative}
.market-source-line>details[open]{flex-basis:100%}.market-source-line>details summary{cursor:pointer}
.market-change{display:inline-block;font-size:12px;font-weight:800;padding:5px 8px;border-radius:6px;white-space:nowrap}
.change-up{color:#72e0b2;background:rgba(20,160,108,.17)}.change-down{color:#ff7b84;background:rgba(210,48,67,.18)}
.change-flat,.change-unknown{color:#a9bbcd;background:rgba(117,135,154,.1)}
.market-analysis-missing{color:#9aabbc}.market-table .ticker-chart-link{white-space:nowrap}
.market-map-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.market-group{display:flex;justify-content:space-between;gap:10px;padding:9px 12px;border:1px solid #314258;border-radius:7px;font-size:12px;text-decoration:none;color:#afbed0}
.market-group span{font-weight:800}.market-group:hover{outline:1px solid currentColor}
.group-up{color:#66edb2;background:rgba(20,160,108,.14);border-color:#275440}.group-down{color:#ff919c;background:rgba(210,48,67,.14);border-color:#66333e}
.market-heat-legend{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px;color:#a9bacd;font-size:10px}
.market-heat-legend>span:first-child{font-weight:800;margin-right:5px}.market-heat-legend small{margin-left:auto;font-size:10px}
.legend-heat{padding:4px 8px;border-radius:3px;color:#fff;font-weight:700}
.heat-negative{background:#b52c3e}.heat-negative-soft{background:#63303a}.heat-zero{background:#263647}.heat-positive-soft{background:#245743}.heat-positive{background:#138158}
.heatmap-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:8px;padding:12px}
.heat-tile{min-height:110px;padding:12px 10px 10px;background:rgba(var(--heat-rgb),var(--heat-alpha));border-color:rgba(var(--heat-rgb),.9);color:#f4f8fc}
.heat-tile:before{display:none}.heat-tile:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.heat-tile .ticker-chart-link{display:inline-block;background:none;border:none;padding:0;font-size:12px;color:#fff;max-width:calc(100% - 22px);white-space:normal;overflow-wrap:anywhere}
.heat-tile .ticker-chart-link:hover{text-decoration:underline}.heat-tile .watch-toggle{width:23px;height:23px;right:6px;top:6px;font-size:15px}
.heat-tile-change{font-size:22px;font-weight:850;letter-spacing:-.03em;margin:10px 0 8px;white-space:nowrap}
.heat-tile-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap;font-size:9px}
.heat-freshness{color:#d7e5e8;font-size:9px}.heat-freshness.is-stale{color:#ffd67c;font-weight:800}
.heat-table-link{color:#e1eef5;text-decoration:none}.heat-table-link:hover{text-decoration:underline}
.heat-unknown,.heat-flat{border-color:#46596d;color:#a9bbcd}.heat-unknown .heat-tile-change,.heat-flat .heat-tile-change{color:#a9bbcd}
@media(max-width:760px){.market-map-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.heatmap-grid{grid-template-columns:repeat(2,minmax(120px,1fr));gap:7px;padding:9px}.market-source-line{gap:8px 12px}.market-heat-legend small{margin-left:0;flex-basis:100%}.market-group{font-size:11px}.heat-tile-change{font-size:21px}}
