/* ===== Dashboard Styles ===== */
body {
    font-family: sans-serif;
    padding: 20px;
  }
  
  #content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Headings and structure */
  h2, h3, h4, summary h3, summary h4 {
    margin: 0;
    display: inline-block;
  }
  
  summary {
    cursor: pointer;
  }
  
  /* Top bar */
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 5px solid #7e57c2;
  }
  
  .top-bar h2 {
    font-size: 1.5em;
  }
  
  /* Buttons */
  .logout-button {
    background: #ef5350;
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .logout-button:hover {
    background: #d32f2f;
  }
  
  /* Visibility classes */
  .collapsed { display: none; }
  .visible   { display: block; }


   :root {
    --bg: #0b0d10;
    --panel: #12161b;
    --muted: #8a94a6;
    --text: #e7edf6;
    --ok: #1fbf75;
    --fail: #ff5d5d;
    --warn: #f7b500;
    --info: #3aa0ff;
    --border: #222a33;
    --chip: #1a222c;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  }
  header {
    position: sticky; top: 0; z-index: 10;
    background: linear-gradient(180deg, rgba(11,13,16,.95), rgba(11,13,16,.6));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  }
  h1 { font-size: 18px; margin: 0 6px 0 0; }
  .legend { display: flex; gap: 12px; color: var(--muted); font-size: 12px; }
  .dot { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
  .ok { background: var(--ok); }
  .fail { background: var(--fail); }
  .info { background: var(--info); }
  .warn { background: var(--warn); }
  main { padding: 16px; display: grid; gap: 16px; }
  .repo {
    border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
    padding: 12px 12px 8px;
  }
  .repo > .head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 2px 10px;
    border-bottom: 1px dashed var(--border);
  }
  .repo .url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px; color: #b9c3d4; word-break: break-all;
  }
  .repo .meta { color: var(--muted); font-size: 12px; }
  .grid {
    display: grid; gap: 10px; margin-top: 10px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .cell {
    padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #0f141a;
    display: grid; gap: 8px;
  }
  .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
  .chip {
    background: var(--chip); border: 1px solid var(--border); border-radius: 999px; padding: 4px 8px; font-size: 12px; color: #c7d2e3;
  }
  .status {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .2px;
  }
  .small { font-size: 12px; color: var(--muted); }
  .blink {
    animation: blink 1s steps(2, start) infinite;
    text-shadow: 0 0 6px rgba(58,160,255,.6);
  }
  @keyframes blink { to { visibility: hidden; } }
  .pulse {
    position: relative;
  }
  .pulse::after {
    content: ""; position: absolute; inset: -2px; border-radius: 12px;
    border: 1px solid rgba(58,160,255,.4);
    animation: pulse 1.4s ease-out infinite;
  }
  @keyframes pulse {
    0% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.06); }
  }
  .muted { color: var(--muted); }
  .nowrap { white-space: nowrap; }
  .footer { color: var(--muted); font-size: 11px; margin: 20px 2px 0; text-align: right; }
  .nowrap code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
