/* Flare for "Discovery is the skill, executable specs are the output". The prototype mode and real mode switch, injected
   by flare.js under the paragraph that describes both modes. No motion, palette tokens only. */

.modes {
  margin: 1.25em 0 0; padding: .9rem 1rem 1rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 3px;
  background: var(--card);
  font-family: var(--mono); font-size: .85rem; line-height: 1.6;
  min-inline-size: 0;
}
.modes legend { padding: 0 .4rem; color: var(--muted); font-size: .78rem; }
.modes-pick { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; }
.modes label {
  display: flex; align-items: flex-start; gap: .6rem;
  min-height: 1.75rem; padding: .2rem 0; cursor: pointer;
}
.modes input { flex: none; margin: .3rem 0 0; accent-color: var(--accent); width: 1rem; height: 1rem; }

.modes-stack { list-style: none; margin: .7rem 0 0; padding: 0; }
.prose .modes-stack > li {
  display: grid; grid-template-columns: 1fr auto; gap: .1rem .8rem;
  margin: 0; padding: .6rem 0; border-top: 1px dashed var(--rule);
}
.prose .modes-stack > li::before { content: none; }
.modes-name { color: var(--ink); font-weight: 700; }
.modes-status { color: var(--muted); font-family: var(--sans); font-size: .85rem; font-style: italic; justify-self: end; }
.modes-what { grid-column: 1 / -1; color: var(--ink); font-family: var(--sans); font-size: .95rem; }

@media (min-width: 40rem) {
  .prose .modes-stack > li { grid-template-columns: 12rem 1fr auto; align-items: baseline; }
  .modes-what { grid-column: 2; grid-row: 1; }
  .modes-status { grid-column: 3; grid-row: 1; }
}

@media (forced-colors: active) {
  .modes { border-color: CanvasText; }
  .prose .modes-stack > li { border-color: CanvasText; }
}
