knowyourbusiness 0.3.4

Git-backed, searchable knowledge base and incident tracker for AI agent fleets
    :root {
      /* Calm ops console: one accent, semantic color only where state demands it,
         neutrals biased toward the accent hue so greys read as chosen. */
      --bg: #0f1114;
      --card: #15181d;
      --card-hover: #1b1f26;
      --card-subtle: #12141a;
      --border: #262a33;
      --border-light: #333846;
      --border-focus: #8590d9;
      --accent: #8590d9;
      --accent-glow: rgba(133, 144, 217, 0.14);
      --accent-dim: rgba(133, 144, 217, 0.09);
      --text: #e8eaf0;
      --text-dim: #9aa0ad;
      --text-muted: #6b717e;
      --red: #e06c6f;
      --red-dim: rgba(224, 108, 111, 0.10);
      --amber: #d9a441;
      --amber-dim: rgba(217, 164, 65, 0.10);
      --green: #5fb88f;
      --green-dim: rgba(95, 184, 143, 0.10);
      --purple: #9aa0ad;
      --purple-dim: rgba(154, 160, 173, 0.08);
      --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-sans);
      font-size: 14px;        /* the base: nothing in the console is set below 12.5px */
      line-height: 1.45;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* Scrollbars */
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

    /* Header */
    header {
      background: rgba(14, 15, 17, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
      padding: 0 24px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--text);
    }
    .brand-logo {
      background: var(--accent-dim);
      border: 1px solid rgba(94, 106, 210, 0.3);
      color: var(--accent);
      font-family: var(--font-mono);
      font-weight: 800;
      font-size: 14px;
      padding: 4px 8px;
      border-radius: 6px;
    }
    .brand-title {
      white-space: nowrap;
      font-weight: 600;
      font-size: 15px;
      letter-spacing: -0.2px;
    }
    .system-status {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-dim);
      background: rgba(255, 255, 255, 0.04);
      padding: 3px 9px;
      border-radius: 6px;
      border: 1px solid var(--border);
    }
    .system-status { white-space: nowrap; flex-shrink: 0; cursor: pointer; font-family: inherit; }
    button.system-status:hover { border-color: var(--border-light); color: var(--text); }
    #whoLabel:not(:empty) { margin-left: 2px; }
    /* A reader's console shows no control the server would refuse. The server refuses regardless. */
    /* A reader's console shows no control the server would refuse. Write controls carry data-write. */
    body[data-role="read"] [data-write] { display: none !important; }
    .system-status .sync { color: var(--text-muted); }
    @media (max-width: 1560px) { .system-status .sync { display: none; } }
    @media (max-width: 1100px) { .brand-title, .tab-badge, .system-status span:not(.status-dot) { display: none; } .search-box { min-width: 110px; } header { padding: 0 12px; gap: 10px; } .nav-tabs { gap: 2px; } }   /* compact: logo, icons, search, the dot */
    @media (max-width: 1400px) { .nav-tab > span:not(.tab-badge) { display: none; } .nav-tab { padding-left: 10px; padding-right: 10px; } }   /* icons and counts only; the title attribute still names the tab */   /* the age is a nicety; the row must fit first */
    .status-dot {
      width: 6px;
      height: 6px;
      background: var(--green);
      border-radius: 50%;
    }

    /* Tabs */
    .nav-tabs {
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .nav-tab {
      background: transparent;
      border: none;
      color: var(--text-dim);
      padding: 7px 14px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.15s ease;
      text-decoration: none;
    }
    .nav-tab:hover {
      color: var(--text);
      background: rgba(255, 255, 255, 0.04);
    }
    .nav-tab.active {
      color: var(--text);
      background: var(--card-hover);
      border: 1px solid var(--border);
    }
    .tab-badge {
      font-family: var(--font-mono);
      font-size: 12.5px;
      padding: 1px 6px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-dim);
    }
    .tab-badge.red { background: var(--red-dim); color: var(--red); font-weight: 700; }
    .tab-badge.amber { background: var(--amber-dim); color: var(--amber); font-weight: 700; }
    .tab-badge.teal { background: var(--accent-dim); color: var(--accent); font-weight: 700; }

    /* Header Controls */
    .header-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .search-box {
      position: relative;
      flex: 0 1 260px;
      min-width: 150px;
    }
    .header-controls { min-width: 0; }
    .search-input {
      width: 100%;
      background: var(--card-subtle);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 14px;
      padding: 7px 12px 7px 32px;
      border-radius: 6px;
      outline: none;
      transition: all 0.15s ease;
    }
    .search-input:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px var(--accent-glow);
    }
    .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
    }
    .kbd-shortcut {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 12.5px;
      font-family: var(--font-mono);
      background: var(--border);
      color: var(--text-muted);
      padding: 2px 5px;
      border-radius: 4px;
      pointer-events: none;
    }

    /* Subheader Stats */
    .stats-bar {
      background: var(--card-subtle);
      border-bottom: 1px solid var(--border);
      padding: 9px 24px;
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 13px;
      color: var(--text-dim);
      overflow-x: auto;
    }
    .stat-item {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }
    .stat-val {
      font-family: var(--font-mono);
      font-weight: 600;
      color: var(--text);
    }
    .stat-val.accent { color: var(--accent); }
    .stat-val.red { color: var(--red); }
    .stat-val.green { color: var(--green); }
    .stat-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }

    /* Main Container */
    main {
      flex: 1;
      padding: 20px 24px;
      max-width: 1700px;
      width: 100%;
      margin: 0 auto;
    }

    .tab-content { display: none; }
    .tab-content.active { display: block; animation: fadeIn 0.15s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }

    /* Buttons */
    .btn {
      background: var(--card-hover);
      border: 1px solid var(--border);
      color: var(--text);
      padding: 6px 12px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s ease;
      user-select: none;
    }
    .btn:hover { background: var(--border-light); border-color: var(--border-light); }
    .btn.primary { background: var(--accent); color: #ffffff; border-color: var(--accent); font-weight: 600; }
    .btn.primary:hover { background: var(--border-focus); filter: brightness(1.1); }
    .btn.danger { background: var(--red-dim); color: var(--red); border-color: var(--red); }
    .btn.danger:hover { filter: brightness(1.1); }
    .btn.warning { background: var(--amber-dim); color: var(--amber); border-color: var(--amber); }
    .btn.warning:hover { filter: brightness(1.1); }
    .btn.success { background: var(--green-dim); color: var(--green); border-color: var(--green); }
    .btn.success:hover { filter: brightness(1.1); }
    .btn.sm { padding: 4px 8px; font-size: 12.5px; }
    .btn.icon-only { padding: 6px; }

    /* Badges */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 7px;
      border-radius: 4px;
      font-size: 12.5px;
      font-family: var(--font-mono);
      font-weight: 600;
      }
    .badge-knowledge { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.25); }
    .badge-incident { background: var(--red-dim); color: var(--red); border: 1px solid rgba(229, 72, 77, 0.25); }
    .badge-task { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(94, 106, 210, 0.25); }

    .badge-blocked { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(247, 206, 0, 0.25); }

    .badge-tag {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border);
      color: var(--text-dim);
      font-family: var(--font-mono);
      font-size: 12.5px;
      padding: 2px 7px;
      border-radius: 4px;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .badge-tag:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }