/* The CI UI: plain, dense, readable in light and dark and on a phone. */
:root {
  --bg: #ffffff; --fg: #1f2328; --dim: #656d76; --line: #d8dee4; --head: #f6f8fa;
  --link: #0969da; --ok: #1a7f37; --bad: #cf222e; --run: #9a6700; --warn: #bc4c00;
  --wait: #6e7781; --off: #8c959f; --code: #f6f8fa; --tag: #eaeef2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; line-height: 1.4; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --fg: #e6edf3; --dim: #8d96a0; --line: #30363d; --head: #161b22;
    --link: #4493f8; --ok: #3fb950; --bad: #f85149; --run: #d29922; --warn: #f0883e;
    --wait: #8d96a0; --off: #6e7681; --code: #161b22; --tag: #21262d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { display: flex; gap: .5em; align-items: baseline; padding: .5em 1em; border-bottom: 1px solid var(--line); background: var(--head); position: sticky; top: 0; z-index: 1; }
header.top .home { font-weight: 700; }
header.top .crumbs { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header.top .nav { font-size: 12px; white-space: nowrap; }
.livestate { font-size: 12px; color: var(--dim); white-space: nowrap; }
.livestate.on::before { content: "● "; color: var(--ok); }
.livestate.err { color: var(--bad); }
main { padding: .5em 1em 3em; max-width: 1400px; }
h1 { font-size: 20px; margin: .4em 0; overflow-wrap: anywhere; }
h2 { font-size: 16px; margin: 1.2em 0 .4em; }
h3 { font-size: 14px; margin: .8em 0 .3em; }
h4 { font-size: 13px; margin: .4em 0; color: var(--dim); font-weight: 600; }
.mono, pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.nw { white-space: nowrap; }
.empty { color: var(--dim); font-style: italic; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { border-collapse: collapse; width: 100%; }
table.list th { text-align: left; font-weight: 600; font-size: 12px; color: var(--dim); border-bottom: 1px solid var(--line); padding: 4px 8px 4px 0; white-space: nowrap; }
table.list td { border-bottom: 1px solid var(--line); padding: 4px 8px 4px 0; vertical-align: top; }
td.msg, td.ref, span.msg { max-width: 32em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.state { min-width: 14em; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 1em; margin: .5em 0; }
dl.facts dt { color: var(--dim); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
pre.message { margin: 0; white-space: pre-wrap; background: var(--code); padding: 4px 6px; border-radius: 4px; }
.badge { white-space: nowrap; font-weight: 600; }
.tag { display: inline-block; font-size: 11px; padding: 0 5px; border-radius: 8px; background: var(--tag); color: var(--dim); white-space: nowrap; }
.src { font-size: 11px; white-space: nowrap; padding: 0 5px; border-radius: 8px; background: var(--tag); }
.src-mirror { color: var(--ok); }
.src-github { color: var(--link); }
.s-ok { color: var(--ok); } .s-bad { color: var(--bad); } .s-run { color: var(--run); }
.s-warn { color: var(--warn); } .s-wait { color: var(--wait); } .s-off { color: var(--off); }
div.banner { margin: 0 0 12px; padding: 10px 12px; border: 2px solid currentColor; border-radius: 4px; background: var(--head); overflow-wrap: anywhere; }
div.banner strong { display: block; margin-bottom: 4px; }
div.banner a { font-weight: 600; }
p.note, p.delivery { padding: 6px 8px; border-left: 3px solid currentColor; background: var(--head); overflow-wrap: anywhere; }
p.err { color: var(--bad); }
details.diag summary { cursor: pointer; font-weight: 600; margin: .4em 0; }
pre.console { margin: 0 0 .8em; padding: 6px 8px; background: var(--code); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; white-space: pre; max-height: 40em; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
section.repo { border-top: 1px solid var(--line); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
a.cur { font-weight: 700; text-decoration: underline; }
section.log h2 label { font-weight: 400; margin-left: 1em; }
.step-log h3 { position: sticky; top: 2.2em; background: var(--bg); padding: 2px 0; margin: .6em 0 0; }
.step-log pre { margin: 0; padding: 6px 8px; background: var(--code); border: 1px solid var(--line); border-radius: 4px; overflow-x: auto; white-space: pre; counter-reset: ln; }
.step-log pre span { counter-increment: ln; }
.step-log pre span::before { content: counter(ln); display: inline-block; width: 3.5em; margin-right: 1em; text-align: right; color: var(--dim); user-select: none; }
/* Sign-in, organizations and their forms. */
header.top .who { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18em; }
form.inline { display: inline; margin: 0; }
form.row { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin: .4em 0; }
form.row label { color: var(--dim); }
input, select, button, a.button { font: inherit; color: inherit; }
input[type=text], input[type=email], input:not([type]), select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; min-width: 16em; }
select { min-width: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, a.button:focus-visible, a.google:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
button, a.button { background: var(--head); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
button:hover, a.button:hover { border-color: var(--dim); text-decoration: none; }
button.quiet { background: none; border-color: transparent; color: var(--link); font-weight: 400; padding: 2px 6px; }
button.quiet:hover { border-color: var(--line); }
td.acts { text-align: right; }
.flash { margin: .5em 0 1em; padding: 8px 12px; border: 1px solid currentColor; border-left-width: 4px; border-radius: 4px; background: var(--head); overflow-wrap: anywhere; }
.flash-ok { color: var(--ok); }
.flash-error { color: var(--bad); }
.remote { margin-top: 2px; padding: 2px 6px; background: var(--code); border-radius: 4px; overflow-wrap: anywhere; user-select: all; }
body.bare main { max-width: none; padding: 0 1em; display: grid; place-items: center; min-height: 100vh; }
section.signin { width: 100%; max-width: 24em; padding: 2em; border: 1px solid var(--line); border-radius: 10px; background: var(--head); text-align: center; }
section.signin h1 { font-size: 26px; letter-spacing: -.01em; margin: 0 0 .3em; }
section.signin .lead { color: var(--dim); margin: 0 0 1.5em; }
section.signin .note { text-align: left; margin: 0 0 1.2em; }
a.google { display: inline-flex; align-items: center; justify-content: center; gap: .7em; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font-weight: 600; }
a.google:hover { border-color: var(--dim); text-decoration: none; }
section.signin .small { margin: 1.2em 0 0; }
@media (max-width: 700px) {
  main { padding: .5em .5em 3em; }
  .cols { grid-template-columns: 1fr; }
  td.msg, td.ref, span.msg { max-width: 14em; }
  .step-log pre span::before { width: 2.5em; margin-right: .5em; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { margin-top: 4px; }
}
