/* trainingBot web: one small stylesheet, no framework, light and dark. */
:root {
  --bg: #ffffff; --fg: #111827; --muted: #4b5563; --card: #f9fafb; --line: #e5e7eb;
  --accent: #14532d; --accent-fg: #ffffff; --warn: #92400e; --warn-bg: #fffbeb; --ok: #166534; --danger: #991b1b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f14; --fg: #e5e7eb; --muted: #9ca3af; --card: #111827; --line: #1f2937;
          --accent: #22c55e; --accent-fg: #052e16; --warn: #fbbf24; --warn-bg: #1f1a0b; --ok: #4ade80; --danger: #f87171; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
header.top { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: .6rem 1rem;
             border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--fg); text-decoration: none; }
.tag { display: inline-block; font-size: .75rem; padding: 0 .4rem; border: 1px solid var(--line); border-radius: .6rem;
       color: var(--muted); font-weight: 400; }
nav a { margin-right: .7rem; color: var(--fg); text-decoration: none; font-size: .95rem; }
nav a:hover { text-decoration: underline; }
main { max-width: 52rem; margin: 0 auto; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: 1rem 1.1rem; margin: 0 0 1rem; }
.card.warn, .warn { color: var(--warn); }
.card.warn { background: var(--warn-bg); }
.ok { color: var(--ok); }
.small, .note { color: var(--muted); font-size: .9rem; }
h1 { font-size: 1.35rem; margin: .2rem 0 .6rem; }
h2 { font-size: 1.1rem; margin: .2rem 0 .5rem; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
label { display: block; margin: .5rem 0 .2rem; }
label.check { display: flex; gap: .5rem; align-items: baseline; }
input, select, button { font: inherit; }
input:not([type=checkbox]):not([type=radio]), select { width: 100%; max-width: 28rem; padding: .45rem; border: 1px solid var(--line);
  border-radius: .4rem; background: var(--bg); color: var(--fg); }
.row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.row label { flex: 1 1 9rem; }
button { padding: .5rem .9rem; border-radius: .45rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; margin-top: .6rem; }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.link { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 0; }
fieldset { border: 1px solid var(--line); border-radius: .5rem; margin: .7rem 0; }
.row-buttons label { display: inline-flex; gap: .3rem; margin-right: .8rem; }
.fixed-copy { white-space: pre-line; }
a.num { color: inherit; font-variant-numeric: tabular-nums; text-decoration: underline dotted; text-underline-offset: .2em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; }
.stat { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem; }
.stat .label { color: var(--muted); font-size: .85rem; display: block; }
.stat .value { font-size: 1.3rem; }
#provenance:not(:empty) { position: fixed; right: 1rem; bottom: 1rem; max-width: 26rem; max-height: 70vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: .8rem; box-shadow: 0 4px 18px rgba(0,0,0,.2); }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
svg.chart .axis { stroke: var(--line); }
svg.chart text { fill: var(--muted); font-size: 10px; }
footer.foot { max-width: 52rem; margin: 1rem auto 2rem; padding: 0 1rem; color: var(--muted); font-size: .85rem; }
input.copy { font-family: ui-monospace, monospace; }
@media (max-width: 30rem) { nav a { font-size: .9rem; } main { padding: .6rem; } }
svg.chart .dot { fill: var(--accent); }
svg.chart .bar { fill: var(--accent); opacity: .75; }
figure.chart-figure { margin: .4rem 0 .8rem; }
form.inline { display: inline; }
tr.changed td { font-weight: 600; }
