/* Scoped Timeblock workspace. No global fetch, body height or unrelated selectors. */
.mp {
  --mp-brand:var(--tbv2-green-900,#0f4c42);
  --mp-accent:var(--tbv2-green-700,#1d6f5f);
  --mp-bg:var(--tbv2-surface,#f7f8f2);
  --mp-surface:var(--tbv2-white,#fff);
  --mp-line:var(--tbv2-line,#dfe4dc);
  --mp-ink:var(--tbv2-ink,#141712);
  --mp-muted:var(--tbv2-muted,#5d6458);
  --mp-danger:#a43e30;
  --mp-gold:var(--tbv2-gold,#c59b3d);
  --mp-radius:var(--tbv2-radius-md,16px);
  --mp-radius-sm:var(--tbv2-radius-sm,8px);
  --mp-shadow:var(--tbv2-shadow-sm,0 8px 24px #0f4c4214);
  --mp-hover:color-mix(in srgb,var(--mp-accent) 4%,var(--mp-surface));
  --mp-selected:color-mix(in srgb,var(--mp-accent) 8%,var(--mp-surface));
  --mp-soft-line:color-mix(in srgb,var(--mp-line) 65%,var(--mp-surface));
  --mp-chart-height:400px;
  color:var(--mp-ink);
  width:min(1680px,calc(100% - 48px));
  margin:24px auto 48px;
  font-size:14px;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
  position:relative;
  isolation:isolate
}
.mp *,.mp *:before,.mp *:after {
  box-sizing:border-box
}
.mp [hidden] {
  display:none!important
}
.mp h1,.mp h2,.mp h3,.mp p {
  margin:0
}
.mp h1 {
  font-size:clamp(24px,2.6vw,34px);
  line-height:1.2;
  letter-spacing:-.035em;
  font-weight:700
}
.mp h2 {
  font-size:20px;
  letter-spacing:-.025em
}
.mp h3 {
  font-size:16px
}
.mp p {
  color:var(--mp-muted)
}
.mp svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
.mp-symbols {
  position:absolute;
  width:0!important;
  height:0!important;
  overflow:hidden
}
.mp a {
  text-decoration:none;
  color:inherit
}
.mp button,.mp input,.mp textarea,.mp select {
  font:inherit
}
.mp button,.mp select {
  cursor:pointer
}
.mp button:disabled {
  opacity:.55;
  cursor:not-allowed
}
.mp :is(a,button,input,select,textarea,summary,canvas):focus-visible {
  outline:3px solid var(--mp-accent);
  outline-offset:3px
}
.mp-sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.mp-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px
}
.mp-heading {
  min-width:0
}
.mp-heading p {
  margin-top:8px;
  max-width:720px
}
.mp-overline {
  display:block;
  font-size:10px;
  font-weight:700;
  letter-spacing:.13em;
  color:var(--mp-accent);
  text-transform:uppercase;
  margin-bottom:8px
}
.mp-header-actions,.mp-actions,.mp-section-heading,.mp-stack {
  display:flex;
  align-items:center;
  gap:8px
}
.mp-header-actions {
  flex-wrap:wrap;
  justify-content:flex-end
}
.mp-context {
  border:1px solid var(--mp-line);
  background:#fff;
  border-radius:24px;
  padding:8px 14px;
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:600
}
.mp-button,.mp-icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius-sm);
  background:var(--mp-surface);
  color:var(--mp-ink);
  font-weight:600;
  line-height:1.3;
  transition:background .15s,border-color .15s,box-shadow .15s;
  white-space:normal
}
.mp-button:hover,.mp-icon-button:hover {
  background:var(--mp-hover);
  border-color:var(--mp-accent)
}
.mp-primary {
  background:var(--mp-brand);
  border-color:var(--mp-brand);
  color:var(--mp-surface)
}
.mp-primary:hover {
  background:var(--mp-accent);
  border-color:var(--mp-accent)
}
.mp-subtle {
  border-color:transparent;
  background:transparent
}
.mp-icon-button {
  min-width:44px;
  width:44px;
  padding:9px;
  flex:none
}
.mp-actions {
  flex-wrap:wrap
}
.mp-stack {
  flex-direction:column;
  align-items:stretch;
  margin-top:20px
}
.mp-message {
  position:sticky;
  top:calc(var(--tbv2-header-height,78px) + 5px);
  z-index:6;
  padding:12px 16px;
  margin-bottom:12px;
  border:1px solid var(--mp-line);
  border-left:4px solid var(--mp-accent);
  border-radius:10px;
  background:#fff;
  box-shadow:0 6px 20px #0f4c4212;
  overflow-wrap:anywhere
}
.mp-message[data-tone=error] {
  border-left-color:var(--mp-danger)
}
.mp-notice {
  padding:12px 16px;
  background:#fff9e9;
  border:1px solid #e9d9a5;
  border-radius:10px;
  color:#655024;
  margin-bottom:14px
}
.mp-tabs {
  display:flex;
  align-items:stretch;
  gap:4px;
  padding:4px;
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius);
  background:var(--mp-surface);
  margin-bottom:24px;
  overflow-x:auto;
  scrollbar-width:thin;
  overscroll-behavior-inline:contain
}
.mp-tabs button {
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  min-height:44px;
  padding:10px 16px;
  border-radius:12px;
  background:transparent;
  color:var(--mp-muted);
  white-space:nowrap;
  font-weight:600;
  font-size:13px;
  flex:none
}
.mp-tabs button[aria-selected=true] {
  background:var(--mp-brand);
  color:var(--mp-surface);
  box-shadow:var(--mp-shadow)
}
.mp-tabs button:not([aria-selected=true]):hover {
  background:var(--mp-bg)
}
.mp-layout {
  display:grid;
  grid-template-columns:230px minmax(0,1fr) 250px;
  gap:16px;
  align-items:start
}
.mp-assets {
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius);
  background:var(--mp-surface);
  box-shadow:var(--mp-shadow);
  overflow:hidden;
  position:sticky;
  top:calc(var(--tbv2-header-height,78px) + 16px)
}
.mp-assets>.mp-section-heading {
  padding:16px 16px 0
}
.mp-assets h2 {
  font-size:16px
}
.mp-section-heading {
  justify-content:space-between;
  margin-bottom:16px
}
.mp-section-heading>div {
  min-width:0
}
.mp-section-heading p {
  margin-top:6px
}
.mp-pill {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border:1px solid var(--mp-line);
  border-radius:6px;
  font-size:10px;
  font-weight:700;
  line-height:1.4;
  background:var(--mp-bg);
  max-width:100%;
  overflow-wrap:anywhere
}
.mp-pill[data-tone=negative],.mp-negative {
  color:var(--mp-danger)
}
.mp-pill[data-tone=positive] {
  color:var(--mp-accent);
  background:var(--mp-selected);
  border-color:transparent
}
.mp-quote-line .mp-pill[data-tone=negative] {
  background:color-mix(in srgb,var(--mp-danger) 7%,var(--mp-surface));
  border-color:transparent
}
.mp-positive {
  color:var(--mp-accent)
}
.mp-pill[data-tone=warning] {
  background:#fff8e5;
  border-color:#dfcc92;
  color:#796229
}
.mp-search {
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
  margin:0 12px 16px;
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius-sm);
  background:var(--mp-bg);
  color:var(--mp-muted)
}
.mp-search input {
  background:transparent;
  border:0;
  width:100%;
  min-width:0;
  min-height:44px;
  padding:12px 0;
  color:var(--mp-ink);
  outline-offset:0
}
.mp-asset-head {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--mp-muted);
  padding:0 16px 8px
}
.mp-asset-list {
  max-height:calc(100dvh - 340px);
  min-height:160px;
  overflow-y:auto;
  scrollbar-width:thin;
  overscroll-behavior:contain
}
.mp-asset-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  width:100%;
  min-height:72px;
  padding:12px 16px;
  border:0;
  border-top:1px solid var(--mp-soft-line);
  background:var(--mp-surface);
  transition:background .15s;
  text-align:left
}
.mp-asset-row:hover {
  background:var(--mp-hover)
}
.mp-asset-row[aria-pressed=true] {
  background:var(--mp-selected);
  box-shadow:inset 3px 0 var(--mp-accent)
}
.mp-asset-row:focus-visible {
  outline-offset:-3px
}
.mp-asset-row>div {
  min-width:0
}
.mp-asset-row strong {
  font-size:13px
}
.mp-asset-row small {
  display:block;
  color:var(--mp-muted);
  font-size:11px;
  line-height:1.5;
  max-width:130px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.mp-asset-numbers {
  text-align:right;
  font-variant-numeric:tabular-nums;
  font-size:12px;
  font-weight:600;
  white-space:nowrap
}
.mp-asset-numbers small {
  font-size:11px;
  font-weight:500;
  margin-top:4px;
  margin-left:auto;
  letter-spacing:.01em
}
.mp-asset-numbers .mp-positive {
  color:var(--mp-accent)
}
.mp-asset-numbers .mp-negative {
  color:var(--mp-danger)
}
.mp-asset-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-top:1px solid var(--mp-line);
  padding:8px 12px;
  font-size:10px;
  color:var(--mp-muted)
}
.mp-assets #mp-assets-close,.mp-mobile-picker {
  display:none
}
.mp-main {
  min-width:0
}
.mp-panel {
  min-width:0
}
.mp-card {
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius);
  background:var(--mp-surface);
  padding:24px;
  min-width:0;
  overflow-wrap:anywhere;
  box-shadow:var(--mp-shadow)
}
.mp-chart-card {
  padding:0;
  overflow:hidden
}
.mp-chart-toolbar {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:16px;
  padding:24px 24px 16px
}
.mp-chart-toolbar>div {
  min-width:0
}
.mp-instrument>.mp-overline {
  font-size:12px;
  letter-spacing:.06em;
  color:var(--mp-muted)
}
.mp-quote-line {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px
}
.mp-quote-line .mp-pill {
  padding:4px 8px;
  font-size:11px;
  white-space:normal
}
.mp-chart-field {
  display:grid;
  gap:8px;
  color:var(--mp-muted);
  font-size:11px;
  min-width:0
}
.mp-main-price {
  display:block;
  font-size:32px;
  letter-spacing:-.035em;
  line-height:1.15;
  font-variant-numeric:tabular-nums
}
.mp select,.mp input:not([type=checkbox]):not([type=range]),.mp textarea {
  min-height:44px;
  border:1px solid var(--mp-line);
  background:#fff;
  color:var(--mp-ink);
  border-radius:var(--mp-radius-sm);
  padding:10px 12px;
  max-width:100%;
  min-width:0
}
.mp-chart-toolbar select {
  font-size:12px;
  font-weight:600;
  background:var(--mp-bg);
  padding:8px 12px;
  min-width:70px
}
.mp-chart-status {
  padding:0 24px 16px;
  font-size:11px;
  color:var(--mp-muted);
  min-height:32px;
  overflow-wrap:anywhere
}
.mp-chart-wrap {
  position:relative;
  height:var(--mp-chart-height);
  background:var(--mp-surface);
  border-top:1px solid var(--mp-soft-line);
  width:100%
}
.mp canvas {
  display:block;
  width:100%;
  height:100%;
  touch-action:pan-y pinch-zoom
}
.mp-chart-empty {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--mp-bg);
  color:var(--mp-muted);
  padding:24px;
  pointer-events:none
}
.mp-chart-tooltip {
  position:absolute;
  top:12px;
  left:16px;
  max-width:calc(100% - 32px);
  padding:8px 12px;
  font-size:11px;
  background:var(--mp-surface);
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius-sm);
  box-shadow:var(--mp-shadow);
  pointer-events:none;
  font-variant-numeric:tabular-nums;
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px
}
.mp-chart-tooltip time {
  color:var(--mp-muted)
}
.mp-chart-tooltip span {
  white-space:nowrap
}
.mp-chart-tooltip b {
  font-weight:600;
  margin-left:4px
}
.mp-chart-controls {
  display:flex;
  align-items:center;
  gap:8px;
  border-top:1px solid var(--mp-line);
  padding:8px 16px;
  background:var(--mp-bg)
}
.mp-chart-controls .mp-button {
  padding:5px 10px;
  min-width:44px
}
.mp-chart-range {
  flex:1;
  min-width:20px
}
.mp-chart-range input {
  width:100%;
  accent-color:var(--mp-accent);
  height:44px
}
.mp-footnote {
  font-size:11px!important;
  color:var(--mp-muted)!important;
  line-height:1.55
}
.mp-chart-card>.mp-footnote {
  padding:12px 16px
}
.mp-data-details {
  border-top:1px solid var(--mp-line)
}
.mp-data-details summary {
  padding:12px 16px;
  cursor:pointer;
  font-size:12px;
  min-height:44px;
  color:var(--mp-muted);
  font-weight:600
}
.mp-table-wrap {
  overflow-x:auto;
  max-width:100%;
  overscroll-behavior-inline:contain
}
.mp table {
  width:100%;
  border-collapse:collapse;
  font-size:11px;
  line-height:1.5;
  font-variant-numeric:tabular-nums;
  text-align:left
}
.mp th,.mp td {
  padding:11px 10px;
  border-bottom:1px solid var(--mp-soft-line);
  vertical-align:top;
  overflow-wrap:anywhere
}
.mp th {
  background:var(--mp-bg);
  color:var(--mp-muted);
  font-weight:600;
  white-space:nowrap
}
.mp #mp-candle-table :is(th,td):not(:first-child) {
  text-align:right;
  white-space:nowrap
}
.mp .mp-summary {
  margin-top:16px
}
.mp-summary>p {
  font-size:13px;
  white-space:pre-wrap
}
.mp-summary .mp-footnote {
  margin-top:14px
}
.mp-intelligence-heading {
  margin-top:32px
}
.mp-intelligence {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px
}
.mp-intelligence>.mp-card:last-child {
  grid-column:1/-1
}
.mp-module {
  padding:16px
}
.mp-module h3 {
  font-size:14px
}
.mp-module .mp-section-heading {
  gap:12px
}
.mp-module-list {
  display:grid;
  gap:0;
  margin-top:10px
}
.mp-data-row {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-top:1px solid #edf0e9
}
.mp-data-row>div {
  min-width:0
}
.mp-data-row small {
  font-size:10px;
  color:var(--mp-muted);
  display:block;
  overflow-wrap:anywhere
}
.mp-data-row strong {
  font-size:12px
}
.mp-module summary {
  font-size:11px;
  cursor:pointer;
  min-height:44px;
  padding:12px 0;
  color:var(--mp-muted)
}
.mp-locked {
  display:grid;
  gap:12px;
  padding:10px 0
}
.mp-locked svg {
  width:27px;
  height:27px;
  color:var(--mp-accent)
}
.mp-locked p {
  font-size:12px
}
.mp-inspector {
  display:grid;
  gap:16px
}
.mp-inspector .mp-card {
  padding:16px
}
.mp-inspector h2 {
  font-size:24px;
  line-height:1.3;
  overflow-wrap:anywhere
}
.mp-facts {
  margin:16px 0 0
}
.mp-facts>div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--mp-soft-line);
  align-items:baseline
}
.mp-facts dt {
  color:var(--mp-muted);
  font-size:11px
}
.mp-facts dd {
  margin:0;
  font-size:12px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  text-align:right;
  overflow-wrap:anywhere
}
.mp-evidence {
  display:grid;
  gap:8px;
  font-size:11px;
  margin:16px 0;
  padding-left:12px;
  border-left:2px solid var(--mp-line)
}
.mp-evidence code {
  font-size:10px;
  word-break:break-all;
  color:var(--mp-muted)
}
.mp-plan-nudge {
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius);
  background:var(--mp-selected)
}
.mp-plan-nudge span {
  font-size:11px;
  color:var(--mp-muted)
}
.mp[data-tab]:not([data-tab=overview]) .mp-inspector {
  display:none
}
.mp[data-tab]:not([data-tab=overview]) .mp-main {
  grid-column:2/-1
}
.mp-editor-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);
  gap:16px;
  align-items:start
}
.mp-form {
  display:grid;
  gap:16px
}
.mp-form label {
  display:grid;
  gap:8px;
  font-size:12px;
  font-weight:500
}
.mp-form textarea {
  resize:vertical;
  line-height:1.6;
  width:100%;
  max-height:60dvh;
  scroll-margin-bottom:90px
}
.mp-fields {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(110px,1fr));
  gap:12px
}
.mp-fields>* {
  min-width:0
}
.mp-form fieldset {
  border:1px solid var(--mp-line);
  border-radius:10px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  padding:10px 12px
}
.mp-form legend {
  font-size:12px;
  padding:0 5px
}
.mp-check {
  display:flex!important;
  align-items:center;
  gap:8px!important;
  min-height:44px;
  cursor:pointer
}
.mp-check input {
  accent-color:var(--mp-accent);
  width:18px;
  height:18px
}
.mp-chips {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  min-height:40px
}
.mp-chip {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 9px 6px 12px;
  border:1px solid var(--mp-line);
  border-radius:8px;
  background:var(--mp-bg);
  font-size:12px
}
.mp-chip button {
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  color:var(--mp-danger);
  font-size:18px
}
.mp-record-list {
  display:grid;
  gap:12px;
  min-width:0
}
.mp-record {
  padding:16px;
  border:1px solid var(--mp-line);
  border-radius:var(--mp-radius);
  background:var(--mp-surface);
  min-width:0
}
.mp-record h3 {
  overflow-wrap:anywhere
}
.mp-record p {
  font-size:12px;
  margin:8px 0;
  white-space:pre-wrap
}
.mp-record .mp-actions {
  margin-top:12px
}
.mp-record .mp-button {
  font-size:11px;
  padding:8px 10px
}
.mp-record dl {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:12px 0
}
.mp-record dl div {
  padding:8px;
  background:var(--mp-bg);
  border-radius:7px
}
.mp-record dt {
  font-size:10px;
  color:var(--mp-muted)
}
.mp-record dd {
  margin:3px 0 0;
  font-size:12px;
  font-variant-numeric:tabular-nums
}
.mp-empty {
  padding:32px 22px;
  text-align:center;
  border:1px dashed var(--mp-line);
  border-radius:12px;
  background:#fbfcf9;
  color:var(--mp-muted);
  min-height:110px
}
.mp-empty h3 {
  color:var(--mp-ink);
  margin-bottom:8px
}
.mp-empty p {
  font-size:13px;
  max-width:480px;
  margin:0 auto
}
.mp-ai-workspace {
  display:flex;
  flex-direction:column;
  padding:0;
  min-height:560px;
  max-height:calc(100dvh - 260px);
  overflow:hidden
}
.mp-ai-context {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid var(--mp-line);
  font-size:12px;
  background:var(--mp-hover)
}
.mp-ai-context>span {
  flex:1
}
.mp-ai-result {
  padding:24px;
  flex:1;
  min-height:150px;
  overflow:auto;
  overscroll-behavior:contain;
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.8;
  overflow-wrap:anywhere
}
.mp-ai-result .mp-empty {
  border:0;
  padding:65px 20px
}
.mp-ai-result .mp-empty p {
  white-space:normal
}
.mp-sources {
  padding:0 18px;
  font-size:11px;
  max-height:100px;
  overflow:auto
}
.mp-source-item {
  border-top:1px solid var(--mp-line);
  padding:8px 0;
  word-break:break-word
}
.mp-ai-workspace>.mp-actions {
  padding:10px 16px
}
.mp-composer {
  margin:12px;
  border:1px solid var(--mp-line);
  border-radius:12px;
  background:var(--mp-surface);
  flex:none
}
.mp-composer:focus-within {
  border-color:var(--mp-accent)
}
.mp-composer>textarea {
  width:100%;
  border:0;
  padding:12px 14px;
  min-height:75px;
  max-height:150px;
  resize:vertical;
  background:transparent;
  line-height:1.5
}
.mp-composer-actions {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px 10px;
  flex-wrap:wrap
}
.mp-composer-actions>.mp-footnote {
  flex:1;
  font-size:10px!important;
  min-width:120px
}
.mp-composer-actions select {
  font-size:12px;
  max-width:170px
}
.mp-code-editor {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;
  font-size:12px!important;
  line-height:1.65!important;
  tab-size:2;
  white-space:pre;
  overflow:auto;
  color:var(--mp-brand)!important;
  background:var(--mp-bg)!important;
  min-height:330px!important
}
.mp-saved-code {
  margin-top:20px;
  grid-template-columns:repeat(2,minmax(0,1fr))
}
.mp-panel>h3 {
  margin:22px 0 12px
}
.mp-editor-grid>div>h3 {
  margin:0 0 12px
}
.mp-editor-grid>div>h3:not(:first-child) {
  margin-top:25px
}
.mp-scope-tabs {
  display:flex;
  gap:7px;
  margin-bottom:20px
}
.mp-scope-tabs button[aria-pressed=true] {
  background:var(--mp-brand);
  color:#fff;
  border-color:var(--mp-brand)
}
.mp-plan-comparison {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0 0 20px
}
.mp-plan-comparison h3 {
  margin:12px 0 9px;
  font-size:18px
}
.mp-plan-comparison p {
  font-size:12px;
  line-height:1.7
}
.mp-featured {
  border-color:var(--mp-accent);
  background:linear-gradient(155deg,#f0f7eb,#fff)
}
.mp-plan-products {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px
}
.mp-product {
  border:1px solid var(--mp-line);
  border-radius:10px;
  padding:13px;
  background:#fbfcf9
}
.mp-product .mp-price {
  font-size:21px;
  font-weight:700;
  letter-spacing:-.025em;
  display:block;
  margin:8px 0
}
.mp-product small {
  font-size:10px;
  color:var(--mp-muted);
  display:block
}
.mp-product select {
  width:100%
}
.mp-panel-plans .mp-card {
  margin-bottom:15px
}
#mp-panel-plans>.mp-card {
  margin-bottom:16px
}
#mp-quote .mp-actions {
  margin-top:18px
}
#mp-team .mp-data-row {
  align-items:center
}
#mp-team button {
  min-width:90px
}
.mp-footer {
  margin-top:28px;
  padding-top:17px;
  border-top:1px solid var(--mp-line);
  display:flex;
  align-items:start;
  gap:15px;
  justify-content:space-between;
  font-size:10px;
  color:var(--mp-muted)
}
.mp-footer>span:last-child {
  max-width:190px;
  overflow-wrap:anywhere
}
.mp-dialog {
  border:1px solid var(--mp-line);
  border-radius:18px;
  padding:24px;
  width:min(580px,calc(100vw - 30px));
  max-height:85dvh;
  overflow:auto;
  box-shadow:0 25px 90px #09271d33;
  color:var(--mp-ink);
  background:#fff
}
.mp-dialog::backdrop {
  background:#0e201b73
}
.mp-dialog .mp-actions {
  margin-top:24px;
  justify-content:flex-end
}
.mp-dialog p {
  white-space:pre-wrap
}
.mp-dialog textarea {
  width:100%;
  margin-top:14px
}
.mp-version {
  margin:12px 0;
  padding:12px;
  background:var(--mp-bg);
  border-radius:10px
}
.mp-version pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:11px
}
.mp-skeleton {
  height:60px;
  margin:8px 12px;
  border-radius:8px;
  background:linear-gradient(110deg,#f1f3eb,#fafbf7,#f1f3eb);
  background-size:200% 100%;
  animation:mp-loading 1.5s linear infinite
}
@keyframes mp-loading {
  to {
    background-position:-200% 0
  }
}
.mp-busy {
  opacity:.7;
  pointer-events:none
}
.mp-note-links {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:11px
}
.mp-stat-value {
  font-weight:700;
  font-size:18px;
  letter-spacing:-.02em
}
.mp-source-warning {
  border-left:3px solid var(--mp-gold);
  padding-left:10px
}
@media(max-width:1199px) {
  .mp {
    width:calc(100% - 32px);
    --mp-chart-height:360px
  }
  .mp-layout {
    grid-template-columns:205px minmax(0,1fr);
    gap:16px
  }
  .mp-inspector {
    grid-column:2;
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .mp-inspector .mp-plan-nudge {
    grid-column:1/-1
  }
  .mp-tabs button {
    padding:10px 13px
  }
  .mp-editor-grid {
    grid-template-columns:1fr
  }
  .mp-record-list {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .mp-editor-grid .mp-record-list {
    grid-template-columns:1fr
  }
  .mp-plan-comparison {
    grid-template-columns:1fr
  }
  .mp-plan-comparison>.mp-card {
    padding:16px;
    display:grid;
    grid-template-columns:120px 1fr;
    gap:7px 15px
  }
  .mp-plan-comparison h3 {
    margin:0
  }
  .mp-plan-comparison p {
    grid-column:2
  }
  .mp-plan-products {
    grid-template-columns:1fr
  }
  .mp-product {
    display:grid;
    grid-template-columns:1fr auto;
    gap:6px
  }
  .mp-product small {
    grid-column:1/-1
  }
  .mp-product .mp-price {
    margin:0
  }
  .mp-ai-workspace {
    max-height:calc(100dvh - 250px)
  }
}
@media(max-width:767px) {
  .mp {
    width:calc(100% - 24px);
    margin:16px auto 32px;
    --mp-chart-height:320px
  }
  .mp-header {
    align-items:flex-start;
    gap:10px;
    margin-bottom:14px
  }
  .mp-heading h1 {
    font-size:23px
  }
  .mp-heading p {
    font-size:11px;
    margin-top:5px;
    max-width:250px
  }
  .mp-overline {
    font-size:9px;
    letter-spacing:.1em
  }
  .mp-header-actions {
    gap:3px;
    max-width:160px
  }
  .mp-context {
    padding:6px 9px;
    font-size:10px;
    max-width:140px
  }
  .mp-header-actions #mp-usage-button {
    font-size:11px;
    padding:6px 8px
  }
  .mp-tabs {
    padding:3px;
    border-radius:10px;
    margin-bottom:12px;
    gap:0;
    scrollbar-width:none
  }
  .mp-tabs button {
    font-size:11px;
    gap:6px;
    padding:10px 12px
  }
  .mp-tabs svg {
    width:17px;
    height:17px
  }
  .mp-layout {
    grid-template-columns:minmax(0,1fr);
    gap:12px
  }
  .mp-main,.mp-inspector,.mp[data-tab]:not([data-tab=overview]) .mp-main {
    grid-column:1
  }
  .mp-assets {
    display:none
  }
  .mp-assets.mp-assets-open {
    display:block;
    position:fixed;
    z-index:40;
    top:calc(env(safe-area-inset-top) + 10px);
    left:10px;
    right:10px;
    bottom:calc(env(safe-area-inset-bottom) + 10px);
    box-shadow:0 0 0 100vmax #0e201b73;
    max-height:none
  }
  .mp-assets.mp-assets-open .mp-asset-list {
    max-height:calc(100dvh - 205px)
  }
  .mp-assets #mp-assets-close {
    display:inline-flex;
    margin-left:auto
  }
  .mp-assets>.mp-section-heading {
    margin-bottom:0
  }
  .mp-mobile-picker {
    display:block;
    margin-bottom:12px
  }
  .mp-mobile-picker .mp-button {
    width:100%;
    justify-content:flex-start;
    border-radius:10px
  }
  .mp-mobile-picker .mp-button>span {
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .mp-card {
    padding:16px;
    border-radius:var(--mp-radius)
  }
  .mp-chart-card {
    padding:0
  }
  .mp-chart-toolbar {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:16px;
    gap:16px
  }
  .mp-chart-toolbar>div {
    grid-column:1/-1;
    min-width:0
  }
  .mp-main-price {
    font-size:28px
  }
  .mp-chart-toolbar select {
    font-size:16px
  }
  .mp-chart-toolbar .mp-pill {
    font-size:10px
  }
  .mp-chart-status {
    padding:0 16px 12px
  }
  .mp-chart-controls {
    padding:8px
  }
  .mp-inspector {
    grid-template-columns:1fr
  }
  .mp-inspector .mp-card {
    padding:16px
  }
  .mp-intelligence {
    grid-template-columns:1fr
  }
  .mp-intelligence-heading {
    align-items:start;
    gap:10px
  }
  .mp-intelligence-heading .mp-button {
    font-size:10px;
    padding:6px 10px
  }
  .mp-intelligence-heading h2 {
    font-size:18px
  }
  .mp-section-heading {
    gap:10px;
    align-items:start
  }
  .mp-section-heading>p,.mp-section-heading>div>p {
    font-size:12px
  }
  .mp-editor-grid {
    gap:16px
  }
  .mp-record-list,.mp-saved-code {
    grid-template-columns:1fr
  }
  .mp-form label {
    font-size:12px
  }
  .mp-form input:not([type=checkbox]),.mp-form textarea,.mp-form select,.mp-composer>textarea,.mp-search input {
    font-size:16px
  }
  .mp-fields {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .mp-fields>label:last-child:nth-child(3) {
    grid-column:1/-1
  }
  .mp-chip button {
    width:44px;
    height:44px
  }
  .mp-ai-workspace {
    min-height:440px;
    max-height:calc(var(--mp-viewport-height,100dvh) - 180px)
  }
  .mp-ai-result {
    padding:17px;
    font-size:14px;
    min-height:120px
  }
  .mp-ai-result .mp-empty {
    padding:40px 10px
  }
  .mp-ai-context {
    padding:10px 12px;
    font-size:11px;
    flex-wrap:wrap
  }
  .mp-ai-context>.mp-button {
    font-size:10px;
    margin-left:auto
  }
  .mp-composer {
    margin:8px
  }
  .mp-composer>textarea {
    max-height:120px;
    min-height:72px;
    padding:10px 12px
  }
  .mp-composer-actions {
    gap:6px;
    padding:0 7px 7px
  }
  .mp-composer-actions .mp-footnote {
    order:5;
    width:100%;
    font-size:9px!important;
    min-width:0
  }
  .mp-composer-actions select {
    font-size:11px;
    max-width:135px;
    flex:1
  }
  .mp-composer-actions>.mp-button {
    margin-left:auto;
    font-size:12px
  }
  .mp-composer-actions>#mp-ai-stop {
    margin-left:0
  }
  .mp-code-editor {
    font-size:12px!important;
    min-height:290px!important
  }
  .mp-plan-comparison>.mp-card {
    display:block;
    padding:16px
  }
  .mp-plan-comparison h3 {
    margin:10px 0 6px
  }
  .mp-plan-products {
    grid-template-columns:1fr
  }
  .mp-footer {
    font-size:9px;
    flex-direction:column;
    gap:7px;
    padding-bottom:env(safe-area-inset-bottom)
  }
  .mp-message {
    top:5px;
    font-size:12px
  }
  .mp-notice {
    font-size:12px
  }
  .mp-dialog {
    padding:19px
  }
  .mp-dialog .mp-actions .mp-button {
    flex:1
  }
  .mp--focus {
    position:fixed;
    z-index:3000;
    inset:auto 0 auto 0;
    top:var(--mp-viewport-top,0px);
    height:var(--mp-viewport-height,100dvh);
    width:100%;
    max-width:none;
    margin:0;
    padding:calc(8px + env(safe-area-inset-top)) 9px calc(8px + env(safe-area-inset-bottom));
    background:var(--mp-bg);
    display:flex;
    flex-direction:column;
    overflow:hidden;
    overscroll-behavior:contain
  }
  .mp--focus>.mp-header {
    margin:0 0 8px;
    align-items:center;
    flex:none
  }
  .mp--focus .mp-heading h1 {
    font-size:16px
  }
  .mp--focus .mp-heading p,.mp--focus .mp-heading .mp-overline,.mp--focus #mp-context,.mp--focus #mp-usage-button,.mp--focus #mp-focus,.mp--focus .mp-footer,.mp--focus .mp-inspector,.mp--focus>.mp-notice {
    display:none
  }
  .mp--focus #mp-exit {
    display:inline-flex
  }
  .mp--focus .mp-tabs {
    flex:none;
    margin-bottom:8px
  }
  .mp--focus .mp-layout {
    display:flex;
    min-height:0;
    flex:1
  }
  .mp--focus .mp-main {
    width:100%;
    height:100%;
    overflow:auto;
    overscroll-behavior:contain;
    min-height:0
  }
  .mp--focus #mp-panel-ai {
    display:flex;
    flex-direction:column;
    min-height:0;
    height:100%
  }
  .mp--focus #mp-panel-ai>.mp-section-heading,.mp--focus #mp-panel-ai>.mp-footnote,.mp--focus[data-tab=ai] .mp-mobile-picker {
    display:none
  }
  .mp--focus .mp-ai-workspace {
    min-height:0;
    max-height:none;
    height:100%;
    flex:1
  }
  .mp--focus .mp-ai-result {
    min-height:50px
  }
  .mp--focus .mp-composer>textarea {
    max-height:calc(var(--mp-viewport-height,100dvh)*.22)
  }
  .mp--focus>.mp-message {
    position:static;
    margin:0 0 6px;
    padding:7px 10px;
    flex:none
  }
  .mp--focus .mp-assets-open {
    z-index:50
  }
  .mp--focus .mp-dialog {
    z-index:60
  }
}
@media(prefers-reduced-motion:reduce) {
  .mp * {
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important
  }
}
.mp-checking-identity .mp-layout {
  visibility:hidden;
  pointer-events:none
}
.mp-checking-identity .mp-header-actions,.mp-checking-identity .mp-tabs {
  pointer-events:none;
  opacity:.45
}
.mp-definition {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin:14px 0
}
.mp-definition>div {
  min-width:0;
  border-bottom:1px solid var(--mp-line);
  padding:8px 0
}
.mp-definition dt {
  color:var(--mp-muted);
  font-size:12px
}
.mp-definition dd {
  margin:4px 0 0;
  font-size:14px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums
}
.mp-cost-summary {
  padding:16px 0;
  border-top:1px solid var(--mp-line);
  white-space:normal
}
.mp-cost-summary h3 {
  font-size:15px
}
.mp-chart-levels {
  border-top:1px solid var(--mp-line);
  padding:14px 16px
}
.mp-chart-levels h3 {
  font-size:14px
}
.mp-chart-levels>p {
  font-size:12px;
  color:var(--mp-muted)
}
.mp-source-code {
  white-space:pre;
  overflow:auto;
  max-height:50dvh;
  font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace
}
.mp #mp-history-filters {
  margin-bottom:20px
}
.mp #mp-history-filters .mp-fields {
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr))
}
.mp .mp-button,.mp .mp-icon-button {
  min-height:44px;
  min-width:44px
}

.mp-intel-group{margin:18px 0;border-top:1px solid var(--mp-line);padding-top:12px;min-width:0}
.mp-intel-group h4,.mp-intel-group h5{font-size:14px;margin:8px 0}
.mp-intel-row{padding:14px 0;border-bottom:1px solid var(--mp-line);min-width:0}
.mp-intel-row h5{font-size:14px;margin:0 0 8px;overflow-wrap:anywhere}
.mp-intel-row .mp-definition{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:8px}
.mp-intel-details{margin:10px 0;min-width:0}
.mp-intel-details>summary{padding:12px 4px;min-height:44px;cursor:pointer;font-weight:600}
.mp-intel-notes{padding-left:22px;font-size:12px;color:var(--mp-muted);line-height:1.7}
.mp-intel-group>.mp-actions{margin-top:12px;flex-wrap:wrap;font-size:12px}

/* Shared Free/paid navigation, wrapping on small screens. */
.market-access-nav { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 18px; }
.market-access-nav a { display:inline-flex; align-items:center; min-height:44px; padding:10px 16px; border:1px solid #cbd8d3; border-radius:8px; color:#144e43; background:#fff; text-decoration:none; font-weight:600; }
.market-access-nav a[aria-current="page"] { color:#fff; background:#144e43; border-color:#144e43; }
.market-access-nav a:focus-visible { outline:3px solid #b48b35; outline-offset:3px; }

/* Research regions reuse the workspace theme and existing card/control roles. */
.mp-research-feed{display:grid;gap:16px;margin-bottom:20px}
.mp-research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mp-research-article{display:grid;align-content:start;gap:12px;min-width:0;padding:16px;border:1px solid var(--mp-line);border-radius:var(--mp-radius-sm);background:var(--mp-surface)}
.mp-research-article p{white-space:pre-wrap;overflow-wrap:anywhere}
.mp-research-article a{color:var(--mp-brand);text-underline-offset:3px;overflow-wrap:anywhere}
.mp-research-article time{color:var(--mp-muted);font-size:12px}
.mp-news-list{display:grid;gap:12px;padding-left:20px}
.mp-news-list li{padding-bottom:8px;border-bottom:1px solid var(--mp-soft-line)}
.mp-news-list small{display:block;color:var(--mp-muted)}
.mp-outlook{display:grid;gap:8px;border-left:3px solid var(--mp-accent);padding:12px;background:var(--mp-hover)}
.mp-indicator-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--mp-line)}
.mp-indicator-toolbar label{display:grid;gap:4px;min-width:180px}
#mp-indicator-status{padding:8px 16px;overflow-wrap:anywhere}
#mp-indicator-panel{height:180px;border-top:1px solid var(--mp-line);padding:8px}
#mp-indicator-canvas{display:block;width:100%;height:100%}
@media(max-width:767px){.mp-research-grid{grid-template-columns:1fr}.mp-indicator-toolbar>*{flex:1 1 140px}.mp-research-article{padding:12px}}

/* Research commercial extension: retain Timeblock tokens and mobile order. */
.mp-manual-editor { margin-top:var(--mp-space,16px); }
.mp-manual-editor>summary { cursor:pointer; min-height:44px; padding:12px 16px; border:1px solid var(--mp-line); border-radius:var(--mp-radius); background:var(--mp-surface); }
.mp-outlook details { padding-block:8px; border-top:1px solid var(--mp-line); }
.mp-outlook summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:700; }
.mp-ai-tasks .mp-button,.mp-indicator-toolbar .mp-button { min-height:44px; }
.mp-indicator-toolbar { flex-wrap:wrap; }

.mp .mp-button,.mp .mp-icon-button,.mp input:not([type=checkbox]):not([type=range]),.mp select { min-height:44px; }

/* QA correction: direction is encoded by words/arrows as well as color. */
#mp-workspace .mp-direction-board{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:1px;background:var(--mp-line);border-block:1px solid var(--mp-line)}
#mp-workspace .mp-direction-stat{display:flex;flex-direction:column;gap:7px;padding:14px 18px;background:var(--mp-surface);font-variant-numeric:tabular-nums}
#mp-workspace .mp-direction-stat>small{color:var(--mp-muted);font-size:12px;line-height:1.5}
#mp-workspace .mp-direction-stat>strong{font-size:21px}
#mp-workspace .mp-direction{display:inline-flex;align-self:flex-start;gap:6px;padding:4px 8px;border-radius:6px;background:#eef2f5;color:#526173;font-size:12px;font-weight:700}
#mp-workspace .mp-direction-up{background:#e4f5ec;color:#146243}
#mp-workspace .mp-direction-down,#mp-workspace .mp-direction-risk{background:#fcebea;color:#ac302d}
#mp-workspace .mp-direction-wait{background:#fff3d8;color:#805b08}
#mp-workspace .mp-asset-row[data-direction=up]{box-shadow:inset 3px 0 #29996b}
#mp-workspace .mp-asset-row[data-direction=down]{box-shadow:inset 3px 0 #d3635a}
#mp-workspace .mp-asset-direction{font-size:10px;color:var(--mp-muted)}
#mp-workspace .mp-tv-section{padding:12px 14px 6px;background:#fff}
#mp-workspace .mp-tv-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
#mp-workspace .mp-tv-chart{position:relative;height:620px;min-height:420px;background:#fafcfd;border:1px solid var(--mp-line);border-radius:8px;overflow:hidden}
#mp-workspace .mp-tv-loading{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:24px;background:linear-gradient(135deg,#f4f9f8,#fafcfd);color:var(--mp-muted);text-align:center;pointer-events:none}
#mp-workspace .mp-tv-loading svg{width:36px;height:36px;fill:none;stroke:var(--mp-accent);stroke-width:1.5}
#mp-workspace .mp-tv-instance{height:100%;width:100%}
#mp-workspace .mp-tv-studies{display:flex;gap:14px;flex-wrap:wrap;align-items:center;padding:12px 0}
#mp-workspace .mp-tv-settings>summary,#mp-workspace .mp-native-details>summary{cursor:pointer;padding:14px;font-weight:650;min-height:44px}
#mp-workspace .mp-native-details{border-top:1px solid var(--mp-line)}
#mp-workspace .mp-native-details>.mp-note{margin:0 14px 12px}
#mp-workspace .mp-intel-row{position:relative;border-left:3px solid var(--mp-line)}
#mp-workspace .mp-intel-row[data-tone=up]{border-left-color:#29996b;background:#fbfefc}
#mp-workspace .mp-intel-row[data-tone=down],#mp-workspace .mp-intel-row[data-tone=risk]{border-left-color:#d3635a;background:#fffdfd}
#mp-workspace .mp-intel-metric{display:block;font-size:24px;margin:10px 0;font-variant-numeric:tabular-nums}
#mp-workspace .mp-definition dd{font-variant-numeric:tabular-nums;font-weight:650}
@media(max-width:767px){#mp-workspace .mp-direction-board{grid-template-columns:1fr 1fr}#mp-workspace .mp-direction-stat:last-child{grid-column:1/-1}#mp-workspace .mp-tv-chart{height:540px;min-height:420px}#mp-workspace .mp-tv-section{padding-inline:6px}#mp-workspace .mp-tv-studies .mp-check{min-height:44px}}

#mp-workspace .mp-news-filters{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:12px;margin:14px 0}
#mp-workspace .mp-news-filters label{display:grid;gap:6px;font-size:12px;color:var(--mp-muted)}
#mp-workspace .mp-news-filters input,#mp-workspace .mp-news-filters select{min-height:44px;width:100%;border:1px solid var(--mp-line);border-radius:7px;padding:9px;background:var(--mp-surface);color:var(--mp-ink)}
#mp-workspace .mp-edition{grid-column:1/-1;padding:20px;border:1px solid var(--mp-line);border-radius:12px;background:var(--mp-surface)}
#mp-workspace .mp-edition h3{font-size:22px;line-height:1.4;max-width:45em;margin:10px 0}
#mp-workspace .mp-edition-heading{display:flex;justify-content:space-between;color:var(--mp-muted);font-size:12px}
#mp-workspace .mp-edition summary{padding:14px 0;cursor:pointer;min-height:44px;font-weight:650}
#mp-workspace .mp-edition-event{border-left:3px solid #439e8c;padding:12px 16px;margin:12px 0;background:#f2f9f6}
#mp-workspace .mp-edition-event small{display:block;color:var(--mp-muted)}
#mp-workspace .mp-editorial-metrics,#mp-workspace .mp-macro-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#mp-workspace .mp-metric-tile,#mp-workspace .mp-macro-tile{display:flex;flex-direction:column;gap:9px;padding:14px;background:#f6f8fa;border:1px solid var(--mp-line);border-radius:8px;min-width:0}
#mp-workspace .mp-metric-tile strong{font-size:19px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#mp-workspace .mp-metric-tile small,#mp-workspace .mp-macro-tile small{font-size:11px;line-height:1.5;color:var(--mp-muted)}
#mp-workspace .mp-macro-board{margin-block:16px;grid-template-columns:repeat(4,minmax(0,1fr))}
#mp-workspace .mp-macro-tile[data-tone=up]{border-top:3px solid #29996b}
#mp-workspace .mp-macro-tile[data-tone=down]{border-top:3px solid #d3635a}
#mp-workspace .mp-risk-event{display:flex;flex-direction:column;gap:7px;margin:8px 0;padding:14px;border-left:3px solid #bd7135;background:#fff6e9}
#mp-workspace .mp-score-graphic{display:grid;gap:6px;margin:12px 0;font-size:11px}
#mp-workspace .mp-score-graphic meter{width:100%;height:14px}
#mp-workspace .mp-return-bars{margin:12px 0;font-size:11px}
#mp-workspace .mp-return-bars figcaption{font-weight:650;margin-bottom:7px}
#mp-workspace .mp-return-line{display:grid;grid-template-columns:76px minmax(40px,1fr) 62px;gap:8px;align-items:center;margin:7px 0}
#mp-workspace .mp-return-line strong{text-align:right;font-variant-numeric:tabular-nums}
#mp-workspace .mp-return-rail{position:relative;height:10px;background:linear-gradient(90deg,#f4f0ee 50%,#eef4f0 50%);border-radius:3px}
#mp-workspace .mp-return-bar{position:absolute;top:0;height:10px;background:#29996b;border-radius:2px}
#mp-workspace .mp-return-bar[data-direction=down]{background:#d3635a}
#mp-workspace .mp-return-bars>small{display:block;text-align:center;color:var(--mp-muted)}
#mp-workspace .mp-scenario-branch{border-left:3px solid #91a0a7;padding:0 12px;margin:12px 0}
#mp-workspace .mp-scenario-branch[data-branch=bull]{border-color:#29996b;background:#f0faf5}
#mp-workspace .mp-scenario-branch[data-branch=bear]{border-color:#d3635a;background:#fff5f3}
#mp-workspace .mp-outlook[data-tone=wait]{border-top:3px solid #be962d}
@media(max-width:1199px){#mp-workspace .mp-editorial-metrics,#mp-workspace .mp-macro-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){#mp-workspace .mp-news-filters{grid-template-columns:1fr 1fr}#mp-workspace .mp-news-filters label:last-child{grid-column:1/-1}#mp-workspace .mp-edition{padding:14px}#mp-workspace .mp-edition h3{font-size:19px}#mp-workspace .mp-editorial-metrics{grid-template-columns:1fr}}

/* Owner QA amendment: chart context stays together; research uses content width. */
#mp-workspace .mp-layout{grid-template-columns:260px minmax(0,1fr)}
#mp-workspace .mp-main{grid-column:2;min-width:0}
#mp-workspace .mp-overview-top{display:grid;grid-template-columns:minmax(0,1fr) 236px;gap:16px;align-items:start}
#mp-workspace .mp-inspector{grid-column:auto;grid-template-columns:1fr;min-width:0}
#mp-workspace .mp-inspector h2{font-size:24px;overflow-wrap:anywhere}
#mp-workspace .mp-asset-identity{display:flex;align-items:center;gap:8px;min-width:0}
#mp-workspace .mp-coin-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--mp-selected);color:var(--mp-brand);font-size:11px;font-weight:750;letter-spacing:.02em}
#mp-workspace .mp-coin-names{display:grid;min-width:0;gap:1px;text-align:left}
#mp-workspace .mp-coin-names>strong{font-size:15px;font-weight:750;line-height:1.3}
#mp-workspace .mp-coin-names>small{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mp-workspace .mp-coin-names>.mp-asset-direction{font-size:11px}
#mp-workspace .mp-asset-row{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:12px}
#mp-workspace .mp-asset-numbers{font-size:13px;max-width:106px}
#mp-workspace .mp-asset-numbers>span{font-weight:700}
#mp-workspace .mp-asset-actions{padding:10px 14px;border-top:1px solid var(--mp-line);background:var(--mp-hover)}
#mp-workspace .mp-context-actions{display:flex;gap:6px;flex-wrap:wrap}
#mp-workspace .mp-context-actions svg,#mp-workspace .mp-section-heading h3 svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;flex:none}
#mp-workspace .mp-section-heading h3{display:flex;align-items:center;gap:9px}
#mp-workspace .mp-chips,#mp-workspace .mp-watch-saved{display:grid;gap:8px;min-height:0}
#mp-workspace .mp-watch-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid var(--mp-line);border-radius:10px;background:var(--mp-surface);min-width:0}
#mp-workspace .mp-watch-asset{display:grid;grid-template-columns:32px minmax(60px,1fr) auto;grid-template-rows:auto auto;gap:2px 9px;align-items:center;flex:1 1 220px;min-width:0;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--mp-ink);text-align:left;cursor:pointer;font:inherit}
#mp-workspace .mp-watch-asset>.mp-coin-mark{grid-row:1/3}
#mp-workspace .mp-watch-asset>strong{font-size:16px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mp-workspace .mp-watch-asset>span:not(.mp-coin-mark){grid-row:2;grid-column:2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--mp-muted);font-size:12px}
#mp-workspace .mp-watch-asset>b{grid-row:1/3;grid-column:3;font-size:13px;font-variant-numeric:tabular-nums}
#mp-workspace .mp-watch-row>.mp-icon-button{flex:0 0 44px;width:44px;height:44px;padding:0;white-space:nowrap}
#mp-workspace .mp-watch-asset:hover{background:var(--mp-hover)}
#mp-workspace .mp-watch-asset:focus-visible,#mp-workspace .mp-module-content>summary:focus-visible{outline:3px solid var(--mp-gold);outline-offset:2px}
#mp-workspace .mp-intelligence{align-items:start;gap:16px}
#mp-workspace .mp-module[data-module=signal_lab]{grid-column:1/-1}
#mp-workspace .mp-module-content>summary{min-height:44px;display:flex;align-items:center;gap:8px;padding-block:10px;cursor:pointer;font-weight:700;color:var(--mp-brand)}
#mp-workspace .mp-module-content>summary:before{content:'+';font-size:20px}
#mp-workspace .mp-module-content[open]>summary:before{content:'−'}
#mp-workspace .mp-module-preview{display:grid;gap:1px;background:var(--mp-line);border:1px solid var(--mp-line);border-radius:8px;overflow:hidden;margin-block:12px}
#mp-workspace .mp-module-preview-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;background:var(--mp-surface);font-size:13px;min-height:44px}
#mp-workspace .mp-module-preview-row>strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mp-workspace .mp-module-preview-row>span{font-variant-numeric:tabular-nums;flex:none}
#mp-workspace .mp-intel-row{padding:14px;border-radius:8px;border-block-end:1px solid var(--mp-line);margin-bottom:10px}
#mp-workspace .mp-intel-row h5{font-size:17px;line-height:1.4;margin:0 0 8px;font-weight:750}
#mp-workspace .mp-intel-group>.mp-module-list{display:grid;gap:8px}
#mp-workspace .mp-module[data-module=signal_lab] .mp-intel-group>.mp-module-list{grid-template-columns:repeat(2,minmax(0,1fr))}
#mp-workspace .mp-module[data-module=signal_lab] .mp-intel-group .mp-intel-group>.mp-module-list{display:block}
#mp-workspace .mp-plan-summary{display:grid;gap:10px;padding:12px;border:1px solid var(--mp-line);border-radius:8px;margin-top:10px;background:var(--mp-hover)}
#mp-workspace .mp-plan-summary[data-direction=up]{border-top:3px solid var(--mp-accent)}
#mp-workspace .mp-plan-summary[data-direction=down]{border-top:3px solid var(--mp-danger)}
#mp-workspace .mp-plan-summary h5{font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:8px}
#mp-workspace .mp-plan-levels{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#mp-workspace .mp-plan-levels>div{padding:9px;background:var(--mp-surface);border-radius:6px;display:grid;gap:4px;min-width:0}
#mp-workspace .mp-plan-levels small{font-size:11px;color:var(--mp-muted)}
#mp-workspace .mp-plan-levels strong{font-size:14px;overflow-wrap:anywhere}
#mp-workspace .mp-plan-stop strong{color:var(--mp-danger)}
#mp-workspace .mp-plan-target strong{color:var(--mp-accent)}
#mp-workspace .mp-plan-levels>.mp-plan-target{grid-column:1/-1}
#mp-workspace .mp-macro-region{display:grid;gap:12px;margin-block:16px;scroll-margin-top:110px}
#mp-workspace .mp-macro-board{margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
#mp-workspace .mp-calendar{display:grid;gap:8px}
#mp-workspace .mp-calendar-event{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;border:1px solid var(--mp-line);border-left:3px solid var(--mp-gold);padding:12px;border-radius:8px;background:var(--mp-surface)}
#mp-workspace .mp-calendar-event small{grid-column:1/-1;color:var(--mp-muted);font-size:12px}
#mp-workspace .mp-calendar-event[data-due=true]{border-left-color:var(--mp-danger);background:color-mix(in srgb,var(--mp-danger) 4%,var(--mp-surface))}
#mp-workspace .mp-preset-settings{padding:0 16px 12px;border-top:1px solid var(--mp-line)}
#mp-workspace .mp-preset-settings>summary{min-height:44px;padding-block:12px;cursor:pointer;font-weight:700}
#mp-workspace #mp-preset-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
#mp-workspace #mp-preset-fields label{display:grid;gap:5px;min-width:0;font-size:12px}
#mp-workspace #mp-preset-fields input,#mp-workspace #mp-preset-fields select{width:100%;min-width:0;border:1px solid var(--mp-line);border-radius:6px;padding:8px;background:var(--mp-surface);color:var(--mp-ink)}
@media(max-width:1399px){#mp-workspace .mp-overview-top{grid-template-columns:minmax(0,1fr)}#mp-workspace .mp-inspector{grid-template-columns:repeat(2,minmax(0,1fr))}#mp-workspace .mp-inspector .mp-plan-nudge{grid-column:1/-1}}
@media(max-width:1199px){#mp-workspace .mp-layout{grid-template-columns:230px minmax(0,1fr)}#mp-workspace .mp-intelligence{grid-template-columns:1fr}#mp-workspace .mp-macro-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){#mp-workspace .mp-layout{grid-template-columns:minmax(0,1fr)}#mp-workspace .mp-main{grid-column:1}#mp-workspace .mp-overview-top{grid-template-columns:minmax(0,1fr)}#mp-workspace .mp-inspector{grid-template-columns:1fr}#mp-workspace .mp-module[data-module=signal_lab] .mp-intel-group>.mp-module-list{grid-template-columns:1fr}#mp-workspace #mp-preset-fields{grid-template-columns:1fr 1fr}#mp-workspace .mp-calendar-event{grid-template-columns:1fr}#mp-workspace .mp-calendar-event time{font-size:13px}#mp-workspace .mp-watch-row{gap:4px}#mp-workspace .mp-asset-actions .mp-button{flex:1 1 100px}}

#mp-workspace .mp-watch-asset>.mp-watch-change{grid-column:3;grid-row:3;font-size:11px;text-align:right;white-space:nowrap}
#mp-workspace .mp-watch-change[data-direction=up]{color:var(--mp-accent)}
#mp-workspace .mp-watch-change[data-direction=down]{color:var(--mp-danger)}
#mp-workspace .mp-watch-asset>b{grid-row:1/3}

/* Coin work surface: reuse the Free risk/metric language without global selectors. */
#mp-workspace{margin-top:0;padding-top:calc(var(--mp-header-height,var(--tbv2-header-height,78px)) + 18px);padding-bottom:max(24px,env(safe-area-inset-bottom))}
#mp-workspace .mp-panel,#mp-workspace .mp-form,#mp-workspace .mp-native-details,#mp-workspace .mp-macro-region,#mp-workspace .mp-chart-card,#mp-workspace .mp-coin-summary{scroll-margin-top:calc(var(--mp-header-height,var(--tbv2-header-height,78px)) + 20px)}
#mp-workspace .mp-message{top:calc(var(--mp-header-height,var(--tbv2-header-height,78px)) + 8px)}
#mp-workspace .mp-coin-summary{display:grid;gap:14px;border-top:4px solid var(--mp-accent);margin-bottom:16px;padding:20px}
#mp-workspace .mp-coin-heading{display:flex;gap:12px;align-items:center}
#mp-workspace .mp-coin-heading>div{min-width:0}
#mp-workspace .mp-coin-heading>.mp-coin-mark{width:44px;height:44px;flex-basis:44px;font-size:15px}
#mp-workspace .mp-coin-heading h2{font-size:clamp(21px,2vw,27px);line-height:1.25;font-weight:750;overflow-wrap:anywhere}
#mp-workspace .mp-coin-badges,#mp-workspace .mp-watch-state{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#mp-workspace .mp-state-badge{display:inline-flex;gap:5px;align-items:center;padding:5px 8px;border-radius:6px;background:#f0f3f4;color:#52616c;border:1px solid #dfe5e8;font-size:12px;font-weight:650;line-height:1.5}
#mp-workspace .mp-state-badge svg{height:15px;width:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
#mp-workspace .mp-state-badge[data-tone=up]{background:#e4f6ed;border-color:#bce2ce;color:#116544}
#mp-workspace .mp-state-badge[data-tone=down],#mp-workspace .mp-state-badge[data-tone=risk]{background:#fff0ee;border-color:#efc0bb;color:#a9342f}
#mp-workspace .mp-state-badge[data-tone=warning]{background:#fff6df;border-color:#ecd295;color:#805b08}
#mp-workspace .mp-coin-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
#mp-workspace .mp-coin-metric{display:grid;align-content:start;gap:5px;min-width:0;padding:12px;border:1px solid var(--mp-line);border-radius:8px;background:var(--mp-surface)}
#mp-workspace .mp-coin-metric>small{font-size:12px;color:var(--mp-muted);line-height:1.5;overflow-wrap:anywhere}
#mp-workspace .mp-coin-metric>strong{font-size:19px;line-height:1.35;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#mp-workspace .mp-coin-metric[data-tone=up]>strong{color:#116544}
#mp-workspace .mp-coin-metric[data-tone=down]>strong{color:#b13e36}
#mp-workspace .mp-coin-metric[data-tone=warning]{background:#fffbf1;border-color:#ecd295}
#mp-workspace .mp-coin-metric[data-tone=unknown]>strong{color:var(--mp-muted);font-size:15px;font-weight:600}
#mp-workspace .mp-coin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:16px;align-items:start}
#mp-workspace .mp-coin-panel{display:grid;gap:14px;min-width:0;padding:20px;border-top:3px solid #4e99ab}
#mp-workspace .mp-coin-panel>h3{font-size:20px;display:flex;align-items:center;gap:9px;line-height:1.4}
#mp-workspace .mp-coin-panel>h3 svg{height:21px;width:21px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7}
#mp-workspace #mp-coin-risks{border-top-color:#c79832}
#mp-workspace .mp-coin-plans{border-top-color:#29996b}
#mp-workspace .mp-coin-research{border-top-color:#8d79ae}
#mp-workspace .mp-technical-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#mp-workspace .mp-technical-metrics .mp-coin-metric>strong{font-size:17px}
#mp-workspace .mp-coin-panel .mp-footnote{font-size:12px;line-height:1.6}
#mp-workspace .mp-coin-panel .mp-actions{flex-wrap:wrap}
#mp-workspace .mp-coin-plan-grid{display:grid;gap:8px}
#mp-workspace .mp-coin-plan-grid .mp-plan-summary{margin:0}
#mp-workspace .mp-coin-research>p{line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
#mp-workspace .mp-coin-research h4{font-size:15px;margin:0}
#mp-workspace .mp-watch-state{flex:1 0 100%;padding:8px 4px 2px;border-top:1px solid var(--mp-soft-line)}
#mp-workspace .mp-watch-state .mp-state-badge{font-size:11px}
#mp-workspace .mp-tv-heading{gap:8px;flex-wrap:wrap}
#mp-workspace .mp-tv-heading #mp-native-open{margin-left:auto}
#mp-workspace .mp-tv-heading svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.7}
#mp-workspace .mp-module{border-top:3px solid var(--mp-module-accent,#289282)}
#mp-workspace .mp-module[data-module=hot_trends]{--mp-module-accent:#8272ad}
#mp-workspace .mp-module[data-module=money_flow]{--mp-module-accent:#3b98ae}
#mp-workspace .mp-module[data-module=tokenomics]{--mp-module-accent:#bd9235}
#mp-workspace .mp-module[data-module=opportunities]{--mp-module-accent:#37996b}
#mp-workspace .mp-module h3>svg{color:var(--mp-module-accent);width:22px;height:22px}
#mp-workspace .mp-module-preview{background:transparent;border:0;gap:8px;overflow:visible}
#mp-workspace .mp-module-preview-row{border:1px solid var(--mp-line);border-radius:9px;flex-wrap:wrap;padding:13px;box-shadow:0 2px 8px #0f4c4206}
#mp-workspace .mp-module-preview-row>strong{font-size:16px;color:var(--mp-brand)}
#mp-workspace .mp-module-preview-row[data-tone=up]{border-left:3px solid #29996b}
#mp-workspace .mp-module-preview-row[data-tone=down],#mp-workspace .mp-module-preview-row[data-tone=risk]{border-left:3px solid #c96055}
#mp-workspace .mp-module-preview-row[data-tone=warning]{border-left:3px solid #c79832}
#mp-workspace .mp-preview-badges{display:flex;flex-wrap:wrap;gap:5px;flex-basis:100%}
#mp-workspace .mp-preview-counts{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
@media(min-width:768px){#mp-workspace .mp-assets{top:calc(var(--mp-header-height,var(--tbv2-header-height,78px)) + 12px)}}
@media(max-width:1199px){#mp-workspace .mp-coin-grid{grid-template-columns:1fr}#mp-workspace .mp-coin-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){#mp-workspace{padding-top:calc(var(--mp-header-height,var(--tbv2-header-height,72px)) + 14px);padding-bottom:calc(76px + env(safe-area-inset-bottom))}#mp-workspace .mp-coin-summary,#mp-workspace .mp-coin-panel{padding:15px}#mp-workspace .mp-coin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#mp-workspace .mp-coin-heading h2{font-size:21px}#mp-workspace .mp-coin-metrics>.mp-coin-metric:first-child{grid-column:1/-1}#mp-workspace .mp-coin-metrics>.mp-coin-metric:first-child>strong{font-size:27px}#mp-workspace .mp-coin-panel>h3{font-size:19px}#mp-workspace .mp-state-badge{font-size:11px}#mp-workspace .mp-tv-heading #mp-native-open{order:3;flex:1 1 100%;margin:0}#mp-workspace.mp--focus{padding:calc(8px + env(safe-area-inset-top)) 9px calc(8px + env(safe-area-inset-bottom))}#mp-workspace.mp--focus .mp-message{top:0}}
@media(prefers-reduced-motion:reduce){#mp-workspace{scroll-behavior:auto}}

/* Saved setups retain the existing workspace cards, badges and level grid. */
#mp-workspace .mp-search{display:flex;align-items:center;min-height:44px;min-width:0;gap:8px}
#mp-workspace .mp-search>svg{width:20px;height:20px;flex:0 0 20px}
#mp-workspace .mp-search>input{flex:1 1 0;width:0;min-width:0;min-height:44px;margin:0;padding:8px 0;border:0;border-radius:0;box-shadow:none;background:transparent}
#mp-workspace .mp-search:focus-within{outline:3px solid var(--mp-accent);outline-offset:3px}
#mp-workspace .mp-search>input:focus{outline:0;box-shadow:none}
#mp-workspace .mp-watch-setup{display:grid;flex:1 0 100%;gap:8px;min-width:0;padding:8px;border:1px solid var(--mp-soft-line);border-radius:var(--mp-radius-sm)}
#mp-workspace .mp-watch-setup .mp-plan-levels{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
#mp-workspace .mp-watch-snapshot,#mp-workspace .mp-watch-saved-state{display:flex;flex-wrap:wrap;align-items:center;flex:1 0 100%;gap:8px;min-width:0}
#mp-workspace .mp-watch-saved-state{border-top:1px solid var(--mp-soft-line);padding-top:8px}
#mp-workspace .mp-watch-saved-state>.mp-button{min-height:44px}
#mp-workspace .mp-setup-history{display:grid;gap:16px;margin-block:16px;min-width:0}
#mp-workspace #mp-setup-history,#mp-workspace #mp-setup-title{scroll-margin-top:calc(var(--mp-header-height,var(--tbv2-header-height,78px)) + 20px)}
#mp-workspace .mp-setup-history .mp-section-heading{margin-bottom:0}
#mp-workspace .mp-setup-history table{width:100%;min-width:960px}
#mp-workspace .mp-setup-history td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
#mp-workspace .mp-setup-history td:first-child{min-width:160px}
#mp-workspace .mp-setup-history td:nth-child(2){min-width:180px}
#mp-workspace .mp-setup-history td:nth-child(3){min-width:240px}
#mp-workspace .mp-setup-history td:nth-child(4){min-width:160px}
#mp-workspace .mp-setup-history td .mp-footnote{margin-top:8px}
#mp-workspace .mp-setup-history .mp-plan-levels strong{font-size:14px}
#mp-workspace .mp-setup-history .mp-actions{flex-wrap:wrap}
#mp-workspace .mp-setup-history .mp-table-wrap:focus-visible,#mp-workspace #mp-setup-title:focus{outline:3px solid var(--mp-accent);outline-offset:3px}
#mp-workspace #mp-tv-source{overflow-wrap:anywhere}
@media(max-width:767px){#mp-workspace .mp-setup-history{padding:16px}#mp-workspace .mp-setup-history .mp-section-heading{align-items:flex-start}#mp-workspace .mp-setup-history .mp-actions>.mp-button{flex:1 1 120px}}
