:root { --ink: #0F1B2D; --text: #1F2937; --muted: #4B5563; --line: #DCE1E8; --bg: #F4F6F9; --card: #FFFFFF; --blue: #1D4ED8; --ok-bg: #DCFCE7; --ok: #14532D; --warn-bg: #FEF3C7; --warn: #78350F; }
@media (prefers-color-scheme: dark) {
  :root { --ink: #F1F4F8; --text: #D9DEE6; --muted: #A3ACB9; --line: #2C3442; --bg: #11161E; --card: #171D27; --blue: #7AA2F7; --ok-bg: #12352F; --ok: #A7F3D0; --warn-bg: #3A2E10; --warn: #FCD34D; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--blue); }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; background: #0F1B2D; color: #E5EAF2; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand span { font-weight: 500; color: #9FB0C6; }
.who { display: flex; gap: 12px; align-items: center; color: #C9D3E0; font-size: 14px; }
.link { background: none; border: 0; color: #C9D3E0; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-size: 28px; color: var(--ink); }
h2 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.center { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 48px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; align-self: flex-start; }
.center .btn { align-self: center; }
.btn.primary { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.field input { min-height: 44px; padding: 0 10px; border-radius: 8px; border: 1px solid #9AA4B2; background: var(--card); color: var(--text); font: inherit; }
.msg { padding: 10px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.msg.err { background: var(--warn-bg); color: var(--warn); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-head > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job { font-size: 14px; font-weight: 600; color: var(--muted); }
.job.running { color: var(--ok); }
.job.paused { color: var(--warn); }
.assign summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.assign-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; max-width: 520px; }
.field select { min-height: 44px; padding: 0 8px; border-radius: 8px; border: 1px solid #9AA4B2; background: var(--card); color: var(--text); font: inherit; max-width: 100%; }
.rows b { color: var(--ink); }
.rows .btn { min-height: 40px; padding: 0 12px; flex-shrink: 0; }
:focus-visible { outline: 3px solid #7AA2F7; outline-offset: 2px; }
.warn { color: var(--warn); font-weight: 600; }
.update { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); }
.update .btn { min-height: 40px; padding: 0 14px; }
.checks { display: flex; flex-direction: column; gap: 4px; }
.check { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; }
