/*
 * The method view's styling.
 *
 * ONE COPY, TWO CONSUMERS — the live app links it, and `render-method.ts` reads
 * it from here to inline into the standalone file. A second copy would drift.
 *
 * EVERYTHING IS SCOPED UNDER `.method-view`, INCLUDING THE TOKENS. The app has
 * its own `styles.css` using the same obvious names — `--ink`, `--rule`,
 * `--accent` — and its own `body`, `.wrap` and `h1` rules. A stylesheet that
 * defined those globally would silently restyle the watchlist the moment it was
 * linked, and the damage would look like a layout bug rather than a cascade
 * collision. So this file defines NOTHING outside its own subtree: the tokens
 * are `--m-*` and they live on `.method-view` itself.
 */
.method-view * { box-sizing: border-box; }
/* #423: each surface and text --m-* reads the app's shared token when
   styles.css is linked, and falls back to the same Planner value in the
   standalone file, so the method view and the app draw one palette without
   this file defining a global name. */
.method-view {
  --m-ink: var(--ink, #1f2933);
  --m-ink-soft: var(--muted, #56626e);
  --m-ink-faint: var(--faint, #5f6b78);
  --m-ground: var(--ground, #e7eaee);
  --m-card: var(--surface, #f7f8fa);
  --m-rule: var(--line, #cbd2da);
  --m-accent: #1f5f4e; /* Method's own accent: kept, it carries domain meaning */
  --m-warn: var(--accent, #6e5217);
  --m-warn-ground: var(--accent-soft, #efe4cb);
  --m-depart: var(--danger-ink, #8c3325);
  --m-depart-ground: var(--danger-bg, #f1dcd7);
  /* #423: text on a filled accent/warn/depart chip, and the tuned tag's ink. */
  --m-on-fill: #ffffff;
  --m-tuned: var(--action, #2f5d86);
}
.method-view {
  color: var(--m-ink);
  background: var(--m-ground);
  font: 16px/1.55 var(--font-sans, ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif);
}
.method-view .masthead { padding: 40px 0 8px; }
.method-view .eyebrow {
  margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--m-ink-faint);
}
.method-view h1 { margin: 0 0 10px; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
.method-view .sub { margin: 0; max-width: 42rem; color: var(--m-ink-soft); }
.method-view .notice {
  border: 1px solid var(--m-warn);
  background: var(--m-warn-ground);
  border-left-width: 4px;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 18px 0 4px;
  font-size: 15px;
  color: var(--m-ink);
}
.method-view .panel {
  background: var(--m-card); border: 1px solid var(--m-rule); border-radius: 10px;
  padding: 20px; margin: 22px 0;
}
.method-view .panel-departure { border-color: color-mix(in srgb, var(--m-depart) 35%, var(--m-card)); background: var(--m-depart-ground); }
.method-view .panel-warn { border-color: color-mix(in srgb, var(--m-warn) 35%, var(--m-card)); background: var(--m-warn-ground); }
.method-view .panel-quiet { background: transparent; border-style: dashed; }
.method-view h2 {
  margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.method-view h3 { margin: 0 0 4px; font-size: 16px; }
.method-view .count {
  font-size: 12px; font-weight: 600; background: var(--m-ink); color: var(--m-card);
  border-radius: 999px; padding: 2px 9px; letter-spacing: .02em;
}
.method-view .panel-departure .count { background: var(--m-depart); }
.method-view .panel-warn .count { background: var(--m-warn); }
.method-view .lede { margin: 0 0 14px; color: var(--m-ink-soft); max-width: 44rem; }
.method-view .empty { margin: 0; color: var(--m-ink-soft); font-style: italic; }
.method-view .muted { color: var(--m-ink-faint); }
/*
 * THE REVERSE CASCADE COLLISION, and the one I did not guard against.
 *
 * `styles.css` sets a bare `table { min-width: 760px }` for the watchlist,
 * which is inside a `.table-scroll` container. That rule reaches these tables
 * too, and they were not. At 375, 560 and 561px the page's scroll width became
 * 797px and the right-hand columns ran outside the card and the viewport
 * (codex-D, PR #49).
 *
 * I scoped this file so it could not leak OUT, and never checked what leaked
 * IN. Isolation has two directions and I guarded one.
 *
 * `min-width: 0` overrides the global floor; the wrapper below supplies the
 * scroller the watchlist gets from `.table-scroll`, so every column stays
 * reachable without the page itself scrolling sideways.
 */
.method-view .grid-scroll { overflow-x: auto; max-width: 100%; }
.method-view table.grid {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.method-view table.grid th, .method-view table.grid td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--m-rule); vertical-align: top;
}
.method-view table.grid thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--m-ink-faint); }
.method-view table.grid tbody th { font-weight: 600; }
.method-view .table-scroll { overflow-x: auto; }
.method-view code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--m-accent); }
.method-view .tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px; white-space: nowrap;
}
/* #423: each tag is its own ink over a tint of that ink, so one rule serves
   light and dark (≥5:1 in both) and no per-theme override is needed. */
.method-view .tag-book { background: color-mix(in srgb, var(--m-accent) 14%, var(--m-card)); color: var(--m-accent); }
.method-view .tag-interpretation { background: color-mix(in srgb, var(--m-warn) 14%, var(--m-card)); color: var(--m-warn); }
.method-view .tag-seed { background: color-mix(in srgb, var(--m-depart) 14%, var(--m-card)); color: var(--m-depart); }
.method-view .tag-tuned { background: color-mix(in srgb, var(--m-tuned) 14%, var(--m-card)); color: var(--m-tuned); }
.method-view .tag-unset { background: color-mix(in srgb, var(--m-ink-soft) 10%, var(--m-card)); color: var(--m-ink-soft); }
.method-view .tag-unknown { background: color-mix(in srgb, var(--m-ink-soft) 6%, var(--m-card)); color: var(--m-ink-soft); }
.method-view .choice { border-top: 1px solid var(--m-rule); padding: 4px 0; }
.method-view .choice:first-of-type { border-top: 0; }
/* #537: a waiting decision is one line until opened — the parameter, then
   what is on offer. The line is the whole tap target. */
.method-view .choice > summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: baseline;
  gap: 8px; padding: 10px 0; overflow-wrap: anywhere;
}
.method-view .choice .choice-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; min-width: 0; }
.method-view .choice > summary { list-style: none; }
.method-view .choice > summary::-webkit-details-marker { display: none; }
/* The flex summary loses the native triangle, so it draws its own; the
   empty alternative keeps it out of the accessible name. */
.method-view .choice > summary::before { content: "▸" / ""; color: var(--m-ink-soft); flex: 0 0 1em; }
.method-view .choice[open] > summary::before { content: "▾" / ""; }
.method-view .choice > summary:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; border-radius: 4px; }
.method-view .choice .choice-name { font-weight: 700; }
.method-view .choice .choice-offer { color: var(--m-ink-soft); font-size: 14px; }
.method-view .choice[open] { padding-bottom: 14px; }
.method-view .choice .decide { margin: 10px 0 0; }
.method-view .choice .decide a { display: flex; align-items: center; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.method-view .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.method-view ul.readings { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.method-view ul.readings li {
  border: 1px solid var(--m-rule); border-radius: 8px; padding: 10px 12px; background: var(--m-ground);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.method-view ul.readings li.is-default { background: color-mix(in srgb, var(--m-accent) 8%, var(--m-card)); border-color: color-mix(in srgb, var(--m-accent) 35%, var(--m-card)); }
.method-view .value { font-weight: 700; font-size: 17px; }
.method-view .running {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--m-accent); color: var(--m-on-fill); border-radius: 4px; padding: 2px 7px;
}
.method-view .source { color: var(--m-ink-soft); font-size: 14px; }
.method-view .note { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--m-ink-soft); }
.method-view .flag { color: var(--m-depart); font-weight: 600; font-size: 13px; }
.method-view ul.manual { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.method-view ul.manual li {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--m-rule); padding-bottom: 8px;
}
.method-view .check { font-weight: 600; }
.method-view .why { color: var(--m-ink-faint); font-size: 13px; }
.method-view ul.deferred { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.method-view ul.deferred p { margin: 2px 0 0; color: var(--m-ink-soft); font-size: 14px; }
.method-view .broken { margin-top: 14px; }
.method-view footer { color: var(--m-ink-faint); font-size: 13px; max-width: 44rem; margin-top: 26px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .method-view {
    --m-ink: var(--ink, #e3e7ea); --m-ink-soft: var(--muted, #a3aeb9); --m-ink-faint: var(--faint, #96a2ae);
    --m-ground: var(--ground, #161c22); --m-card: var(--surface, #1e262e); --m-rule: var(--line, #2c3640);
    --m-accent: #6cc0a4; --m-warn: var(--accent, #e3c47a); --m-warn-ground: var(--accent-soft, #3a3019);
    --m-depart: var(--danger-ink, #f0a393); --m-depart-ground: var(--danger-bg, #3d2420);
    --m-on-fill: #14161a; --m-tuned: var(--action, #8fb9dd);
  }
}
/* And again for an explicit dark choice, so a viewer who picks dark on a light
   OS gets the dark palette. The media query alone only covers the un-stamped
   default, which is most viewers but not all. */
:root[data-theme="dark"] .method-view {
  --m-ink: var(--ink, #e3e7ea); --m-ink-soft: var(--muted, #a3aeb9); --m-ink-faint: var(--faint, #96a2ae);
  --m-ground: var(--ground, #161c22); --m-card: var(--surface, #1e262e); --m-rule: var(--line, #2c3640);
  --m-accent: #6cc0a4; --m-warn: var(--accent, #e3c47a); --m-warn-ground: var(--accent-soft, #3a3019);
  --m-depart: var(--danger-ink, #f0a393); --m-depart-ground: var(--danger-bg, #3d2420);
  --m-on-fill: #14161a; --m-tuned: var(--action, #8fb9dd);
}

/* ---------------------------------------------------------------------------
   The editing surface.

   Everything stays scoped under `.method-view`, tokens included — `styles.css`
   owns `--ink`, `--rule`, `--accent` and its own `body`, `.wrap` and `h1`, so a
   rule defined outside this subtree would restyle the watchlist the moment the
   sheet is linked, and the damage would read as a layout bug rather than a
   cascade collision.

   44px minimum on every control: this is a touch target on a phone, and the
   decision it commits is one Dave will want to make deliberately.
--------------------------------------------------------------------------- */
.method-view .panel-edit .count { background: var(--m-accent); }

.method-view .parameter {
  border-top: 1px solid var(--m-rule);
  padding-top: 18px;
  margin-top: 18px;
}
.method-view .parameter:first-of-type { border-top: 0; margin-top: 0; }

.method-view .parameter h3 {
  font-size: 1rem; margin: 0 0 6px;
}

.method-view .current {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 12px; font-size: .9rem;
}
.method-view .current .value { font-weight: 650; font-variant-numeric: tabular-nums; }
.method-view .current .source { color: var(--m-ink-soft); }
.method-view .since { color: var(--m-ink-faint); font-size: .82rem; }

.method-view .btn {
  font: inherit; font-size: .82rem; line-height: 1;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--m-rule); border-radius: 8px;
  background: var(--m-card); color: var(--m-ink);
  cursor: pointer;
}
.method-view .btn:hover { border-color: var(--m-accent); color: var(--m-accent); }
.method-view .btn:focus-visible {
  outline: 2px solid var(--focus, var(--m-accent)); outline-offset: 2px;
}
.method-view .btn-reading { white-space: nowrap; }
.method-view .btn-reading[aria-pressed='true'] {
  background: var(--m-accent); border-color: var(--m-accent); color: var(--m-on-fill);
  cursor: default;
}
.method-view .btn-quiet { color: var(--m-ink-soft); margin-top: 10px; }

.method-view .parameter .readings li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.method-view .parameter .readings .note { flex-basis: 100%; margin: 2px 0 0; }
.method-view .is-chosen { outline: none; }

.method-view .tune {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 12px;
}
.method-view .tune label { font-size: .82rem; color: var(--m-ink-soft); }
.method-view .tune-input,
.method-view .tune-reason {
  font: inherit; font-size: .85rem;
  min-height: 44px; padding: 0 10px;
  border: 1px solid var(--m-rule); border-radius: 8px;
  background: var(--m-card); color: var(--m-ink);
  min-width: 0;
}
.method-view .tune-input { width: 8.5rem; }
.method-view .tune-reason { flex: 1 1 14rem; }
.method-view .tune-input:focus-visible,
.method-view .tune-reason:focus-visible {
  outline: 2px solid var(--focus, var(--m-accent)); outline-offset: 1px;
}
.method-view .tune-why {
  flex-basis: 100%; margin: 0; font-size: .82rem; color: var(--m-depart);
}
.method-view .tune-none {
  margin: 12px 0 0; font-size: .85rem; color: var(--m-ink-soft); font-style: italic;
}

@media (max-width: 560px) {
  .method-view .tune-input { width: 100%; }
  .method-view .tune-reason { flex-basis: 100%; }
}

/* The open-interest assessment card (#28) — a calculator over typed
   observations, visually subordinate to the decision controls above it. */
.method-view .oi-card {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--m-rule);
}
.method-view .oi-card h4 {
  margin: 0 0 6px; font-size: .95rem;
}
.method-view .oi-rule { margin: 8px 0; font-size: .9rem; }
.method-view .oi-inputs {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px;
}
.method-view .oi-inputs label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: .82rem; color: var(--m-ink-soft);
  flex: 1 1 10rem;
}
.method-view .oi-inputs input {
  font: inherit; font-size: .95rem;
  min-height: 44px; padding: 0 10px;
  border: 1px solid var(--m-rule); border-radius: 8px;
  background: var(--m-card); color: var(--m-ink);
  width: 100%;
}
.method-view .oi-inputs input:focus-visible {
  outline: 2px solid var(--focus, var(--m-accent)); outline-offset: 1px;
}
.method-view .oi-result { margin-top: 12px; }
.method-view .oi-prompt { margin: 4px 0; font-size: .85rem; color: var(--m-ink-soft); }
.method-view .oi-verdict { margin: 0 0 6px; font-weight: 600; }
.method-view .oi-met { color: var(--m-ink); }
.method-view .oi-not-met { color: var(--m-depart); }
.method-view .oi-conditions {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: .85rem;
}
.method-view .oi-conditions .source { display: block; font-size: .78rem; color: var(--m-ink-soft); }

/* TD260: the annotated chart. Scoped like everything else in this file. */
.method-view .chart-panel .chart {
  display: block;
  width: 100%;
  height: auto;
  background: var(--m-card);
  border: 1px solid var(--m-rule);
  border-radius: 8px;
}
.method-view .chart-grid { stroke: var(--m-rule); stroke-width: 1; }
.method-view .chart-axis { fill: var(--m-ink-soft); font-size: 11px; }
.method-view .chart-up { stroke: var(--m-accent); fill: var(--m-accent); }
.method-view .chart-down { stroke: var(--m-depart); fill: var(--m-depart); }
.method-view .chart-band { fill: var(--m-warn-ground); stroke: none; }
.method-view .chart-curve { fill: none; stroke-width: 1.5; }
.method-view .chart-level { stroke: var(--m-warn); stroke-width: 1.5; stroke-dasharray: 6 4; }
.method-view .chart-level-label { fill: var(--m-warn); font-size: 11px; }
.method-view .chart-marker-trigger { fill: var(--m-accent); }
/* TD#368: the inspection hit strips — invisible until selected or focused,
 * so the chart reads unchanged until someone asks for a candle. The whole
 * column is the target: the candle body is a few pixels wide at 120 bars. */
.method-view .chart-hit { fill: transparent; stroke: none; cursor: pointer; }
.method-view .chart-hit-selected { fill: rgba(127, 127, 127, .16); fill: color-mix(in srgb, var(--m-ink) 14%, transparent); stroke: var(--m-ink); stroke-width: 1; }
.method-view .chart-hit:focus-visible { stroke: var(--focus, var(--m-accent)); stroke-width: 2; }
.method-view .chart-inspect { margin: 8px 0 0; font-size: 1rem; line-height: 1.45; }
.method-view .chart-inspect-row { display: flex; align-items: center; gap: 10px; }
.method-view .chart-inspect-row .chart-inspect-reading { margin: 0; flex: 1; text-align: center; }
/* TD#368 r1: the step buttons are the phone's arrow keys — full fingertip
 * size, since the strips they walk between are ~2px wide at 120 bars. */
.method-view .chart-step {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  font-size: 1.4rem; line-height: 1;
  border: 1px solid var(--m-rule); border-radius: 8px;
  background: var(--m-card); color: var(--m-ink); cursor: pointer;
}
.method-view .chart-step:disabled { opacity: .4; cursor: default; }
.method-view .chart-inspect-basis { color: var(--m-ink-soft); font-size: .85rem; }
.method-view .chart-inspect-hint { color: var(--m-ink-soft); font-size: .85rem; }
.method-view .chart-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 8px; font-size: .82rem; color: var(--m-ink-soft);
}
.method-view .chart-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.method-view .chart-toggle input { min-height: 0; width: auto; }
.method-view .chart-swatch { display: inline-block; width: 14px; height: 4px; border-radius: 2px; }
.method-view .chart-swatch-level { background: var(--m-warn); }
.method-view .chart-swatch-marker { background: var(--m-ink-soft); }
/* #322: the recorded-level review — unassessed sessions shaded, counted closes ringed. */
.method-view .chart-prerecorded { fill: var(--m-ink-soft); opacity: .08; }
.method-view .chart-breach { fill: none; stroke-width: 1.5; }
.method-view .chart-breach-close { stroke: var(--m-depart); }
.method-view .chart-breach-pair { stroke: var(--m-depart); stroke-width: 2.5; }
.method-view .chart-breach-uncertain { stroke: var(--m-depart); stroke-dasharray: 3 2; }
.method-view .chart-breach-recovery { stroke: var(--m-accent); stroke-width: 2; }
.method-view .chart-swatch-breach { background: var(--m-depart); }
/* #326: the chosen moving-average fence (solid) and the next one the source names (dashed). */
.method-view .chart-fence { fill: none; stroke: var(--m-ink); stroke-width: 2.25; }
.method-view .chart-fence-next { stroke-dasharray: 6 4; stroke-width: 1.75; }
.method-view .chart-swatch-fence { background: var(--m-ink); }
.method-view .chart-text { margin-top: 8px; font-size: .82rem; color: var(--m-ink-soft); }

/* #480: the Method sub-section links, mirroring the Trades tabs (#475). */
.method-view .method-subnav { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--m-line, currentColor); margin-bottom: 14px; }
.method-view .method-subnav a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-weight: 600; text-decoration: none; color: var(--m-ink-soft);
}
.method-view .method-subnav a:hover { color: var(--m-accent); }
.method-view .method-subnav a[aria-current] { color: var(--m-accent); border-bottom-color: var(--m-accent); }
.method-view .method-subnav a:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 520px) {
  .method-view .method-subnav a { flex: 1 1 0; padding: 8px 6px; }
}
/* #480: a subject group inside Settings, and a setting's longer explanation. */
.method-view .param-group { margin-top: 18px; }
.method-view .param-group > h3 { margin: 0 0 8px; font-size: 1.05rem; }
.method-view .param-about { margin: 6px 0; }
.method-view .param-about > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.method-view .method-host [hidden] { display: none; }

/* #496: a setting is a link target — scrolled to, focused, and visibly so. */
.method-view .parameter { scroll-margin-top: 1rem; }
.method-view .parameter:focus,
.method-view [data-setting-unknown]:focus { outline: 3px solid var(--focus, #1d4f91); outline-offset: 2px; }
.method-view .setting-link { margin-left: 0.5rem; font-size: 0.8125rem; font-weight: 400; }

/* #378: Reference › How the numbers were checked. No breakpoint of its own:
   each row's head wraps, so phone and desktop share one layout. The status
   carries a shape and words, never colour alone. */
.method-view .vlegend { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.method-view .vlegend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.method-view .vlegend-why { flex-basis: 100%; font-size: 13px; color: var(--m-ink-soft); }
.method-view .vstatus { font-size: 13px; font-weight: 600; white-space: nowrap; }
.method-view .vstatus-configured { color: var(--m-accent); }
.method-view .vstatus-formula { color: var(--m-warn); }
.method-view .vstatus-platform, .method-view .vstatus-unknown { color: var(--m-ink-soft); }
.method-view .vgroup { margin-top: 18px; }
.method-view .vgroup > h3 { margin: 0 0 4px; font-size: 1.05rem; }
.method-view ul.vrows { list-style: none; margin: 0; padding: 0; }
.method-view .vrow { border-top: 1px solid var(--m-rule); padding: 10px 0 2px; min-width: 0; }
.method-view .vrow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.method-view .vrow-use { font-weight: 700; }
.method-view .vrow-setting { color: var(--m-ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.method-view .vrow-head .vstatus { margin-left: auto; }
.method-view .vrow-scope { margin: 4px 0 0; font-size: 14px; max-width: 46rem; }
/* The test label travels with its links: a wrap moves them together. */
.method-view .vrow-links { margin: 0; font-size: 13px; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.method-view .vrow-tests { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 12px; min-width: 0; }
.method-view .vrow-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--m-tuned); }
.method-view .vrow-links a:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; border-radius: 4px; }
.method-view .vrevision { margin: 14px 0 0; font-size: 13px; }

/* #389: each setting's readings and controls sit behind one disclosure; the
   value in force, its provenance and any flag stay on the card. */
.method-view .param-group .parameter { padding-top: 12px; margin-top: 12px; }
.method-view .param-group .parameter > .current { margin-bottom: 0; row-gap: 4px; }
.method-view .param-controls { margin: 2px 0 0; }
.method-view .param-controls > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 0.35em; flex-wrap: wrap; }
.method-view .param-controls > summary::-webkit-details-marker { display: none; }
/* A flex summary drops the native marker; draw the same arrow as .choice. */
.method-view .param-controls > summary::before { content: "▸" / ""; color: var(--m-ink-soft); flex: 0 0 1em; }
.method-view .param-controls[open] > summary::before { content: "▾" / ""; }
.method-view .param-controls > summary .param-offer { font-weight: 400; color: var(--m-ink-soft); }
.method-view .param-controls[open] > summary { margin-bottom: 6px; }

/* #658: the data plan's notes say what saving does, so they show at every
   width (styles.css hides a bare .hint on phones). */
.method-view [data-plan-panel] .hint { display: block; margin-left: 0; }

/* #774: the stock list has one editor; proxies live in Market. */
.method-view .fields.universe-fields-stocks { grid-template-columns: minmax(0, 1fr); }

.method-view a.universe-market-link { display: inline-flex; align-items: center; width: fit-content; text-decoration: none; }

/* #774: Rules › Sources */
.source-list, .source-settings { list-style: none; padding: 0; margin: 0; }
.source-list > li, .source-settings > li { padding: 8px 0; border-top: 1px solid var(--m-rule); }
.source-list > li:first-child, .source-settings > li:first-child { border-top: 0; }
.source-list .muted { display: block; font-size: .9em; }
.source-citations { margin: 4px 0 0; padding-left: 1.2em; font-size: .9em; overflow-wrap: anywhere; }
.source-citation { overflow-wrap: anywhere; }
.source-back { margin: 0 0 8px; }
.source-list .method-link, .source-settings .method-link { white-space: normal; overflow-wrap: anywhere; }
.panel-source h3 { margin-top: 18px; }
