:root{
  /* Tweak this to change width */
  --overlay-width: 900px;

  --card:#18181b; --text:#fff; --muted:#a1a1aa;
  --ok:#22c55e; --warn:#f59e0b; --done:#71717a;
  --delay:#ef4444; --radius:12px;

  /* row highlight backgrounds */
  --row-run-bg: rgba(34,197,94,.16);
  --row-stage-bg: rgba(245,158,11,.18);
}

html,body{
  margin:0; padding:0; background:transparent; color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}

.wrap{
  width:40vw;
  max-width:var(--overlay-width);   /* narrower overlay */
  margin:0 auto;
  padding:10px 12px;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:0 6px 24px rgba(0,0,0,.35);
  overflow:hidden;
}

header{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 12px; border-bottom:1px solid #2a2a2e;
}

.title{ font-weight:700; letter-spacing:.3px; display:flex; gap:10px; align-items:baseline; flex-wrap:wrap }
.round-badge{ 
  color:var(--muted); 
  font-weight:600; text-transform:uppercase; }
.stamp{ color:var(--muted); font-size:.9rem; }

.summary{
  display:flex; gap:14px; align-items:center;
  padding:8px 12px; border-bottom:1px solid #2a2a2e; flex-wrap:wrap
}
.summary .label{ color:var(--muted); margin-right:6px; }
.summary .value{ font-weight:800; }
.summary .delay{ color:var(--delay); font-weight:800; } /* always red */

table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  font-size:20px;         /* slightly tighter */
}

th,td{
  padding:6px 10px;         /* slightly slimmer rows */
  border-bottom:1px solid #2a2a2e;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

th{ text-align:left; color:var(--muted); font-weight:600; }

.col-n   { width:56px;  text-align:right; }  /* narrower */
.col-class{ width:auto; }
.col-len { width:72px;  text-align:right; color:var(--muted); } /* narrower */
.col-eta { width:138px; text-align:right; font-weight:700; }   /* narrower */

.muted-cell{ color:var(--muted); padding:16px 12px; }

/* status visuals */
.pill{ display:inline-block; padding:2px 8px; border-radius:999px; font-size:.9rem; font-weight:700; }
.pill.completed{ background:rgba(113,113,122,.18); color:var(--done); }

/* row highlights */
tbody tr.row-running td{ background:var(--row-run-bg); }
tbody tr.row-staging td{ background:var(--row-stage-bg); }

/* left accent bar without shifting layout */
tbody tr.row-running td:first-child{ box-shadow: inset 4px 0 0 rgba(34,197,94,.9); }
tbody tr.row-staging td:first-child{ box-shadow: inset 4px 0 0 rgba(245,158,11,.95); }

/* --- break rows --- */
tbody tr.row-break td{
  background:#1a1a1a;
  border-top:2px solid var(--warn);
  border-bottom:2px solid var(--warn);
  color:var(--warn);
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
  padding:8px 10px; /* a touch taller than normal rows */
}
