:root {
  --bg: #0f0f0f; --panel: #1c1c1c; --line: #2c2c2c; --text: #f1f1f1; --muted: #aaa;
  --ok: #2fbf71; --warn: #e5a50a; --bad: #e5484d; --accent: #3ea6ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
main { max-width: 1500px; margin: 0 auto; padding: 16px 16px 96px; }
h1 { font-size: 20px; margin: 28px 0 12px; }
.muted { color: var(--muted); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px;
       border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { color: var(--text); font-weight: 700; }
.top nav a { color: var(--muted); margin-left: 18px; }
.top nav a.on { color: var(--text); }
.flash { background: #13324a; border: 1px solid #1f5c8a; padding: 10px 14px; border-radius: 8px; margin-top: 16px; }

.login { max-width: 320px; margin: 18vh auto; display: grid; gap: 12px; }
input, button { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
                background: var(--panel); color: var(--text); }
button { background: var(--text); color: #000; border: 0; font-weight: 600; cursor: pointer; }

.waiting { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wait { display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
        padding: 16px; color: var(--text); }
.wait .store { color: var(--muted); }
.wait .big { font-size: 22px; font-weight: 700; }
.wait .go { color: var(--accent); margin-top: 6px; }

.feed { list-style: none; padding: 0; margin: 0; }
.run { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.when { color: var(--muted); }
.problem { color: var(--warn); font-size: 13px; margin-top: 2px; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #333; }
.pill.ok { background: #143d27; color: var(--ok); }
.pill.partial, .pill.running { background: #3d3112; color: var(--warn); }
.pill.failed { background: #45181a; color: var(--bad); }

.list { border-collapse: collapse; width: 100%; }
.list th, .list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.list th { color: var(--muted); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.card { background: var(--panel); border-radius: 12px; overflow: hidden; outline: 2px solid transparent;
        transition: opacity .15s, outline-color .15s; }
.card.proposed { cursor: pointer; }
.card.proposed:hover, .card.proposed:focus { outline-color: #555; }
.card.skip { opacity: .35; outline-color: var(--bad); }
.card.rejected { opacity: .45; }
.shot { aspect-ratio: 1 / 1; background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.info { padding: 12px 14px 14px; display: grid; gap: 6px; }
.title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.why { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.chips span, .chips a { background: #2a2a2a; padding: 2px 8px; border-radius: 6px; }
.chips .season { background: #3d3112; color: var(--warn); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; align-items: center;
       gap: 16px; padding: 12px 16px; background: rgba(15,15,15,.95); border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .run { grid-template-columns: 1fr; gap: 2px; }
  .grid { grid-template-columns: 1fr; }
}
