:root { color-scheme: dark; --bg: #0e1116; --panel: #161b22; --line: #2a313c; --text: #d7dde5; --muted: #8b96a5; --accent: #5fb3ff; --ok: #3fb950; --warn: #d29922; --bad: #f85149; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
header.top { padding: .5rem 1.5rem; min-height: 116px; border-bottom: 1px solid var(--line); background: var(--panel); }
header.top .brand { font-weight: 700; color: var(--text); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.flash { padding: .6rem 1rem; border-radius: 6px; margin-bottom: 1rem; border: 1px solid; }
.flash.status { border-color: var(--ok); } .flash.warning { border-color: var(--warn); } .flash.error { border-color: var(--bad); }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); }
.badge.RUNNING, .badge.online { color: var(--ok); border-color: var(--ok); }
.badge.STARTING, .badge.BACKOFF, .badge.starting { color: var(--warn); border-color: var(--warn); }
.badge.FATAL, .badge.failed, .badge.UNKNOWN, .badge.unknown { color: var(--bad); border-color: var(--bad); }
.muted { color: var(--muted); }
form.inline { display: inline; }
button, .button { font: inherit; padding: .35rem .8rem; border-radius: 6px; border: 1px solid var(--line); background: #21262d; color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: #1f6feb; border-color: #1f6feb; color: #fff; }
button.danger { border-color: var(--bad); color: var(--bad); }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select { width: 100%; padding: .45rem .6rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
textarea { font-family: ui-monospace, monospace; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1.25rem; }
.hint { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.error-text { color: var(--bad); font-size: .85rem; }
pre { background: #0a0d12; border: 1px solid var(--line); border-radius: 6px; padding: .75rem; overflow: auto; font-size: .8rem; max-height: 28rem; white-space: pre-wrap; word-break: break-all; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.site-footer { max-width: 1100px; margin: 2rem auto 0; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--line); text-align: center; font-size: .85rem; }
.site-footer p { margin: .25rem 0; }
.site-footer .fine { font-size: .75rem; opacity: .8; }
.credits { max-width: 860px; }
.credits-lead { margin: 0 0 .25rem; font-size: 1.05rem; }
.credits-lead + h1 { margin-top: 1.5rem; }
.credits-table td.nowrap { white-space: nowrap; color: var(--muted); }
/* the headers (layouts/app, layouts/play): three columns, the banner
(partials/banner.blade.php) centred between the side items at every width */
header.top, .play-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1rem; }
.header-start { justify-self: start; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 1rem; }
.header-end { justify-self: end; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; flex-wrap: wrap; }
.banner { justify-self: center; display: block; line-height: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.banner img { display: block; width: 250px; height: auto; }
.banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* phones: the banner scales down with the width (250px wide at most) */
@media (max-width: 640px) {
    header.top, .play-top { padding: .5rem .75rem; column-gap: .5rem; min-height: 0; }
    .banner img { width: clamp(150px, 44vw, 250px); }
}
