:root {
  --bg: #10141c;
  --panel: #161c27;
  --panel-2: #0c1016;
  --line: #232a36;
  --text: #e8edf5;
  --muted: #8b95a8;
  --accent: #6ea8fe;
  --ok: #3ecf8e;
  --warn: #e6b84d;
  --bad: #f07178;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 "Segoe UI", Inter, sans-serif; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.hidden { display: none !important; }
.screen { min-height: 100vh; }
.eyebrow { margin: 0 0 4px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
h1 { margin: 0 0 8px; font-size: 22px; font-weight: 600; }
h2 { margin: 0 0 10px; font-size: 15px; }
.muted { color: var(--muted); }
.error { color: var(--bad); min-height: 1.2em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.login-card { width: min(440px, calc(100% - 32px)); margin: 12vh auto; }
.login-card label, .grid-form label { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
input, select {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}
button {
  background: #2a3344;
  border: 1px solid #3a4458;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
button:hover { border-color: #5a6a86; }
button.primary { background: #1f4d3a; border-color: #2f7a5c; color: #d9ffe9; width: 100%; padding: 10px; }
button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
button.ghost { background: transparent; }
button.danger { color: var(--bad); border-color: #5a3036; }
button.ok { color: var(--ok); border-color: #2f5a46; }
.top { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 8px; }
.top-actions { display: flex; gap: 8px; align-items: flex-start; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 24px 16px; }
.toolbar input[type="search"] { min-width: 280px; flex: 1; }
.check { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; padding: 0 24px 32px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid-form .wide { grid-column: 1 / -1; }
.addon { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.addon[open] { border-color: #3a4458; }
.addon summary { cursor: pointer; padding: 10px 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.addon summary::-webkit-details-marker { display: none; }
.addon .name { font-weight: 600; }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.rec { color: var(--ok); border-color: #2f5a46; }
.badge.gone { color: var(--bad); border-color: #5a3036; }
.rows { padding: 0 12px 12px; }
.row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.row .repo { color: var(--muted); font-size: 12px; word-break: break-all; }
.row .ver { color: var(--warn); font-size: 12px; }
.fork-form { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.fork-form input { flex: 1; min-width: 220px; }
.pending { position: sticky; top: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.pending ol { margin: 0 0 12px; padding-left: 18px; max-height: 40vh; overflow: auto; }
.pending li { margin: 0 0 8px; }
.pending-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.summary { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.desc { color: var(--muted); font-size: 12px; padding: 0 12px 8px; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .pending { position: static; }
}
