/* Hallmark · pre-emit critique: P4 H5 E4 S4 R5 V4 */
/* CopyAlpha compact controls, 20260921_signal_list_v1.
 * Existing graphite tokens and page structure retained; presentation only.
 */
/* Hide only the signal-list header refresh; retain the shared loading hook. */
html[data-theme="graphite"] body .main:has(> #rankingsView.active) > .top #refreshBtn {
  display: none;
}
/* Mobile legacy rules can redisplay a selected account after returning to the list. */
html[data-theme="graphite"] body .main:has(> #rankingsView.active) > #quickActions {
  display: none;
}
/* Signal-list sample: one comparable ledger, not a stack of decorated cards.
 * Scope stays inside rankingsView; existing palette and other routes are retained.
 */
html[data-theme="graphite"] body #rankingsView .signalTable {
  --signal-columns: minmax(220px, 1fr) 128px 120px 96px 88px 156px;
  background: var(--ui-paper);
  border-radius: var(--ui-radius);
  padding: 0 var(--ui-space-4);
}
html[data-theme="graphite"] body #rankingsView :is(.signalRow, .signalTableHead) {
  display: grid;
  grid-template-columns: var(--signal-columns);
  align-items: center;
  gap: var(--ui-space-4);
  min-width: 0;
}
html[data-theme="graphite"] body #rankingsView .signalTableHead {
  min-height: 40px;
  color: var(--ui-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--ui-line);
}
html[data-theme="graphite"] body #rankingsView .signalRow {
  min-height: 96px;
  padding: var(--ui-space-4) 0;
  border: 0;
  border-bottom: 1px solid var(--ui-line);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
html[data-theme="graphite"] body #rankingsView .signalRow:last-child { border-bottom: 0; }
html[data-theme="graphite"] body #rankingsView .signalRow:hover { background: var(--ui-soft); }
html[data-theme="graphite"] body #rankingsView .signalIdentity { min-width: 0; }
html[data-theme="graphite"] body #rankingsView .signalName {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--ui-ink);
}
html[data-theme="graphite"] body #rankingsView .signalStatuses {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: var(--ui-space-1);
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.6;
}
html[data-theme="graphite"] body #rankingsView .signalStatus { background: transparent; padding: 0; border: 0; }
html[data-theme="graphite"] body #rankingsView .signalStatus.ok { color: var(--ui-success); }
html[data-theme="graphite"] body #rankingsView .signalStatus.bad { color: var(--ui-danger); }
html[data-theme="graphite"] body #rankingsView .signalStatus.warn { color: var(--ui-warning); }
html[data-theme="graphite"] body #rankingsView .signalMetric { min-width: 0; font-variant-numeric: tabular-nums; }
html[data-theme="graphite"] body #rankingsView .signalMetric > span {
  /* Keep labels in the accessibility tree; desktop has a single visual heading. */
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: clip;
  white-space: nowrap;
}
html[data-theme="graphite"] body #rankingsView .signalMetric b {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ui-ink);
  overflow-wrap: anywhere;
}
html[data-theme="graphite"] body #rankingsView .signalMetric.gain b { color: var(--ui-success); }
html[data-theme="graphite"] body #rankingsView .signalMetric.loss b { color: var(--ui-danger); }
html[data-theme="graphite"] body #rankingsView .signalMetric.secondary b { font-size: 14px; font-weight: 400; }
html[data-theme="graphite"] body #rankingsView .signalMetric.unavailable b { font-size: 13px; font-weight: 400; color: var(--ui-muted); }
html[data-theme="graphite"] body #rankingsView .signalActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 4px 12px;
  min-width: 0;
}
html[data-theme="graphite"] body #rankingsView .signalActions .subscribeButton {
  min-height: 36px;
  height: auto;
  width: auto;
  padding: 6px 12px;
  margin: 0;
  border-radius: var(--ui-radius);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}
html[data-theme="graphite"] body #rankingsView .signalActions .buttonIcon { display: none; }
html[data-theme="graphite"] body #rankingsView .signalDetailLink {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--ui-muted);
  border: 0;
  background: transparent;
  text-decoration: none;
}
html[data-theme="graphite"] body #rankingsView .signalDetailLink:hover { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 4px; }
html[data-theme="graphite"] body #rankingsView .signalActions :is(button, a):focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 3px; }
html[data-theme="graphite"] body #rankingsView .signalActions :is(button, a):active { opacity: .8; }
html[data-theme="graphite"] body #rankingsView .signalActions button:disabled { background: var(--ui-soft); color: var(--ui-muted); cursor: not-allowed; }
html[data-theme="graphite"] body #rankingsView :is(.signalPrice, .signalClosed) { color: var(--ui-muted); font-size: 12px; font-weight: 400; }
html[data-theme="graphite"] body #rankingsView .signalPrice { flex-basis: 100%; text-align: right; }
@media (max-width: 1280px) {
  html[data-theme="graphite"] body #rankingsView .signalTableHead { display: none; }
  html[data-theme="graphite"] body #rankingsView .signalRow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ui-space-4); }
  html[data-theme="graphite"] body #rankingsView .signalIdentity { grid-column: 1 / 3; }
  html[data-theme="graphite"] body #rankingsView .signalActions { grid-column: 3 / 5; grid-row: 1; }
  html[data-theme="graphite"] body #rankingsView .signalMetric > span {
    display: block;
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    overflow: visible;
    color: var(--ui-muted);
    font-size: 12px;
    margin-bottom: var(--ui-space-1);
  }
}
@media (max-width: 600px) {
  html[data-theme="graphite"] body #rankingsView .signalTable { padding: 0 var(--ui-space-3); }
  html[data-theme="graphite"] body #rankingsView .signalRow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="graphite"] body #rankingsView .signalIdentity { grid-column: 1 / -1; }
  html[data-theme="graphite"] body #rankingsView .signalActions {
    grid-column: 1 / -1;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--ui-space-2);
    justify-content: flex-end;
  }
  html[data-theme="graphite"] body #rankingsView .signalActions .signalDetailLink { order: -2; margin-right: auto; min-height: 44px; }
  html[data-theme="graphite"] body #rankingsView .signalActions .signalPrice { order: -1; flex-basis: auto; }
  html[data-theme="graphite"] body #rankingsView .signalActions .subscribeButton { min-height: 44px; }
}
html[data-theme="graphite"] body:not(.landingActive):not(.authViewActive) .main > .top {
  position: relative;
  top: auto;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="graphite"] body:not(.adminBackendActive) .main > .top :is(#workspaceMode, #eyebrow) {
  display: none;
}
/* Management routes use the sidebar and module headings, not a duplicate page header. */
body.adminBackendActive .main:has(> :is(
  #admin-accountsView,
  #subscriptions-adminView,
  #admin-businessView,
  #admin-operationsView,
  #copytradeView,
  #payment-settingsView,
  #smtp-settingsView,
  #admin-usersView
).active) > .top {
  display: none !important;
}
html[data-theme="graphite"] body:not(.landingActive) .main > .top h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}
html[data-theme="graphite"] body:not(.landingActive) .main > .top .toolbar {
  margin: 0;
  padding: 0;
  gap: 8px;
}
html[data-theme="graphite"] body:not(.landingActive) #rankingsView > .signalSquarePanel {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="graphite"] body .signalControls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
html[data-theme="graphite"] body:not(.landingActive) :is(#rankingsView, #homeView) .signalControls .rankingSearch {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="graphite"] body .signalControls .rankingSearch label {
  display: block;
  flex: 1 1 180px;
  min-width: 0;
  margin: 0;
}
html[data-theme="graphite"] body .signalControls .rankingSearch label > span {
  display: none;
}
html[data-theme="graphite"] body .signalControls .rankingSearch input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border-radius: var(--ui-radius);
}
html[data-theme="graphite"] body .signalControls :is(input, button):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 2px;
  box-shadow: none;
}
html[data-theme="graphite"] body .signalControls button {
  flex: 0 0 auto;
  width: auto;
  min-height: 40px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  white-space: nowrap;
}
html[data-theme="graphite"] body .signalControls .rankingFilters {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 0;
}
html[data-theme="graphite"] body .signalControls .rankingFilters button {
  gap: 5px;
  background: transparent;
  border-color: transparent;
  color: var(--ui-muted);
  box-shadow: none;
}
html[data-theme="graphite"] body .signalControls .rankingFilters button:hover {
  background: var(--ui-soft);
  color: var(--ui-ink);
}
html[data-theme="graphite"] body .signalControls .rankingFilters button.active {
  background: var(--ui-accent);
  color: var(--ui-accent-ink);
}
html[data-theme="graphite"] body .signalControls .rankingSearchStatus {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  color: var(--ui-muted);
}
html[data-theme="graphite"] body .signalControls .filterCount {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
/* Remove only duplicate framing/headings in the corresponding workbenches. */
html[data-theme="graphite"] body #ea-marketView .eaMarketCatalog {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="graphite"] body #client-setupView .clientAccountsHeader > h2,
html[data-theme="graphite"] body #my-copyView .myCopyTop > .panelHead > h2 {
  display: none;
}
html[data-theme="graphite"] body #client-setupView .clientAccountsHeader,
html[data-theme="graphite"] body #my-copyView .myCopyTop > .panelHead {
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  html[data-theme="graphite"] body .signalControls {
    flex-wrap: wrap;
    gap: 8px;
  }
  html[data-theme="graphite"] body:not(.landingActive) :is(#rankingsView, #homeView) .signalControls .rankingSearch {
    flex-basis: 100%;
  }
  html[data-theme="graphite"] body .signalControls .rankingSearchStatus {
    flex-basis: 100%;
  }
}
@media (max-width: 560px) {
  html[data-theme="graphite"] body:not(.landingActive):not(.authViewActive) .main > .top {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 8px;
  }
  html[data-theme="graphite"] body:not(.landingActive) .main > .top h1 {
    font-size: 20px;
  }
  html[data-theme="graphite"] body .signalControls .rankingSearch label {
    flex-basis: 120px;
  }
  html[data-theme="graphite"] body .signalControls .rankingSearch input,
  html[data-theme="graphite"] body .signalControls button {
    min-height: 44px;
    height: 44px;
  }
  html[data-theme="graphite"] body .signalControls .rankingFilters {
    width: 100%;
  }
  html[data-theme="graphite"] body .signalControls .rankingFilters button {
    flex: 1 1 0;
  }
}
