/* The simple pages (docs/design/simple-ui.md 3, 5): big worded states, one meaning line under every number, colour never the only signal (a glyph
   or a word always comes with it). Builds on app.css (its colour tokens, light and dark). No web fonts, no external resources. Phones (< 640 px):
   the navigation wraps into two rows of pill links and nothing scrolls the page sideways (tables and code scroll inside their own box). */

.simple-top { flex-wrap: wrap; }
.simple-nav { flex-wrap: wrap; overflow-x: visible; }
.simple-nav a { font-size: 15px; padding: 6px 12px; }
.back-simple { font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------ status row */
.status-row { background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 16px; }
.status-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 14px; font-weight: 600; font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.pill-practice { background: var(--info-bg); color: var(--accent); border: 1px solid var(--accent); }
.pill-live { background: var(--live); color: #fff; font-weight: 800; letter-spacing: .06em; }
.pill-grey { background: var(--head); color: var(--muted); border: 1px solid var(--line); }
.pill-fixture { background: var(--fixture); color: #fff; }
.acct { color: var(--muted); font-size: 12px; display: inline-flex; gap: 4px; align-items: center; }
.sentence { margin: 0; font-size: 15px; flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.sentence .word { margin-right: 6px; }
.tone-ok .word, .tone-ok > .big-num { color: var(--ok); }
.tone-warn .word, .tone-warn > .big-num { color: var(--warn); }
.tone-bad .word, .tone-bad > .big-num { color: var(--bad); }
.tone-info .word { color: var(--info); }
.tone-idle .word { color: var(--muted); }
.sr-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.att-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.att { padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.att .glyph { font-weight: 800; display: inline-block; min-width: 1em; }
.att-crit { background: var(--bad-bg); color: var(--bad); }
.att-warn { background: var(--warn-bg); color: var(--warn); }
.att-info { background: var(--info-bg); color: var(--info); }
.att .action { display: inline; }
.more-row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 13px; }
.more summary { cursor: pointer; color: var(--accent); }
.more[open] { flex-basis: 100%; }
.datenote-row { background: var(--info-bg); border-bottom: 1px solid var(--line); padding: 6px 16px; }
.datenote { margin: 0; overflow-wrap: anywhere; }
.datenote-action { margin-left: 8px; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------ simple page parts */
.simple-main { max-width: 1200px; }
.lead { font-size: 15px; margin: 0 0 12px; }
.small { font-size: 12px; }
.scard h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.scard.tone-ok { border-left: 4px solid var(--ok); }
.scard.tone-warn { border-left: 4px solid var(--warn); }
.scard.tone-bad { border-left: 4px solid var(--bad); }
.scard.tone-info, .scard.tone-idle { border-left: 4px solid var(--line); }
.big { margin: 4px 0 8px; }
.big-num { font-size: 26px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.meaning { color: var(--muted); font-size: 12.5px; margin: 2px 0 8px; }
.empty-state { border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
.empty-title { font-weight: 700; margin: 0 0 4px; }
.cmd { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; vertical-align: middle; }
.cmd code { background: var(--head); border-radius: 4px; padding: 2px 6px; overflow-wrap: anywhere; white-space: normal; max-width: 100%; }
button.copy { font-size: 12px; padding: 1px 8px; }
details.tech summary { cursor: pointer; color: var(--accent); font-size: 12px; }
/* the footer: the disclaimer in plain words, its formal wording one click away */
.foot-formal summary { color: var(--muted); }
.foot-formal p { margin: 4px 0 0; }
/* Modes: "How do I switch modes?" is the owner's own question (simple-ui 1), so it reads as a heading, not as a small technical link */
#you-are-in details.tech > summary { font-size: 14px; font-weight: 700; }
.stepper { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; }
.stepper a { text-decoration: none; }

/* ------------------------------------------------------------------ Home, Trades, Stocks and Settings parts */
.home-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.trade-card .timeline .t { color: var(--muted); display: inline-block; min-width: 5.5em; }
.why-signal, .verdict { margin: 4px 0; }
.day-line, .result-line { font-size: 15px; margin: 0 0 8px; }
.nt-group { margin: 6px 0; }
.short-list h3 { font-size: 14px; margin: 10px 0 4px; }
ol.steps li { margin: 0 0 8px; }
.field { margin: 10px 0 16px; }
.field-label { margin: 0; }
fieldset.row { border: 0; padding: 0; margin: 4px 0; min-width: 0; }
#review-form h3 { font-size: 14px; margin: 10px 0 4px; }
label.row input[type=checkbox] { width: auto; }

/* ------------------------------------------------------------------ stop panel */
.stop-buttons { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0; }
.stop-btn { display: inline-flex; flex-direction: column; gap: 2px; }
button.stop { font-weight: 700; padding: 8px 16px; font-size: 15px; }
button.stop-reducing { border-color: var(--warn); color: var(--warn); }
button.stop-flatten { border-color: var(--bad); color: var(--bad); }

/* ------------------------------------------------------------------ advanced index */
.adv-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.adv-list li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.adv-list a { font-weight: 700; display: block; margin-bottom: 4px; }
.adv-list .blurb { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .simple-nav { gap: 4px; }
  .simple-nav a { font-size: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; }
  .status-row, .datenote-row { padding: 6px 16px; }
  .sentence { font-size: 14px; flex-basis: 100%; }
  .big-num { font-size: 22px; }
  .stop-buttons { flex-direction: column; }
  button.stop { width: 100%; }
}
