/* Shared Market Data / Crypto scanner workspace.
   This file owns scanner geometry, controls, table interaction and Follow presentation. */
:is(#market-data-page, #crypto-page) :is(.market-data-shell, .crypto-shell) {
  display: grid;
  gap: clamp(1.2rem, 2vw, 2rem);
  width: 100%;
  min-width: 0;
}
:is(#market-data-page, #crypto-page) .market-explorer {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
:is(#market-data-page, #crypto-page) .market-controls-row {
  display: grid;
  gap: .65rem;
}
#crypto-page .market-controls-row { grid-template-columns: minmax(16rem, 1fr); }

@media (min-width: 901px) {
  #crypto-page .market-explorer {
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: .75rem;
    align-items: center;
  }
  #crypto-page .market-controls-row {
    grid-column: 1;
    width: 320px;
    max-width: 320px;
  }
  #crypto-page .crypto-filters-row {
    grid-column: 2;
    align-items: center;
    padding-top: 0;
  }
  #crypto-page :is(.asset-table-caption, .asset-table-shell) { grid-column: 1 / -1; }
}

@media (min-width: 1280px) {
  #market-data-page .market-explorer {
    grid-template-columns: 320px max-content minmax(1rem, 1fr) 48px 48px;
    column-gap: .75rem;
    align-items: center;
  }
  #market-data-page .market-controls-row { display: contents; }
  #market-data-page .market-controls-row .market-search-field {
    grid-column: 1;
    grid-row: 1;
    width: 320px;
    max-width: 320px;
  }
  #market-data-page .market-sync-btn-floating { grid-column: 4; grid-row: 1; justify-self: end; }
  #market-data-page .market-add-btn-floating { grid-column: 5; grid-row: 1; justify-self: end; }
  #market-data-page .market-filters-row {
    grid-column: 2;
    grid-row: 1;
    width: max-content;
    align-items: center;
    padding-top: 0;
  }
  #market-data-page :is(.asset-table-caption, .asset-table-shell) { grid-column: 1 / -1; }
}
:is(#market-data-page, #crypto-page) .market-search-field {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
:is(#market-data-page, #crypto-page) .market-search-field::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 13px;
  height: 13px;
  border: 1.6px solid var(--muted-2);
  border-radius: 50%;
  content: "";
  transform: translateY(-58%);
  pointer-events: none;
}
:is(#market-data-page, #crypto-page) .market-search-field::after {
  position: absolute;
  z-index: 1;
  top: 58%;
  left: 24px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--muted-2);
  content: "";
  transform: rotate(45deg);
  pointer-events: none;
}
:is(#market-data-page, #crypto-page) .market-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 14px 9px 39px;
  border-color: var(--border);
  border-radius: .85rem;
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  font-size: .92rem;
}
:is(#market-data-page, #crypto-page) .market-search-field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
:is(#market-data-page, #crypto-page) .market-search-field input:not(:focus) {
  border-color: color-mix(in srgb, var(--accent) 16%, var(--border-strong));
  background: color-mix(in srgb, var(--surface) 76%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent), 0 3px 10px rgba(8, 10, 18, .04);
}
:is(#market-data-page, #crypto-page) :is(.market-filters-row, .crypto-filters-row) {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-width: 0;
  padding-top: .15rem;
}
:is(#market-data-page, #crypto-page) .market-filter-chips { display: contents; }
:is(#market-data-page, #crypto-page) .market-filter-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px .85rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .73rem;
  box-shadow: none;
}
:is(#market-data-page, #crypto-page) .market-filter-chip {
  flex-basis: 108px;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
}
:is(#market-data-page, #crypto-page) .market-filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
:is(#market-data-page, #crypto-page) .market-filter-chip.active {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 17%, transparent);
}
:is(#market-data-page, #crypto-page) .market-filter-chip,
:is(#market-data-page, #crypto-page) .market-filter-chip.active,
:is(#market-data-page, #crypto-page) .market-filter-chip:hover { box-shadow: none; }


/* ---- The table: Stocks and Crypto are one design --------------------------------------
   Rules of the page (see symbol-detail-v2.css): no boxes. The page canvas is the surface;
   rows are hairlines. Each cell gives one answer on one line; the detail behind it is the
   hover tooltip ([data-tip]). The only two-line cells are the periods: the price a change
   is measured from, and the change. Text columns align left, figures align right. */
.metric-tooltip { white-space: pre-line; }

.asset-table-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0;
  color: var(--muted);
}
:is(#market-data-page, #crypto-page) .asset-table-caption :is(.market-watchlist-summary, #crypto-result-count) {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#market-data-page, #crypto-page) .asset-table-caption strong { color: var(--text-2); font-weight: 650; }
.asset-period-switch { display: none; }

#market-data-page .asset-table-shell,
#crypto-page .asset-table-shell {
  width: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.asset-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-variant-numeric: tabular-nums;
}

/* Header: plain words on the canvas, sticky under the global header. */
:is(#market-data-page, #crypto-page) .asset-table th {
  position: sticky;
  top: var(--global-header-height, 64px);
  z-index: 2;
  padding: .7rem .75rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: right;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
}
:is(#market-data-page, #crypto-page) .asset-table :is(th.col-identity, th.col-text) { text-align: left; }
.asset-table-sentinel { height: 0; }
:is(#market-data-page, #crypto-page) .asset-table-shell.is-stuck .asset-table th {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}
/* Figures and research columns keep one width on both pages; the company takes the rest,
   so 1D on Stocks and 24H on Crypto line up the same way. */
:is(#market-data-page, #crypto-page) .asset-table th.col-num { width: 7.5rem; }
:is(#market-data-page, #crypto-page) .asset-table th.col-text { width: 10.5rem; }
#market-data-page .asset-table th.col-text:nth-child(8) { width: 7.5rem; }
/* 1px, not 1%: a percentage column makes an auto-layout table grow to fit it. */
:is(#market-data-page, #crypto-page) .asset-table th.col-action { width: 1px; }
.asset-table .th-term {
  text-decoration: underline dotted color-mix(in srgb, var(--muted) 60%, transparent);
  text-underline-offset: 3px;
  cursor: help;
}
.asset-table .th-term:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Rows */
:is(#market-data-page, #crypto-page) .asset-table-row {
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  transition: background-color 120ms ease;
}
:is(#market-data-page, #crypto-page) .asset-table-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
:is(#market-data-page, #crypto-page) .asset-table-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
:is(#market-data-page, #crypto-page) .asset-table-row > td {
  height: 3.75rem;
  padding: .55rem .75rem;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: .82rem;
  line-height: 1.3;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}
:is(#market-data-page, #crypto-page) .asset-table-row > :is(.asset-table-identity, .market-evidence-cell, .market-timing-cell, .market-status-cell, .crypto-level-cell) { text-align: left; }
:is(#market-data-page, #crypto-page) .asset-table-row > td:first-child { padding-left: 0; }
:is(#market-data-page, #crypto-page) .asset-table-row > td.asset-table-action { width: auto; padding-right: 0; }

/* Every cell is a quiet button (Stocks) or plain text (Crypto): no fills, no borders. */
:is(#market-data-page, #crypto-page) .asset-table .symbol-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  box-shadow: none;
  cursor: pointer;
}
:is(#market-data-page, #crypto-page) .asset-table .symbol-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:is(#market-data-page, #crypto-page) .asset-table td:not(.asset-table-identity):not(.market-evidence-cell):not(.market-timing-cell):not(.market-status-cell) > .symbol-link { justify-content: flex-end; }

/* Identity: logo, then the name in bold over the symbol. */
:is(#market-data-page, #crypto-page) .asset-table .market-symbol-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
:is(#market-data-page, #crypto-page) .asset-table :is(.asset-logo, .crypto-mark) {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
:is(#market-data-page, #crypto-page) .asset-table .asset-symbol-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}
:is(#market-data-page, #crypto-page) .asset-table .asset-symbol-copy :is(strong, em) {
  display: block;
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(#market-data-page, #crypto-page) .asset-table .asset-symbol-copy strong {
  color: var(--text);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
}
:is(#market-data-page, #crypto-page) .asset-table .asset-symbol-copy em {
  color: var(--muted);
  font-size: .74rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .02em;
}

/* Decision evidence: a dot and the result. */
:is(#market-data-page, #crypto-page) .asset-table .decision-evidence-cell {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: 0;
  border: 0;
}
:is(#market-data-page, #crypto-page) .asset-table .decision-assessment-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}
:is(#market-data-page, #crypto-page) .asset-table .decision-assessment-label { color: var(--text-2); font-weight: 600; }
:is(#market-data-page, #crypto-page) .asset-table .decision-assessment-strong .decision-assessment-dot { background: var(--positive); }
:is(#market-data-page, #crypto-page) .asset-table .decision-assessment-mixed .decision-assessment-dot { background: var(--accent-2, #d6a23a); }
:is(#market-data-page, #crypto-page) .asset-table .decision-assessment-challenged .decision-assessment-dot { background: var(--negative); }
:is(#market-data-page, #crypto-page) .asset-table .decision-assessment-limited .decision-assessment-label { color: var(--muted); }

/* 3Y timing: the range word, then where the price sits on a low-to-high line. */
:is(#market-data-page, #crypto-page) .asset-table .timing3y-cell {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: 0;
  border: 0;
}
:is(#market-data-page, #crypto-page) .asset-table .timing3y-label { min-width: 6.4em; color: var(--text-2); font-weight: 600; }
:is(#market-data-page, #crypto-page) .asset-table .timing3y-empty .timing3y-label { min-width: 0; color: var(--muted-2); }
:is(#market-data-page, #crypto-page) .asset-table .timing3y-track {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}
:is(#market-data-page, #crypto-page) .asset-table .timing3y-track i {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--accent-2, #d6a23a);
  transform: translateY(-50%);
}
:is(#market-data-page, #crypto-page) .asset-table .timing3y-cheap .timing3y-track i { background: var(--positive); }
:is(#market-data-page, #crypto-page) .asset-table .timing3y-rich .timing3y-track i { background: var(--negative); }

/* Price and periods */
:is(#market-data-page, #crypto-page) .asset-table :is(.market-price-value, .crypto-price-cell) {
  color: var(--text);
  font-size: .86rem;
  font-weight: 700;
}
:is(#market-data-page, #crypto-page) .asset-table .market-change-cell {
  display: grid;
  font-family: var(--font-sans);
  justify-items: end;
  gap: 2px;
}
:is(#market-data-page, #crypto-page) .asset-table .market-change-value {
  color: var(--text-2);
  font-family: var(--font-sans);
  line-height: 1.2;
  font-size: .8rem;
  font-weight: 600;
}
:is(#market-data-page, #crypto-page) .asset-table .market-change-cell em {
  color: var(--muted);
  font-size: .74rem;
  font-style: normal;
  font-weight: 650;
}
:is(#market-data-page, #crypto-page) .asset-table .market-change-cell em.positive { color: var(--positive); }
:is(#market-data-page, #crypto-page) .asset-table .market-change-cell em.negative { color: var(--negative); }

/* Market: a dot and the session; the quote's age only when it is not live. */
:is(#market-data-page, #crypto-page) .asset-table .mkt-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
:is(#market-data-page, #crypto-page) .asset-table .mkt-pill.mkt-closed { color: var(--muted); }
:is(#market-data-page, #crypto-page) .asset-table .mkt-pill.quote-delayed { color: var(--warning, #f5c16c); }
:is(#market-data-page, #crypto-page) .asset-table .mkt-pill.quote-stale { color: var(--negative); }

/* Access and follow: words for access, a star for follow. */
:is(#market-data-page, #crypto-page) .asset-table .market-action-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  min-width: 0;
}
:is(#market-data-page, #crypto-page) .asset-table .credit-row-action { display: inline-flex; width: auto; min-width: 0; }
:is(#market-data-page, #crypto-page) .asset-table .credit-row-note {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 600;
  cursor: help;
}
:is(#market-data-page, #crypto-page) .asset-table .credit-row-link {
  min-height: 34px;
  padding: 0 .35rem;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
:is(#market-data-page, #crypto-page) .asset-table .credit-row-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
:is(#market-data-page, #crypto-page) .asset-table .credit-row-link:disabled { color: var(--muted-2); cursor: not-allowed; }
.asset-table-follow {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  box-shadow: none;
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease;
}
.asset-table-follow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.asset-table-follow:hover:not(:disabled) { color: var(--text); }
.asset-table-follow:active:not(:disabled) { transform: scale(.9); }
.asset-table-follow:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.asset-table-follow.is-followed { color: var(--accent); }
.asset-table-follow.is-followed svg { fill: currentColor; }
.asset-table-follow:is(:disabled, [aria-disabled="true"]) { opacity: .4; cursor: not-allowed; }
.asset-table-follow[aria-disabled="true"]:hover { color: var(--muted-2); }
:is(#market-data-page, #crypto-page) .asset-table .asset-table-follow,
:is(#market-data-page, #crypto-page) .asset-table .asset-table-follow:hover { border: 0; background: transparent; box-shadow: none; transform: none; }

:is(#market-data-page, #crypto-page) .asset-table :is(.empty-cell, .crypto-empty) {
  height: auto;
  padding: 3rem 1rem !important;
  color: var(--muted);
  text-align: center !important;
  white-space: normal;
  cursor: default;
}
:is(#market-data-page, #crypto-page) .asset-table tr:has(> .empty-cell, > .crypto-empty) { cursor: default; }
/* Locked research: a padlock and one muted word, the same in every analysis column. */
:is(#market-data-page, #crypto-page) .asset-table .analysis-locked-cell {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-weight: 600;
}
:is(#market-data-page, #crypto-page) .asset-table .analysis-locked-icon {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:is(#market-data-page, #crypto-page) .asset-table .crypto-level { display: inline-flex; border-radius: 4px; cursor: help; }
:is(#market-data-page, #crypto-page) .asset-table .crypto-level:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Narrower desktops: the table scrolls sideways and the company stays in view. */
@media (min-width: 701px) and (max-width: 1099px) {
  :is(#market-data-page, #crypto-page) .asset-table-shell { overflow-x: auto; scrollbar-width: thin; }
  #market-data-page .asset-table { min-width: 980px; }
  #crypto-page .asset-table { min-width: 900px; }
  /* Inside a sideways scroller the header cannot stick to the page; relative keeps the
     visually hidden "Follow" label inside the scroller instead of widening the page. */
  :is(#market-data-page, #crypto-page) .asset-table th { position: relative; top: auto; }
  :is(#market-data-page, #crypto-page) .asset-table :is(th.col-identity, td.asset-table-identity) {
    position: sticky;
    top: auto;
    left: 0;
    z-index: 1;
    background: var(--bg);
    box-shadow: 1px 0 0 var(--hairline);
  }
  :is(#market-data-page, #crypto-page) .asset-table .asset-table-row:hover > td.asset-table-identity { background: var(--bg); }
}

/* ---- Phones: a list, not a squeezed table ------------------------------------------------
   Each row: company on the left, price over the change on the right, the star at the end.
   Stocks add one line below with the result and the 3Y timing. The switch above the list
   picks the period every row shows. Everything sits on the page canvas. */
@media (max-width: 700px) {
  :is(#market-data-page, #crypto-page) :is(.market-data-shell, .crypto-shell) { gap: 1rem; }
  :is(#market-data-page, #crypto-page) .market-explorer {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: .8rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #crypto-page .market-controls-row { grid-template-columns: minmax(0, 1fr); }
  :is(#market-data-page, #crypto-page) .market-search-field input {
    min-height: 44px;
    border: 0;
    border-radius: .72rem;
    background: var(--surface-2);
    box-shadow: inset 0 0 0 1px var(--hairline);
  }
  :is(#market-data-page, #crypto-page) :is(.market-filters-row, .crypto-filters-row) {
    flex-wrap: nowrap;
    gap: .4rem;
    padding: 0 0 .2rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  :is(#market-data-page, #crypto-page) :is(.market-filters-row, .crypto-filters-row)::-webkit-scrollbar { display: none; }
  :is(#market-data-page, #crypto-page) .market-filter-chip {
    min-height: 42px;
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .asset-period-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 2px;
  }
  .asset-period-switch button {
    min-width: 40px;
    min-height: 36px;
    padding: 0 .5rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
  }
  .asset-period-switch button.active { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .asset-period-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

  /* table.asset-table outranks styles.css's "table { min-width: max-content }". */
  :is(#market-data-page, #crypto-page) .asset-table-shell table.asset-table,
  :is(#market-data-page, #crypto-page) .asset-table tbody { display: block; width: 100%; min-width: 0; }
  :is(#market-data-page, #crypto-page) .asset-table-row { min-width: 0; }
  :is(#market-data-page, #crypto-page) .asset-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :is(#market-data-page, #crypto-page) .asset-table tbody { border-top: 1px solid var(--hairline); }
  :is(#market-data-page, #crypto-page) .asset-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    grid-template-areas:
      "id price follow"
      "id change follow";
    align-items: center;
    column-gap: .6rem;
    row-gap: 1px;
    padding: .75rem 0;
  }
  :is(#market-data-page, #crypto-page) .asset-table-row:hover { background: transparent; }
  :is(#market-data-page, #crypto-page) .asset-table-row > td {
    display: block;
    height: auto;
    min-width: 0;
    padding: 0;
  }
  :is(#market-data-page, #crypto-page) .asset-table-row > .asset-table-identity { grid-area: id; }
  /* styles.css freezes the first column below 900px with a filled background: on a phone
     that drew a dark box behind every company. Nothing is frozen in a list. */
  :is(#market-data-page, #crypto-page) .asset-table .asset-table-row > td.asset-table-identity {
    position: static;
    background: transparent;
    box-shadow: none;
  }
  :is(#market-data-page, #crypto-page) .asset-table-row > :is(.market-live-price-cell, .crypto-price-cell) { grid-area: price; align-self: end; justify-self: end; }
  :is(#market-data-page, #crypto-page) .asset-table-row > .asset-period-cell { grid-area: change; align-self: start; justify-self: end; }
  :is(#market-data-page, #crypto-page) .asset-table-row > .asset-table-action { grid-area: follow; margin-right: -6px; }
  :is(#market-data-page, #crypto-page) .asset-table-row > .market-status-cell { display: none; }
  :is(#market-data-page, #crypto-page) .asset-table .asset-symbol-copy :is(strong, em) { max-width: 100%; }

  /* The research line under the name: on Stocks the result and the 3Y timing share it
     (the timing flush right under the figures), on Crypto the price level. One area
     spanning the flexible column, so no research cell can widen the price or star columns. */
  :is(#market-data-page, #crypto-page) .asset-table-row {
    grid-template-areas:
      "id price follow"
      "id change follow"
      "research research research";
  }
  :is(#market-data-page, #crypto-page) .asset-table-row > :is(.market-evidence-cell, .market-timing-cell, .crypto-level-cell) { grid-area: research; margin-top: .55rem; }
  :is(#market-data-page, #crypto-page) .asset-table-row > :is(.market-evidence-cell, .crypto-level-cell) { justify-self: start; padding-left: calc(30px + .7rem); }
  /* A locked company says so once on a phone, not once per research column. */
  #market-data-page .asset-table-row > .market-timing-cell:has(.analysis-locked-cell) { display: none; }
  #market-data-page .asset-table-row > .market-timing-cell { justify-self: end; }
  :is(#market-data-page, #crypto-page) .asset-table :is(.decision-assessment-label, .timing3y-label) { font-size: .76rem; }
  :is(#market-data-page, #crypto-page) .asset-table .timing3y-track { width: 36px; }

  /* One period per row: the one the switch picked. */
  :is(#market-data-page, #crypto-page) .asset-table-row > .asset-period-cell { display: none; }
  :is(#market-data-page, #crypto-page) [data-period="day"] .asset-table-row > .asset-period-cell[data-period="day"],
  :is(#market-data-page, #crypto-page) [data-period="week"] .asset-table-row > .asset-period-cell[data-period="week"],
  :is(#market-data-page, #crypto-page) [data-period="month"] .asset-table-row > .asset-period-cell[data-period="month"],
  :is(#market-data-page, #crypto-page) [data-period="year"] .asset-table-row > .asset-period-cell[data-period="year"] { display: block; }
  :is(#market-data-page, #crypto-page) .asset-table .asset-period-cell .market-change-value { display: none; }
  :is(#market-data-page, #crypto-page) .asset-table .asset-period-cell .market-change-cell em { font-size: .78rem; }

  /* Access words that change nothing stay on desktop; Unlock stays everywhere. */
  :is(#market-data-page, #crypto-page) .asset-table :is(.is-included, .is-assigned) { display: none; }
  :is(#market-data-page, #crypto-page) .asset-table .market-action-stack { flex-direction: column-reverse; gap: 0; }
  :is(#market-data-page, #crypto-page) .asset-table .credit-row-link { min-height: 24px; font-size: .72rem; }

  :is(#market-data-page, #crypto-page) .asset-table tbody > tr:has(> .empty-cell, > .crypto-empty) { display: block; }
  :is(#market-data-page, #crypto-page) .asset-table :is(.empty-cell, .crypto-empty) { display: block; width: 100%; }
}

@media (min-width: 701px) and (max-width: 900px) {
  #crypto-page .market-explorer { grid-template-columns: minmax(0, 1fr); }
  #crypto-page .market-controls-row { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .asset-table-row,
  .asset-table-follow { transition: none; }
}
