/* The SMOD look, as the chat's. No font file is fetched. */
:root {
  --bg: #010b15; --panel: #071a2b; --line: #12314d; --text: #e6edf5; --muted: #8ea3b8;
  --accent: #005afe; --accent-text: #0a7cff;
  --pass: #2fbf71; --clarify: #e0b341; --escalate: #ff8a3d; --block: #ff4d5e;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--accent-text); }
code { font-family: var(--mono); font-size: .92em; word-break: break-all; }
.bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.bar .mark { font-weight: 800; letter-spacing: .12em; color: var(--accent-text); }
.bar .name { color: var(--muted); }
.bar .ro { font-size: .75rem; border: 1px solid var(--line); border-radius: 1rem; padding: 0 .5rem; color: var(--muted); }
.bar nav { display: flex; gap: 1rem; margin-left: auto; }
.bar nav a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
.bar form.out { margin: 0; }
main { padding: 1rem; }
.narrow { max-width: 34rem; margin: 2rem auto; }
.wide { max-width: 80rem; margin: 0 auto; }
h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.note, .muted { color: var(--muted); }
.button, button { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: .5rem;
  padding: .5rem .9rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
button.quiet { background: transparent; color: var(--accent-text); border: 1px solid var(--line); font-weight: 500; }
input { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: .5rem;
  padding: .6rem .75rem; font: inherit; }
label { display: block; margin: .75rem 0 .25rem; color: var(--muted); }
form button { margin-top: .75rem; }
.bar form button { margin-top: 0; }
.qr { background: #fff; padding: .5rem; border-radius: .5rem; }
.refusal { border-left: 3px solid var(--block); padding-left: .75rem; }
.run, .grant { border-top: 1px solid var(--line); padding-top: .25rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .5rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.v { font-family: var(--mono); font-size: .85em; font-weight: 600; }
.v-pass { color: var(--pass); } .v-clarify { color: var(--clarify); } .v-escalate { color: var(--escalate); } .v-block { color: var(--block); }
.ok { color: var(--pass); } .bad { color: var(--block); font-weight: 600; }
/* ADM-2: the run button and its jobs */
.runner { border: 1px solid var(--line); border-radius: .5rem; padding: .25rem 1rem 1rem; margin: 0 0 1.5rem; background: var(--panel); }
.run-stub { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.run-stub select { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .6rem; font: inherit; }
.run-stub button[disabled] { opacity: .5; cursor: not-allowed; }
.jobs { margin: 1rem 0 0; padding-left: 1.2rem; }
.jobs li { margin: .25rem 0; }
td.detail { font-family: var(--mono); font-size: .85em; word-break: break-all; }

/* ADM-3: the grant editor and its history */
.editor fieldset { border: 0; padding: 0; margin: 0 0 .75rem; }
.editor label { display: block; margin-top: .5rem; }
.editor label.act { display: inline-block; margin-right: 1rem; }
.editor textarea, .editor input:not([type=checkbox]) { width: 100%; max-width: 32rem; font-family: ui-monospace, monospace; }
table.diff { border-collapse: collapse; margin: .5rem 0; }
table.diff th, table.diff td { border: 1px solid #ccd; padding: .25rem .5rem; text-align: left; vertical-align: top; }
.versions li { margin-bottom: 1rem; }
