/* The plain kit's styles (2026-10-24): templates/ui/macros/plain.html, the one set of plain-language
   pieces the analyst and member pages share. Loaded on every page by ui/base.html, beside the other
   component families, so a page links nothing to use the kit. It replaces the kit rules of the five
   per-pass stylesheet blocks written the same day (admin/plain-pipeline.css `gm-pp-`,
   admin/analyst-pipeline-b.css `gm-pl-`, admin/analyst-outcomes.css `ao-`, and the former
   member/m1.css `m1-` and member/m2.css `m2-`, now member/pages.css), which keep only their pages'
   own layout.

   Hand-written on the --gm-* tokens, so dark and light come with them; down to 420px. The member
   blocks are scoped to `.member-main`, where static/member.css dresses bare markup (dl, ul, table,
   p) that these blocks must not inherit. No colour here carries a gain or loss meaning except the
   ladder's stop and target marks, which are positions on a plan, not results. */

/* --- words ------------------------------------------------------------------------------------ */

/* A badge that carries a plain-language label prints it as written, not in capitals. */
.lm-badge.lm-badge--asis {
  text-transform: none;
  letter-spacing: 0.01em;
}

.gm-fresh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gm-space-2);
}

.gm-fresh__hint {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

/* How long ago a state began, "41 days ago" (the kit's `age`, 2026-10-24): quiet, beside the state. */
.gm-age {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  white-space: nowrap;
}

/* --- the top bar's newest-prices line (2026-10-24, the walkthrough's item 3) ------------------- */
/* "Latest prices: Sep 17", calm by default; when newer completed sessions exist than any price on
   file, the warning tone and "Newer prices have not arrived." A reading of two dates: the tone
   marks the fact, it grades nothing. Below 760px the hint folds into the title; the date and the
   tone stay, so old prices never look current at a phone's width either. */
.gm-mdata {
  display: inline-flex;
  align-items: center;
  gap: var(--gm-space-2);
  min-width: 0;
  margin: 0;
  padding: 3px var(--gm-space-3);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-full);
  background: var(--gm-surface);
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  line-height: 1.3;
  white-space: nowrap;
}

.gm-mdata__icon {
  flex: none;
  color: var(--gm-text-subtle);
}

.gm-mdata time {
  color: var(--gm-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.gm-mdata--behind {
  border-color: var(--gm-warning-soft-border);
  background: var(--gm-warning-soft);
  color: var(--gm-text);
}

.gm-mdata--behind .gm-mdata__icon,
.gm-mdata--behind time {
  color: var(--gm-warning-ink);
}

html[data-theme="light"] .gm-mdata--behind .gm-mdata__icon,
html[data-theme="light"] .gm-mdata--behind time {
  color: #92570a;
}

.gm-mdata__hint {
  color: var(--gm-text-muted);
}

.gm-mdata__short {
  display: none;
}

@media (max-width: 760px) {
  .gm-mdata__hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .gm-mdata {
    gap: 4px;
    padding-inline: var(--gm-space-2);
  }

  .gm-mdata__long {
    display: none;
  }

  .gm-mdata__short {
    display: inline;
  }
}

/* --- the price ladder: stop, entry and target on one scale (a position only; no ratio drawn) --- */

.gm-ladder {
  position: relative;
  height: 10px;
  margin: var(--gm-space-3) 6px var(--gm-space-1);
}

.gm-ladder__track,
.gm-ladder__risk,
.gm-ladder__reward {
  position: absolute;
  top: 3px;
  height: 4px;
  border-radius: var(--gm-radius-full);
}

.gm-ladder__track {
  inset-inline: 0;
  background: var(--gm-border);
}

.gm-ladder__risk {
  background: var(--gm-down);
  opacity: 0.75;
}

.gm-ladder__reward {
  background: var(--gm-up);
  opacity: 0.85;
}

.gm-ladder__mark {
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  margin-inline-start: -5px;
  border: 2px solid var(--gm-surface);
  border-radius: var(--gm-radius-full);
  background: var(--gm-text);
}

.gm-ladder__mark--stop {
  background: var(--gm-down);
}

.gm-ladder__mark--target {
  background: var(--gm-up);
}

/* --- sections (admin; on top of the admin kit's panel classes) ---------------------------------- */

.gm-plain-sec + .gm-plain-sec {
  margin-top: var(--gm-space-5);
}

.gm-plain-morechips {
  display: inline-block;
}

.gm-plain-morechips > summary {
  cursor: pointer;
  list-style: none;
  color: var(--gm-text-muted);
}

.gm-plain-morechips > summary::-webkit-details-marker {
  display: none;
}

.gm-plain-morechips__body {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gm-space-2);
  margin-top: var(--gm-space-2);
}

/* The chain's names are words, not identifiers. */
.gm-plain-chain .gm-chain__item {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2px;
}

.gm-plain-chain .gm-plain-chain__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.gm-plain-chain .gm-chain__item > .gm-sub {
  flex-basis: auto;
  display: block;
  position: static;
  margin: 0;
  color: var(--gm-text-subtle);
}

/* --- the ID chip: a detail page's one id, small and copyable ------------------------------------ */
/* ~~Printed in a detail page's header~~: since 2026-10-24 `plain.id_chip` prints nothing (ids live
   in the closed Technical details fold only). The rules stay for any markup still carrying the
   class, and the fold's own `tech_id` below is the one id chip that renders. */

.gm-idchip {
  display: inline-flex;
  align-items: center;
  gap: var(--gm-space-2);
  min-width: 0;
  max-width: 100%;
  padding: 2px var(--gm-space-1) 2px var(--gm-space-3);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-full);
  background: var(--gm-surface-2);
  color: var(--gm-text-muted);
  font-size: 12px;
}

.gm-idchip__label {
  color: var(--gm-text-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-idchip code {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gm-text-muted);
  font-size: 12px;
}

.gm-idchip .lm-btn {
  height: 22px;
  min-width: 22px;
  padding: 0;
}

/* --- technical details: closed, last, quiet ----------------------------------------------------- */

.gm-tech {
  margin-top: var(--gm-space-2);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  background: var(--gm-surface);
}

.gm-tech > .gm-tech__summary {
  display: flex;
  align-items: center;
  gap: var(--gm-space-2);
  padding: 12px var(--gm-space-4);
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.gm-tech > .gm-tech__summary::-webkit-details-marker {
  display: none;
}

.gm-tech > .gm-tech__summary:hover {
  color: var(--gm-text);
}

.gm-tech > .gm-tech__summary:focus-visible {
  outline: 2px solid var(--gm-primary-control);
  outline-offset: 2px;
  border-radius: var(--gm-radius-lg);
}

.gm-tech__chev {
  flex: none;
  color: var(--gm-text-subtle);
  transition: transform var(--gm-dur-fast) var(--gm-ease);
}

.gm-tech[open] > .gm-tech__summary .gm-tech__chev {
  transform: rotate(90deg);
}

.gm-tech__body {
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-4);
  min-width: 0;
  padding: var(--gm-space-3) var(--gm-space-4) var(--gm-space-4);
  border-top: 1px solid var(--gm-border);
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  line-height: 1.6;
}

.gm-tech__body > * {
  margin-block: 0;
}

.gm-tech__group {
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-2);
  min-width: 0;
}

.gm-tech .gm-tech__head,
.gm-tech__group > h3 {
  margin: 0;
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-tech__group > p,
.gm-tech .gm-tech__note {
  margin: 0;
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

.gm-tech .gm-tech__lines {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.gm-tech dl.gm-tech__dl {
  display: grid;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: var(--gm-text-small);
}

.gm-tech dl.gm-tech__dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
  gap: var(--gm-space-3);
  padding: 6px 0;
  border-bottom: 1px solid var(--gm-border);
}

.gm-tech dl.gm-tech__dl > div:last-child {
  border-bottom: 0;
}

.gm-tech dl.gm-tech__dl dt,
.gm-tech dl.gm-tech__dl dd {
  margin: 0;
  padding: 0;
  border: 0;
}

.gm-tech dl.gm-tech__dl dt {
  color: var(--gm-text-subtle);
}

.gm-tech dl.gm-tech__dl dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gm-tech code {
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

.gm-tech__ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: var(--gm-space-3);
}

.gm-tech__ref .lm-btn,
.gm-tech__id .lm-btn {
  height: 24px;
  min-width: 24px;
  padding: 0;
}

.gm-tech__id {
  display: inline-flex;
  align-items: center;
  gap: var(--gm-space-2);
  max-width: 100%;
  padding: 2px 4px 2px var(--gm-space-3);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-full);
  background: var(--gm-surface);
  font-size: 12px;
}

.gm-tech__id .gm-caps {
  color: var(--gm-text-subtle);
}

.gm-tech__id code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gm-text-muted);
}

/* An id chip belongs in the Technical details fold. One printed in a page's main column (a header
   that still calls `plain.tech_id`) is not shown there (2026-10-24, the owner's "no ids" ruling);
   the same id stays in the fold, with its copy button. */
:is(.admin-main, .member-main) .gm-tech__id {
  display: none;
}

:is(.admin-main, .member-main) .gm-tech .gm-tech__id {
  display: inline-flex;
}

.gm-tech__ids {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gm-space-2) var(--gm-space-3);
}

.gm-tech__scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-md);
}

.gm-tech table.gm-tech__table {
  display: table;
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: none;
  font-size: var(--gm-text-small);
  font-variant-numeric: tabular-nums;
}

.gm-tech table.gm-tech__table th,
.gm-tech table.gm-tech__table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gm-border);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.gm-tech table.gm-tech__table thead th {
  background: var(--gm-surface-2);
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gm-tech table.gm-tech__table tbody tr:last-child > * {
  border-bottom: 0;
}

@container gm-member (max-width: 560px) {
  .gm-tech dl.gm-tech__dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@container gm-admin (max-width: 560px) {
  .gm-tech dl.gm-tech__dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* --- member blocks ------------------------------------------------------------------------------ */

/* Label-over-value pairs. */
.member-main dl.gm-facts {
  display: grid;
  grid-template-columns: repeat(var(--gm-facts-cols, 4), minmax(0, 1fr));
  gap: var(--gm-space-3);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.member-main .gm-facts__item {
  min-width: 0;
}

.member-main dl.gm-facts dt,
.member-main dl.gm-facts dd {
  margin: 0;
  padding: 0;
  border: 0;
}

.member-main dl.gm-facts dt {
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.member-main dl.gm-facts dd {
  margin-top: 2px;
  font-size: var(--gm-text-body);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Headline fact tiles. */
.member-main dl.gm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--gm-space-3);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.member-main .gm-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  background: var(--gm-surface);
}

.member-main dl.gm-tiles .gm-tile dt,
.member-main dl.gm-tiles .gm-tile dd {
  margin: 0;
  padding: 0;
  border: 0;
}

.member-main dl.gm-tiles .gm-tile dt {
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-main dl.gm-tiles .gm-tile dd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.member-main dl.gm-tiles .gm-tile dd small {
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-small);
  font-weight: 400;
}

/* Key and value rows (inside a page's titled block). */
.member-main dl.gm-kv {
  display: grid;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.member-main .gm-kv__row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: var(--gm-space-3);
  align-items: baseline;
  padding: 11px 20px;
  border-top: 1px solid var(--gm-border);
}

.member-main dl.gm-kv .gm-kv__row dt,
.member-main dl.gm-kv .gm-kv__row dd {
  margin: 0;
  padding: 0;
  border: 0;
}

.member-main dl.gm-kv .gm-kv__row dt {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

.member-main dl.gm-kv .gm-kv__row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gm-space-2);
  overflow-wrap: anywhere;
}

.member-main dl.gm-kv .gm-kv__row dd small {
  flex-basis: 100%;
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-small);
}

.member-main .gm-notice {
  max-width: 78ch;
}

/* One price of a plan, large, in a neutral tile (no gain or loss colour on this surface). */
.member-main dl.gm-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--gm-space-3);
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}

.member-main dl.gm-prices > .gm-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: var(--gm-space-3) var(--gm-space-4);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  background: var(--gm-surface);
}

.member-main dl.gm-prices dt,
.member-main dl.gm-prices dd {
  margin: 0;
  padding: 0;
  border: 0;
}

.member-main dl.gm-prices dt {
  color: var(--gm-text-subtle);
  font-size: var(--gm-text-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.member-main dl.gm-prices dd {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gm-price__v {
  font-family: var(--gm-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.gm-price__c {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-caption);
  line-height: 1.4;
}

/* A linked card, in a grid of them. */
.member-main ul.gm-link-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--gm-space-2) var(--gm-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.member-main a.gm-link-card,
.member-main .gm-link-card--static {
  display: flex;
  align-items: flex-start;
  gap: var(--gm-space-3);
  height: 100%;
  padding: var(--gm-space-3) var(--gm-space-4);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  background: var(--gm-surface);
  color: var(--gm-text);
}

.member-main a.gm-link-card {
  text-decoration: none;
  transition: background-color var(--gm-dur-fast) var(--gm-ease), border-color var(--gm-dur-fast) var(--gm-ease);
}

.member-main a.gm-link-card:hover {
  background: var(--gm-surface-2);
  border-color: var(--gm-border-strong);
  text-decoration: none;
}

.member-main .gm-link-card > svg {
  flex: none;
  margin-top: 2px;
  color: var(--gm-text-muted);
}

.member-main .gm-link-card__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member-main a.gm-link-card > .gm-link-card__go {
  flex: none;
  align-self: center;
  margin: 0;
  color: var(--gm-text-subtle);
}

.member-main .gm-link-card__text strong {
  font-weight: 600;
}

.member-main .gm-link-card__text small {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

/* A linked row inside a titled block. */
.member-main a.gm-link-row {
  display: flex;
  align-items: center;
  gap: var(--gm-space-3);
  min-width: 0;
  padding: 13px 20px;
  border-top: 1px solid var(--gm-border);
  color: var(--gm-text);
  text-decoration: none;
  transition: background-color var(--gm-dur-fast) var(--gm-ease);
}

.member-main a.gm-link-row:hover {
  background: var(--gm-surface-2);
  text-decoration: none;
}

.member-main a.gm-link-row:focus-visible {
  outline: 2px solid var(--gm-primary-control);
  outline-offset: -2px;
}

.member-main .gm-link-row__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.member-main .gm-link-row__title {
  color: var(--gm-text);
  font-weight: 600;
}

.member-main .gm-link-row__sub {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

.member-main .gm-link-row__side {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--gm-space-2);
}

.member-main .gm-link-row__chev {
  display: inline-flex;
  flex: none;
  color: var(--gm-text-subtle);
}

/* The disclosures, always open. */
.member-main > .gm-disclosures {
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-3);
  padding-top: 0;
  border-top: 0;
}

.member-main .gm-disclosures > * {
  margin: 0;
  min-width: 0;
}

.member-main .gm-disclosures__h {
  margin: 0;
  font-family: var(--gm-font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.member-main ul.gm-disclosures__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--gm-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.member-main ul.gm-disclosures__list > li {
  padding: var(--gm-space-3) var(--gm-space-4);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  background: var(--gm-surface);
}

.member-main .gm-disclosures__title {
  margin: 0 0 4px;
  font-size: var(--gm-text-body);
  font-weight: 600;
}

.member-main .gm-disclosures__text {
  margin: 0;
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  line-height: 1.55;
}

/* The confirm dialog. */
dialog.gm-dialog {
  inset: 0;
  width: min(92vw, 26rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--gm-border-strong);
  border-radius: var(--gm-radius-xl);
  background: var(--gm-surface);
  color: var(--gm-text);
  box-shadow: var(--gm-shadow-lg);
}

dialog.gm-dialog::backdrop {
  background: rgb(0 0 0 / 55%);
}

.gm-dialog__body {
  display: flex;
  flex-direction: column;
  gap: var(--gm-space-2);
  padding: 22px 24px 8px;
}

.gm-dialog__body h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gm-dialog__body p {
  margin: 0;
  color: var(--gm-text-muted);
}

.gm-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--gm-space-2);
  padding: 16px 24px 20px;
}

@container gm-member (max-width: 560px) {
  .member-main dl.gm-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-main dl.gm-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .member-main .gm-kv__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding-inline: 16px;
  }
  .member-main a.gm-link-row {
    padding-inline: 16px;
  }
}

/* --- 2026-10-24, the second walkthrough (R2: the analyst pages) -------------------------------- */

/* "Checks paused: no new prices since Sep 17." where a state waits on prices that stopped: one
   quiet amber line beside the state, never a verdict. */
.gm-pp-paused {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gm-warning-ink);
  font-size: var(--gm-text-small);
  font-weight: 600;
}
.gm-pp-paused svg { flex: none; }
html[data-theme="light"] .gm-pp-paused { color: #92570a; }

/* The banner over a list that shows a replay's records instead of live trading. */
.gm-pp-banner { margin-block-end: var(--gm-space-4); }

/* The Analyst workspace shows one workspace only (its tile row is for whoever runs the system, and
   the "All pages" menu still reaches every page). */
.gm-sidebar[data-workspace="analyst"] .gm-wsw__list { display: none; }
.gm-sidebar[data-workspace="analyst"] .gm-wsw__detail { margin-block-start: 0; }

/* A hint opened by a tap: a phone has no hover, so a badge's one-sentence title shows under it
   (static/admin/hints.js toggles `data-hint-open`). */
[data-hint-open] { position: relative; }
[data-hint-open]::after {
  content: attr(title);
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-start: 0;
  z-index: 20;
  width: max-content;
  max-width: min(18rem, 80vw);
  padding: var(--gm-space-2) var(--gm-space-3);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-md, 8px);
  background: var(--gm-surface-2, var(--gm-surface));
  color: var(--gm-text);
  font-size: var(--gm-text-small);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}

/* Narrow: a list table is a stack of small cards (label: value), not a strip that scrolls sideways
   and cuts a badge in half. The Technical details fold keeps its scrolling table. */
@container gm-tpl (max-width: 38rem) {
  .gm-tpl .lm-table-container:not(.gm-tech *) { overflow: visible; animation: none; -webkit-mask-image: none; mask-image: none; }
  .gm-tpl .lm-table-container:not(.gm-tech *)::after { content: none; }
  .gm-tpl .lm-table-container:not(.gm-tech *) .lm-table { width: 100%; min-width: 0; table-layout: auto; }
  .gm-tpl .lm-table-container:not(.gm-tech *) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gm-tpl .lm-table-container:not(.gm-tech *) tbody,
  .gm-tpl .lm-table-container:not(.gm-tech *) tr { display: block; }
  .gm-tpl .lm-table-container:not(.gm-tech *) tr { padding: var(--gm-space-2) var(--gm-space-3); border-bottom: 1px solid var(--gm-border); }
  .gm-tpl .lm-table-container:not(.gm-tech *) tr:last-child { border-bottom: 0; }
  .gm-tpl .lm-table-container:not(.gm-tech *) .lm-table__cell {
    display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gm-space-3);
    border: 0; padding: 4px 0; white-space: normal; text-align: end; overflow-wrap: anywhere;
    flex-wrap: wrap;
  }
  .gm-tpl .lm-table-container:not(.gm-tech *) .lm-table__cell::before {
    content: attr(data-label); flex: none; color: var(--gm-text-subtle); font-size: var(--gm-text-caption);
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: start;
  }
  .gm-tpl .lm-table-container:not(.gm-tech *) .lm-table__cell > * { text-align: end; }
}

/* Narrow: the status chips wrap onto more lines instead of scrolling out of sight. */
@container gm-tpl (max-width: 38rem) {
  .gm-tpl .gm-fgroup.gm-chips { flex-wrap: wrap; overflow: visible; }
  .gm-tpl .lm-data-table__toolbar { overflow: visible; }
}

/* The mode banner (2026-10-25, Batch 3; admin/_kit.html's mode_banner): which GreenMinter, whose
   prices, simulated money and which records, at the top of every Analyst page. Neutral ink on
   purpose: a reading, not a verdict, and green is for gains only. */
.gm-mode {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gm-space-2) var(--gm-space-4);
  align-items: center;
  margin: 0 0 var(--gm-space-4);
  padding: var(--gm-space-2) var(--gm-space-3);
  border: 1px dashed var(--gm-border);
  border-radius: var(--gm-radius-md, 8px);
  background: var(--gm-surface);
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  line-height: 1.4;
}

.gm-mode__item {
  display: inline-flex;
  gap: var(--gm-space-1, 4px);
  align-items: baseline;
  min-width: 0;
}

.gm-mode__k {
  color: var(--gm-text-subtle);
}

.gm-mode__v {
  color: var(--gm-text);
  font-weight: 600;
}

a.gm-mode__v {
  text-decoration: underline;
}

/* Trail II (2026-10-25, Batch 4): what happens next, the writing time beside the market time,
   and the "why" lines. Neutral tones only: a next step and a cause are readings, not warnings. */
.gm-next {
  display: flex;
  gap: var(--gm-space-2, 8px);
  align-items: baseline;
  margin: var(--gm-space-2, 8px) 0 0;
  color: var(--gm-text);
  font-size: var(--gm-text-small);
  line-height: 1.45;
}

.gm-next__icon {
  flex: none;
  color: var(--gm-text-subtle);
  transform: translateY(2px);
}

.gm-next--done {
  color: var(--gm-text-muted);
}

.gm-pair {
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

.gm-pair__cause {
  color: var(--gm-text-subtle);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.gm-why {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-why li {
  margin: 0 0 var(--gm-space-2, 8px);
  line-height: 1.45;
}

.gm-why__line {
  display: block;
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
}

.gm-measure {
  display: block;
  margin-top: 2px;
  color: var(--gm-text-muted);
  font-size: var(--gm-text-small);
  overflow-wrap: anywhere;
}
