:root { --bg: #0f1115; --card: #181b22; --line: #2a2f3a; --fg: #e8eaf0; --muted: #8a92a6; --accent: #f5b301; --bad: #ff5d5d; --good: #3ecf8e; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, Segoe UI, sans-serif; background: var(--bg); color: var(--fg); }
header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.brand { color: var(--accent); font-size: 16px; letter-spacing: .5px; }
.spacer { flex: 1; }
nav button { background: none; border: 0; color: var(--muted); padding: 6px 10px; border-radius: 6px; cursor: pointer; font: inherit; }
nav button.active { color: var(--fg); background: var(--card); }
button, select, input, textarea { font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; }
button { cursor: pointer; }
button.primary { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 600; }
button.link { background: none; border: 0; color: var(--muted); padding: 0 4px; }
main { padding: 16px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.column { background: #13161c; border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 120px; }
.column h3 { margin: 2px 4px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); display: flex; justify-content: space-between; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.card:hover { border-color: var(--accent); }
.card .title { font-weight: 600; }
.card .meta { color: var(--muted); font-size: 12px; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 11px; white-space: nowrap; }
.tag.must { border-color: var(--accent); color: var(--accent); }
.tag.human { border-color: var(--bad); color: var(--bad); }
.tag.on { border-color: var(--good); color: var(--good); }
aside#panel { position: fixed; top: 49px; right: 0; bottom: 0; width: min(520px, 100%); background: #12151b; border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; z-index: 3; }
aside h2 { margin: 0 0 4px; font-size: 18px; }
aside h4 { margin: 16px 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
aside pre { white-space: pre-wrap; font: inherit; margin: 0; background: var(--card); padding: 8px; border-radius: 6px; }
.evidence { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.evidence figure { margin: 0; background: var(--card); border-radius: 6px; padding: 6px; }
.evidence img { width: 100%; border-radius: 4px; display: block; }
.evidence figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.comment, .event { border-bottom: 1px solid var(--line); padding: 6px 0; }
.comment .by, .event .by { color: var(--muted); font-size: 12px; }
textarea { width: 100%; min-height: 60px; }
table { border-collapse: collapse; width: 100%; }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
.signin { max-width: 420px; margin: 12vh auto; text-align: center; }
.signin a { display: inline-block; margin-top: 16px; background: #5865f2; color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
#toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; z-index: 4; }
#toast.error { border-color: var(--bad); color: var(--bad); }
.section { max-width: 760px; }
.joined { padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--good); border-radius: 8px; }
a { color: var(--accent); }
.section.wide { max-width: 1000px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.tile .value { font-size: 24px; font-weight: 700; color: var(--accent); }
.bars { display: grid; gap: 6px; max-width: 620px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.bar { position: relative; height: 20px; background: var(--card); border-radius: 4px; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); opacity: .75; }
.bar span:last-child { position: relative; padding-left: 6px; line-height: 20px; color: #111; font-weight: 600; }
.waiting { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--accent); border-radius: 10px; }
.waiting[hidden] { display: none; }
.waiting-reason { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.waiting-reason button.link { color: var(--fg); text-decoration: underline; }
.quotas { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.quotas[hidden] { display: none; }
.quota { display: inline-flex; flex-direction: column; gap: 2px; min-width: 56px; cursor: default; }
.quota-bar { display: block; height: 4px; border-radius: 2px; background: #2a2f3a; overflow: hidden; }
.quota-fill { display: block; height: 100%; width: 0; background: #3ecf8e; }
.quota.warn .quota-fill { background: #f5b301; }
.quota.warn .quota-text { color: #f5b301; }
.quota.full .quota-fill { background: #ff5d5d; }
.quota.full .quota-text { color: #ff5d5d; font-weight: 600; }
.quota-text { white-space: nowrap; color: #8a92a6; }
@media (max-width: 760px) { header { flex-wrap: wrap; } .quotas { order: 10; flex-basis: 100%; } }
