/* StreamStudio base styles. Override colours/fonts in themes/<name>.css (set [app] theme in the config). */
:root {
  --bg: #0f1218; --panel: #181d26; --line: #2a3140; --text: #e6e9ef; --muted: #8a93a6;
  --accent: #4f8cff; --accent-text: #fff; --danger: #e5484d; --ok: #30a46c; --warn: #f5a524;
  --radius: 10px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font) }
a { color: var(--accent) }
.top { display: flex; align-items: center; gap: 1.5rem; padding: .75rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap }
.brand { font-size: 1.15rem }
nav { display: flex; gap: .25rem; flex: 1 }
nav a { color: var(--muted); text-decoration: none; padding: .4rem .8rem; border-radius: var(--radius) }
nav a.active, nav a:hover { color: var(--text); background: var(--line) }
.clock { color: var(--muted); font-size: .85rem }
main { max-width: 1200px; margin: 0 auto; padding: 1.25rem }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem }
.card h2 { margin: 0 0 .8rem; font-size: 1.05rem; display: flex; gap: .6rem; align-items: center }
.login { max-width: 360px; margin: 12vh auto }
.login form, .login label { display: grid; gap: .4rem }
.login form { gap: .9rem }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; align-items: end }
.grid label { display: grid; gap: .3rem }
.full { grid-column: 1 / -1 }
input, select, button { font: inherit; color: inherit }
input:not([type=checkbox]), select { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .6rem; width: 100% }
label.check { display: flex; gap: .45rem; align-items: center }
fieldset { border: 1px solid var(--line); border-radius: 8px }
.pick { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem }
.pick .off { color: var(--muted) }
button { border: 1px solid var(--line); background: var(--line); border-radius: 8px; padding: .45rem .9rem; cursor: pointer }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text) }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff }
button.ghost { background: transparent }
table { width: 100%; border-collapse: collapse }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: middle }
th { color: var(--muted); font-weight: 500; font-size: .85rem }
td.act { text-align: right; white-space: nowrap }
td.act button { margin-left: .3rem }
.st { padding: .1rem .5rem; border-radius: 99px; font-size: .8rem; background: var(--line) }
.st-running { background: var(--ok); color: #fff } .st-scheduled { background: var(--accent); color: #fff }
.st-failed { background: var(--danger); color: #fff } .st-stopping { background: var(--warn); color: #000 }
.tag { font-size: .7rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; color: var(--muted) }
.muted, small { color: var(--muted) }
.err { color: var(--danger) }
.hidden { display: none !important }
pre { background: #000; color: #b8f7c4; padding: .8rem; border-radius: 8px; max-height: 360px; overflow: auto; font-size: .8rem; white-space: pre-wrap }
code { background: var(--bg); padding: .1rem .35rem; border-radius: 4px; word-break: break-all }
.up { display: grid; grid-template-columns: 1fr 2fr 1.5fr auto; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line) }
progress { width: 100% }
@media (max-width: 700px) { .up { grid-template-columns: 1fr } table { font-size: .85rem } }
