/* Ops board styles. System fonts only, nothing loaded from outside. Same colours as the owner portal. */
:root { --ink: #16211f; --muted: #5b6a67; --line: #d7e0de; --bg: #f5f8f7; --card: #fff; --brand: #0b6b57; --brand-ink: #fff; --bad: #a3261d; --badbg: #fdecea; --warn: #8a5a00; --warnbg: #fff6e0; --you: #1f4fa3; --youbg: #e8efff; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
#app { max-width: 1080px; margin: 0 auto; padding: 0 16px 48px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; flex-wrap: wrap; }
.brand { font-size: 1.1rem; }
.me { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.me small { color: var(--muted); }
h1 { font-size: 1.4rem; margin: 0 0 10px; }
h2 { font-size: 1.05rem; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
p { margin: 4px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.narrow { max-width: 420px; margin: 32px auto; padding: 24px; }
.field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
label { font-weight: 600; font-size: .92rem; }
input, select { font: inherit; padding: 9px 12px; border: 1px solid #aebbb8; border-radius: 8px; background: #fff; color: var(--ink); }
input { width: 100%; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #1d8f76; outline-offset: 2px; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 16px; border: 1px solid transparent; min-height: 44px; }
button.primary { background: var(--brand); color: var(--brand-ink); font-weight: 600; width: 100%; }
button.secondary { background: #fff; border-color: #aebbb8; color: var(--ink); }
button.link { background: none; border: 0; color: var(--brand); text-decoration: underline; padding: 6px 4px; min-height: 0; }
button:disabled { opacity: .6; cursor: default; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.empty { color: var(--muted); margin: 0; }
.notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #e6f3ef; border: 1px solid #b9dcd2; }
.notice.bad { background: var(--badbg); border-color: #f0b8b2; color: #6f1912; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #aebbb8; display: inline-block; }
.live.live { color: var(--brand); }
.live.live i { background: #18a37f; box-shadow: 0 0 0 3px rgba(24, 163, 127, .2); }
.live.connecting i { background: #d9a400; }
.runners { color: var(--muted); font-size: .9rem; margin: 0; }
.runners .stale { color: var(--bad); font-weight: 600; }

.agents { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .agents { grid-template-columns: repeat(3, 1fr); } }
.agent.busy { border-color: #7fb5a7; box-shadow: inset 4px 0 0 #18a37f; }
.agent .doing { font-weight: 600; }
.agent h3 small { color: var(--muted); font-weight: 400; }

.list { display: grid; gap: 10px; }
.item.bad { border-color: #f0b8b2; background: var(--badbg); }
.item.warn, .item.late { border-color: #f1d48f; background: var(--warnbg); }
.project.you { border-color: #9db4e6; box-shadow: inset 4px 0 0 var(--you); }
.phead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.phead h3 { margin: 0; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef2f1; color: var(--ink); border: 1px solid var(--line); }
.badge.you { background: var(--youbg); color: var(--you); border-color: #c2d2f5; }
.badge.bad { background: var(--badbg); color: var(--bad); border-color: #f0b8b2; }
.badge.sample { background: #f3ecff; color: #5b2ea6; border-color: #dccbf7; }
.design, .job { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.counts { font-size: .9rem; }
.timers { display: flex; gap: 8px; flex-wrap: wrap; }
.timer { font-size: .85rem; padding: 2px 8px; border-radius: 6px; background: #eef2f1; }
.timer.soon { background: var(--warnbg); color: var(--warn); }
.timer.late { background: var(--badbg); color: var(--bad); font-weight: 600; }
.quote { font-size: .92rem; color: #33413e; border-left: 3px solid var(--line); padding-left: 10px; overflow-wrap: anywhere; white-space: pre-line; }
.warn { color: var(--warn); font-size: .92rem; }
.links { margin-top: 8px; font-size: .92rem; }

.feedhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feedhead select { max-width: 60%; }
.feed { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: 560px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 90px 96px 1fr; gap: 8px; padding: 7px 14px; border-bottom: 1px solid #edf2f1; font-size: .9rem; }
.feed li:last-child { border-bottom: 0; }
.feed li.bad { background: #fff8f7; }
.feed li.bad .what { color: var(--bad); }
.feed time { color: var(--muted); white-space: nowrap; }
.feed .biz { color: var(--muted); }
.feed .what { grid-column: 3; overflow-wrap: anywhere; }
@media (max-width: 560px) { .feed li { grid-template-columns: auto 1fr; gap: 0 8px; } .feed .what { grid-column: 1 / -1; } }
