diff --git a/PUBLIC_SOURCE_EXPORT.md b/PUBLIC_SOURCE_EXPORT.md
index ddf3d5f..ebc87a6 100644
--- a/PUBLIC_SOURCE_EXPORT.md
+++ b/PUBLIC_SOURCE_EXPORT.md
@@ -1,3 +1,3 @@
# Public source export
-This source snapshot was generated from the private canonical repository at revision `b1c0935a15f5b37e107c7e8764044711415f14e1`. It contains no private Git history or operational evidence. Changes are published from the canonical repository.
+This source snapshot was generated from the private canonical repository at revision `7a60c53ee2c1daebecd66a01656e323f1db72e56`. It contains no private Git history or operational evidence. Changes are published from the canonical repository.
diff --git a/PUBLIC_SOURCE_MANIFEST.json b/PUBLIC_SOURCE_MANIFEST.json
index be32d30..0552042 100644
--- a/PUBLIC_SOURCE_MANIFEST.json
+++ b/PUBLIC_SOURCE_MANIFEST.json
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
- "sourceRevision": "b1c0935a15f5b37e107c7e8764044711415f14e1",
+ "sourceRevision": "7a60c53ee2c1daebecd66a01656e323f1db72e56",
"files": [
{
"path": ".dockerignore",
@@ -44,8 +44,8 @@
},
{
"path": "backend/app/acquisition.py",
- "sha256": "1c1877d1d720c66d62a6a6f518a1752f649f6b0a2fa2fda766c093d39a4f6367",
- "bytes": 10499
+ "sha256": "f5c10c027af35afbf47ffe21041fea5b74778e0411be3b582b7b8a224a9d09cc",
+ "bytes": 10698
},
{
"path": "backend/app/architecture.py",
@@ -62,6 +62,11 @@
"sha256": "e4795d7d60fe15fc133b2216a33b11b02086d86c4baa87de0d17d3e55ab0dbbb",
"bytes": 13958
},
+ {
+ "path": "backend/app/icons.py",
+ "sha256": "405206f32bbb6556708b54efcfc8ca5426ce08292dfc776c1796edde89008e7b",
+ "bytes": 6202
+ },
{
"path": "backend/app/jobs.py",
"sha256": "f4deb3732d995f602980f41623e16bba5255b7125cf1dff03534cea5f571a0b4",
@@ -69,8 +74,8 @@
},
{
"path": "backend/app/main.py",
- "sha256": "b8898a7ddb4d328b52d2e7141d50610f6ee4ac27eaa57276d095590cd4d708ba",
- "bytes": 20288
+ "sha256": "06eb422e6a3a42add652557852e2a6ab55c1b63f843490c6788069e0317ecd52",
+ "bytes": 21812
},
{
"path": "backend/app/models.py",
@@ -147,6 +152,11 @@
"sha256": "33a4761b7982cf1cfe492ce27174e7bf8a9b4f73bb0c6a1e41ad32357c092300",
"bytes": 8017
},
+ {
+ "path": "backend/tests/test_icons.py",
+ "sha256": "3e5edc43facb1366c1d8c81ec0b1a0f729eaff32f7c202a265a605ecf7aa731e",
+ "bytes": 5010
+ },
{
"path": "backend/tests/test_jobs.py",
"sha256": "33917d488a72071412b524d4dc4f00fbce2035559227b3d1134f95d7337c9625",
@@ -204,8 +214,8 @@
},
{
"path": "docs/ARCHITECTURE.md",
- "sha256": "41253e1aa1f0a816316bdf2e0d559575beb3936c538509d4d7becd4e2cd7f012",
- "bytes": 15543
+ "sha256": "55fde435a5ef76f520e85a9f5c7ffd7aeb6ed4bb6c327430482a1d45f5b39eef",
+ "bytes": 16369
},
{
"path": "docs/screenshots/demo-explorer.png",
@@ -249,18 +259,18 @@
},
{
"path": "frontend/package-lock.json",
- "sha256": "afeb669147a6a98f76c28f7f2a706595b05db881a0c76a0d7c15348c64717d4b",
- "bytes": 113084
+ "sha256": "7f61db141dd820899f08365cee3986f9346f7416e4411f2e7454fc583676ad72",
+ "bytes": 112965
},
{
"path": "frontend/package.json",
- "sha256": "ac706aaddfd7774ce5f0b302b3640c7570eb06c2505709c0277d97a31cbfcb2c",
- "bytes": 724
+ "sha256": "d73f1f5e655b78608a211b6ead339d2fb5b068a62688617458a7eadaef7762cb",
+ "bytes": 768
},
{
"path": "frontend/playwright.config.ts",
- "sha256": "7ab6930d8e7227cc1086e76a5f344e70291271a868ab72e1d36e060a7340e9d4",
- "bytes": 1277
+ "sha256": "3e663809a4c076a9fc4a3db5a7a4b3e7183ca979a31dcc542c5d435302055b95",
+ "bytes": 1445
},
{
"path": "frontend/public/brand/repopulse-logo-light.svg",
@@ -299,8 +309,8 @@
},
{
"path": "frontend/src/App.tsx",
- "sha256": "ff1d4c047772383148bc7a82a762fb5822ea1bfdb8814d97dfc0e980903f7fa3",
- "bytes": 46711
+ "sha256": "6df7a0b9d20304af203300346ae49c795f71f481242523f568f990e584d07669",
+ "bytes": 48190
},
{
"path": "frontend/src/FindingsView.test.tsx",
@@ -349,8 +359,8 @@
},
{
"path": "frontend/src/components/DashboardView.tsx",
- "sha256": "d5992db6a78aa4ec5f69220bdb4ccc0f964d5180112a0a772e750322ead883a6",
- "bytes": 9042
+ "sha256": "469c926bf27b13755431b15959588a7e93c517ee58a9dc2bef29b7ff9b7505a7",
+ "bytes": 11534
},
{
"path": "frontend/src/components/DependenciesView.tsx",
@@ -362,16 +372,26 @@
"sha256": "020f8299012d53bcac643897ba01d3c463f10cdd76e034ddeeff0436cb52409f",
"bytes": 4280
},
+ {
+ "path": "frontend/src/components/HealthRing.tsx",
+ "sha256": "955ff28d691ef51cecc3ee9079b4a35fb8541892760da3f65721790197615233",
+ "bytes": 2689
+ },
{
"path": "frontend/src/components/HistoryView.tsx",
- "sha256": "d440eb2e92a7932f35f4e80f51d41be775e82c94d1f2997f1c6a979078398816",
- "bytes": 4232
+ "sha256": "f2a0a4f8494f8067daedb529d95a2a333ae125cc5f1e02554a9bc4c984896c9a",
+ "bytes": 6885
},
{
"path": "frontend/src/components/HotspotsView.tsx",
"sha256": "a47d2086e406d9c998f5c38a8b4cf721fb1fa0c1360f73e334da454ea7653453",
"bytes": 1677
},
+ {
+ "path": "frontend/src/components/Icon.tsx",
+ "sha256": "c2436035be6dcc10d62ed8ce3d8d5a6fa083cd42c5aeb4cb8af71601dbf7efce",
+ "bytes": 3623
+ },
{
"path": "frontend/src/components/OverviewView.tsx",
"sha256": "c882afcdccb2eda69f5303d6d5b09da4a0d025b858ecfc97892c58ea17a58e52",
@@ -384,13 +404,18 @@
},
{
"path": "frontend/src/components/PortfolioAtlas.tsx",
- "sha256": "db41966552e858eb37d4491606e1acca2ba837e8fb5ee8ab24e41105c67c0a4a",
- "bytes": 5181
+ "sha256": "e3e2e4c8dafc3c71c8dbf833d76f0aaca9b03ed30df5a298b2246af4cb5f9f76",
+ "bytes": 4247
},
{
"path": "frontend/src/components/RemediationCenter.tsx",
- "sha256": "027dc97bd1240558bc464fb38afe5d6e5ca8cc48c7a0202a756701c90b51e543",
- "bytes": 2289
+ "sha256": "961156d35c6e87aa42af0455a1cca9f8dad354545952081f4625c0a4c556a899",
+ "bytes": 2458
+ },
+ {
+ "path": "frontend/src/components/RepoAvatar.tsx",
+ "sha256": "78971cae26b5b9c05e4ca9336d4e78e5621fad5399f4d6cbb6bce2df285da32c",
+ "bytes": 1780
},
{
"path": "frontend/src/components/RepositoryVisual.test.tsx",
@@ -409,8 +434,8 @@
},
{
"path": "frontend/src/main.tsx",
- "sha256": "77aaa85d0a532963cd63d1c6171a833f73b608dd83b4085f855b279dbe922939",
- "bytes": 227
+ "sha256": "328b81d8983b19d4c32324b3328beab2a616c08e862b60150bbc721662a22690",
+ "bytes": 272
},
{
"path": "frontend/src/navigation.test.ts",
@@ -424,8 +449,8 @@
},
{
"path": "frontend/src/styles.css",
- "sha256": "93418ab9fa63bde731c390890a17c1494cae0c96f383423c6160c25d74650a43",
- "bytes": 92024
+ "sha256": "607e176f4c94c98c90015ea791020eb44bcdef4c5f16624272182d2bd9376ee6",
+ "bytes": 74524
},
{
"path": "frontend/src/test-fixtures.ts",
@@ -439,8 +464,8 @@
},
{
"path": "frontend/vite.config.ts",
- "sha256": "6d4431025685e7e3a6e32ff65a93d7f203c36fa1be9227ad236885c15616d7a7",
- "bytes": 538
+ "sha256": "92e303ee41b3664bac1b58cf85669e46e46ee5fce747d95a45a169e7fd12655a",
+ "bytes": 759
},
{
"path": "package-lock.json",
diff --git a/backend/app/acquisition.py b/backend/app/acquisition.py
index 7374cec..4813b1f 100644
--- a/backend/app/acquisition.py
+++ b/backend/app/acquisition.py
@@ -92,6 +92,10 @@ class GitAcquirer:
safe = re.sub(r"[^A-Za-z0-9._-]", "_", identity)
return self.mirrors_root / f"{safe}.git"
+ def mirror_path(self, repository: Repository) -> Path:
+ """Return the bare mirror location for read-only consumers such as icon discovery."""
+ return self._mirror_path(repository)
+
def _worktree_path(self, job_id: str) -> Path:
if not SAFE_JOB_ID.fullmatch(job_id):
raise AcquisitionError("invalid_job", "Scan job identity is invalid")
diff --git a/backend/app/icons.py b/backend/app/icons.py
new file mode 100644
index 0000000..bbf6d78
--- /dev/null
+++ b/backend/app/icons.py
@@ -0,0 +1,145 @@
+"""Read-only project icon discovery from retained bare mirrors.
+
+A repository's own favicon or logo makes it recognisable in the catalog. The icon is
+resolved from the existing mirror at an exact revision, never from a worktree and never
+by fetching: the scanned repository and the mirror are not modified. Candidates are
+ranked deterministically, size-bounded and content-checked before they are served.
+"""
+
+from __future__ import annotations
+
+import re
+import subprocess
+from collections import OrderedDict
+from dataclasses import dataclass
+from pathlib import Path
+from threading import Lock
+
+from .processes import git_environment, run_bounded
+
+SAFE_REVISION = re.compile(r"^[0-9a-fA-F]{7,64}$")
+SAFE_OBJECT = re.compile(r"^[0-9a-f]{40,64}$")
+MAX_ICON_BYTES = 128 * 1024
+MAX_TREE_ENTRIES = 200_000
+MIN_RASTER_BYTES = 3 * 1024
+
+_ICON_NAME = re.compile(r"^(favicon|icon|app-icon|logo|logo-mark|apple-touch-icon)([._-][a-z0-9-]*)?\.(svg|png|webp|ico)$", re.IGNORECASE)
+_EXCLUDED_SEGMENT = re.compile(
+ r"^(node_modules|vendor|third_party|\.git|dist|build-cache|coverage|tests?|__tests__|fixtures?|examples?|screens|screenshots|mockups?|templates?)$",
+ re.IGNORECASE,
+)
+_PREFERRED_DIRECTORY = {"public": 0, "static": 1, "app": 1, "assets": 2, "icons": 2, "images": 3, "wwwroot": 1, "media": 3, "build": 4, "resources": 4, "build-resources": 4}
+_NAME_RANK = {"favicon": 0, "icon": 1, "app-icon": 1, "logo-mark": 2, "logo": 3, "apple-touch-icon": 4}
+_FORMAT_RANK = {"svg": 0, "png": 1, "webp": 2, "ico": 3}
+MEDIA_TYPES = {"svg": "image/svg+xml", "png": "image/png", "webp": "image/webp", "ico": "image/x-icon"}
+
+
+@dataclass(frozen=True)
+class ProjectIcon:
+ path: str
+ media_type: str
+ content: bytes
+
+
+def _rank(path: str, size: int) -> tuple[int, int, int, int, int, int, str] | None:
+ parts = path.split("/")
+ name = parts[-1]
+ match = _ICON_NAME.fullmatch(name)
+ if not match or size <= 0 or size > MAX_ICON_BYTES:
+ return None
+ directories = parts[:-1]
+ if any(_EXCLUDED_SEGMENT.fullmatch(segment) for segment in directories):
+ return None
+ if len(directories) > 6:
+ return None
+ directory_rank = min((_PREFERRED_DIRECTORY.get(segment.casefold(), 6) for segment in directories), default=5)
+ extension = match.group(3).casefold()
+ sized_variant = 1 if match.group(2) and re.search(r"\d", match.group(2)) else 0
+ # Tiny raster favicons (16/32 px) look blurry at avatar size; prefer a larger raster.
+ low_resolution = 1 if extension != "svg" and size < MIN_RASTER_BYTES else 0
+ return (
+ _FORMAT_RANK[extension],
+ low_resolution,
+ _NAME_RANK[match.group(1).casefold()],
+ directory_rank + sized_variant,
+ len(directories),
+ size,
+ path,
+ )
+
+
+def _looks_like(content: bytes, extension: str) -> bool:
+ if extension == "png":
+ return content.startswith(b"\x89PNG\r\n\x1a\n")
+ if extension == "ico":
+ return content[:4] == b"\x00\x00\x01\x00"
+ if extension == "webp":
+ return content[:4] == b"RIFF" and content[8:12] == b"WEBP"
+ head = content[:2048].lstrip().lower()
+ return head.startswith((b" None:
+ self.mirrors_root = mirrors_root
+ self.timeout = timeout
+ self.cache_size = cache_size
+ self._cache: OrderedDict[tuple[str, str], ProjectIcon | None] = OrderedDict()
+ self._lock = Lock()
+
+ def _git(self, mirror: Path, args: list[str]) -> bytes:
+ result = run_bounded(["git", "--git-dir", str(mirror), *args], timeout=self.timeout, env=git_environment())
+ return result.stdout
+
+ def resolve(self, mirror: Path, revision: str) -> ProjectIcon | None:
+ if not SAFE_REVISION.fullmatch(revision):
+ return None
+ try:
+ mirror.resolve().relative_to(self.mirrors_root.resolve())
+ except (OSError, RuntimeError, ValueError):
+ return None
+ key = (str(mirror), revision.casefold())
+ with self._lock:
+ if key in self._cache:
+ self._cache.move_to_end(key)
+ return self._cache[key]
+ icon = self._discover(mirror, revision) if mirror.is_dir() else None
+ with self._lock:
+ self._cache[key] = icon
+ self._cache.move_to_end(key)
+ while len(self._cache) > self.cache_size:
+ self._cache.popitem(last=False)
+ return icon
+
+ def _discover(self, mirror: Path, revision: str) -> ProjectIcon | None:
+ try:
+ listing = self._git(mirror, ["ls-tree", "-r", "-l", "--full-tree", "-z", f"{revision}^{{tree}}"])
+ except (OSError, subprocess.SubprocessError):
+ return None
+ candidates: list[tuple[tuple[int, int, int, int, int, int, str], str, str]] = []
+ for index, entry in enumerate(listing.split(b"\x00")):
+ if index >= MAX_TREE_ENTRIES or not entry:
+ continue
+ try:
+ meta, raw_path = entry.split(b"\t", 1)
+ _mode, kind, obj, size = meta.split()
+ path = raw_path.decode("utf-8")
+ except ValueError:
+ continue
+ if kind != b"blob" or not size.isdigit():
+ continue
+ obj_id = obj.decode("ascii", errors="ignore")
+ rank = _rank(path, int(size))
+ if rank is not None and SAFE_OBJECT.fullmatch(obj_id):
+ candidates.append((rank, obj_id, path))
+ for _rank_key, obj_id, path in sorted(candidates)[:8]:
+ try:
+ content = self._git(mirror, ["cat-file", "blob", obj_id])
+ except (OSError, subprocess.SubprocessError):
+ continue
+ extension = path.rsplit(".", 1)[-1].casefold()
+ if len(content) <= MAX_ICON_BYTES and _looks_like(content, extension):
+ return ProjectIcon(path=path, media_type=MEDIA_TYPES[extension], content=content)
+ return None
diff --git a/backend/app/main.py b/backend/app/main.py
index 8083fd2..48a8257 100644
--- a/backend/app/main.py
+++ b/backend/app/main.py
@@ -18,6 +18,8 @@ from starlette.types import Scope
from .acquisition import GitAcquirer
from .gitea import GiteaClient
+from .icons import SAFE_REVISION as SAFE_ICON_REVISION
+from .icons import ProjectIconResolver
from .jobs import ScanJobRunner
from .models import (
RepositoryDetail,
@@ -56,6 +58,7 @@ MAX_CONCURRENT_SCANS = 1
SCAN_SLOTS = BoundedSemaphore(MAX_CONCURRENT_SCANS)
gitea_client = GiteaClient()
repository_acquirer = GitAcquirer()
+project_icons = ProjectIconResolver(repository_acquirer.mirrors_root)
job_runner: ScanJobRunner | None = None
_api_mutation_lock = Lock()
_MAINTENANCE_ENTER_PATH = "/api/v1/operator/maintenance/enter"
@@ -280,6 +283,30 @@ def get_repository(repository_id: str) -> RepositoryDetail:
return repository
+ICON_HEADERS = {
+ "Cache-Control": "public, max-age=86400",
+ "X-Content-Type-Options": "nosniff",
+ # Repository-supplied SVG is untrusted: never allow script, network or embedding.
+ "Content-Security-Policy": "default-src 'none'; style-src 'unsafe-inline'; img-src data:; sandbox",
+ "Cross-Origin-Resource-Policy": "same-origin",
+}
+
+
+@app.get("/api/v1/repositories/{repository_id}/icon")
+def repository_icon(repository_id: str, rev: str | None = Query(default=None, max_length=64)) -> Response:
+ """Serve the project's own favicon or logo from its mirror at the retained revision."""
+
+ repository = store.get_repository(repository_id)
+ if repository is None:
+ raise HTTPException(status_code=404, detail="Repository not found")
+ known = {value.casefold() for value in (repository.last_scan_revision, repository.latest_revision) if value}
+ revision = rev if rev and SAFE_ICON_REVISION.fullmatch(rev) and rev.casefold() in known else repository.last_scan_revision or repository.latest_revision
+ icon = project_icons.resolve(repository_acquirer.mirror_path(repository), revision) if revision else None
+ if icon is None:
+ return Response(status_code=status.HTTP_404_NOT_FOUND, headers={"Cache-Control": "public, max-age=3600"})
+ return Response(icon.content, media_type=icon.media_type, headers=ICON_HEADERS)
+
+
@app.get("/api/v1/repositories/{repository_id}/scans", response_model=list[ScanSummary])
def list_repository_scans(
repository_id: str,
diff --git a/backend/tests/test_icons.py b/backend/tests/test_icons.py
new file mode 100644
index 0000000..62bed92
--- /dev/null
+++ b/backend/tests/test_icons.py
@@ -0,0 +1,106 @@
+from __future__ import annotations
+
+import subprocess
+from pathlib import Path
+
+from app.icons import MAX_ICON_BYTES, ProjectIconResolver
+
+PNG = b"\x89PNG\r\n\x1a\n" + b"\x00" * 32
+SVG = b' '
+
+
+def _mirror(tmp_path: Path, files: dict[str, bytes]) -> tuple[Path, Path, str]:
+ source = tmp_path / "source"
+ source.mkdir()
+ for relative, content in files.items():
+ target = source / relative
+ target.parent.mkdir(parents=True, exist_ok=True)
+ target.write_bytes(content)
+ subprocess.run(["git", "init", "--quiet", str(source)], check=True)
+ subprocess.run(["git", "-C", str(source), "config", "user.email", "test@example.com"], check=True)
+ subprocess.run(["git", "-C", str(source), "config", "user.name", "RepoPulse Test"], check=True)
+ subprocess.run(["git", "-C", str(source), "add", "."], check=True)
+ subprocess.run(["git", "-C", str(source), "commit", "--quiet", "-m", "initial"], check=True)
+ revision = subprocess.run(["git", "-C", str(source), "rev-parse", "HEAD"], check=True, capture_output=True, text=True).stdout.strip()
+ mirrors = tmp_path / "mirrors"
+ mirrors.mkdir()
+ mirror = mirrors / "gitea-1.git"
+ subprocess.run(["git", "clone", "--quiet", "--mirror", str(source), str(mirror)], check=True)
+ return mirrors, mirror, revision
+
+
+def test_prefers_a_public_svg_favicon_over_logos_and_excluded_fixtures(tmp_path: Path) -> None:
+ mirrors, mirror, revision = _mirror(tmp_path, {
+ "README.md": b"# Demo\n",
+ "docs/logo.png": PNG,
+ "tests/fixtures/favicon.svg": SVG,
+ "node_modules/pkg/favicon.svg": SVG,
+ "frontend/public/favicon.svg": SVG,
+ "frontend/public/icons.svg": SVG,
+ })
+ icon = ProjectIconResolver(mirrors).resolve(mirror, revision)
+ assert icon is not None
+ assert icon.path == "frontend/public/favicon.svg"
+ assert icon.media_type == "image/svg+xml"
+ assert icon.content == SVG
+
+
+def test_rejects_content_that_does_not_match_its_extension_and_oversized_files(tmp_path: Path) -> None:
+ mirrors, mirror, revision = _mirror(tmp_path, {
+ "public/favicon.svg": b"#!/bin/sh\necho not an image\n",
+ "public/logo.png": b"not a png",
+ "public/icon.png": PNG + b"\x00" * MAX_ICON_BYTES,
+ "app/icon.png": PNG,
+ })
+ icon = ProjectIconResolver(mirrors).resolve(mirror, revision)
+ assert icon is not None
+ assert icon.path == "app/icon.png"
+ assert icon.media_type == "image/png"
+
+
+def test_prefers_a_larger_raster_over_a_tiny_favicon(tmp_path: Path) -> None:
+ mirrors, mirror, revision = _mirror(tmp_path, {
+ "frontend/public/icons/favicon-16.png": PNG,
+ "frontend/public/icons/apple-touch-icon.png": PNG + bytes(8000),
+ })
+ icon = ProjectIconResolver(mirrors).resolve(mirror, revision)
+ assert icon is not None
+ assert icon.path == "frontend/public/icons/apple-touch-icon.png"
+
+
+def test_missing_icons_unknown_revisions_and_foreign_mirrors_resolve_to_none(tmp_path: Path) -> None:
+ mirrors, mirror, revision = _mirror(tmp_path, {"README.md": b"# Demo\n"})
+ resolver = ProjectIconResolver(mirrors)
+ assert resolver.resolve(mirror, revision) is None
+ assert resolver.resolve(mirror, "not-a-revision") is None
+ assert resolver.resolve(mirror, "0" * 40) is None
+ assert resolver.resolve(tmp_path / "source" / ".git", revision) is None
+
+
+def test_icon_endpoint_serves_the_mirror_icon_with_strict_headers(tmp_path: Path, monkeypatch) -> None:
+ from fastapi.testclient import TestClient
+
+ from app import main as main_module
+ from app.models import Repository
+ from app.store import ScanStore
+
+ mirrors, _mirror_path, revision = _mirror(tmp_path, {"public/favicon.svg": SVG})
+ store = ScanStore(str(tmp_path / "history.db"))
+ repository = Repository(id="gitea:1", provider="gitea", provider_repository_id="1", owner="Jens", name="Demo", full_name="Jens/Demo", latest_revision=revision)
+ store.upsert_repository(repository)
+ empty = Repository(id="gitea:2", provider="gitea", provider_repository_id="2", owner="Jens", name="Empty", full_name="Jens/Empty")
+ store.upsert_repository(empty)
+ monkeypatch.setattr(main_module, "store", store)
+ monkeypatch.setattr(main_module, "project_icons", ProjectIconResolver(mirrors))
+ monkeypatch.setattr(main_module.repository_acquirer, "mirrors_root", mirrors)
+ client = TestClient(main_module.app)
+
+ response = client.get(f"/api/v1/repositories/gitea:1/icon?rev={revision}")
+ assert response.status_code == 200
+ assert response.content == SVG
+ assert response.headers["content-type"].startswith("image/svg+xml")
+ assert "sandbox" in response.headers["content-security-policy"]
+ assert response.headers["x-content-type-options"] == "nosniff"
+
+ assert client.get("/api/v1/repositories/gitea:2/icon").status_code == 404
+ assert client.get("/api/v1/repositories/gitea:404/icon").status_code == 404
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
index adad891..0b6ba47 100644
--- a/docs/ARCHITECTURE.md
+++ b/docs/ARCHITECTURE.md
@@ -37,6 +37,8 @@ For a Gitea job, the requested SHA is captured at enqueue time. The acquirer use
## Scan boundary
+Project icons are resolved read-only from the existing bare mirror at the repository's retained scan revision (`GET /api/v1/repositories/{id}/icon`). The resolver lists the tree with `git ls-tree`, ranks favicon/icon/logo candidates deterministically (SVG first, larger rasters over tiny favicons, `public`/`static`/`app` directories first, tests, fixtures, vendored and screenshot paths excluded), reads at most 128 KiB per blob with `git cat-file` and serves the file only when its content matches its extension. It never fetches, never touches a worktree and caches results per revision in memory. Responses carry `nosniff` and a sandboxing `Content-Security-Policy`, because repository-supplied SVG is untrusted; the frontend renders icons through ` ` and falls back to readiness-tinted initials when no icon exists.
+
When `REPOPULSE_SCAN_ROOT` is configured, every local scan path is resolved and checked against that root before analysis. Compose sets the root to `/scan` and mounts the user-selected source directory read-only. The scanner then resolves every candidate file, rejects symlinked files and directories (including symlink ancestors), and requires the resolved file to remain below the scan root. This prevents the API from being used as a generic filesystem browser outside the configured analysis boundary. Gitea worktrees are acquired into `/data`, not `/scan`, and are controlled by repository-ID/job-ID validation.
## Persistence and deployment boundary
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index c893df1..759236a 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -8,12 +8,13 @@
"name": "repopulse-frontend",
"version": "1.5.1",
"dependencies": {
+ "@fontsource-variable/inter": "^5.3.0",
"@xyflow/react": "^12.8.5",
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"devDependencies": {
- "@playwright/test": "^1.55.0",
+ "@playwright/test": "^1.64.1",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.3",
"@types/react": "^19.1.12",
@@ -983,6 +984,15 @@
}
}
},
+ "node_modules/@fontsource-variable/inter": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/@fontsource-variable/inter/-/inter-5.3.0.tgz",
+ "integrity": "sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA==",
+ "license": "OFL-1.1",
+ "funding": {
+ "url": "https://github.com/sponsors/ayuhito"
+ }
+ },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
@@ -1054,19 +1064,19 @@
}
},
"node_modules/@playwright/test": {
- "version": "1.55.0",
- "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.55.0.tgz",
- "integrity": "sha512-04IXzPwHrW69XusN/SIdDdKZBzMfOT9UNT/YiJit/xpy2VuAoB8NHc8Aplb96zsWDddLnbkPL3TsmrS04ZU2xQ==",
+ "version": "1.64.1",
+ "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.64.1.tgz",
+ "integrity": "sha512-IaYGml/nSOiZWROfPtuIL7neuu9qDOZ3TNvNljUIrhDMxiGTgPjzj/g9p9RxpS2tSepPDRY+UwAaEeiKtUvIAg==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
- "playwright": "1.55.0"
+ "playwright": "1.64.1"
},
"bin": {
"playwright": "cli.js"
},
"engines": {
- "node": ">=18"
+ "node": ">=20"
}
},
"node_modules/@rolldown/pluginutils": {
@@ -2592,50 +2602,32 @@
}
},
"node_modules/playwright": {
- "version": "1.55.0",
- "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.0.tgz",
- "integrity": "sha512-sdCWStblvV1YU909Xqx0DhOjPZE4/5lJsIS84IfN9dAZfcl/CIZ5O8l3o0j7hPMjDvqoTF8ZUcc+i/GL5erstA==",
+ "version": "1.64.1",
+ "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.64.1.tgz",
+ "integrity": "sha512-HCrVhHr5QQuwYoswEUGTb7gGp522yflbv/ST8nF4sFWGuLjQCt17Q/EubpGGSNKYn1tsTCPZxqHhHCfVURu7UA==",
"dev": true,
"license": "Apache-2.0",
"dependencies": {
- "playwright-core": "1.55.0"
+ "playwright-core": "1.64.1"
},
"bin": {
"playwright": "cli.js"
},
"engines": {
- "node": ">=18"
- },
- "optionalDependencies": {
- "fsevents": "2.3.2"
+ "node": ">=20"
}
},
"node_modules/playwright-core": {
- "version": "1.55.0",
- "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.0.tgz",
- "integrity": "sha512-GvZs4vU3U5ro2nZpeiwyb0zuFaqb9sUiAJuyrWpcGouD8y9/HLgGbNRjIph7zU9D3hnPaisMl9zG9CgFi/biIg==",
+ "version": "1.64.1",
+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.64.1.tgz",
+ "integrity": "sha512-BC4s8y6SEVA6Q1rSxZTto8hI1KUI3xXlHGZgvGqP4IqPdI/a6FX9H29IDNz7vKo9l21b6LfYosScPL6M3xxyDQ==",
"dev": true,
"license": "Apache-2.0",
"bin": {
"playwright-core": "cli.js"
},
"engines": {
- "node": ">=18"
- }
- },
- "node_modules/playwright/node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ "node": ">=20"
}
},
"node_modules/postcss": {
diff --git a/frontend/package.json b/frontend/package.json
index 129a2a2..c54a595 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -11,12 +11,13 @@
"test:e2e": "playwright test"
},
"dependencies": {
+ "@fontsource-variable/inter": "^5.3.0",
"@xyflow/react": "^12.8.5",
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
"devDependencies": {
- "@playwright/test": "^1.55.0",
+ "@playwright/test": "^1.64.1",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.3",
"@types/react": "^19.1.12",
diff --git a/frontend/playwright.config.ts b/frontend/playwright.config.ts
index 7598543..51fb492 100644
--- a/frontend/playwright.config.ts
+++ b/frontend/playwright.config.ts
@@ -2,7 +2,7 @@ import { defineConfig, devices } from '@playwright/test'
export default defineConfig({
testDir: './e2e',
- timeout: 30_000,
+ timeout: 60_000, // one long end-to-end journey; cold Vite compiles on a loaded runner need headroom
fullyParallel: false,
workers: 6,
reporter: 'list',
@@ -30,7 +30,7 @@ export default defineConfig({
command: 'node e2e/start-vite.mjs',
url: 'http://127.0.0.1:4173',
reuseExistingServer: false,
- timeout: 30_000,
+ timeout: 60_000, // one long end-to-end journey; cold Vite compiles on a loaded runner need headroom
},
],
})
diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index ddcd153..c34b437 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -3,6 +3,9 @@ import { type FormEvent, lazy, Suspense, useCallback, useEffect, useMemo, useRef
import { api, type AppMeta, type RepositorySummary, type ScanComparison, type ScanJob, type ScanReport, type ScanSummary, type TrendPoint } from './api'
import { filterRepositories, orderSwitcherRepositories, paginateRepositories, readinessLabel, repositoryReadiness, sortRepositories, stateLabel, type CatalogFilters, type CatalogSort, type CatalogSortKey, type Readiness } from './catalog'
import { BrandLockup, BrandMark } from './components/Brand'
+import { Icon, type IconName } from './components/Icon'
+import { HealthRing } from './components/HealthRing'
+import { RepoAvatar } from './components/RepoAvatar'
import { DashboardView } from './components/DashboardView'
import { DependenciesView } from './components/DependenciesView'
import { FindingsView } from './components/FindingsView'
@@ -40,7 +43,7 @@ function formatDate(value: string | null) { if (!value) return 'Never'; const da
function formatRelativeDate(value: string | null) { if (!value) return 'Never scanned'; const difference = Date.now() - new Date(value).getTime(); if (Number.isNaN(difference)) return 'Unknown'; if (difference < 3_600_000) return `${Math.max(1, Math.floor(difference / 60_000))}m ago`; if (difference < 86_400_000) return `${Math.floor(difference / 3_600_000)}h ago`; return `${Math.floor(difference / 86_400_000)}d ago` }
function downloadText(filename: string, content: string, mime: string) { const url = URL.createObjectURL(new Blob([content], { type: mime })); const anchor = document.createElement('a'); anchor.href = url; anchor.download = filename; anchor.style.display = 'none'; document.body.appendChild(anchor); anchor.click(); window.setTimeout(() => { anchor.remove(); URL.revokeObjectURL(url) }, 0) }
function reportFilename(repositoryName: string, format: 'html' | 'json') { const safeName = repositoryName.replace(/[\u0000-\u001f\u007f<>:"/\\|?*]/g, '_').replace(/[ .]+$/g, '').slice(0, 100).replace(/[ .]+$/g, '') || 'repository'; return `repopulse-${safeName}.${format}` }
-function detailViewLabel(view: DetailView, report: ScanReport | null) { if (view === 'overview') return 'Overview'; if (view === 'findings') return `Findings (${report?.findings.filter((finding) => !finding.suppressed).length ?? 0})`; if (view === 'architecture') return `Architecture (${report?.architecture.nodes.length ?? 0})`; if (view === 'hotspots') return `Hotspots (${report?.hotspots.length ?? 0})`; if (view === 'dependencies') return 'Dependencies'; if (view === 'history') return 'History'; return 'Scan runs' }
+function detailViewLabel(view: DetailView, report: ScanReport | null) { if (view === 'overview') return 'Overview'; if (view === 'findings') return report ? `Findings (${report.findings.filter((finding) => !finding.suppressed).length})` : 'Findings'; if (view === 'architecture') return report ? `Architecture (${report.architecture.nodes.length})` : 'Architecture'; if (view === 'hotspots') return report ? `Hotspots (${report.hotspots.length})` : 'Hotspots'; if (view === 'dependencies') return 'Dependencies'; if (view === 'history') return 'History'; return 'Scan runs' }
export default function App() {
const [route, setRoute] = useState(() => parseRoute(window.location.pathname))
@@ -162,20 +165,29 @@ export default function App() {
const selectScan = async (summary: ScanSummary) => { try { setBusy(true); setError(null); setReport(await api.repositoryScan(summary.repository_id, summary.id)); navigate({ page: 'repositories', repositoryId: summary.repository_id, view: 'overview' }) } catch (err) { setError(err instanceof Error ? err.message : 'Could not load the selected scan.') } finally { setBusy(false) } }
const exportReport = async (format: 'html' | 'json') => { if (!report) return; try { downloadText(reportFilename(report.repository_name, format), await api.exportReport(report.id, format), format === 'html' ? 'text/html' : 'application/json') } catch (err) { setError(err instanceof Error ? err.message : 'Report export failed.') } }
- const renderGlobalNav = () => handleNavigation(event, { page: 'dashboard' })}>Dashboard handleNavigation(event, { page: 'repositories' })}>Repositories {repositories.length || '—'} handleNavigation(event, { page: 'activity' })}>Activity handleNavigation(event, { page: 'queue' })}>Scan queue handleNavigation(event, { page: 'settings' })}>Settings
- const renderTopbar = () =>
+ const navItems: { page: Route['page']; label: string; href: string; icon: IconName; count?: number }[] = [
+ { page: 'dashboard', label: 'Dashboard', href: '/', icon: 'dashboard' },
+ { page: 'repositories', label: 'Repositories', href: '/repositories', icon: 'repositories', count: repositories.length },
+ { page: 'activity', label: 'Activity', href: '/activity', icon: 'activity' },
+ { page: 'queue', label: 'Scan queue', href: '/queue', icon: 'queue', count: repositories.filter((repository) => repository.active_job_id || repository.state === 'queued' || repository.state === 'scanning').length || undefined },
+ { page: 'settings', label: 'Settings', href: '/settings', icon: 'settings' },
+ ]
+ const lastSync = meta?.gitea.last_sync && typeof meta.gitea.last_sync === 'object' && 'synced_at' in meta.gitea.last_sync ? String(meta.gitea.last_sync.synced_at) : null
+ const renderGlobalNav = () => {navItems.map((item) => handleNavigation(event, { page: item.page })}>{item.label} {item.count != null && {item.count || '—'} } )}
+ const renderSidebar = () =>
+ const renderTopbar = () =>
- const renderCatalogPage = () => Repository explorer Repositories {repositories.length} High-density catalog controls when you need breadth; switch to visual identity tiles when you need pattern recognition.
setSwitcherOpen(true)}>Quick switcher ⌘K void syncCatalog()} disabled={catalogBusy}>{catalogBusy ? 'Syncing…' : 'Sync Gitea catalog'}
⌕ Search repositories updateCatalogFilter('query', event.target.value)} placeholder="Search name, owner or full name" />⌘K
State updateCatalogFilter('state', event.target.value as CatalogFilters['state'])}>All states Current Stale Scanning Failed Never scanned Archived Readiness updateCatalogFilter('readiness', event.target.value as CatalogFilters['readiness'])}>All readiness Ready Warnings Blocked Owner updateCatalogFilter('owner', event.target.value)}>All owners {ownerOptions.map((owner) => {owner} )} Branch updateCatalogFilter('branch', event.target.value)}>All branches {branchOptions.map((branch) => {branch} )} Visibility updateCatalogFilter('visibility', event.target.value as CatalogFilters['visibility'])}>Any visibility Private Public Lifecycle updateCatalogFilter('archived', event.target.value as CatalogFilters['archived'])}>Active only Active and archived Archived only
{filteredRepositories.length} matching {repositories.length} repositories setCatalogView('table')} aria-pressed={catalogView === 'table'}>Table setCatalogView('grid')} aria-pressed={catalogView === 'grid'}>Visual grid
{ setCatalogFilters(DEFAULT_FILTERS); setCatalogPage(1) }}>Reset filters {catalogLoading ? : catalogWindow.items.length ? <>{catalogView === 'table' ? setCatalogSortKey('name')}>Repository {catalogSort.key === 'name' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} setCatalogSortKey('state')}>State {catalogSort.key === 'state' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} Readiness Branch setCatalogSortKey('last_scan')}>Last scan {catalogSort.key === 'last_scan' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} setCatalogSortKey('health')}>Health {catalogSort.key === 'health' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} {catalogWindow.items.map((repository) => { const readiness = repositoryReadiness(repository); const pinned = pinnedIds.includes(repository.id); return selectRepository(repository)} onKeyDown={(event) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); selectRepository(repository) } }}> { event.stopPropagation(); togglePinned(repository.id) }} aria-label={pinned ? `Remove ${repository.full_name} from pinned repositories` : `Pin ${repository.full_name}`} aria-pressed={pinned}>{pinned ? '★' : '☆'} {repository.full_name} {repository.private ? 'Private' : 'Public'} · {repository.provider} · {repository.archived ? 'Archived' : 'Active'}
{stateLabel(repository.state)} {readinessLabel(readiness)}{repository.default_branch}{formatRelativeDate(repository.last_scan_at)}{formatDate(repository.last_scan_at)} {repository.last_scan_health ?? '—'} })}
: {catalogWindow.items.map((repository) => { const pinned = pinnedIds.includes(repository.id); const readiness = repositoryReadiness(repository); return selectRepository(repository)} aria-label={`Open ${repository.full_name}`}>{repository.name} {repository.owner} · {repository.default_branch} {repository.last_scan_health ?? '—'} {readinessLabel(readiness)}{formatRelativeDate(repository.last_scan_at)} togglePinned(repository.id)} aria-label={pinned ? `Remove ${repository.full_name} from pinned repositories` : `Pin ${repository.full_name}`} aria-pressed={pinned}>{pinned ? '★' : '☆'} })} }Showing {(catalogWindow.page - 1) * catalogWindow.pageSize + 1}–{Math.min(catalogWindow.page * catalogWindow.pageSize, catalogWindow.total)} of {catalogWindow.total} Rows { setCatalogPageSize(Number(event.target.value)); setCatalogPage(1) }}>24 48 96 setCatalogPage((page) => Math.max(1, page - 1))} disabled={catalogWindow.page <= 1}>Previous Page {catalogWindow.page} / {catalogWindow.pageCount} setCatalogPage((page) => Math.min(catalogWindow.pageCount, page + 1))} disabled={catalogWindow.page >= catalogWindow.pageCount}>Next
> : {repositories.length ? 'No repositories match' : 'No repositories yet'} {repositories.length ? 'Adjust the search or reset your filters to widen the catalog.' : 'Sync the Gitea catalog to discover repositories available to RepoPulse.'}
{ setCatalogFilters(DEFAULT_FILTERS); setCatalogPage(1) }}>{repositories.length ? 'Reset filters' : 'Sync Gitea catalog'} }
+ const renderCatalogPage = () => Repositories {repositories.length} Every repository RepoPulse discovered in Gitea, with its latest retained scan.
void syncCatalog()} disabled={catalogBusy}> {catalogBusy ? 'Syncing…' : 'Sync Gitea catalog'}
Search repositories updateCatalogFilter('query', event.target.value)} placeholder="Search name, owner or full name" />
State updateCatalogFilter('state', event.target.value as CatalogFilters['state'])}>All states Current Stale Scanning Failed Never scanned Archived Readiness updateCatalogFilter('readiness', event.target.value as CatalogFilters['readiness'])}>All readiness Ready Warnings Blocked Owner updateCatalogFilter('owner', event.target.value)}>All owners {ownerOptions.map((owner) => {owner} )} Branch updateCatalogFilter('branch', event.target.value)}>All branches {branchOptions.map((branch) => {branch} )} Visibility updateCatalogFilter('visibility', event.target.value as CatalogFilters['visibility'])}>Any visibility Private Public Lifecycle updateCatalogFilter('archived', event.target.value as CatalogFilters['archived'])}>Active only Active and archived Archived only
{filteredRepositories.length} matching {repositories.length} repositories setCatalogView('table')} aria-pressed={catalogView === 'table'}>Table setCatalogView('grid')} aria-pressed={catalogView === 'grid'}>Visual grid
{ setCatalogFilters(DEFAULT_FILTERS); setCatalogPage(1) }}>Reset filters {catalogLoading ? : catalogWindow.items.length ? <>{catalogView === 'table' ? setCatalogSortKey('name')}>Repository {catalogSort.key === 'name' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} setCatalogSortKey('state')}>State {catalogSort.key === 'state' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} Readiness Branch setCatalogSortKey('last_scan')}>Last scan {catalogSort.key === 'last_scan' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} setCatalogSortKey('health')}>Health {catalogSort.key === 'health' ? catalogSort.direction === 'asc' ? '↑' : '↓' : '↕'} {catalogWindow.items.map((repository) => { const readiness = repositoryReadiness(repository); const pinned = pinnedIds.includes(repository.id); return selectRepository(repository)} onKeyDown={(event) => { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); selectRepository(repository) } }}> { event.stopPropagation(); togglePinned(repository.id) }} aria-label={pinned ? `Remove ${repository.full_name} from pinned repositories` : `Pin ${repository.full_name}`} aria-pressed={pinned}>{pinned ? '★' : '☆'} {repository.full_name} {repository.private ? 'Private' : 'Public'} · {repository.provider} · {repository.archived ? 'Archived' : 'Active'}
{stateLabel(repository.state)} {readinessLabel(readiness)}{repository.default_branch}{formatRelativeDate(repository.last_scan_at)}{formatDate(repository.last_scan_at)} {repository.last_scan_health ?? '—'} })}
: {catalogWindow.items.map((repository) => { const pinned = pinnedIds.includes(repository.id); const readiness = repositoryReadiness(repository); return selectRepository(repository)} aria-label={`Open ${repository.full_name}`}>{repository.name} {repository.owner} · {repository.default_branch} {repository.last_scan_primary_signal?.message ?? repository.description ?? 'No repository description provided.'} {readinessLabel(readiness)}{formatRelativeDate(repository.last_scan_at)} togglePinned(repository.id)} aria-label={pinned ? `Remove ${repository.full_name} from pinned repositories` : `Pin ${repository.full_name}`} aria-pressed={pinned}>{pinned ? '★' : '☆'} })} }Showing {(catalogWindow.page - 1) * catalogWindow.pageSize + 1}–{Math.min(catalogWindow.page * catalogWindow.pageSize, catalogWindow.total)} of {catalogWindow.total} Rows { setCatalogPageSize(Number(event.target.value)); setCatalogPage(1) }}>24 48 96 setCatalogPage((page) => Math.max(1, page - 1))} disabled={catalogWindow.page <= 1}>Previous Page {catalogWindow.page} / {catalogWindow.pageCount} setCatalogPage((page) => Math.min(catalogWindow.pageCount, page + 1))} disabled={catalogWindow.page >= catalogWindow.pageCount}>Next
> : {repositories.length ? 'No repositories match' : 'No repositories yet'} {repositories.length ? 'Adjust the search or reset your filters to widen the catalog.' : 'Sync the Gitea catalog to discover repositories available to RepoPulse.'}
{ setCatalogFilters(DEFAULT_FILTERS); setCatalogPage(1) }}>{repositories.length ? 'Reset filters' : 'Sync Gitea catalog'} }
const renderDetailPage = () => {
if (!selectedRepository) return
const readiness = repositoryReadiness(selectedRepository); const revision = report?.source.actual_revision || selectedRepository.latest_revision
- return {selectedRepository.provider} repository · {selectedRepository.private ? 'private' : 'public'} {selectedRepository.full_name} {selectedRepository.description || 'No repository description provided.'}
{selectedRepository.default_branch}{shortRevision(revision)} {stateLabel(selectedRepository.state)}
{report?.health_score ?? selectedRepository.last_scan_health ?? '—'} health score {report?.release_readiness ?? readinessLabel(readiness)}
void analyzeRepository(selectedRepository)} disabled={busy || Boolean(activeJob)}>{activeJob ? 'Scanning…' : 'Scan now'} Reports void exportReport('html')} disabled={!report}>Export HTML void exportReport('json')} disabled={!report}>Export JSON
More void analyzeRepository(selectedRepository, true)} disabled={busy || Boolean(activeJob)}>Force rescan navigate({ page: 'repositories', repositoryId: selectedRepository.id, view: 'scans' })}>View scan runs setAdvancedOpen((current) => !current)}>Advanced info
togglePinned(selectedRepository.id)} aria-label={pinnedIds.includes(selectedRepository.id) ? 'Remove from pinned repositories' : 'Pin repository'} aria-pressed={pinnedIds.includes(selectedRepository.id)}>{pinnedIds.includes(selectedRepository.id) ? '★' : '☆'} {error && {error}
}{notice && {notice}
}{activeJob && {activeJob.message || 'Analysis in progress'} {activeJob.phase.replaceAll('_', ' ')} · {activeJob.progress}%
}{DETAIL_VIEWS.map((view) => handleNavigation(event, { page: 'repositories', repositoryId: selectedRepository.id, view })}>{detailViewLabel(view, report)} )} {advancedOpen && Advanced repository info
Identity and policy
Provider ID {selectedRepository.provider_repository_id}Visibility {selectedRepository.private ? 'Private' : 'Public'}Auto scan {selectedRepository.policy.auto_scan ? 'Enabled' : 'Disabled'}Minimum health {selectedRepository.policy.min_health_score}Latest revision {shortRevision(selectedRepository.latest_revision)}Catalog sync {formatDate(selectedRepository.last_synced_at)}
}{selectedDetailsLoading ? : report ? {currentView === 'overview' && }{currentView === 'architecture' && Loading architecture view… }> }{currentView === 'hotspots' && }{currentView === 'dependencies' && }{currentView === 'findings' && }{currentView === 'history' && }{currentView === 'scans' && void selectScan(summary)} />} : Ready to analyze {selectedRepository.full_name} has no persisted scan yet. RepoPulse will fetch the default branch, pin the exact commit, analyze it in an isolated worktree and retain the report by revision.
{selectedRepository.private ? 'Private' : 'Public'} {selectedRepository.default_branch} {shortRevision(selectedRepository.latest_revision)}
void analyzeRepository(selectedRepository)} disabled={busy || Boolean(activeJob)}>{activeJob ? 'Analysis queued…' : 'Scan repository'} }
+ return {selectedRepository.provider} repository · {selectedRepository.private ? 'private' : 'public'} {selectedRepository.full_name} {selectedRepository.description || 'No repository description provided.'}
{selectedRepository.default_branch}{shortRevision(revision)} {stateLabel(selectedRepository.state)}
health score {report?.release_readiness ?? readinessLabel(readiness)}
void analyzeRepository(selectedRepository)} disabled={busy || Boolean(activeJob)}>{activeJob ? 'Scanning…' : 'Scan now'} Reports void exportReport('html')} disabled={!report}>Export HTML void exportReport('json')} disabled={!report}>Export JSON
More void analyzeRepository(selectedRepository, true)} disabled={busy || Boolean(activeJob)}>Force rescan navigate({ page: 'repositories', repositoryId: selectedRepository.id, view: 'scans' })}>View scan runs setAdvancedOpen((current) => !current)}>Advanced info
togglePinned(selectedRepository.id)} aria-label={pinnedIds.includes(selectedRepository.id) ? 'Remove from pinned repositories' : 'Pin repository'} aria-pressed={pinnedIds.includes(selectedRepository.id)}>{pinnedIds.includes(selectedRepository.id) ? '★' : '☆'} {error && {error}
}{notice && {notice}
}{activeJob && {activeJob.message || 'Analysis in progress'} {activeJob.phase.replaceAll('_', ' ')} · {activeJob.progress}%
}{DETAIL_VIEWS.map((view) => handleNavigation(event, { page: 'repositories', repositoryId: selectedRepository.id, view })}>{detailViewLabel(view, report)} )} {advancedOpen && Advanced repository info
Identity and policy Provider ID {selectedRepository.provider_repository_id}Visibility {selectedRepository.private ? 'Private' : 'Public'}Auto scan {selectedRepository.policy.auto_scan ? 'Enabled' : 'Disabled'}Minimum health {selectedRepository.policy.min_health_score}Latest revision {shortRevision(selectedRepository.latest_revision)}Catalog sync {formatDate(selectedRepository.last_synced_at)}
}{selectedDetailsLoading ? : report ? {currentView === 'overview' && }{currentView === 'architecture' && Loading architecture view…}> }{currentView === 'hotspots' && }{currentView === 'dependencies' && }{currentView === 'findings' && }{currentView === 'history' && void selectScan(summary)} />}{currentView === 'scans' && void selectScan(summary)} />} : Ready to analyze {selectedRepository.full_name} has no persisted scan yet. RepoPulse will fetch the default branch, pin the exact commit, analyze it in an isolated worktree and retain the report by revision.
{selectedRepository.private ? 'Private' : 'Public'} {selectedRepository.default_branch} {shortRevision(selectedRepository.latest_revision)}
void analyzeRepository(selectedRepository)} disabled={busy || Boolean(activeJob)}>{activeJob ? 'Analysis queued…' : 'Scan repository'} }
}
- const renderActivityPage = () => { const activity = [...repositories].filter((repository) => repository.last_scan_at || repository.state === 'scanning' || repository.state === 'queued').sort((left, right) => (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)); return Operational timeline Activity A visual event feed derived from actual catalog state and persisted scan activity.
Catalog {repositories.length}
Current {repositories.filter((repository) => repository.state === 'current').length}
Needs attention {repositories.filter((repository) => repositoryReadiness(repository) !== 'ready').length}
Latest scan {activity[0] ? formatRelativeDate(activity[0].last_scan_at) : '—'}
Latest changes
Repository activity Each event opens its repository workspace. {activity.length ? activity.slice(0, 30).map((repository) => selectRepository(repository)}>{repository.full_name} {repository.state === 'scanning' || repository.state === 'queued' ? `${stateLabel(repository.state)} · ${repository.default_branch}` : `Scan completed ${formatRelativeDate(repository.last_scan_at)} · ${repository.default_branch}`} {repository.last_scan_health ?? '—'} ) : No activity yet Scan a repository to start building its operational timeline.
} }
- const renderQueuePage = () => { const queue = repositories.filter((repository) => repository.active_job_id || repository.state === 'queued' || repository.state === 'scanning'); return Durable background work Scan queue Exact revisions are retained while work moves through source acquisition, analysis and scoring.
Waiting {queue.filter((repository) => repository.state === 'queued').length}
Active {queue.filter((repository) => repository.state === 'scanning' || repository.active_job_id).length}
Completed {meta?.completed_jobs ?? '—'}
Failed {meta?.failed_jobs ?? '—'}
Live queue
{queue.length ? 'Scans in progress' : 'Queue is clear'} No misleading progress percentage is shown before the worker reports one. {queue.length ? {queue.map((repository) => selectRepository(repository)}>{repository.full_name} {repository.default_branch} · {repository.active_job_id ? 'worker active' : 'waiting for worker'} {stateLabel(repository.state)} )}
: } }
- const renderSettingsPage = () => Workspace configuration Settings Connection, scanning and local preferences are separated into concise operational sections.
Connections Gitea catalog Provider-backed repository discovery and exact revision acquisition.
Status {meta?.gitea.configured ? 'Configured' : 'Not configured'}
Repositories {meta?.repository_count ?? repositories.length}
Last sync {meta?.gitea.last_sync && typeof meta.gitea.last_sync === 'object' && 'synced_at' in meta.gitea.last_sync ? formatDate(String(meta.gitea.last_sync.synced_at)) : 'Not available'} void syncCatalog()} disabled={catalogBusy}>{catalogBusy ? 'Syncing…' : 'Sync catalog now'} Scanning & analysis Safe source controls The normal repository flow stays Gitea-native. The advanced path remains available only for mounted local sources.
Scan root {meta?.scan_root_restricted ? 'Restricted' : 'Configured by server'}
Concurrency {meta?.max_concurrent_scans ?? '—'} worker
Automation Scheduled discovery enabled {standaloneReport && {standaloneReport.repository_name} {standaloneReport.health_score}/100 · {standaloneReport.release_readiness} · {formatDate(standaloneReport.scanned_at)}
}Appearance Personal workspace preferences Dark signal topology is the primary theme. View modes and navigation preferences are stored locally in this browser.
Explorer view setCatalogView('table')}>Table setCatalogView('grid')}>Visual grid
Pinned repositories {pinnedIds.length}
Recent repositories {recentIds.length}
+ const renderActivityPage = () => { const activity = [...repositories].filter((repository) => repository.last_scan_at || repository.state === 'scanning' || repository.state === 'queued').sort((left, right) => (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)); return Activity Recent scans and running analysis across the catalog.
Catalog {repositories.length}
Current {repositories.filter((repository) => repository.state === 'current').length}
Needs attention {repositories.filter((repository) => !repository.archived && repositoryReadiness(repository) !== 'ready').length}
Latest scan {activity[0] ? formatRelativeDate(activity[0].last_scan_at) : '—'}
Latest changes
Repository activity Each event opens its repository workspace. {activity.length ? activity.slice(0, 30).map((repository) => selectRepository(repository)}>{repository.full_name} {repository.state === 'scanning' || repository.state === 'queued' ? `${stateLabel(repository.state)} · ${repository.default_branch}` : `Scan completed ${formatRelativeDate(repository.last_scan_at)} · ${repository.default_branch}`} ) : No activity yet Scan a repository to start building its operational timeline.
} }
+ const renderQueuePage = () => { const queue = repositories.filter((repository) => repository.active_job_id || repository.state === 'queued' || repository.state === 'scanning'); return Scan queue Background scans, pinned to an exact revision from acquisition to scoring.
Waiting {queue.filter((repository) => repository.state === 'queued').length}
Active {queue.filter((repository) => repository.state === 'scanning' || repository.active_job_id).length}
Completed {meta?.completed_jobs ?? '—'}
Failed {meta?.failed_jobs ?? '—'}
Live queue
{queue.length ? 'Scans in progress' : 'Queue is clear'} {queue.length ? {queue.map((repository) => selectRepository(repository)}>{repository.full_name} {repository.default_branch} · {repository.active_job_id ? 'worker active' : 'waiting for worker'} {stateLabel(repository.state)} )}
: } }
+ const renderSettingsPage = () => Settings Connection, scanning and local preferences.
Connections Gitea catalog Provider-backed repository discovery and exact revision acquisition.
Status {meta?.gitea.configured ? 'Configured' : 'Not configured'}
Repositories {meta?.repository_count ?? repositories.length}
Last sync {meta?.gitea.last_sync && typeof meta.gitea.last_sync === 'object' && 'synced_at' in meta.gitea.last_sync ? formatDate(String(meta.gitea.last_sync.synced_at)) : 'Not available'} void syncCatalog()} disabled={catalogBusy}>{catalogBusy ? 'Syncing…' : 'Sync catalog now'} Scanning & analysis Safe source controls The normal repository flow stays Gitea-native. The advanced path remains available only for mounted local sources.
Scan root {meta?.scan_root_restricted ? 'Restricted' : 'Configured by server'}
Concurrency {meta?.max_concurrent_scans ?? '—'} worker
Automation Scheduled discovery enabled {standaloneReport && {standaloneReport.repository_name} {standaloneReport.health_score}/100 · {standaloneReport.release_readiness} · {formatDate(standaloneReport.scanned_at)}
}Appearance Personal workspace preferences View mode, pinned and recent repositories are stored locally in this browser.
Explorer view setCatalogView('table')}>Table setCatalogView('grid')}>Visual grid
Pinned repositories {pinnedIds.length}
Recent repositories {recentIds.length}
- return {renderTopbar()}{error && !route.repositoryId && {error}
}{notice && !route.repositoryId && {notice}
}{route.page === 'dashboard' && navigate({ page: 'repositories' })} />}{route.page === 'activity' && renderActivityPage()}{route.page === 'queue' && renderQueuePage()}{route.page === 'settings' && renderSettingsPage()}{route.page === 'repositories' && (route.repositoryId ? renderDetailPage() : renderCatalogPage())}{switcherOpen && setSwitcherOpen(false)}>
event.stopPropagation()}>Repository navigation
Quick switcher setSwitcherOpen(false)} aria-label="Close quick switcher">× { navigate({ page: 'dashboard' }); setSwitcherOpen(false) }}>Open dashboard { navigate({ page: 'queue' }); setSwitcherOpen(false) }}>Open scan queue void syncCatalog()} disabled={catalogBusy}>Sync Gitea
Search repositories { setSwitcherQuery(event.target.value); setSwitcherIndex(0) }} placeholder="Search repositories…" />Esc {switcherRepositories.length ? {switcherRepositories.map((repository, index) => setSwitcherIndex(index)} onClick={() => { selectRepository(repository); setSwitcherOpen(false) }}>{repository.full_name} {repository.owner} · {repository.default_branch} · {repository.last_scan_health ?? 'not scanned'} {readinessLabel(repositoryReadiness(repository))} )}
: No repository matches Try the owner, repository name or branch.
}↑ ↓ NavigateEnter OpenEsc Close
}
+ return {renderSidebar()}
{renderTopbar()}{error && !route.repositoryId && {error}
}{notice && !route.repositoryId && {notice}
}{route.page === 'dashboard' && navigate({ page: 'repositories' })} loading={catalogLoading} />}{route.page === 'activity' && renderActivityPage()}{route.page === 'queue' && renderQueuePage()}{route.page === 'settings' && renderSettingsPage()}{route.page === 'repositories' && (route.repositoryId ? renderDetailPage() : renderCatalogPage())} {switcherOpen &&
setSwitcherOpen(false)}>
event.stopPropagation()}>Repository navigation
Quick switcher setSwitcherOpen(false)} aria-label="Close quick switcher"> { navigate({ page: 'dashboard' }); setSwitcherOpen(false) }}>Open dashboard { navigate({ page: 'queue' }); setSwitcherOpen(false) }}>Open scan queue void syncCatalog()} disabled={catalogBusy}>Sync Gitea
Search repositories { setSwitcherQuery(event.target.value); setSwitcherIndex(0) }} placeholder="Search repositories…" />Esc {switcherRepositories.length ? {switcherRepositories.map((repository, index) => setSwitcherIndex(index)} onClick={() => { selectRepository(repository); setSwitcherOpen(false) }}>{repository.full_name} {repository.owner} · {repository.default_branch} · {repository.last_scan_health ?? 'not scanned'} {readinessLabel(repositoryReadiness(repository))} )}
: No repository matches Try the owner, repository name or branch.
}↑ ↓ NavigateEnter OpenEsc Close
}
}
diff --git a/frontend/src/components/DashboardView.tsx b/frontend/src/components/DashboardView.tsx
index 91597c9..473e6a5 100644
--- a/frontend/src/components/DashboardView.tsx
+++ b/frontend/src/components/DashboardView.tsx
@@ -1,8 +1,10 @@
import type { RepositorySummary } from '../api'
import { readinessLabel, repositoryReadiness, type Readiness } from '../catalog'
+import { CountUp, HealthRing } from './HealthRing'
+import { Icon, type IconName } from './Icon'
import { PortfolioAtlas } from './PortfolioAtlas'
import { RemediationCenter } from './RemediationCenter'
-import { RepositoryVisual } from './RepositoryVisual'
+import { RepoAvatar } from './RepoAvatar'
type DashboardViewProps = {
repositories: RepositorySummary[]
@@ -10,6 +12,7 @@ type DashboardViewProps = {
onOpenRepository: (repository: RepositorySummary) => void
onExploreReadiness: (readiness: Readiness) => void
onOpenExplorer: () => void
+ loading?: boolean
}
function relativeTime(value: string | null) {
@@ -35,61 +38,106 @@ function remediationPath(repository: RepositorySummary) {
}
function changeContext(repository: RepositorySummary) {
- if (repository.last_scan_added_findings > 0) return `${repository.last_scan_added_findings} new signal${repository.last_scan_added_findings === 1 ? '' : 's'} since prior scan`
- if (repository.last_scan_resolved_findings > 0) return `${repository.last_scan_resolved_findings} resolved since prior scan`
- return repository.last_scan_health_delta == null ? 'baseline signal' : 'longstanding signal'
+ // Only surface real movement; an unchanged signal adds noise to every row.
+ if (repository.last_scan_added_findings > 0) return `+${repository.last_scan_added_findings} new`
+ if (repository.last_scan_resolved_findings > 0) return `${repository.last_scan_resolved_findings} resolved`
+ return null
}
function triagePriority(repository: RepositorySummary) {
return repository.last_scan_priority ?? 0
}
-function readinessDescription(readiness: Readiness) {
- if (readiness === 'blocked') return 'needs intervention'
- if (readiness === 'warnings') return 'needs review'
- return 'ready to ship'
+const KPI: Record = {
+ blocked: { icon: 'blocked', description: 'Need intervention' },
+ warnings: { icon: 'warning', description: 'Need review' },
+ ready: { icon: 'ready', description: 'Ready to ship' },
}
-export function DashboardView({ repositories, pinnedIds, onOpenRepository, onExploreReadiness, onOpenExplorer }: DashboardViewProps) {
+function percentage(part: number, total: number) {
+ return total ? Math.round((part / total) * 100) : 0
+}
+
+export function HealthScore({ value, readiness }: { value: number | null; readiness: Readiness }) {
+ return {value ?? '—'}
+}
+
+export function DashboardView({ repositories, pinnedIds, onOpenRepository, onExploreReadiness, onOpenExplorer, loading = false }: DashboardViewProps) {
+ if (loading && !repositories.length) return Dashboard Loading the repository catalog…
const portfolio = repositories.filter((repository) => !repository.archived)
const counts = portfolio.reduce>((result, repository) => {
result[repositoryReadiness(repository)] += 1
return result
}, { ready: 0, warnings: 0, blocked: 0 })
- const attention = [...portfolio].filter((repository) => repositoryReadiness(repository) !== 'ready').sort((left, right) => triagePriority(right) - triagePriority(left) || (left.last_scan_health ?? -1) - (right.last_scan_health ?? -1) || (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)).slice(0, 5)
- const recent = [...portfolio].filter((repository) => repository.last_scan_at).sort((left, right) => (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)).slice(0, 4)
- const pinned = pinnedIds.map((id) => portfolio.find((repository) => repository.id === id)).filter((repository): repository is RepositorySummary => Boolean(repository)).slice(0, 3)
+ const attention = [...portfolio].filter((repository) => repositoryReadiness(repository) !== 'ready').sort((left, right) => triagePriority(right) - triagePriority(left) || (left.last_scan_health ?? -1) - (right.last_scan_health ?? -1) || (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)).slice(0, 8)
+ const recent = [...portfolio].filter((repository) => repository.last_scan_at).sort((left, right) => (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)).slice(0, 5)
+ const pinned = pinnedIds.map((id) => portfolio.find((repository) => repository.id === id)).filter((repository): repository is RepositorySummary => Boolean(repository)).slice(0, 4)
const nextRepository = attention[0] ?? recent[0]
+ const scannedToday = portfolio.filter((repository) => repository.last_scan_at && Date.now() - Date.parse(repository.last_scan_at) < 86_400_000).length
+ const scored = portfolio.filter((repository) => repository.last_scan_health != null)
+ const averageHealth = scored.length ? Math.round(scored.reduce((sum, repository) => sum + (repository.last_scan_health ?? 0), 0) / scored.length) : null
return (
-
- Dashboard
+
+
+
+
Dashboard
+
{portfolio.length} active repositories · {scannedToday} scanned in the last 24 h{averageHealth != null ? ` · average health ${averageHealth}` : ''}
+
+
-
- {(['blocked', 'warnings', 'ready'] as Readiness[]).map((readiness, index) => onExploreReadiness(readiness)} aria-label={`Open ${counts[readiness]} ${readinessLabel(readiness).toLowerCase()} repositories in Explorer`}>{String(index + 1).padStart(2, '0')} / {readinessLabel(readiness)} {counts[readiness]} {readinessDescription(readiness)} → )}
- 04 / Catalog {portfolio.length} Open repository explorer →
+
+ {(['blocked', 'warnings', 'ready'] as Readiness[]).map((readiness) => onExploreReadiness(readiness)} aria-label={`Open ${counts[readiness]} ${readinessLabel(readiness).toLowerCase()} repositories in Explorer`}>
+ {readinessLabel(readiness)}
+
+ {KPI[readiness].description} · {percentage(counts[readiness], portfolio.length)}%
+ )}
+
+ Catalog
+
+ {(['blocked', 'warnings', 'ready'] as Readiness[]).map((readiness) => )}
+ Open repository explorer
+
-
-
- Triage, in priority order
Why attention is needed onExploreReadiness('blocked')}>Open blocked lane
- {attention.length ? {attention.map((repository, index) => onOpenRepository(repository)}>{String(index + 1).padStart(2, '0')} {repository.full_name} {attentionReason(repository)} {repository.last_scan_primary_signal?.category ?? readinessLabel(repositoryReadiness(repository))} {changeContext(repository)} {repository.last_scan_health ?? '—'} {relativeTime(repository.last_scan_at)} )}
: No repository needs attention right now.
}
+
+
+
Why attention is needed onExploreReadiness('blocked')}>View all blocked
+ {attention.length ? {attention.map((repository) => onOpenRepository(repository)}>
+
+ {repository.full_name} {attentionReason(repository)}
+ {repository.last_scan_primary_signal?.category ?? readinessLabel(repositoryReadiness(repository))} {changeContext(repository) && 0 ? 'worse' : 'better'}>{changeContext(repository)} }
+ {relativeTime(repository.last_scan_at)}
+ )}
: No repository needs attention right now.
}
-
- Recommended next move {nextRepository ? nextRepository.full_name : 'Portfolio is clear'}
- {nextRepository ? onOpenRepository(nextRepository)}>{nextRepository.last_scan_health ?? '—'} health {attentionReason(nextRepository)} {nextRepository.last_scan_primary_signal?.category ?? 'Portfolio signal'} {remediationPath(nextRepository)}Open workspace → : Keep the next immutable scan as the portfolio baseline.
}
-
+
+
+ Recommended next move
+ {nextRepository ? nextRepository.full_name : 'Portfolio is clear'}
+ {nextRepository ? onOpenRepository(nextRepository)}>
+ {nextRepository.last_scan_primary_signal?.category ?? readinessLabel(repositoryReadiness(nextRepository))} {relativeTime(nextRepository.last_scan_at)} · {nextRepository.default_branch}
+ {attentionReason(nextRepository)}
+ {remediationPath(nextRepository)}
+ Open workspace
+ : Keep the next immutable scan as the portfolio baseline.
}
+
+
+
+
Pinned repositories
+ {pinned.length ? {pinned.map((repository) => onOpenRepository(repository)}>{repository.name} {readinessLabel(repositoryReadiness(repository))} )}
: Pin repositories in the explorer to keep them here. Browse repositories
}
+
+
+
+
Recently scanned Explorer
+ {recent.length ? {recent.map((repository) => onOpenRepository(repository)}>{repository.full_name} {repository.state === 'scanning' ? 'Analysis in progress' : relativeTime(repository.last_scan_at)} · {repository.default_branch} )}
: No retained scans yet.
}
+
+
-
-
-
Change feed
Recently scanned Open explorer {recent.map((repository) => onOpenRepository(repository)}>{repository.full_name} {repository.state === 'scanning' ? 'Analysis in progress' : `Retained scan ${relativeTime(repository.last_scan_at)}`} · {repository.default_branch} {repository.last_scan_health ?? '—'} )}
-
Your focus
Pinned repositories {pinned.length ? {pinned.map((repository) => onOpenRepository(repository)}>{repository.name} {repository.last_scan_health ?? '—'} health · {readinessLabel(repositoryReadiness(repository))} → )}
: Pin repositories in Explorer to keep active work in this command deck. Browse repositories
}
-
)
}
diff --git a/frontend/src/components/HealthRing.tsx b/frontend/src/components/HealthRing.tsx
new file mode 100644
index 0000000..9543f77
--- /dev/null
+++ b/frontend/src/components/HealthRing.tsx
@@ -0,0 +1,51 @@
+import { useEffect, useState } from 'react'
+
+import type { Readiness } from '../catalog'
+
+function prefersReducedMotion() {
+ try { return window.matchMedia?.('(prefers-reduced-motion: reduce)').matches ?? false } catch { return false }
+}
+
+/** Animate a number from 0 to its value once; static when reduced motion is requested. */
+export function useCountUp(value: number, duration = 700) {
+ const [display, setDisplay] = useState(() => (prefersReducedMotion() || typeof window.requestAnimationFrame !== 'function' ? value : 0))
+ useEffect(() => {
+ if (prefersReducedMotion() || typeof window.requestAnimationFrame !== 'function') { setDisplay(value); return }
+ let frame = 0
+ let synchronous = true
+ const start = performance.now()
+ const tick = () => {
+ // Some environments run animation callbacks synchronously; settle immediately there.
+ if (synchronous) { setDisplay(value); return }
+ const progress = Math.max(0, Math.min(1, (performance.now() - start) / duration))
+ const eased = 1 - Math.pow(1 - progress, 3)
+ setDisplay(Math.round(value * eased))
+ if (progress < 1) frame = window.requestAnimationFrame(tick)
+ }
+ frame = window.requestAnimationFrame(tick)
+ synchronous = false
+ return () => window.cancelAnimationFrame(frame)
+ }, [value, duration])
+ return display
+}
+
+export function CountUp({ value }: { value: number }) {
+ return <>{useCountUp(value)}>
+}
+
+/** A compact health gauge: the arc follows the retained 0–100 score, coloured by readiness. */
+export function HealthRing({ value, readiness, size = 40, label = true }: { value: number | null; readiness: Readiness; size?: number; label?: boolean }) {
+ const stroke = size >= 64 ? 5 : 3.5
+ const radius = (size - stroke) / 2
+ const circumference = 2 * Math.PI * radius
+ const score = value == null ? 0 : Math.max(0, Math.min(100, value))
+ return (
+
+
+
+
+
+ {label && {value ?? '—'} }
+
+ )
+}
diff --git a/frontend/src/components/HistoryView.tsx b/frontend/src/components/HistoryView.tsx
index 40b450a..8c46464 100644
--- a/frontend/src/components/HistoryView.tsx
+++ b/frontend/src/components/HistoryView.tsx
@@ -1,24 +1,60 @@
import type { ScanComparison, ScanSummary, TrendPoint } from '../api'
+function chronological(trend: TrendPoint[]) {
+ return [...trend].sort((left, right) => Date.parse(left.scanned_at) - Date.parse(right.scanned_at))
+}
+
+function shortDate(value: string) {
+ const date = new Date(value)
+ return Number.isNaN(date.getTime()) ? '—' : date.toLocaleDateString([], { day: 'numeric', month: 'short' })
+}
+
+function TrendDelta({ trend }: { trend: TrendPoint[] }) {
+ const points = chronological(trend)
+ const delta = points[points.length - 1].health_score - points[0].health_score
+ return
0 ? 'positive' : delta < 0 ? 'negative' : ''}`}>{delta > 0 ? '+' : ''}{delta} since {shortDate(points[0].scanned_at)}
+}
+
+/** Health per persisted snapshot as an area chart; the y-domain hugs the observed range. */
+function TrendChart({ trend }: { trend: TrendPoint[] }) {
+ const points = chronological(trend)
+ const scores = points.map((point) => point.health_score)
+ const low = Math.max(0, Math.floor((Math.min(...scores) - 6) / 5) * 5)
+ const high = Math.min(100, Math.ceil((Math.max(...scores) + 6) / 5) * 5)
+ const span = Math.max(1, high - low)
+ const x = (index: number) => (points.length === 1 ? 50 : (index / (points.length - 1)) * 100)
+ const y = (score: number) => 100 - ((score - low) / span) * 100
+ const line = points.map((point, index) => `${index ? 'L' : 'M'}${x(index).toFixed(2)} ${y(point.health_score).toFixed(2)}`).join(' ')
+ const area = `${line} L${x(points.length - 1).toFixed(2)} 100 L${x(0).toFixed(2)} 100 Z`
+ const last = points[points.length - 1]
+ const ticks = [high, Math.round((high + low) / 2), low]
+ return (
+
+
{ticks.map((tick) => {tick} )}
+
+
+
+ {[0, 50, 100].map((grid) => )}
+
+
+
+
{last.health_score}
+
{points.map((point) => )}
+
+
{shortDate(points[0].scanned_at)} {points.length > 2 && {shortDate(points[Math.floor(points.length / 2)].scanned_at)} }{shortDate(last.scanned_at)}
+
+ )
+}
+
export function HistoryView({ trend, comparison, scanSummaries = [], currentScanId, onSelectScan }: { trend: TrendPoint[]; comparison: ScanComparison | null; scanSummaries?: ScanSummary[]; currentScanId?: string; onSelectScan?: (summary: ScanSummary) => void }) {
return (
-
History
Repository health over time
-
Each bar is one persisted scan snapshot.
+
Repository health over time {trend.length} persisted scan snapshot{trend.length === 1 ? '' : 's'}
+ {trend.length > 1 &&
}
- {trend.length ? (
-
- {trend.map((point) => (
-
-
{point.health_score}
-
-
{new Date(point.scanned_at).toLocaleDateString()}
-
- ))}
-
- ) : Run multiple scans of the same repository to build a trend.
}
+ {trend.length ? : Run multiple scans of the same repository to build a trend.
}
@@ -53,7 +89,7 @@ export function HistoryView({ trend, comparison, scanSummaries = [], currentScan
-
Persisted snapshots
Scan runs
+
Scan runs
Select a revision to inspect its report.
{scanSummaries.length ? (
diff --git a/frontend/src/components/Icon.tsx b/frontend/src/components/Icon.tsx
new file mode 100644
index 0000000..69f3be7
--- /dev/null
+++ b/frontend/src/components/Icon.tsx
@@ -0,0 +1,39 @@
+/**
+ * A small inline icon set. Paths follow the Lucide icon set (ISC licence) so
+ * the interface gets consistent 24px line icons without a runtime dependency.
+ */
+const PATHS = {
+ dashboard: ['M3 3h7v9H3z', 'M14 3h7v5h-7z', 'M14 12h7v9h-7z', 'M3 16h7v5H3z'],
+ repositories: ['M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z'],
+ activity: ['M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'],
+ queue: ['M3 12h.01', 'M3 18h.01', 'M3 6h.01', 'M8 12h13', 'M8 18h13', 'M8 6h13'],
+ settings: ['M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z', 'M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'],
+ search: ['M21 21l-4.34-4.34', 'M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0z'],
+ refresh: ['M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8', 'M21 3v5h-5', 'M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16', 'M8 16H3v5'],
+ arrowRight: ['M5 12h14', 'M12 5l7 7-7 7'],
+ chevronRight: ['M9 18l6-6-6-6'],
+ chevronDown: ['M6 9l6 6 6-6'],
+ blocked: ['M12 8v4', 'M12 16h.01', 'M15.31 2a2 2 0 0 1 1.42.59l4.68 4.68A2 2 0 0 1 22 8.69v6.62a2 2 0 0 1-.59 1.42l-4.68 4.68a2 2 0 0 1-1.42.59H8.69a2 2 0 0 1-1.42-.59l-4.68-4.68A2 2 0 0 1 2 15.31V8.69a2 2 0 0 1 .59-1.42l4.68-4.68A2 2 0 0 1 8.69 2z'],
+ warning: ['M21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3', 'M12 9v4', 'M12 17h.01'],
+ ready: ['M21.8 10A10 10 0 1 1 17 3.34', 'M9 11l3 3L22 4'],
+ catalog: ['M12 2 2 7l10 5 10-5-10-5z', 'M2 17l10 5 10-5', 'M2 12l10 5 10-5'],
+ clock: ['M12 6v6l4 2', 'M22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0z'],
+ wrench: ['M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'],
+ star: ['M11.53 2.3a.53.53 0 0 1 .95 0l2.31 4.68a2.12 2.12 0 0 0 1.6 1.16l5.16.76a.53.53 0 0 1 .3.9l-3.74 3.64a2.12 2.12 0 0 0-.61 1.88l.88 5.14a.53.53 0 0 1-.77.56l-4.62-2.43a2.12 2.12 0 0 0-1.97 0L6.4 21.01a.53.53 0 0 1-.77-.56l.88-5.13a2.12 2.12 0 0 0-.61-1.88L2.16 9.8a.53.53 0 0 1 .29-.9l5.17-.76a2.12 2.12 0 0 0 1.6-1.16z'],
+ branch: ['M6 3v12', 'M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z', 'M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z', 'M18 9a9 9 0 0 1-9 9'],
+ commit: ['M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z', 'M3 12h6', 'M15 12h6'],
+ close: ['M18 6 6 18', 'M6 6l12 12'],
+ download: ['M12 15V3', 'M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4', 'M7 10l5 5 5-5'],
+ more: ['M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z', 'M19 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z', 'M5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'],
+ play: ['M6 4l14 8-14 8z'],
+} as const
+
+export type IconName = keyof typeof PATHS
+
+export function Icon({ name, size = 16, className = '' }: { name: IconName; size?: number; className?: string }) {
+ return (
+
+ {PATHS[name].map((d) => )}
+
+ )
+}
diff --git a/frontend/src/components/PortfolioAtlas.tsx b/frontend/src/components/PortfolioAtlas.tsx
index a48e030..772a21e 100644
--- a/frontend/src/components/PortfolioAtlas.tsx
+++ b/frontend/src/components/PortfolioAtlas.tsx
@@ -10,9 +10,9 @@ type PortfolioAtlasProps = {
const laneOrder: Readiness[] = ['blocked', 'warnings', 'ready']
const laneCopy: Record = {
- blocked: { title: 'Intervention lane', description: 'Release-blocking repository signals' },
- warnings: { title: 'Review lane', description: 'Warnings worth resolving before the next release' },
- ready: { title: 'Clear lane', description: 'Repositories with a clear release signal' },
+ blocked: { title: 'Blocked', description: 'Release-blocking signals' },
+ warnings: { title: 'Warnings', description: 'Worth resolving before the next release' },
+ ready: { title: 'Ready', description: 'Clear release signal' },
}
function scanRhythm(repository: RepositorySummary) {
@@ -26,10 +26,6 @@ function scanRhythm(repository: RepositorySummary) {
return `scanned ${Math.floor(difference / 86_400_000)}d ago`
}
-function signalStrength(repository: RepositorySummary) {
- return Math.max(16, Math.min(100, repository.last_scan_health ?? 36))
-}
-
export function PortfolioAtlas({ repositories, onOpenRepository }: PortfolioAtlasProps) {
const ordered = [...repositories].sort((left, right) => {
const lane = laneOrder.indexOf(repositoryReadiness(left)) - laneOrder.indexOf(repositoryReadiness(right))
@@ -38,38 +34,35 @@ export function PortfolioAtlas({ repositories, onOpenRepository }: PortfolioAtla
const density = ordered.length > 160 ? 'compact' : ordered.length > 96 ? 'dense' : 'comfortable'
return (
-
-
-
Portfolio topology
Repository signal landscape
-
{ordered.length} repositories · every signal opens its workspace
-
-
-
-
- {laneOrder.map((lane, laneIndex) => {
- const laneRepositories = ordered.filter((repository) => repositoryReadiness(repository) === lane)
- const copy = laneCopy[lane]
- return
- {String(laneIndex + 1).padStart(2, '0')} / {copy.title} {laneRepositories.length} {copy.description}
-
- {laneRepositories.map((repository, index) => {
- const health = repository.last_scan_health ?? 0
- const style = { '--signal-strength': `${signalStrength(repository)}%`, '--signal-index': index, '--signal-phase': index % 7 } as CSSProperties
- const primary = repository.last_scan_primary_signal
- const signalDetail = primary ? `${primary.count} ${primary.category.toLowerCase()} signal${primary.count === 1 ? '' : 's'}` : 'no primary finding retained'
- return onOpenRepository(repository)} style={style} aria-label={`Open ${repository.full_name}: ${health || 'not scanned'} health, ${readinessLabel(lane)}, ${signalDetail}, ${scanRhythm(repository)}`}>
-
- {repository.name.slice(0, 3).toUpperCase()}
- {health || '—'}
-
-
- })}
-
-
- })}
+
+
+
+
Portfolio health map
+
{ordered.length} repositories, lowest health first. Select a cell to open its workspace.
+
Stale scan Scanning
+
+
+ {laneOrder.map((lane) => {
+ const laneRepositories = ordered.filter((repository) => repositoryReadiness(repository) === lane)
+ const copy = laneCopy[lane]
+ return
+ {copy.title} {laneRepositories.length} {copy.description}
+ {laneRepositories.length ?
+ {laneRepositories.map((repository) => {
+ const health = repository.last_scan_health ?? 0
+ const style = { '--health': `${Math.max(0, Math.min(100, health))}` } as CSSProperties
+ const primary = repository.last_scan_primary_signal
+ const signalDetail = primary ? `${primary.count} ${primary.category.toLowerCase()} signal${primary.count === 1 ? '' : 's'}` : 'no primary finding retained'
+ return onOpenRepository(repository)} style={style} title={`${repository.full_name} · ${health || '—'} health`} aria-label={`Open ${repository.full_name}: ${health || 'not scanned'} health, ${readinessLabel(lane)}, ${signalDetail}, ${scanRhythm(repository)}`}>
+ {health || '—'}
+ {repository.name}
+
+ })}
+ : No repositories in this lane.
}
+
+ })}
- Health bar height follows the retained score. A dashed frame means the scan needs refreshing. A live ring means analysis is in progress.
)
}
diff --git a/frontend/src/components/RemediationCenter.tsx b/frontend/src/components/RemediationCenter.tsx
index e906463..1768094 100644
--- a/frontend/src/components/RemediationCenter.tsx
+++ b/frontend/src/components/RemediationCenter.tsx
@@ -1,5 +1,7 @@
import type { RepositorySummary } from '../api'
import { repositoryReadiness } from '../catalog'
+import { Icon } from './Icon'
+import { RepoAvatar } from './RepoAvatar'
type RemediationCenterProps = {
repositories: RepositorySummary[]
@@ -15,13 +17,12 @@ export function RemediationCenter({ repositories, onOpenRepository }: Remediatio
if (!candidates.length) return null
return (
-
-
+
+
-
Backend-ranked candidates
+
Highest-priority fixes, ranked by the backend from retained scan evidence.
-
retained evidence
{candidates.map((repository) => {
@@ -31,14 +32,14 @@ export function RemediationCenter({ repositories, onOpenRepository }: Remediatio
return (
onOpenRepository(repository)}>
- {repository.last_scan_priority ?? 0}
+
- {repository.full_name}
+ {repository.full_name} P{repository.last_scan_priority ?? 0}
{guidance?.remediation_class ?? signal.category} · {guidance?.confidence ?? 'review'} confidence
{guidance?.why ?? signal.message}
- {guidance?.recommended_action ?? 'Open the retained evidence and select the smallest safe next action.'}
+ {guidance?.recommended_action ?? 'Open the retained evidence and select the smallest safe next action.'}
- →
+
)
diff --git a/frontend/src/components/RepoAvatar.tsx b/frontend/src/components/RepoAvatar.tsx
new file mode 100644
index 0000000..fda8f3d
--- /dev/null
+++ b/frontend/src/components/RepoAvatar.tsx
@@ -0,0 +1,31 @@
+import { useState } from 'react'
+
+import type { RepositorySummary } from '../api'
+import { repositoryReadiness } from '../catalog'
+
+// Repositories without a usable icon answer 404 once; remember that for this session.
+const missingIcons = new Set()
+
+export function repositoryIconUrl(repository: RepositorySummary) {
+ const revision = repository.last_scan_revision ?? repository.latest_revision
+ return revision ? `/api/v1/repositories/${encodeURIComponent(repository.id)}/icon?rev=${encodeURIComponent(revision)}` : null
+}
+
+function initialsFor(name: string) {
+ const words = name.replace(/([a-z])([A-Z])/g, '$1 $2').split(/[\s_.-]+/).filter(Boolean)
+ return (words.length > 1 ? `${words[0][0]}${words[1][0]}` : name.slice(0, 2)).toUpperCase()
+}
+
+/** The project's own favicon or logo from its retained revision, with honest initials as fallback. */
+export function RepoAvatar({ repository, size = 'md' }: { repository: RepositorySummary; size?: 'sm' | 'md' | 'lg' | 'xl' }) {
+ const url = repositoryIconUrl(repository)
+ const [failed, setFailed] = useState(() => !url || missingIcons.has(url))
+ const [loaded, setLoaded] = useState(false)
+ const showIcon = Boolean(url) && !failed
+ return (
+
+ {(!showIcon || !loaded) && {initialsFor(repository.name)} }
+ {showIcon && url && setLoaded(true)} onError={() => { missingIcons.add(url); setFailed(true) }} style={loaded ? undefined : { opacity: 0 }} />}
+
+ )
+}
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
index c31d4c6..a6d9a54 100644
--- a/frontend/src/main.tsx
+++ b/frontend/src/main.tsx
@@ -1,6 +1,7 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import App from './App'
+import '@fontsource-variable/inter/wght.css'
import './styles.css'
createRoot(document.getElementById('root')!).render(
diff --git a/frontend/src/styles.css b/frontend/src/styles.css
index 838f075..9fb0226 100644
--- a/frontend/src/styles.css
+++ b/frontend/src/styles.css
@@ -1,633 +1,900 @@
+/* RepoPulse — calm, layered dark interface.
+ One accent colour; status colours carry meaning everywhere:
+ green = ready/ok, amber = warnings, red = blocked/failed, grey = unknown. */
+
:root {
- font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
- color: #e8eff8;
- background: #070d16;
+ --bg: #0e1015;
+ --bg-raised: #12151b;
+ --surface: #161a21;
+ --surface-2: #1b2029;
+ --surface-3: #222833;
+ --border: #252b35;
+ --border-strong: #323a47;
+ --text: #e8ebf1;
+ --text-2: #bcc3cf;
+ --muted: #8b94a4;
+ --subtle: #687183;
+ --accent: #8190ff;
+ --accent-strong: #6574f5;
+ --accent-text: #aab4ff;
+ --accent-soft: rgba(129, 144, 255, .13);
+ --ok: #3ecf8e;
+ --ok-soft: rgba(62, 207, 142, .12);
+ --warn: #f2b13c;
+ --warn-soft: rgba(242, 177, 60, .12);
+ --bad: #f36b6b;
+ --bad-soft: rgba(243, 107, 107, .12);
+ --unknown: #8b94a4;
+ --unknown-soft: rgba(139, 148, 164, .14);
+ --radius-xs: 3px;
+ --radius-sm: 4px;
+ --radius: 6px;
+ --radius-lg: 8px;
+ --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .18);
+ --shadow-pop: 0 18px 50px rgba(0, 0, 0, .5);
+ --sidebar: 236px;
+ --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
+ /* legacy aliases used by inline SVG */
+ --surface-strong: var(--surface);
+
+ color-scheme: dark;
+ font-family: "Inter Variable", Inter, "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
+ font-size: 14px;
+ line-height: 1.5;
+ color: var(--text);
+ background: var(--bg);
font-synthesis: none;
+ font-feature-settings: "cv11", "ss01", "ss03";
text-rendering: optimizeLegibility;
+ -webkit-font-smoothing: antialiased;
}
-* { box-sizing: border-box; }
-html { min-width: 320px; background: #070d16; }
-body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(circle at 12% -10%, rgba(42, 76, 112, .24), transparent 34%), #070d16; }
+*, *::before, *::after { box-sizing: border-box; }
+html { min-width: 320px; background: var(--bg); }
+body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); }
body, button, input, select { font: inherit; }
-button, a, input, select { -webkit-tap-highlight-color: transparent; }
-a { color: #9fc4e7; text-decoration: none; }
-a:hover { color: #d9ecff; }
-button { border: 1px solid #315272; border-radius: 8px; padding: 9px 13px; color: #ecf5ff; background: #173553; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
-button:hover:not(:disabled) { border-color: #6d99c3; background: #1d4164; }
-button:active:not(:disabled) { transform: translateY(1px); }
-button:disabled { cursor: wait; opacity: .55; }
-button.ghost { background: #0c1726; }
-button.text-button { border: 0; padding: 5px 0; color: #9cc2e8; background: transparent; }
-button.text-button:hover:not(:disabled) { color: #e3f1ff; background: transparent; }
-input, select { width: 100%; min-height: 38px; border: 1px solid #294661; border-radius: 8px; padding: 8px 10px; color: #eef6ff; background: #0b1625; outline: none; }
-input::placeholder { color: #627891; }
-input:focus, select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { border-color: #80b2df; outline: 3px solid rgba(91, 157, 210, .23); outline-offset: 1px; }
-code { color: #b8d7f1; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .88em; }
-h1, h2, h3, p { margin-top: 0; }
-h1, h2, h3 { color: #eff6ff; }
-h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.05; }
-h2 { margin-bottom: 8px; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.025em; }
-h3 { margin-bottom: 7px; font-size: 17px; letter-spacing: -.015em; }
-.muted { max-width: 72ch; margin-bottom: 0; color: #8da2b9; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
-.eyebrow { color: #82a5c8; font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; border: 1px solid #35506d; border-bottom-color: #213a53; border-radius: 5px; padding: 2px 5px; color: #9fb8d1; background: #0a1523; font-family: inherit; font-size: 10px; line-height: 1.2; }
+button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
+h1, h2, h3, p, dl, dd, ol, ul { margin-top: 0; }
+h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -.01em; }
+h1 { margin-bottom: 4px; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; }
+h2 { margin-bottom: 0; font-size: 15px; line-height: 1.35; }
+h3 { margin-bottom: 0; font-size: 14px; line-height: 1.35; }
+p { color: var(--text-2); }
+a { color: var(--accent-text); text-decoration: none; }
+a:hover { color: var(--text); }
+code { color: var(--text-2); font-family: var(--mono); font-size: .86em; }
+kbd { display: inline-flex; align-items: center; min-height: 20px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--radius-xs); padding: 0 5px; color: var(--muted); background: var(--surface-2); font-family: inherit; font-size: 11px; line-height: 1; }
+strong, b { font-weight: 600; }
+.muted { color: var(--muted); }
+.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
+.eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 500; }
+.icon { flex: 0 0 auto; }
+.spin { animation: spin 1s linear infinite; }
+@keyframes spin { to { transform: rotate(360deg); } }
+.positive { color: var(--ok) !important; }
+.negative { color: var(--bad) !important; }
-.app-shell { min-height: 100vh; }
-.app-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px; width: min(100% - 48px, 1600px); min-height: 68px; margin: 0 auto; border-bottom: 1px solid rgba(49, 76, 104, .56); background: rgba(7, 13, 22, .9); backdrop-filter: blur(18px); }
-.brand-lockup { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
-.brand-lockup > a { display: flex; align-items: center; gap: 9px; color: #f1f7ff; }
-.brand-lockup > a > span:last-child { display: grid; gap: 1px; }
-.brand-lockup strong { font-size: 16px; letter-spacing: -.02em; }
-.brand-lockup small { color: #718aa4; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
-.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #4d78a1; border-radius: 8px; color: #d9edff; background: linear-gradient(145deg, #1c4b72, #11243a); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
-.version-badge { border: 1px solid #294861; border-radius: 99px; padding: 4px 7px; color: #87abc9; background: #0c1b2c; font-size: 9px; font-weight: 700; letter-spacing: .07em; }
-.global-nav { display: flex; align-items: center; align-self: stretch; gap: 4px; min-width: 0; }
-.global-nav a { display: inline-flex; align-items: center; gap: 7px; align-self: stretch; border-bottom: 2px solid transparent; padding: 0 11px; color: #8ba1b8; font-size: 12px; white-space: nowrap; }
-.global-nav a span { color: #6f8aa6; font-size: 10px; }
-.global-nav a:hover { color: #e4f2ff; }
-.global-nav a.active { border-bottom-color: #62b2d0; color: #f2f7fd; background: linear-gradient(180deg, transparent, rgba(55, 112, 145, .11)); }
-.header-actions { display: flex; align-items: center; gap: 7px; }
-.shortcut-button { display: inline-flex; align-items: center; gap: 12px; border-color: #294560; padding: 7px 8px 7px 11px; color: #a8bed5; background: #0b1625; font-size: 11px; }
-.shortcut-button kbd { margin-left: 2px; }
-.icon-button { display: grid; width: 35px; height: 35px; place-items: center; padding: 0; border-color: #294560; color: #a5c2dc; background: #0b1625; font-size: 18px; line-height: 1; }
-.sync-icon { font-size: 21px; }
+/* ---------- Controls ---------- */
+button, .button-link {
+ display: inline-flex; align-items: center; justify-content: center; gap: 7px;
+ min-height: 34px; border: 1px solid var(--accent-strong); border-radius: var(--radius-sm); padding: 6px 13px;
+ color: #fff; background: var(--accent-strong); font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer;
+ transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
+}
+button:hover:not(:disabled), .button-link:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
+button:disabled { cursor: not-allowed; opacity: .5; }
+button.ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
+button.ghost:hover:not(:disabled) { border-color: #435064; background: var(--surface-3); }
+button.text-button { min-height: 0; gap: 3px; border: 0; padding: 4px 2px; color: var(--accent-text); background: transparent; font-weight: 500; }
+button.text-button:hover:not(:disabled) { color: var(--text); background: transparent; }
+.icon-button { width: 34px; padding: 0; border-color: var(--border-strong); color: var(--text-2); background: var(--surface-2); }
+.icon-button:hover:not(:disabled) { border-color: #435064; color: var(--text); background: var(--surface-3); }
+input, select {
+ width: 100%; min-height: 36px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 7px 10px;
+ color: var(--text); background: var(--bg-raised); font-size: 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
+}
+select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b94a4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
+input::placeholder { color: var(--subtle); }
+input:hover, select:hover { border-color: #435064; }
+input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
+button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
-.page-content { width: min(100% - 48px, 1600px); margin: 0 auto; padding: 29px 0 60px; }
-.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
-.page-heading h1 { display: flex; align-items: baseline; gap: 10px; }
-.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
-.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; border: 1px solid #31516d; border-radius: 6px; color: #9dc0df; background: #0e2238; font-size: 12px; letter-spacing: 0; }
-.global-banner { width: min(100% - 48px, 1600px); margin: 17px auto -3px; }
-.error-banner, .notice-banner { border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.45; }
-.error-banner { border: 1px solid #713a49; color: #ffdce2; background: #2d141d; }
-.notice-banner { border: 1px solid #2d625a; color: #c8f0e1; background: #0e2927; }
-.positive { color: #77e0a6 !important; }
-.negative { color: #ff9ba8 !important; }
+.kpi-card, .attention-row, .next-move-action, .compact-row, .remediation-row, .atlas-repository, .repository-tile-main, .scan-run-row, .timeline-event, .queue-row, .switcher-item, .menu-popover button { justify-content: stretch; }
+.filter-grid select, .pagination-controls select { font-weight: 400; }
+
+/* ---------- App shell ---------- */
+.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
+.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 18px; height: 100vh; border-right: 1px solid var(--border); padding: 16px 12px; background: var(--bg-raised); }
+.brand-home { display: flex; align-items: center; border-radius: var(--radius-sm); padding: 4px 8px; color: var(--text); }
+.brand-home:hover { color: var(--text); }
+.brand-lockup-copy { display: flex; align-items: center; gap: 10px; }
+.brand-lockup-copy > span { display: grid; line-height: 1.15; }
+.brand-lockup-copy strong { color: var(--text); font-size: 15px; letter-spacing: -.01em; }
+.brand-lockup-copy small { color: var(--subtle); font-size: 11.5px; }
+.brand-svg { color: var(--accent); }
+.global-nav { display: grid; gap: 2px; }
+.global-nav a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 36px; border-radius: var(--radius-sm); padding: 0 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: background .15s ease, color .15s ease; }
+.global-nav a:hover { color: var(--text); background: var(--surface-2); }
+.global-nav a.active { color: var(--text); background: var(--surface-3); }
+.global-nav a.active .icon { color: var(--accent-text); }
+.nav-label { flex: 1; }
+.nav-count { min-width: 26px; border-radius: var(--radius-xs); padding: 1px 7px; color: var(--muted); background: var(--surface-2); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: center; }
+.global-nav a.active .nav-count { color: var(--text-2); background: var(--surface); }
+.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; border-top: 1px solid var(--border); padding: 14px 8px 2px; }
+.sidebar-footer > span:last-child { display: grid; min-width: 0; }
+.sidebar-footer strong { color: var(--text-2); font-size: 12.5px; font-weight: 500; }
+.sidebar-footer small { overflow: hidden; color: var(--subtle); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
+.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--unknown); }
+.live-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
+
+.app-main { min-width: 0; }
+.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 56px; border-bottom: 1px solid var(--border); padding: 0 28px; background: rgba(14, 16, 21, .86); backdrop-filter: blur(12px); }
+.mobile-brand { display: none; }
+.shortcut-button { justify-content: flex-start; gap: 9px; width: min(380px, 100%); min-height: 34px; border-color: var(--border-strong); color: var(--subtle); background: var(--surface); font-weight: 400; }
+.shortcut-button:hover:not(:disabled) { border-color: #435064; color: var(--text-2); background: var(--surface-2); }
+.shortcut-button span { flex: 1; text-align: left; }
+.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
+
+/* ---------- Page layout ---------- */
+.page-content { display: grid; gap: 20px; width: 100%; max-width: 1480px; margin: 0 auto; padding: 26px 28px 56px; }
+.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
+.page-heading p { margin-bottom: 0; }
+.page-heading h1 { display: flex; align-items: center; gap: 10px; }
+.page-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
+.count-badge { border-radius: var(--radius-xs); padding: 2px 9px; color: var(--muted); background: var(--surface-2); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
+
+.error-banner, .notice-banner { border: 1px solid; border-radius: var(--radius); padding: 10px 14px; font-size: 13px; }
+.error-banner { border-color: rgba(243, 107, 107, .35); color: #ffc9c9; background: var(--bad-soft); }
+.notice-banner { border-color: rgba(129, 144, 255, .3); color: var(--text-2); background: var(--accent-soft); }
+.global-banner { max-width: 1424px; margin: 18px 28px 0; }
+@media (min-width: 1536px) { .global-banner { margin-inline: auto; } }
+
+.panel, .section-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: var(--surface); }
+.panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
+.panel-heading > div, .section-heading > div { min-width: 0; }
+.section-heading .eyebrow { display: none; }
+.panel-subtitle { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; }
+.panel-kicker { display: block; margin-bottom: 4px; color: var(--accent-text); font-size: 12px; font-weight: 500; }
+.section-note { max-width: 420px; color: var(--muted); font-size: 12.5px; text-align: right; }
+.section-card > .eyebrow + h2, .section-card > .eyebrow + h3 { margin-bottom: 12px; }
+.empty-inline { margin: 0; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }
+.empty-state { display: grid; justify-items: center; gap: 8px; padding: 44px 24px; text-align: center; }
+.empty-state h1, .empty-state h2 { margin: 4px 0 0; font-size: 17px; }
+.empty-state p { max-width: 520px; margin: 0 0 8px; }
+.empty-state .brand-svg { opacity: .8; }
+.compact-empty { padding: 28px 18px; }
+
+/* ---------- Status primitives ---------- */
+.status-orb { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--unknown); }
+.status-orb.ready { background: var(--ok); }
+.status-orb.warnings { background: var(--warn); }
+.status-orb.blocked { background: var(--bad); }
+.status-label, .readiness-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
+.status-label i, .readiness-label i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--unknown); }
+.status-current i, .readiness-ready i { background: var(--ok); }
+.status-stale i, .status-queued i, .readiness-warnings i { background: var(--warn); }
+.status-failed i, .status-unavailable i, .readiness-blocked i { background: var(--bad); }
+.status-scanning i { background: var(--accent); animation: blink 1.2s ease-in-out infinite; }
+@keyframes blink { 50% { opacity: .3; } }
+.chip { display: inline-flex; align-items: center; border-radius: var(--radius-xs); padding: 2px 9px; color: var(--text-2); background: var(--surface-3); font-size: 11.5px; font-style: normal; font-weight: 500; white-space: nowrap; }
+.chip.blocked { color: #ffb4b4; background: var(--bad-soft); }
+.chip.warnings { color: #ffd78f; background: var(--warn-soft); }
+.chip.ready { color: #8ff0c1; background: var(--ok-soft); }
+.score-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; border-radius: var(--radius-sm); padding: 0 8px; color: var(--text); background: var(--unknown-soft); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
+.score-pill.blocked { color: #ffb4b4; background: var(--bad-soft); }
+.score-pill.warnings { color: #ffd78f; background: var(--warn-soft); }
+.score-pill.ready { color: #8ff0c1; background: var(--ok-soft); }
+.repo-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2); background: var(--surface-3); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
+.repo-avatar-sm { width: 28px; height: 28px; border-radius: var(--radius-sm); font-size: 11px; }
+.repo-avatar-lg { width: 44px; height: 44px; border-radius: var(--radius); font-size: 14px; }
+.repo-avatar.blocked { border-color: rgba(243, 107, 107, .3); color: #ffb4b4; background: var(--bad-soft); }
+.repo-avatar.warnings { border-color: rgba(242, 177, 60, .3); color: #ffd78f; background: var(--warn-soft); }
+.repo-avatar.ready { border-color: rgba(62, 207, 142, .28); color: #8ff0c1; background: var(--ok-soft); }
+.repo-avatar.scanning { box-shadow: 0 0 0 2px var(--accent-soft); }
+
+/* ---------- Dashboard ---------- */
+.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
+.kpi-card { display: grid; align-content: start; justify-items: start; gap: 6px; min-height: 124px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; color: var(--text); background: var(--surface); text-align: left; }
+.kpi-card:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
+.kpi-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
+.kpi-card strong { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
+.kpi-card small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
+.kpi-card.blocked .kpi-label .icon { color: var(--bad); }
+.kpi-card.warnings .kpi-label .icon { color: var(--warn); }
+.kpi-card.ready .kpi-label .icon { color: var(--ok); }
+.kpi-card.all .kpi-label .icon { color: var(--accent-text); }
+.distribution-bar { display: flex; gap: 3px; width: 100%; height: 6px; margin: 3px 0 1px; overflow: hidden; border-radius: var(--radius-xs); }
+.distribution-bar i { min-width: 0; border-radius: var(--radius-xs); }
+.distribution-bar i.blocked { background: var(--bad); }
+.distribution-bar i.warnings { background: var(--warn); }
+.distribution-bar i.ready { background: var(--ok); }
+
+.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
+.dashboard-side { display: grid; gap: 20px; }
+.attention-list { display: grid; margin: 0 -8px; }
+.attention-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 64px; border: 0; border-radius: var(--radius); padding: 10px 8px; color: var(--text); background: transparent; font-weight: 400; text-align: left; }
+.attention-row + .attention-row { box-shadow: 0 -1px 0 var(--border); }
+.attention-row:hover:not(:disabled) { color: var(--text); background: var(--surface-2); box-shadow: none; }
+.attention-row:hover + .attention-row { box-shadow: none; }
+.attention-copy { display: grid; gap: 2px; min-width: 0; }
+.attention-copy strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
+.attention-copy small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12.5px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
+.attention-context { display: grid; justify-items: end; gap: 4px; }
+.attention-context em { color: var(--subtle); font-size: 11.5px; font-style: normal; white-space: nowrap; }
+.attention-context em.worse { color: #ffb4b4; }
+.attention-context em.better { color: #8ff0c1; }
+.attention-score { display: grid; justify-items: end; gap: 3px; min-width: 64px; }
+.attention-score small { color: var(--subtle); font-size: 11.5px; white-space: nowrap; }
+
+.next-move { border-color: rgba(129, 144, 255, .28); background: linear-gradient(180deg, rgba(129, 144, 255, .07), transparent 70%), var(--surface); }
+.next-move h2 { margin-bottom: 12px; font-size: 16px; }
+.next-move-action { display: grid; justify-items: start; gap: 9px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: var(--text); background: var(--bg-raised); font-weight: 400; text-align: left; }
+.next-move-action:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
+.next-move-meta { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 12.5px; }
+.next-move-action small { color: var(--text-2); font-size: 13px; line-height: 1.45; }
+.next-move-context { display: flex; gap: 8px; color: var(--muted); font-size: 12.5px; font-style: normal; line-height: 1.45; }
+.next-move-context .icon { margin-top: 2px; color: var(--accent-text); }
+.next-move-action b { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-size: 13px; font-weight: 500; }
+
+.compact-list { display: grid; margin: 0 -8px; }
+.compact-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 48px; border: 0; border-radius: var(--radius-sm); padding: 6px 8px; color: var(--text); background: transparent; font-weight: 400; text-align: left; }
+.compact-row:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
+.compact-row > span:nth-child(2) { display: grid; min-width: 0; }
+.compact-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
+.compact-row small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
+.compact-row .status-orb { margin: 0 4px; }
+.pin-empty { display: grid; justify-items: center; gap: 6px; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: 12.5px; text-align: center; }
+.pin-empty .icon { color: var(--subtle); }
+
+/* Remediation */
+.remediation-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
+.remediation-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: var(--text); background: var(--bg-raised); font-weight: 400; text-align: left; }
+.remediation-row:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
+.remediation-copy { display: grid; gap: 3px; min-width: 0; }
+.remediation-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
+.remediation-title strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
+.remediation-priority { border-radius: var(--radius-xs); padding: 1px 7px; color: var(--muted); background: var(--surface-3); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
+.remediation-copy small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
+.remediation-copy em { color: var(--text-2); font-size: 13px; font-style: normal; }
+.remediation-copy b { display: flex; gap: 7px; margin-top: 4px; color: var(--accent-text); font-size: 12.5px; font-weight: 500; }
+.remediation-copy b .icon { margin-top: 2px; }
+.remediation-arrow { align-self: center; color: var(--subtle); }
+.remediation-row:hover .remediation-arrow { color: var(--text); }
+
+/* Portfolio health map */
+.atlas-legend { display: flex; gap: 14px; margin: 0; color: var(--muted); font-size: 12px; }
+.atlas-legend span { display: inline-flex; align-items: center; gap: 6px; }
+.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-3); }
+.swatch.stale { border: 1px dashed var(--muted); background: transparent; }
+.swatch.scanning { box-shadow: 0 0 0 2px var(--accent); }
+.atlas-bands { display: grid; gap: 4px; }
+.atlas-band { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; border-top: 1px solid var(--border); padding: 14px 0 10px; }
+.atlas-band:first-child { border-top: 0; padding-top: 4px; }
+.atlas-band header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 8px; row-gap: 2px; }
+.atlas-band header span { color: var(--text); font-size: 13px; font-weight: 600; }
+.atlas-band header strong { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
+.atlas-band header small { grid-column: 2 / -1; color: var(--muted); font-size: 12px; }
+.atlas-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
+.atlas-repository {
+ --tone: var(--unknown);
+ display: grid; justify-items: start; gap: 1px; width: 100%; min-height: 48px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 6px 9px;
+ color: var(--text); background: color-mix(in srgb, var(--tone) calc(8% + (100 - var(--health)) * .22%), var(--surface-2)); font-weight: 400; text-align: left;
+}
+.atlas-band.blocked .atlas-repository { --tone: var(--bad); }
+.atlas-band.warnings .atlas-repository { --tone: var(--warn); }
+.atlas-band.ready .atlas-repository { --tone: var(--ok); }
+.atlas-repository:hover:not(:disabled) { border-color: color-mix(in srgb, var(--tone) 55%, transparent); color: var(--text); background: color-mix(in srgb, var(--tone) 24%, var(--surface-2)); }
+.atlas-repository-health { color: color-mix(in srgb, var(--tone) 70%, #fff); font-size: 14px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
+.atlas-repository-name { width: 100%; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
+.atlas-repository.stale { border: 1px dashed color-mix(in srgb, var(--tone) 50%, transparent); }
+.atlas-repository.scanning { box-shadow: 0 0 0 2px var(--accent); }
+.portfolio-atlas[data-density="dense"] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
+.portfolio-atlas[data-density="compact"] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
+.portfolio-atlas[data-density="compact"] .atlas-repository { justify-items: center; min-height: 34px; padding: 4px; }
+.portfolio-atlas[data-density="compact"] .atlas-repository-name { display: none; }
+
+/* ---------- Repository explorer ---------- */
+.catalog-toolbar { display: grid; gap: 14px; padding: 16px; }
+.search-control { position: relative; display: flex; align-items: center; }
+.search-glyph { position: absolute; left: 12px; display: inline-flex; color: var(--subtle); pointer-events: none; }
+.search-control input { min-height: 40px; padding-left: 38px; font-size: 14px; }
+.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
+.filter-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
+.toolbar-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
+.filter-result { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
+.toolbar-footer .text-button { margin-left: auto; }
+.view-toggle { display: inline-flex; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; background: var(--bg-raised); }
+.view-toggle button { min-height: 28px; border: 0; border-radius: var(--radius-xs); padding: 4px 12px; color: var(--muted); background: transparent; font-size: 12.5px; }
+.view-toggle button:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
+.view-toggle button.active, .view-toggle button.active:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
+.catalog-loading, .workspace-loading { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
+.catalog-loading span, .workspace-loading span { display: block; min-height: 120px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }
+.dashboard-skeleton { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; }
+.dashboard-skeleton span { display: block; min-height: 380px; border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }
+@media (max-width: 1180px) { .dashboard-skeleton { grid-template-columns: minmax(0, 1fr); } }
+@keyframes skeleton { to { background-position: -200% 0; } }
-.section-card { min-width: 0; border: 1px solid #21384f; border-radius: 11px; padding: 18px; background: rgba(11, 22, 37, .94); box-shadow: 0 14px 42px rgba(0, 0, 0, .12); }
-.catalog-toolbar { display: grid; gap: 14px; margin-bottom: 14px; }
-.search-control, .switcher-search { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid #294863; border-radius: 8px; padding: 0 8px 0 11px; background: #091522; }
-.search-control:focus-within, .switcher-search:focus-within { border-color: #6f9fc8; box-shadow: 0 0 0 3px rgba(83, 142, 190, .12); }
-.search-control input, .switcher-search input { min-height: 42px; border: 0; padding-left: 0; background: transparent; box-shadow: none; }
-.search-glyph { color: #78a0c1; font-size: 20px; line-height: 1; }
-.search-control kbd { flex: 0 0 auto; }
-.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 9px; }
-.filter-grid label, .pagination-controls label { display: grid; gap: 6px; color: #7791ab; font-size: 10px; }
-.filter-grid select { min-height: 35px; padding: 6px 8px; font-size: 12px; }
-.toolbar-footer, .pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7992ac; font-size: 11px; }
-.filter-result { color: #9bb2c8; }
.catalog-table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
-.repository-table { width: 100%; min-width: 890px; border-collapse: collapse; text-align: left; }
-.repository-table th { border-bottom: 1px solid #254159; padding: 13px 16px; color: #7590aa; font-size: 10px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
-.repository-table td { border-bottom: 1px solid rgba(35, 58, 80, .7); padding: 13px 16px; color: #b3c5d8; font-size: 12px; vertical-align: middle; }
+.repository-table { width: 100%; border-collapse: collapse; font-size: 13px; }
+.repository-table th { position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--border); padding: 10px 16px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
+.repository-table th:last-child, .repository-table td:last-child { text-align: right; }
+.repository-table td { border-bottom: 1px solid var(--border); padding: 11px 16px; vertical-align: middle; }
+.repository-table tbody tr { cursor: pointer; transition: background .12s ease; }
.repository-table tbody tr:last-child td { border-bottom: 0; }
-.repository-table tbody tr:hover { background: rgba(26, 57, 87, .22); }
-.sort-button { display: inline-flex; align-items: center; gap: 7px; border: 0; padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; }
-.sort-button:hover:not(:disabled) { border: 0; color: #d8eafb; background: transparent; }
-.sort-button span { color: #83b6d4; font-size: 13px; }
-.repo-cell { display: flex; align-items: center; gap: 10px; min-width: 235px; }
-.repo-cell > div:last-child { min-width: 0; }
-.repo-link { display: block; max-width: 330px; overflow: hidden; border: 0; padding: 0; color: #e8f2fc; background: transparent; font-size: 13px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
-.repo-link:hover:not(:disabled) { border: 0; color: #9cdbf5; background: transparent; }
-.repo-cell small, .table-date small { display: block; margin-top: 4px; color: #718aa4; font-size: 10px; }
-.star-button { display: grid; flex: 0 0 auto; width: 27px; height: 27px; place-items: center; border: 0; padding: 0; color: #5f7893; background: transparent; font-size: 18px; line-height: 1; }
-.star-button:hover:not(:disabled) { border: 0; color: #f0ce7b; background: transparent; }
-.star-button.pinned { color: #f0c86f; }
-.status-label, .readiness-label { display: inline-flex; align-items: center; gap: 7px; color: #9bafc4; font-size: 11px; white-space: nowrap; }
-.status-label i, .readiness-label i, .activity-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #71859b; box-shadow: 0 0 0 3px rgba(113, 133, 155, .08); }
-.status-current i, .status-label.status-current i { background: #64d3a0; box-shadow: 0 0 0 3px rgba(100, 211, 160, .1); }
-.status-scanning i, .status-queued i, .status-stale i { background: #e6b766; box-shadow: 0 0 0 3px rgba(230, 183, 102, .1); }
-.status-failed i, .status-unavailable i { background: #e77f8e; box-shadow: 0 0 0 3px rgba(231, 127, 142, .1); }
-.readiness-ready i { background: #64d3a0; }
-.readiness-warnings i { background: #e6b766; }
-.readiness-blocked i { background: #e77f8e; }
-.health-value { color: #d4e8fa; font-size: 14px; }
-.table-date { color: #b7cadc; white-space: nowrap; }
-.table-action { padding: 6px 9px; border-color: #2c4c69; color: #a6c6e1; background: #0f2237; font-size: 11px; }
-.pagination-bar { border-top: 1px solid #21384f; padding: 12px 16px; }
-.pagination-controls { display: flex; align-items: center; gap: 9px; }
-.pagination-controls label { display: flex; align-items: center; grid-template-columns: auto auto; gap: 6px; }
-.pagination-controls select { width: auto; min-height: 30px; padding: 4px 7px; font-size: 11px; }
-.pagination-controls button { padding: 6px 9px; font-size: 11px; }
-.page-number { min-width: 74px; color: #a1b8ce; text-align: center; }
+.repository-table tbody tr:hover { background: var(--surface-2); }
+.repository-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
+.sort-button { gap: 5px; min-height: 0; border: 0; padding: 0; color: inherit; background: transparent; font-size: inherit; font-weight: inherit; }
+.sort-button:hover:not(:disabled) { color: var(--text); background: transparent; }
+.sort-button span { color: var(--subtle); }
+.repo-cell { display: flex; align-items: center; gap: 10px; min-width: 240px; }
+.repo-cell > div { display: grid; min-width: 0; }
+.repo-link { color: var(--text); font-weight: 500; }
+.repo-cell small { color: var(--subtle); font-size: 12px; }
+.star-button { width: 28px; min-height: 28px; flex: 0 0 auto; border: 0; padding: 0; color: var(--subtle); background: transparent; font-size: 15px; }
+.star-button:hover:not(:disabled) { color: var(--warn); background: var(--surface-3); }
+.star-button.pinned { color: var(--warn); }
+.table-date { display: grid; color: var(--text-2); white-space: nowrap; }
+.table-date small { color: var(--subtle); font-size: 11.5px; }
+.health-value { font-size: 14px; font-variant-numeric: tabular-nums; }
-.loading-state { display: flex; align-items: center; gap: 10px; min-height: 130px; color: #9db6cc; font-size: 13px; }
-.loading-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #68c8ca; box-shadow: 0 0 0 5px rgba(104, 200, 202, .1); animation: pulse 1.4s ease-in-out infinite; }
-@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }
-.empty-state { display: grid; justify-items: start; align-content: center; min-height: 260px; padding: 34px; }
-.empty-state h1, .empty-state h2 { max-width: 620px; }
-.empty-state .muted { margin-bottom: 17px; }
-.empty-icon { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 15px; border: 1px solid #345474; border-radius: 9px; color: #91c2df; background: #102b42; font-size: 20px; }
-.button-link { display: inline-flex; align-items: center; min-height: 38px; border: 1px solid #315272; border-radius: 8px; padding: 8px 13px; color: #ecf5ff; background: #173553; }
-.button-link:hover { border-color: #6d99c3; color: #fff; background: #1d4164; }
-.compact-empty { min-height: 180px; padding: 22px 0; }
+.repository-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
+.repository-tile { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s ease; }
+.repository-tile:hover { border-color: var(--border-strong); }
+.repository-tile-main { display: grid; gap: 12px; width: 100%; border: 0; border-radius: 0; padding: 12px; color: var(--text); background: transparent; font-weight: 400; text-align: left; }
+.repository-tile-main:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
+.tile-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
+.tile-heading > span { display: grid; min-width: 0; }
+.tile-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+.tile-heading small { color: var(--subtle); font-size: 12px; }
+.tile-heading b { font-size: 18px; font-variant-numeric: tabular-nums; }
+.tile-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
+.tile-pin { position: absolute; top: 18px; right: 18px; width: 30px; min-height: 30px; border: 1px solid var(--border-strong); padding: 0; color: var(--muted); background: rgba(14, 16, 21, .78); }
+.tile-pin:hover:not(:disabled) { color: var(--warn); background: var(--surface-3); border-color: var(--border-strong); }
+.tile-pin.pinned { color: var(--warn); }
+.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
+.pagination-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
+.pagination-controls label { display: flex; align-items: center; gap: 8px; }
+.pagination-controls select { width: 76px; min-height: 32px; }
+.page-number { padding: 0 6px; }
-.breadcrumb-row { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; color: #6f89a2; font-size: 11px; }
-.breadcrumb-row button { border: 0; padding: 0; color: #b8cce0; background: transparent; font-size: 11px; }
-.breadcrumb-row button:hover:not(:disabled) { border: 0; color: #eff7ff; background: transparent; }
-.detail-header { display: grid; grid-template-columns: minmax(300px, 1.35fr) minmax(270px, 1fr) auto auto; align-items: center; gap: 19px; min-height: 112px; padding: 16px 18px; }
-.detail-identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
-.detail-identity > div:last-child { min-width: 0; }
-.provider-mark { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border: 1px solid #36597e; border-radius: 7px; color: #b8d7f2; background: #10243b; font-size: 11px; font-weight: 750; }
-.provider-mark.large { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
-.detail-header h1 { margin: 3px 0 4px; overflow: hidden; font-size: clamp(20px, 2.2vw, 29px); text-overflow: ellipsis; white-space: nowrap; }
-.detail-description { max-width: 52ch; margin: 0; overflow: hidden; color: #8098b2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
-.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; }
-.detail-meta span { display: grid; gap: 4px; color: #c2d3e2; font-size: 11px; }
-.detail-meta strong { color: #718ca7; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
-.detail-status { display: grid; justify-items: end; gap: 3px; min-width: 102px; }
-.detail-status > strong { color: #ebf5fd; font-size: 18px; letter-spacing: -.02em; }
-.detail-status small { max-width: 130px; overflow: hidden; color: #7f96ad; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
-.detail-actions { display: flex; align-items: center; justify-content: end; gap: 6px; }
-.detail-actions > button:first-child { min-width: 77px; }
+/* ---------- Repository visual ---------- */
+.repository-visual { position: relative; display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); color: var(--unknown); background: var(--bg-raised); }
+.repository-visual svg { display: block; width: 100%; height: auto; }
+.repository-visual.state-ready { color: var(--ok); }
+.repository-visual.state-warnings { color: var(--warn); }
+.repository-visual.state-blocked { color: var(--bad); }
+.repository-visual.compact { width: 56px; flex: 0 0 auto; border-radius: var(--radius-sm); }
+.visual-caption { position: absolute; left: 10px; bottom: 8px; display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 10.5px; }
+.visual-caption i { border-radius: 4px; padding: 1px 5px; color: var(--text-2); background: rgba(14, 16, 21, .72); font-style: normal; font-weight: 600; letter-spacing: .04em; }
+.visual-caption b { font-weight: 500; }
+.visual-scan-pulse { position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: inherit; animation: blink 1.4s ease-in-out infinite; }
+
+/* ---------- Repository workspace ---------- */
+.breadcrumb-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
+.breadcrumb-row a { color: var(--muted); }
+.breadcrumb-row a:hover { color: var(--text); }
+.breadcrumb-row > span { display: inline-flex; color: var(--subtle); }
+.breadcrumb-row button { gap: 4px; min-height: 26px; border: 0; padding: 2px 6px; color: var(--text-2); background: transparent; font-weight: 500; }
+.breadcrumb-row button:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
+.workspace-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "identity visual" "actions visual"; gap: 16px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
+.workspace-identity { grid-area: identity; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-width: 0; }
+.workspace-identity > div:first-child { min-width: 0; }
+.workspace-identity h1 { overflow-wrap: anywhere; }
+.workspace-identity p { margin-bottom: 12px; color: var(--muted); }
+.workspace-identity .eyebrow { text-transform: capitalize; }
+.workspace-facts { display: flex; flex-wrap: wrap; gap: 8px; }
+.workspace-facts > span { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 9px; color: var(--muted); background: var(--bg-raised); font-size: 12px; }
+.workspace-facts code { font-size: 12px; }
+.workspace-score { display: grid; justify-items: end; flex: 0 0 auto; text-align: right; }
+.workspace-score strong { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
+.workspace-score span { color: var(--muted); font-size: 12px; }
+.workspace-score small { margin-top: 6px; border-radius: var(--radius-xs); padding: 2px 9px; color: var(--text-2); background: var(--surface-3); font-size: 11.5px; font-weight: 500; }
+.workspace-visual { grid-area: visual; align-self: stretch; }
+.workspace-visual svg { height: 100%; object-fit: cover; }
+.detail-actions { grid-area: actions; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-menu { position: relative; }
-.action-menu summary { list-style: none; border: 1px solid #315272; border-radius: 8px; padding: 9px 11px; color: #d7e8f8; background: #0e2339; cursor: pointer; font-size: 12px; }
+.action-menu summary { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 6px 12px; color: var(--text); background: var(--surface-2); font-size: 13px; font-weight: 500; list-style: none; cursor: pointer; user-select: none; }
.action-menu summary::-webkit-details-marker { display: none; }
-.action-menu summary::after { display: inline-block; margin-left: 7px; color: #7398b8; content: '⌄'; }
-.action-menu[open] summary { border-color: #79a6cf; }
-.menu-popover { position: absolute; z-index: 4; top: calc(100% + 7px); right: 0; display: grid; min-width: 155px; padding: 5px; border: 1px solid #31516c; border-radius: 8px; background: #0c1b2b; box-shadow: 0 15px 34px rgba(0, 0, 0, .35); }
-.menu-popover button { border: 0; border-radius: 5px; padding: 8px 9px; color: #b9cde0; background: transparent; text-align: left; font-size: 11px; }
-.menu-popover button:hover:not(:disabled) { border: 0; color: #eff7ff; background: #173653; }
-.header-star { width: 32px; height: 35px; border: 1px solid #294560; border-radius: 8px; background: #0b1625; }
-.header-star:hover:not(:disabled) { border: 1px solid #6d99c3; background: #173653; }
-.detail-tabs { display: flex; gap: 3px; margin: 14px 0; border-bottom: 1px solid #20384f; overflow-x: auto; }
-.detail-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 38px; border-bottom: 2px solid transparent; padding: 0 12px; color: #7f96ad; font-size: 12px; white-space: nowrap; }
-.detail-tabs a:hover { color: #dcecfb; }
-.detail-tabs a.active { border-bottom-color: #6ab9d0; color: #eff7ff; }
-.advanced-info { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 25px; margin-bottom: 14px; }
-.advanced-info h2 { margin: 5px 0 0; font-size: 19px; }
-.info-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 13px 20px; }
-.info-grid span, .settings-list div { display: grid; gap: 4px; color: #bed0e0; font-size: 11px; }
-.info-grid strong, .settings-list dt { color: #7089a3; font-size: 9px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
-.detail-content { min-width: 0; }
-.job-progress { display: grid; gap: 9px; margin-top: 12px; border: 1px solid #315875; border-radius: 9px; padding: 11px 14px; background: #0b1d2d; }
-.job-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; color: #cde0f1; font-size: 12px; }
-.job-progress > div:first-child span { color: #85a0ba; text-transform: capitalize; }
-.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #1b3147; }
-.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #64c6d1, #78daa2); transition: width .25s ease; }
-.repository-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
-.repository-facts span { border: 1px solid #284a67; border-radius: 6px; padding: 7px 9px; color: #b2c9df; background: #0b1c2d; font-size: 11px; }
-.repository-empty { min-height: 330px; justify-items: start; }
+.action-menu summary:hover, .action-menu[open] summary { border-color: #435064; background: var(--surface-3); }
+.menu-popover { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; display: grid; gap: 2px; min-width: 180px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 5px; background: var(--surface-2); box-shadow: var(--shadow-pop); }
+.menu-popover button { justify-content: flex-start; min-height: 32px; border: 0; padding: 6px 10px; color: var(--text-2); background: transparent; font-weight: 400; }
+.menu-popover button:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
+.header-star { width: 34px; min-height: 34px; border: 1px solid var(--border-strong); background: var(--surface-2); }
+.job-progress { display: grid; gap: 10px; border: 1px solid rgba(129, 144, 255, .3); border-radius: var(--radius); padding: 12px 14px; background: var(--accent-soft); }
+.job-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
+.job-progress span { color: var(--muted); text-transform: capitalize; }
+.progress-track { height: 5px; overflow: hidden; border-radius: var(--radius-xs); background: var(--surface-3); }
+.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s ease; }
+.detail-tabs { position: sticky; top: 56px; z-index: 20; display: flex; gap: 2px; margin: 0 -28px; overflow-x: auto; border-bottom: 1px solid var(--border); padding: 0 28px; background: rgba(14, 16, 21, .92); backdrop-filter: blur(12px); scrollbar-width: none; }
+.detail-tabs::-webkit-scrollbar { display: none; }
+.detail-tabs a { flex: 0 0 auto; border-bottom: 2px solid transparent; padding: 12px 12px 11px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
+.detail-tabs a:hover { color: var(--text); }
+.detail-tabs a.active { border-bottom-color: var(--accent); color: var(--text); }
+.advanced-info { display: grid; gap: 14px; }
+.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
+.info-grid > span { display: grid; gap: 3px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text-2); background: var(--bg-raised); font-size: 13px; }
+.info-grid strong { color: var(--muted); font-size: 12px; font-weight: 500; }
+.workspace-loading { grid-template-columns: repeat(3, 1fr); }
+.detail-content { display: grid; gap: 20px; }
+.repository-empty { justify-items: center; }
+.repository-facts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
+.repository-facts span { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px 9px; color: var(--muted); background: var(--bg-raised); font-size: 12px; }
-.view-stack { display: grid; gap: 14px; min-width: 0; }
-.low-signal-notice { margin: 0; }
-.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
-.metric-grid article { min-width: 0; border: 1px solid #203a53; border-radius: 9px; padding: 13px; background: #0a1727; }
-.metric-grid.low-signal article { border-color: transparent; padding: 9px 10px; background: transparent; }
-.metric-grid span { display: block; min-height: 27px; color: #87a0b8; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
-.metric-grid strong { display: block; margin-top: 7px; color: #e9f4fe; font-size: 24px; letter-spacing: -.03em; }
-.metric-grid.low-signal strong { color: #a5b9cb; font-size: 21px; }
-.metric-grid small { display: block; min-height: 25px; margin-top: 4px; color: #718aa4; font-size: 9px; line-height: 1.35; }
-.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
-.insight-card { min-width: 0; border-left: 3px solid #3d6688; border-top: 1px solid #213b55; border-right: 1px solid #213b55; border-bottom: 1px solid #213b55; border-radius: 8px; padding: 14px 15px; background: #0b1929; }
-.insight-card.insight-ready { border-left-color: #65d3a0; }
-.insight-card.insight-warnings { border-left-color: #e6b766; }
-.insight-card.insight-blocked { border-left-color: #e77f8e; }
-.insight-card strong { display: block; margin: 6px 0 4px; overflow: hidden; color: #e3f1fc; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
-.insight-card p { margin: 0; overflow: hidden; color: #8199b1; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
-.overview-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr); gap: 14px; }
-.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
-.section-heading h3 { margin: 5px 0 0; }
-.section-note { max-width: 39ch; color: #7890a9; font-size: 10px; line-height: 1.45; text-align: right; }
-.delta { border-radius: 5px; padding: 5px 8px; color: #a9bfd3; background: #0a1827; font-size: 10px; white-space: nowrap; }
-.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
-.score-card { min-width: 0; border: 1px solid #203a53; border-radius: 8px; padding: 12px; background: #0a1726; }
-.score-card > div:first-child, .language > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
-.score-card span, .language span { color: #a0b4c9; font-size: 11px; }
-.score-card strong { color: #e4f0fb; font-size: 20px; }
-.score-card small { display: block; margin-top: 7px; color: #859cb4; font-size: 10px; }
-.bar { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #1b2b3e; }
-.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5686b5, #7abfd0); }
-.release-gate-card { align-content: start; }
-.gate-list { display: grid; gap: 7px; margin-top: 15px; }
-.gate-check { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 9px; align-items: start; border: 1px solid #20384f; border-radius: 7px; padding: 9px; background: #091522; }
-.gate-state { display: inline-flex; justify-content: center; border: 1px solid currentColor; border-radius: 5px; padding: 4px 5px; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
-.gate-pass { color: #77dca3; }
-.gate-warn { color: #ecc16e; }
-.gate-block { color: #ff929f; }
-.gate-check strong { display: block; color: #dceaf7; font-size: 11px; }
-.gate-check small { display: block; margin-top: 4px; color: #7d94ad; font-size: 10px; line-height: 1.35; }
-.signals-columns { grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr); }
-.language-list { display: grid; gap: 12px; margin-top: 17px; }
-.language strong { color: #dce7f5; font-size: 11px; }
-.signal-stack { display: grid; gap: 14px; }
-.signal-card h3 { margin-bottom: 5px; }
-.compact-dl { display: grid; gap: 8px; margin: 15px 0 0; }
-.compact-dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(44, 63, 86, .44); padding-bottom: 6px; }
-.compact-dl dt { color: #8298b2; font-size: 11px; }
-.compact-dl dd { margin: 0; color: #d9e7f4; font-size: 11px; text-align: right; }
-.empty-inline { padding: 16px 0 6px; color: #8095ac; font-size: 11px; line-height: 1.45; }
+/* ---------- Analysis views ---------- */
+.view-stack { display: grid; gap: 20px; }
+.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
+.metric-grid article { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--surface); }
+.metric-grid span { color: var(--muted); font-size: 12.5px; }
+.metric-grid strong { font-size: 24px; line-height: 1.25; font-variant-numeric: tabular-nums; }
+.metric-grid small { overflow: hidden; color: var(--subtle); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
+.metric-grid.low-signal article { opacity: .7; }
+.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
+.insight-card { display: grid; align-content: start; gap: 6px; border: 1px solid var(--border); border-left-width: 3px; border-radius: var(--radius-lg); padding: 16px; background: var(--surface); }
+.insight-card .eyebrow { margin: 0; }
+.insight-card strong { font-size: 15px; line-height: 1.35; }
+.insight-card p { margin: 0; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
+.insight-blocked { border-left-color: var(--bad); }
+.insight-warnings { border-left-color: var(--warn); }
+.insight-ready { border-left-color: var(--ok); }
+.overview-intelligence, .overview-columns, .comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
+.overview-columns { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
+.change-brief .section-heading > strong { font-size: 14px; }
+.change-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
+.change-grid span { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--muted); background: var(--bg-raised); font-size: 12px; }
+.change-grid b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
+.top-findings-list { display: grid; }
+.top-findings-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding: 10px 0; }
+.top-findings-list > div:first-child { border-top: 0; padding-top: 0; }
+.top-findings-list span:nth-child(2) { display: grid; min-width: 0; }
+.top-findings-list strong { font-size: 13px; font-weight: 500; }
+.top-findings-list small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
+.top-findings-list b { color: var(--bad); font-size: 13px; font-variant-numeric: tabular-nums; }
+.severity { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; border-radius: var(--radius-xs); padding: 2px 8px; color: var(--text-2); background: var(--surface-3); font-size: 11.5px; font-weight: 600; text-transform: capitalize; }
+.severity-blocker { color: #ffb4b4; background: var(--bad-soft); }
+.severity-warning { color: #ffd78f; background: var(--warn-soft); }
+.severity-info { color: var(--accent-text); background: var(--accent-soft); }
+.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
+.score-card { display: grid; gap: 6px; }
+.score-card > div:first-child { display: flex; justify-content: space-between; font-size: 13px; }
+.score-card span { color: var(--text-2); }
+.score-card strong { font-variant-numeric: tabular-nums; }
+.score-card small { font-size: 11.5px; }
+.bar { height: 6px; overflow: hidden; border-radius: var(--radius-xs); background: var(--surface-3); }
+.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
+.delta { font-size: 12.5px; font-weight: 500; }
+.release-gate-card h3 { margin-bottom: 14px; font-size: 16px; }
+.gate-list { display: grid; gap: 8px; }
+.gate-check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--bg-raised); }
+.gate-check > div { display: grid; }
+.gate-check strong { font-size: 13px; }
+.gate-check small { color: var(--muted); font-size: 12px; }
+.gate-state { min-width: 50px; border-radius: var(--radius-xs); padding: 2px 8px; font-size: 11.5px; font-weight: 600; text-align: center; text-transform: capitalize; }
+.gate-pass { color: #8ff0c1; background: var(--ok-soft); }
+.gate-warn { color: #ffd78f; background: var(--warn-soft); }
+.gate-block { color: #ffb4b4; background: var(--bad-soft); }
+.signals-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
+.language-list { display: grid; gap: 12px; }
+.language { display: grid; gap: 6px; }
+.language > div:first-child { display: flex; justify-content: space-between; font-size: 13px; }
+.language strong { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
+.signal-stack { display: grid; gap: 20px; }
+.signal-card h3 { margin-bottom: 12px; }
+.compact-dl { display: grid; margin: 0; }
+.compact-dl > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 8px 0; font-size: 13px; }
+.compact-dl > div:first-child { border-top: 0; }
+.compact-dl dt { color: var(--muted); }
+.compact-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
-.finding-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 150px 180px; gap: 8px; margin-bottom: 13px; }
-.finding-filters input, .finding-filters select { width: 100%; }
-.findings-list, .hotspot-list, .scan-run-list { display: grid; gap: 7px; }
-.finding { display: block; overflow: hidden; border: 1px solid #20384f; border-radius: 8px; background: #091522; }
-.finding-summary { display: grid; grid-template-columns: 69px minmax(0, 1fr) 42px 14px; align-items: start; gap: 11px; padding: 11px; cursor: pointer; list-style: none; }
+.finding-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
+.findings-list { display: grid; gap: 6px; }
+.finding { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
+.finding[open] { border-color: var(--border-strong); }
+.finding.suppressed { opacity: .65; }
+.finding-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; list-style: none; cursor: pointer; }
.finding-summary::-webkit-details-marker { display: none; }
-.finding-summary::after { align-self: center; color: #7f9ab4; content: '+'; font-size: 15px; line-height: 1; text-align: right; }
-.finding[open] .finding-summary::after { content: '−'; }
-.finding-copy { min-width: 0; }
-.finding-copy strong, .finding-copy > span { display: block; }
-.finding strong { color: #e3effa; font-size: 12px; font-weight: 600; line-height: 1.35; }
-.finding-copy > span { margin-top: 4px; color: #7f94ae; font-size: 10px; overflow-wrap: anywhere; }
-.severity { display: inline-flex; justify-content: center; border: 1px solid currentColor; border-radius: 5px; padding: 4px 5px; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
-.severity-blocker { color: #ff909b; }
-.severity-warning { color: #efc16e; }
-.severity-info { color: #91acc7; }
-.deduction { justify-self: end; color: #90a5be; font-size: 10px; }
-.finding-details { border-top: 1px solid #20384f; padding: 12px 13px 13px 93px; background: #0b1a2a; }
-.finding-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 18px; margin: 0; }
-.finding-detail-grid div { display: grid; min-width: 0; gap: 4px; }
-.finding-detail-grid dt { color: #718ba5; font-size: 9px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
-.finding-detail-grid dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #c4d5e4; font-size: 10px; line-height: 1.35; }
-.finding.suppressed { opacity: .64; }
-.finding.suppressed .severity { color: #b8a36b; border-color: #66552d; background: #2b2412; }
-.hotspot-row { display: grid; grid-template-columns: 37px minmax(0, 1fr) 100px; gap: 12px; align-items: center; border: 1px solid #20384f; border-radius: 8px; padding: 11px; background: #091522; }
-.hotspot-rank { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 7px; color: #9bb5ce; background: #13283e; font-size: 12px; font-weight: 700; }
-.hotspot-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
-.hotspot-title strong { overflow-wrap: anywhere; color: #e1edf8; font-size: 12px; }
-.hotspot-title span { color: #8197b0; font-size: 10px; }
-.hotspot-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
-.hotspot-reasons span { border-radius: 5px; padding: 3px 5px; color: #8da3bc; background: #102137; font-size: 9px; }
-.hotspot-bar i { background: linear-gradient(90deg, #628fc0, #c4766f); }
-.hotspot-metrics { display: grid; justify-items: end; gap: 2px; }
-.hotspot-metrics strong { color: #e2effa; font-size: 23px; }
-.hotspot-metrics small { color: #7f95ae; font-size: 9px; }
+.finding-summary:hover { background: var(--surface-2); border-radius: var(--radius); }
+.finding-copy { display: grid; min-width: 0; }
+.finding-copy strong { font-size: 13px; font-weight: 500; }
+.finding-copy span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
+.deduction { color: var(--bad); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
+.finding-details { border-top: 1px solid var(--border); padding: 12px 14px; }
+.finding-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
+.finding-detail-grid dt { color: var(--muted); font-size: 12px; }
+.finding-detail-grid dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; text-transform: capitalize; }
+.finding-detail-grid dd code { text-transform: none; }
-.architecture-summary { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
-.architecture-stats { display: grid; grid-template-columns: repeat(3, 85px); gap: 7px; }
-.architecture-stats div { border: 1px solid #203b58; border-radius: 8px; padding: 10px; background: #091624; }
-.architecture-stats strong { display: block; color: #e8f4fe; font-size: 21px; }
-.architecture-stats strong small { color: #6f89a6; font-size: 11px; font-weight: 500; }
-.architecture-stats span { color: #8196af; font-size: 9px; line-height: 1.2; text-transform: uppercase; }
-.architecture-canvas { height: 650px; padding: 0; overflow: hidden; }
-.react-flow__node { min-width: 150px; border: 1px solid #36587e !important; border-radius: 8px !important; padding: 10px 12px !important; color: #edf6ff !important; background: #10233a !important; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); font-size: 11px; }
-.react-flow__node.arch-hot { border-color: #a24b59 !important; }
-.react-flow__node.arch-warm { border-color: #9b7634 !important; }
-.react-flow__node.arch-calm { border-color: #37638a !important; }
-.react-flow__edge-path { stroke: #668ab3; stroke-width: 1.7; }
-.react-flow__controls { overflow: hidden; border: 1px solid #274563; border-radius: 8px; }
-.react-flow__controls button { border-radius: 0; color: #fff; background: #10233a; }
-.react-flow__minimap { overflow: hidden; border: 1px solid #274563; border-radius: 8px; background: #08131f !important; }
-.trend-chart { display: flex; align-items: end; gap: 7px; min-height: 250px; overflow-x: auto; padding: 18px 6px 1px; }
-.trend-column { display: grid; flex: 1 0 40px; grid-template-rows: 19px 180px 30px; gap: 5px; min-width: 40px; max-width: 70px; text-align: center; }
-.trend-column > span { color: #9fb2c8; font-size: 10px; }
-.trend-track { display: flex; align-items: end; overflow: hidden; border-radius: 6px; background: #0a1726; }
-.trend-track i { display: block; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #6d9bc8, #365d84); }
-.trend-column small { color: #748aa4; font-size: 9px; line-height: 1.2; }
-.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
-.delta-grid { display: grid; gap: 7px; margin-top: 14px; }
-.delta-grid div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(44, 63, 86, .45); padding-bottom: 6px; }
-.delta-grid span { color: #8499b2; font-size: 11px; }
-.delta-grid strong { font-size: 11px; }
-.delta-findings { display: grid; gap: 7px; margin-top: 14px; }
-.delta-findings > div { border-radius: 6px; padding: 8px 9px; font-size: 10px; line-height: 1.4; }
-.delta-findings .resolved { color: #a5dac3; background: #102922; }
-.delta-findings .added { color: #efacb4; background: #2d171c; }
-.scan-run-card { margin-top: 0; }
-.scan-run-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border-color: #20384f; border-radius: 7px; padding: 10px 11px; color: #d8e7f3; background: #091522; text-align: left; }
-.scan-run-row:hover:not(:disabled), .scan-run-row.selected { border-color: #5684ad; background: #122a42; }
-.scan-run-row span { min-width: 0; }
-.scan-run-row span strong, .scan-run-row span small { display: block; }
-.scan-run-row span strong { font-size: 12px; }
-.scan-run-row span small { margin-top: 3px; color: #7e94ab; font-size: 10px; }
-.scan-run-row > strong { font-size: 18px; }
+.trend-chart { display: flex; align-items: flex-end; gap: 6px; height: 220px; overflow-x: auto; padding-bottom: 4px; }
+.trend-column { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; flex: 1 0 34px; max-width: 64px; height: 100%; }
+.trend-column span { color: var(--text-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
+.trend-track { display: flex; align-items: flex-end; width: 100%; height: 100%; border-radius: var(--radius-xs); background: var(--bg-raised); }
+.trend-track i { display: block; width: 100%; border-radius: var(--radius-xs); background: linear-gradient(180deg, var(--accent), var(--accent-strong)); }
+.trend-column small { color: var(--subtle); font-size: 10.5px; white-space: nowrap; }
+.comparison-grid h3 { margin-bottom: 12px; }
+.delta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
+.delta-grid div { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding: 7px 0; font-size: 13px; }
+.delta-grid span { color: var(--muted); }
+.delta-findings { display: grid; gap: 6px; }
+.delta-findings > div { border-radius: var(--radius-sm); padding: 7px 10px; font-size: 12.5px; }
+.delta-findings .resolved { color: #8ff0c1; background: var(--ok-soft); }
+.delta-findings .added { color: #ffb4b4; background: var(--bad-soft); }
+.scan-run-list { display: grid; gap: 6px; }
+.scan-run-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; color: var(--text); background: var(--bg-raised); font-weight: 400; text-align: left; }
+.scan-run-row:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
+.scan-run-row:disabled { cursor: default; opacity: 1; }
+.scan-run-row.selected { border-color: rgba(129, 144, 255, .45); background: var(--accent-soft); }
+.scan-run-row > span:first-child { display: grid; min-width: 0; }
+.scan-run-row > span:first-child strong { font-family: var(--mono); font-size: 13px; }
+.scan-run-row small { color: var(--muted); font-size: 12px; }
+.scan-run-row > strong { font-size: 15px; font-variant-numeric: tabular-nums; }
+.run-readiness { border-radius: var(--radius-xs); padding: 2px 9px; font-size: 11.5px; font-weight: 500; }
+.run-readiness.blocked { color: #ffb4b4; background: var(--bad-soft); }
+.run-readiness.warnings { color: #ffd78f; background: var(--warn-soft); }
+.run-readiness.ready { color: #8ff0c1; background: var(--ok-soft); }
-.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
-.summary-strip > div { border: 1px solid #20384f; border-radius: 8px; padding: 13px; background: #0a1726; }
-.summary-strip span { display: block; color: #7c95ad; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
-.summary-strip strong { display: block; margin-top: 6px; color: #e5f1fb; font-size: 21px; letter-spacing: -.02em; }
-.activity-card, .queue-card { min-height: 280px; }
-.activity-list, .queue-list { display: grid; gap: 5px; }
-.activity-row, .queue-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; width: 100%; border-color: #20384f; border-radius: 7px; padding: 11px 12px; background: #091522; text-align: left; }
-.activity-row:hover:not(:disabled) { border-color: #5684ad; background: #122a42; }
-.activity-row > span:nth-child(2) { min-width: 0; }
-.activity-row strong, .queue-row strong { display: block; overflow: hidden; color: #dbeaf6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
-.activity-row small, .queue-row small { display: block; margin-top: 3px; color: #7e94ab; font-size: 10px; }
-.activity-health { color: #d9eafb !important; font-size: 15px !important; }
-.activity-dot { width: 7px; height: 7px; }
-.row-chevron { color: #7190ac; font-size: 16px; }
-.queue-row { grid-template-columns: 110px minmax(0, 1fr) auto; }
-.queue-row > span:nth-child(2) { min-width: 0; }
+.hotspot-list { display: grid; gap: 8px; }
+.hotspot-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--bg-raised); }
+.hotspot-rank { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-3); font-size: 12px; font-weight: 600; }
+.hotspot-main { display: grid; gap: 6px; min-width: 0; }
+.hotspot-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
+.hotspot-title strong { overflow: hidden; font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
+.hotspot-title span { color: var(--subtle); font-size: 12px; }
+.hotspot-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
+.hotspot-reasons span { border-radius: var(--radius-xs); padding: 1px 8px; color: var(--text-2); background: var(--surface-3); font-size: 11.5px; }
+.hotspot-bar i { background: var(--warn); }
+.hotspot-metrics { display: grid; justify-items: end; gap: 1px; font-variant-numeric: tabular-nums; }
+.hotspot-metrics strong { font-size: 18px; }
+.hotspot-metrics small { color: var(--subtle); font-size: 11.5px; }
-.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
-.settings-grid h2, .settings-note h2 { margin-top: 6px; font-size: 20px; }
-.settings-list { display: grid; gap: 11px; margin: 22px 0; }
-.settings-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(44, 63, 86, .45); padding-bottom: 8px; }
-.settings-list dd { margin: 0; color: #d3e2ef; font-size: 11px; text-align: right; }
-.settings-list .status-label { font-size: 11px; }
-.local-form { display: flex; align-items: end; gap: 8px; margin-top: 20px; }
-.local-form label { display: grid; flex: 1; gap: 6px; color: #91a8c0; font-size: 10px; }
-.local-form button { white-space: nowrap; }
-.local-result { display: grid; gap: 4px; margin-top: 17px; border-left: 3px solid #65d3a0; border-radius: 6px; padding: 10px 11px; color: #a9c0d5; background: #0b2022; font-size: 11px; }
-.local-result strong { color: #e4f3fb; }
-.settings-note { margin-top: 14px; }
-.settings-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
-.settings-counts span { border: 1px solid #294861; border-radius: 6px; padding: 7px 9px; color: #91aac2; font-size: 11px; }
-.settings-counts strong { color: #dff0fc; }
+.architecture-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
+.architecture-summary h2 { margin-bottom: 4px; }
+.architecture-summary p { margin: 0; }
+.architecture-stats { display: flex; gap: 10px; }
+.architecture-stats > div { display: grid; min-width: 110px; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; background: var(--bg-raised); }
+.architecture-stats strong { font-size: 20px; font-variant-numeric: tabular-nums; }
+.architecture-stats strong small { color: var(--subtle); font-size: 13px; font-weight: 400; }
+.architecture-stats span { color: var(--muted); font-size: 12px; }
+.architecture-workspace { padding: 0; overflow: hidden; }
+.architecture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding: 12px 16px; color: var(--muted); font-size: 12.5px; }
+.architecture-toolbar label { width: min(380px, 100%); }
+.architecture-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 600px; }
+.architecture-canvas { min-height: 600px; background: var(--bg-raised); }
+.architecture-inspector { border-left: 1px solid var(--border); padding: 18px; }
+.architecture-inspector h3 { margin-bottom: 6px; font-size: 15px; }
+.architecture-inspector > code { display: block; margin-bottom: 14px; overflow-wrap: anywhere; color: var(--accent-text); font-size: 12px; }
+.architecture-inspector p { color: var(--muted); font-size: 12.5px; }
+.architecture-inspector dl { display: grid; margin: 0; }
+.architecture-inspector dl > div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border); padding: 8px 0; font-size: 13px; }
+.architecture-inspector dt { color: var(--muted); }
+.architecture-inspector dd { margin: 0; font-variant-numeric: tabular-nums; }
+.react-flow__node { min-width: 150px; border: 1px solid var(--border-strong) !important; border-radius: var(--radius-sm) !important; padding: 9px 12px !important; color: var(--text) !important; background: var(--surface-2) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font-size: 11.5px; }
+.react-flow__node.arch-hot { border-color: rgba(243, 107, 107, .65) !important; }
+.react-flow__node.arch-warm { border-color: rgba(242, 177, 60, .6) !important; }
+.react-flow__node.arch-calm { border-color: var(--border-strong) !important; }
+.react-flow__node.arch-selected { border-color: var(--accent) !important; box-shadow: 0 0 0 3px var(--accent-soft) !important; }
+.react-flow__edge-path { stroke: #4a5568; stroke-width: 1.5; }
+.react-flow__edge.animated .react-flow__edge-path { stroke: var(--accent) !important; }
+.react-flow__background { background: var(--bg-raised); }
+.react-flow__background pattern circle { fill: #2b3240; }
+.react-flow__controls { overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: none !important; }
+.react-flow__controls button { min-height: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text-2); background: var(--surface-2); fill: currentColor; }
+.react-flow__controls button:hover { background: var(--surface-3) !important; }
+.react-flow__minimap { overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface) !important; }
+.react-flow__attribution { background: transparent !important; }
+.react-flow__attribution a { color: var(--subtle) !important; }
-.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; place-items: start center; padding: min(17vh, 150px) 20px 20px; background: rgba(2, 6, 11, .72); backdrop-filter: blur(5px); }
-.switcher-modal { width: min(620px, 100%); overflow: hidden; border: 1px solid #3c607d; border-radius: 11px; background: #0b1828; box-shadow: 0 25px 80px rgba(0, 0, 0, .5); }
-.switcher-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 18px 18px 13px; }
-.switcher-heading h2 { margin: 5px 0 0; font-size: 22px; }
-.switcher-search { margin: 0 15px 11px; }
-.switcher-results { display: grid; max-height: min(54vh, 440px); overflow-y: auto; padding: 0 7px 7px; }
-.switcher-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 10px 9px; color: #dceaf6; background: transparent; text-align: left; }
-.switcher-item:hover:not(:disabled), .switcher-item.active { border-color: #365e7f; background: #15314b; }
-.switcher-item > span:nth-child(2) { min-width: 0; }
-.switcher-item strong, .switcher-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.switcher-item strong { font-size: 12px; }
-.switcher-item small { margin-top: 3px; color: #839ab2; font-size: 10px; }
-.switcher-star { color: #607990; font-size: 16px; text-align: center; }
-.switcher-star.pinned { color: #f0c86f; }
-.switcher-footer { display: flex; flex-wrap: wrap; gap: 15px; border-top: 1px solid #20384f; padding: 11px 17px; color: #7892ab; font-size: 10px; }
+.dependency-hero h2 { margin-bottom: 4px; font-size: 18px; }
+.dependency-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
+.dependency-metrics div { display: grid; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; background: var(--bg-raised); }
+.dependency-metrics strong { font-size: 20px; font-variant-numeric: tabular-nums; }
+.dependency-metrics span { color: var(--muted); font-size: 12px; }
+.manifest-list { display: flex; flex-wrap: wrap; gap: 6px; }
+.manifest-list code { border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 3px 8px; background: var(--bg-raised); }
+.dependency-lock-heading { margin-top: 20px; }
+
+/* ---------- Activity, queue, settings ---------- */
+.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
+.summary-strip > div { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; background: var(--surface); }
+.summary-strip span { color: var(--muted); font-size: 12.5px; }
+.summary-strip strong { font-size: 24px; font-variant-numeric: tabular-nums; }
+.activity-timeline { display: grid; gap: 0; }
+.timeline-event, .queue-row { display: grid; grid-template-columns: 3px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 8px 4px; color: var(--text); background: transparent; font-weight: 400; text-align: left; }
+.queue-row { grid-template-columns: auto minmax(0, 1fr) auto; }
+.timeline-event:hover:not(:disabled), .queue-row:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }
+.timeline-event > span:nth-child(3), .queue-row > span:nth-child(2) { display: grid; min-width: 0; }
+.timeline-event strong, .queue-row strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
+.timeline-event small, .queue-row small { color: var(--muted); font-size: 12px; }
+.timeline-event b { font-size: 14px; font-variant-numeric: tabular-nums; }
+.timeline-rail { align-self: stretch; border-radius: 3px; background: var(--unknown); }
+.timeline-rail.ready { background: var(--ok); }
+.timeline-rail.warnings { background: var(--warn); }
+.timeline-rail.blocked { background: var(--bad); }
+.queue-list { display: grid; }
+.queue-empty { display: flex; align-items: center; gap: 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 24px; }
+.queue-empty .brand-svg { color: var(--ok); }
+.queue-empty h2 { margin-bottom: 4px; }
+.queue-empty p { margin-bottom: 12px; }
+.button-link { width: fit-content; }
+
+.settings-sections { display: grid; gap: 16px; }
+.settings-section { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: var(--surface); }
+.settings-section > div:first-child { grid-row: span 3; }
+.settings-section > div:first-child h2 { margin-bottom: 4px; }
+.settings-section > div:first-child p { margin: 0; color: var(--muted); font-size: 13px; }
+.settings-section dl { display: grid; margin: 0; }
+.settings-section dl > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--border); padding: 10px 0; font-size: 13px; }
+.settings-section dl > div:first-child { border-top: 0; padding-top: 0; }
+.settings-section dt { color: var(--muted); }
+.settings-section dd { margin: 0; }
+.settings-section > button { justify-self: start; }
+.local-form { display: flex; align-items: flex-end; gap: 10px; }
+.local-form label { display: grid; flex: 1; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
+.local-result { display: grid; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--bg-raised); font-size: 13px; }
+.local-result span { color: var(--muted); font-size: 12px; }
+
+/* ---------- Quick switcher ---------- */
+.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; background: rgba(5, 6, 9, .62); backdrop-filter: blur(4px); }
+.switcher-modal { display: grid; gap: 12px; width: min(620px, 100%); max-height: 76vh; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 16px; background: var(--surface); box-shadow: var(--shadow-pop); }
+.switcher-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
+.switcher-heading .eyebrow { display: none; }
+.command-row { display: flex; gap: 6px; flex-wrap: wrap; }
+.command-row button { min-height: 30px; border-color: var(--border-strong); padding: 4px 10px; color: var(--text-2); background: var(--surface-2); font-size: 12.5px; }
+.command-row button:hover:not(:disabled) { border-color: #435064; color: var(--text); background: var(--surface-3); }
+.switcher-search { position: relative; display: flex; align-items: center; }
+.switcher-search input { min-height: 42px; padding-right: 54px; font-size: 14px; }
+.switcher-search kbd { position: absolute; right: 10px; }
+.switcher-results { display: grid; gap: 2px; min-height: 0; overflow-y: auto; }
+.switcher-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 50px; border: 0; border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text); background: transparent; font-weight: 400; text-align: left; }
+.switcher-item:hover:not(:disabled) { color: var(--text); background: transparent; }
+.switcher-item.active, .switcher-item.active:hover:not(:disabled) { background: var(--surface-3); }
+.switcher-item > span:nth-child(2) { display: grid; min-width: 0; }
+.switcher-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
+.switcher-item small { color: var(--muted); font-size: 12px; }
+.switcher-footer { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 10px; color: var(--subtle); font-size: 12px; }
.switcher-footer span { display: inline-flex; align-items: center; gap: 4px; }
-.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
-
-@media (max-width: 1250px) {
- .app-header { grid-template-columns: auto 1fr; gap: 17px; }
- .global-nav { grid-column: 1 / -1; grid-row: 2; min-height: 38px; border-top: 1px solid rgba(49, 76, 104, .42); overflow-x: auto; }
- .global-nav a { min-height: 38px; }
- .header-actions { grid-column: 2; grid-row: 1; justify-content: end; }
- .app-header { padding-top: 4px; }
+/* ---------- Responsive ---------- */
+@media (max-width: 1360px) {
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
- .detail-header { grid-template-columns: minmax(250px, 1.4fr) minmax(250px, 1fr) auto; }
- .detail-actions { grid-column: 1 / -1; justify-content: start; }
- .detail-status { justify-items: start; }
- .detail-status small { text-align: left; }
- .filter-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
+ .filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
-
-@media (max-width: 900px) {
- .page-heading { align-items: start; flex-direction: column; }
- .page-heading-actions { justify-content: start; }
- .detail-header { grid-template-columns: 1fr 1fr; }
- .detail-identity { grid-column: 1 / -1; }
- .detail-meta { align-content: start; }
- .detail-status { align-self: start; }
- .detail-actions { grid-column: 1 / -1; }
- .overview-columns, .signals-columns { grid-template-columns: 1fr; }
- .advanced-info { grid-template-columns: 1fr; gap: 14px; }
- .info-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
- .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
- .settings-grid { grid-template-columns: 1fr; }
+@media (max-width: 1180px) {
+ .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
+ .dashboard-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
+ .attention-context { display: none; }
+ .attention-row { grid-template-columns: auto minmax(0, 1fr) auto; }
+ .workspace-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "identity" "actions"; }
+ .workspace-visual { display: none; }
+ .overview-intelligence, .overview-columns, .signals-columns, .comparison-grid { grid-template-columns: minmax(0, 1fr); }
+ .dependency-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+ .architecture-main { grid-template-columns: minmax(0, 1fr); }
+ .architecture-inspector { border-top: 1px solid var(--border); border-left: 0; }
}
-
-@media (max-width: 680px) {
- .app-header, .page-content, .global-banner { width: min(100% - 24px, 1600px); }
- .app-header { min-height: 60px; gap: 10px; }
- .brand-lockup small, .shortcut-button span { display: none; }
- .brand-lockup { gap: 6px; }
- .shortcut-button { padding: 7px; }
- .global-nav { gap: 0; }
- .global-nav a { padding: 0 9px; font-size: 11px; }
- .page-content { padding-top: 22px; }
- .page-heading { margin-bottom: 17px; }
- .page-heading-actions { width: 100%; }
- .page-heading-actions button { flex: 1; }
- .section-card { padding: 14px; }
+@media (max-width: 1100px) {
+ :root { --sidebar: 72px; }
+ .sidebar { align-items: center; padding: 16px 10px; }
+ .brand-lockup-copy > span, .nav-count, .sidebar-footer > span:last-child { display: none; }
+ .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
+ .global-nav a { justify-content: center; width: 44px; height: 40px; padding: 0; }
+ .sidebar-footer { justify-content: center; padding-inline: 0; }
+ .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+}
+@media (max-width: 760px) {
+ .app-shell { grid-template-columns: minmax(0, 1fr); }
+ .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 50; height: auto; flex-direction: row; gap: 0; border-top: 1px solid var(--border); border-right: 0; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); background: rgba(18, 21, 27, .96); backdrop-filter: blur(12px); }
+ .sidebar > .brand-home, .sidebar-footer { display: none; }
+ .global-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
+ .global-nav a { flex-direction: column; justify-content: center; gap: 2px; width: auto; height: 54px; padding: 0 2px; font-size: 10.5px; }
+ .nav-label { position: static; width: auto; height: auto; clip: auto; display: block; flex: 0 0 auto; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
+ .global-nav a.active { background: transparent; color: var(--accent-text); }
+ .app-main { padding-bottom: 72px; }
+ .app-header { gap: 8px; height: 52px; padding: 0 16px; }
+ .mobile-brand { display: flex; padding: 0; }
+ .shortcut-button { width: auto; flex: 1; }
+ .shortcut-button kbd, .sync-button span { display: none; }
+ .sync-button { width: 36px; padding: 0; }
+ .page-content { gap: 16px; padding: 18px 16px 32px; }
+ .global-banner { margin: 14px 16px 0; }
+ h1 { font-size: 21px; }
+ .panel, .section-card { padding: 14px; border-radius: var(--radius); }
+ .kpi-grid { gap: 10px; }
+ .kpi-card { min-height: 104px; padding: 13px 14px; }
+ .kpi-card strong { font-size: 26px; }
+ .attention-score small, .attention-copy small { display: none; }
+ .attention-row { min-height: 54px; gap: 11px; }
+ .atlas-band { grid-template-columns: minmax(0, 1fr); gap: 10px; }
+ .atlas-legend { display: none; }
+ .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
- .toolbar-footer, .pagination-bar { align-items: start; flex-direction: column; }
- .pagination-controls { width: 100%; flex-wrap: wrap; }
- .pagination-controls label { margin-right: auto; }
- .repository-table th, .repository-table td { padding-right: 12px; padding-left: 12px; }
- .detail-header { grid-template-columns: 1fr; gap: 13px; }
- .detail-identity, .detail-actions { grid-column: auto; }
- .detail-status { justify-items: start; }
- .detail-status small { text-align: left; }
- .detail-actions { justify-content: start; flex-wrap: wrap; }
- .detail-actions > button:first-child { flex: 1; }
- .info-grid { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
- .metric-grid, .insight-grid, .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
- .metric-grid article { padding: 11px; }
- .metric-grid strong { font-size: 21px; }
- .insight-card { padding: 12px; }
- .insight-card strong { font-size: 12px; }
- .score-grid, .comparison-grid { grid-template-columns: 1fr; }
- .section-heading { align-items: start; flex-direction: column; gap: 7px; }
- .section-note { max-width: none; text-align: left; }
- .finding-filters { grid-template-columns: 1fr; }
- .finding-summary { grid-template-columns: 64px minmax(0, 1fr) 14px; }
- .finding-summary .deduction { display: none; }
- .finding-details { padding: 11px; }
- .finding-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
- .hotspot-row { grid-template-columns: 31px minmax(0, 1fr); }
- .hotspot-metrics { grid-column: 2; grid-template-columns: repeat(4, auto); align-items: baseline; justify-content: start; gap: 8px; }
- .hotspot-metrics strong { font-size: 18px; }
- .architecture-summary { align-items: start; flex-direction: column; }
- .architecture-stats { width: 100%; grid-template-columns: repeat(3, 1fr); }
- .architecture-canvas { height: 520px; }
- .activity-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
- .row-chevron { display: none; }
- .queue-row { grid-template-columns: 1fr auto; }
- .queue-row > span:first-child { grid-column: 1 / -1; }
- .local-form { align-items: stretch; flex-direction: column; }
- .switcher-item { grid-template-columns: 22px minmax(0, 1fr); }
- .switcher-item > .status-label { display: none; }
+ .toolbar-footer .text-button { margin-left: 0; }
+ .catalog-loading { grid-template-columns: repeat(2, 1fr); }
+ .detail-tabs { top: 52px; margin: 0 -16px; padding: 0 16px; }
+ .workspace-hero { padding: 16px; }
+ .workspace-identity { flex-direction: column; gap: 12px; }
+ .workspace-score { justify-items: start; text-align: left; }
+ .metric-grid, .insight-grid, .summary-strip, .info-grid, .change-grid, .dependency-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .insight-grid { grid-template-columns: minmax(0, 1fr); }
+ .score-grid, .finding-filters, .finding-detail-grid, .delta-grid { grid-template-columns: minmax(0, 1fr); }
+ .settings-section { grid-template-columns: minmax(0, 1fr); }
+ .settings-section > div:first-child { grid-row: auto; }
+ .local-form { flex-direction: column; align-items: stretch; }
+ .architecture-stats { flex-wrap: wrap; }
+ .section-note { text-align: left; }
+ .section-heading, .panel-heading { flex-wrap: wrap; }
+ .queue-empty { flex-direction: column; align-items: flex-start; }
+ .pagination-bar { justify-content: center; }
+ .switcher-footer { display: none; }
+ .modal-backdrop { padding-top: 8vh; }
}
-@media (max-width: 430px) {
- .version-badge { display: none; }
- .filter-grid, .metric-grid, .insight-grid, .summary-strip { grid-template-columns: 1fr; }
- .page-heading-actions { flex-direction: column; }
- .page-heading-actions button { flex: initial; width: 100%; }
- .detail-tabs a { padding: 0 9px; font-size: 11px; }
- .info-grid { grid-template-columns: 1fr; }
- .detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
- .detail-status { grid-row: auto; }
- .finding-detail-grid { grid-template-columns: 1fr; }
-}
-
-/* v1.2 signal-topology system ------------------------------------------------ */
-:root {
- --canvas: #07111c;
- --canvas-raised: #0a1624;
- --surface: #0d1b2b;
- --surface-strong: #122237;
- --surface-hover: #172a42;
- --border: rgba(132, 160, 193, .16);
- --border-strong: rgba(144, 189, 218, .34);
- --text: #eff7ff;
- --text-muted: #91a5bb;
- --text-subtle: #6e8299;
- --accent: #75d1cc;
- --accent-bright: #b1f0df;
- --ready: #64d39b;
- --warning: #e9bb71;
- --blocked: #ed7188;
- --radius-sm: 9px;
- --radius: 14px;
- --radius-lg: 20px;
- --shadow: 0 20px 55px rgba(0, 0, 0, .18);
- --ease: cubic-bezier(.2, .8, .2, 1);
- --motion-fast: 130ms;
- --motion: 210ms;
- --motion-slow: 360ms;
- color: var(--text);
- background: var(--canvas);
-}
-
-html { background: var(--canvas); }
-body {
- background:
- linear-gradient(rgba(118, 171, 198, .025) 1px, transparent 1px),
- linear-gradient(90deg, rgba(118, 171, 198, .025) 1px, transparent 1px),
- radial-gradient(ellipse 70% 40% at 50% -10%, rgba(61, 132, 150, .16), transparent 72%),
- var(--canvas);
- background-size: 44px 44px, 44px 44px, auto, auto;
-}
-button, a, input, select, summary { transition-duration: var(--motion-fast); transition-timing-function: var(--ease); }
-button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { border-color: var(--accent); outline-color: rgba(117, 209, 204, .27); }
-button { border-color: var(--border-strong); border-radius: var(--radius-sm); background: #174052; }
-button:hover:not(:disabled) { border-color: var(--accent); background: #1a4a5d; }
-.app-header { width: min(100% - 56px, 1500px); min-height: 72px; border-bottom-color: var(--border); background: rgba(7, 17, 28, .82); }
-.brand-home { color: var(--text); }
-.brand-home:hover { color: var(--accent-bright); }
-.brand-lockup-copy { display: inline-flex; align-items: center; gap: 10px; }
-.brand-lockup-copy > span:last-child { display: grid; gap: 1px; }
-.brand-lockup-copy strong { display: block; font-size: 16px; letter-spacing: -.04em; }
-.brand-lockup-copy small { color: var(--text-subtle); font-size: 9px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
-.brand-svg { display: block; flex: 0 0 auto; color: var(--accent); filter: drop-shadow(0 4px 10px rgba(117, 209, 204, .17)); }
-.global-nav { gap: 12px; }
-.global-nav a { border-bottom-width: 1px; padding: 0 8px; color: var(--text-muted); }
-.global-nav a.active { border-bottom-color: var(--accent); color: var(--text); background: transparent; }
-.global-nav a:hover { color: var(--accent-bright); }
-.page-content { width: min(100% - 56px, 1500px); padding-top: 34px; }
-.eyebrow { color: var(--accent); font-weight: 720; }
-.muted { color: var(--text-muted); }
-.section-card { border-color: var(--border); border-radius: var(--radius); background: rgba(13, 27, 43, .86); box-shadow: var(--shadow); }
-.count-badge { border-color: var(--border-strong); color: var(--accent-bright); background: rgba(117, 209, 204, .08); }
-.brand-mark { display: none; }
-.header-actions { gap: 8px; }
-.shortcut-button, .icon-button { border-color: var(--border); background: rgba(14, 29, 45, .72); }
-.shortcut-button:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--surface-hover); }
-
-/* Dashboard: composed sections rather than metric-card soup. */
-.dashboard-page { display: grid; gap: 18px; }
-.dashboard-hero { position: relative; display: flex; align-items: end; justify-content: space-between; min-height: 190px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 34px; background: linear-gradient(120deg, rgba(18, 42, 58, .94), rgba(12, 24, 39, .91)); box-shadow: var(--shadow); }
-.dashboard-hero::after { position: absolute; inset: auto -10% -70% auto; width: 440px; height: 440px; border: 1px solid rgba(117, 209, 204, .16); border-radius: 50%; box-shadow: 0 0 0 50px rgba(117, 209, 204, .025), 0 0 0 100px rgba(117, 209, 204, .018); content: ''; pointer-events: none; }
-.dashboard-hero > div:first-child { position: relative; z-index: 1; }
-.dashboard-hero h1 { max-width: 700px; margin: 8px 0 10px; font-size: clamp(32px, 4vw, 52px); }
-.dashboard-hero h1 span { color: var(--accent-bright); }
-.dashboard-hero p { margin: 0; color: var(--text-muted); font-size: 14px; }
-.portfolio-signal { position: relative; z-index: 1; display: grid; justify-items: end; min-width: 230px; color: var(--accent); }
-.portfolio-signal svg { width: 210px; height: 100px; filter: drop-shadow(0 0 18px rgba(117, 209, 204, .18)); }
-.portfolio-signal strong { margin-top: -53px; color: var(--text); font-size: 26px; letter-spacing: -.05em; }
-.portfolio-signal span { color: var(--text-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
-.dashboard-health-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
-.health-strip-segment { display: grid; justify-items: start; min-height: 106px; border: 0; border-radius: 0; padding: 17px 20px; color: var(--text); background: rgba(12, 26, 41, .95); text-align: left; }
-.health-strip-segment:hover:not(:disabled) { transform: translateY(-1px); border: 0; background: var(--surface-hover); }
-.health-strip-segment span { color: var(--text-muted); font-size: 11px; }
-.health-strip-segment strong { margin: 5px 0 3px; font-size: 28px; letter-spacing: -.06em; }
-.health-strip-segment small { color: var(--text-subtle); font-size: 10px; }
-.health-strip-segment.ready strong { color: var(--ready); }
-.health-strip-segment.warnings strong { color: var(--warning); }
-.health-strip-segment.blocked strong { color: var(--blocked); }
-.health-strip-segment.all strong { color: var(--accent-bright); }
-.dashboard-layout { display: grid; grid-template-columns: minmax(330px, .92fr) minmax(0, 1.45fr); gap: 18px; }
-.dashboard-layout.lower { grid-template-columns: minmax(0, 1.45fr) minmax(330px, .92fr); }
-.dashboard-section { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: rgba(11, 24, 39, .76); }
-.dashboard-section h2 { margin: 5px 0 0; font-size: 20px; }
-.attention-list, .activity-rail { display: grid; gap: 2px; }
-.attention-row, .activity-rail-item { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 8px; padding: 9px 7px; color: var(--text); background: transparent; text-align: left; }
-.attention-row:hover:not(:disabled), .activity-rail-item:hover:not(:disabled) { border: 0; background: var(--surface-hover); }
-.attention-row strong, .activity-rail-item strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
-.attention-row small, .activity-rail-item small { display: block; margin-top: 3px; overflow: hidden; color: var(--text-subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
-.attention-row b, .activity-rail-item b { color: var(--text); font-size: 18px; letter-spacing: -.05em; }
-.repository-visual { position: relative; display: grid; width: 100%; aspect-ratio: 1.6; place-items: center; overflow: hidden; border: 1px solid rgba(155, 184, 214, .11); border-radius: 12px; color: #7999bc; background: radial-gradient(circle at 50% 50%, rgba(94, 144, 168, .14), transparent 65%), #0a1726; }
-.repository-visual.compact { width: 42px; aspect-ratio: 1; border-radius: 10px; }
-.repository-visual.ready { color: var(--ready); }
-.repository-visual.warnings { color: var(--warning); }
-.repository-visual.blocked { color: var(--blocked); }
-.repository-visual svg { width: 100%; height: 100%; overflow: visible; }
-.repository-visual:not(.compact):hover .visual-orbit { stroke-dashoffset: -18px; }
-.visual-orbit { transition: stroke-dashoffset var(--motion-slow) var(--ease); }
-.visual-node { transform-origin: center; transition: r var(--motion) var(--ease), opacity var(--motion) var(--ease); }
-.repository-visual:hover .visual-node.hot { opacity: 1; }
-.visual-scan-pulse { position: absolute; inset: 10%; border: 1px solid currentColor; border-radius: inherit; animation: repo-pulse 1.45s var(--ease) infinite; }
-@keyframes repo-pulse { 0% { opacity: .8; transform: scale(.72); } 100% { opacity: 0; transform: scale(1.06); } }
-.matrix-section { min-height: 294px; }
-.portfolio-matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); gap: 7px; min-height: 180px; align-content: center; padding: 13px 3px 9px; }
-.matrix-cell { display: grid; aspect-ratio: 1; min-width: 0; place-items: center; border: 1px solid transparent; border-radius: 7px; padding: 0; color: rgba(255, 255, 255, .85); background: #395b7a; font-size: 8px; font-weight: 700; transform: scale(var(--cell-scale)); }
-.matrix-cell span { overflow: hidden; max-width: 100%; text-overflow: clip; }
-.matrix-cell.ready { background: rgba(100, 211, 155, .78); }
-.matrix-cell.warnings { background: rgba(233, 187, 113, .78); }
-.matrix-cell.blocked { background: rgba(237, 113, 136, .8); }
-.matrix-cell:hover:not(:disabled), .matrix-cell:focus-visible { position: relative; z-index: 2; border-color: var(--text); background: var(--accent); color: #0a1726; transform: scale(1.17); }
-.matrix-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-subtle); font-size: 10px; }
-.matrix-legend span { display: inline-flex; align-items: center; gap: 5px; }
-.matrix-legend i { width: 7px; height: 7px; border-radius: 50%; }
-.matrix-legend .ready { background: var(--ready); }.matrix-legend .warnings { background: var(--warning); }.matrix-legend .blocked { background: var(--blocked); }
-.activity-rail-item { grid-template-columns: 11px minmax(0, 1fr) auto; padding-left: 0; }
-.status-orb { width: 7px; height: 7px; border-radius: 50%; background: var(--text-subtle); box-shadow: 0 0 0 4px rgba(134, 153, 174, .09); }
-.status-orb.ready { background: var(--ready); box-shadow: 0 0 0 4px rgba(100, 211, 155, .1); }.status-orb.warnings { background: var(--warning); }.status-orb.blocked { background: var(--blocked); }
-.pinned-grid { display: grid; gap: 3px; }
-.pinned-tile { display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 10px; border: 0; border-radius: 8px; padding: 9px 7px; background: transparent; text-align: left; }.pinned-tile:hover:not(:disabled) { border: 0; background: var(--surface-hover); }
-.pinned-tile strong, .pinned-tile small { display: block; }.pinned-tile strong { font-size: 12px; }.pinned-tile small { margin-top: 3px; color: var(--text-subtle); font-size: 10px; }
-.pin-empty { display: grid; gap: 8px; padding: 8px 0; color: var(--text-subtle); font-size: 11px; }
-
-/* Explorer uses two intentional, persistent modes. */
-.catalog-toolbar { border-color: var(--border); }
-.catalog-toolbar.section-card { padding: 15px; }
-.toolbar-footer { min-height: 29px; }
-.view-toggle { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: rgba(5, 13, 23, .46); }
-.view-toggle button { border: 0; border-radius: 0; padding: 6px 10px; color: var(--text-muted); background: transparent; font-size: 10px; }.view-toggle button:hover:not(:disabled) { border: 0; background: var(--surface-hover); }.view-toggle button.active { color: #06151d; background: var(--accent); }
-.repository-table { min-width: 820px; }.repository-table th { position: sticky; z-index: 2; top: 72px; border-bottom-color: var(--border); background: #0f1e30; }.repository-table td { border-bottom-color: rgba(132, 160, 193, .1); }.repository-table tbody tr { cursor: pointer; }.repository-table tbody tr:hover, .repository-table tbody tr:focus-within { background: rgba(117, 209, 204, .065); }.repository-table tbody tr:focus { outline: 2px solid rgba(117, 209, 204, .72); outline-offset: -2px; }.repo-link { color: var(--text); }.repo-link:hover:not(:disabled) { color: var(--accent-bright); }.catalog-table-card { border-color: var(--border); }.pagination-bar { border-top-color: var(--border); }
-.repository-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }.repository-tile { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 32px rgba(0, 0, 0, .09); }.repository-tile-main { display: grid; width: 100%; gap: 11px; border: 0; border-radius: 0; padding: 10px; color: var(--text); background: transparent; text-align: left; }.repository-tile-main:hover:not(:disabled) { border: 0; background: linear-gradient(140deg, rgba(117, 209, 204, .1), transparent 50%); }.repository-tile-main:hover .repository-visual { transform: translateY(-2px); border-color: var(--border-strong); }.repository-tile .repository-visual { transition: transform var(--motion) var(--ease), border-color var(--motion) var(--ease); }.tile-heading, .tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; }.tile-heading > span { min-width: 0; }.tile-heading strong, .tile-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.tile-heading strong { font-size: 13px; }.tile-heading small, .tile-meta > span:last-child { margin-top: 3px; color: var(--text-subtle); font-size: 10px; }.tile-heading b { color: var(--accent-bright); font-size: 20px; letter-spacing: -.06em; }.tile-pin { position: absolute; top: 14px; right: 14px; z-index: 2; width: 28px; height: 28px; border: 0; border-radius: 7px; padding: 0; color: var(--text-muted); background: rgba(5, 14, 24, .52); }.tile-pin:hover:not(:disabled) { border: 0; color: #ffe29a; background: rgba(5, 14, 24, .82); }.tile-pin.pinned { color: #f4cc75; }
-.catalog-loading, .workspace-loading { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.catalog-loading span, .workspace-loading span { display: block; min-height: 190px; border-radius: var(--radius); background: linear-gradient(100deg, rgba(126, 155, 184, .05) 15%, rgba(126, 155, 184, .14) 50%, rgba(126, 155, 184, .05) 85%); background-size: 200% 100%; animation: skeleton 1.3s linear infinite; }@keyframes skeleton { to { background-position: -200% 0; } }
-
-/* Workspace puts identity, health and true architecture-first visual evidence together. */
-.workspace-hero { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; align-items: center; gap: 25px; min-height: 176px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 21px 24px; background: linear-gradient(120deg, rgba(14, 33, 48, .94), rgba(12, 24, 39, .95)); box-shadow: var(--shadow); }.workspace-identity { min-width: 0; }.workspace-identity > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }.workspace-identity h1 { margin: 5px 0 6px; overflow: hidden; font-size: clamp(24px, 3vw, 36px); text-overflow: ellipsis; white-space: nowrap; }.workspace-identity p { max-width: 650px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }.workspace-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }.workspace-facts > span { border: 1px solid var(--border); border-radius: 6px; padding: 5px 7px; background: rgba(6, 17, 28, .31); font-size: 10px; }.workspace-score { display: grid; align-content: center; justify-items: end; min-width: 85px; }.workspace-score strong { color: var(--accent-bright); font-size: 42px; letter-spacing: -.09em; line-height: .85; }.workspace-score span { margin-top: 5px; color: var(--text-subtle); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }.workspace-score small { max-width: 100px; margin-top: 5px; overflow: hidden; color: var(--text-muted); font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }.workspace-visual { width: 180px; align-self: stretch; min-height: 132px; }.workspace-hero .detail-actions { flex-wrap: wrap; max-width: 144px; }.workspace-hero .detail-actions > button:first-child { flex: 1 0 100%; }.detail-tabs { margin-top: 16px; border-bottom-color: var(--border); }.detail-tabs a.active { border-bottom-color: var(--accent); color: var(--accent-bright); }
-.dependency-hero { overflow: hidden; background: linear-gradient(120deg, rgba(17, 43, 54, .76), rgba(12, 25, 39, .82)); }.dependency-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 18px -18px -18px; border-top: 1px solid var(--border); background: var(--border); }.dependency-metrics div { display: grid; gap: 4px; padding: 13px 17px; background: var(--surface); }.dependency-metrics strong { color: var(--accent-bright); font-size: 21px; }.dependency-metrics span { color: var(--text-subtle); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }.manifest-list { display: flex; flex-wrap: wrap; gap: 7px; }.manifest-list code { border: 1px solid var(--border); border-radius: 7px; padding: 7px 8px; background: rgba(4, 12, 20, .35); }.dependency-lock-heading { margin-top: 24px; }.scan-runs-workspace { min-height: 270px; }.run-readiness { color: var(--text-subtle); font-size: 10px; }.run-readiness.ready { color: var(--ready); }.run-readiness.warnings { color: var(--warning); }.run-readiness.blocked { color: var(--blocked); }
-
-/* Operational views. */
-.summary-strip > div { border-color: var(--border); border-radius: var(--radius-sm); background: rgba(13, 27, 43, .74); }.summary-strip strong { color: var(--accent-bright); }.activity-timeline { padding: 20px 24px; }.timeline-event { position: relative; display: grid; grid-template-columns: 14px 44px minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 8px; padding: 10px 7px; color: var(--text); background: transparent; text-align: left; }.timeline-event:hover:not(:disabled) { border: 0; background: var(--surface-hover); }.timeline-rail { width: 8px; height: 8px; border: 2px solid var(--canvas); border-radius: 50%; background: var(--text-subtle); box-shadow: 0 0 0 1px var(--border-strong); }.timeline-rail.ready { background: var(--ready); }.timeline-rail.warnings { background: var(--warning); }.timeline-rail.blocked { background: var(--blocked); }.timeline-event::before { position: absolute; top: 0; bottom: 0; left: 10px; width: 1px; background: var(--border); content: ''; }.timeline-event:first-of-type::before { top: 50%; }.timeline-event:last-of-type::before { bottom: 50%; }.timeline-event > * { position: relative; z-index: 1; }.timeline-event strong, .timeline-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.timeline-event strong { font-size: 12px; }.timeline-event small { margin-top: 3px; color: var(--text-subtle); font-size: 10px; }.timeline-event b { color: var(--accent-bright); font-size: 20px; }.queue-row { grid-template-columns: 45px minmax(0, 1fr) auto; border-color: var(--border); background: transparent; cursor: pointer; }.queue-row:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-hover); }.queue-empty { display: grid; grid-template-columns: 72px minmax(0, 550px); align-items: start; gap: 18px; min-height: 250px; padding: 32px 5px; }.queue-empty h2 { margin: 5px 0 7px; }.queue-empty .muted { margin-bottom: 17px; }
-
-/* Settings sections signal separation without form-card nesting. */
-.settings-sections { display: grid; gap: 13px; }.settings-section { display: grid; grid-template-columns: minmax(210px, .72fr) minmax(260px, 1fr) auto; gap: 24px; align-items: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 21px; background: rgba(13, 27, 43, .78); }.settings-section h2 { margin: 5px 0 7px; }.settings-section p { margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; }.settings-section dl { display: grid; gap: 8px; margin: 0; }.settings-section dl > div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding: 7px 0; }.settings-section dt { color: var(--text-subtle); font-size: 10px; }.settings-section dd { margin: 0; color: var(--text); font-size: 11px; text-align: right; }.settings-section .local-form { margin: 0; grid-column: 2 / -1; }.settings-section .local-result { grid-column: 2 / -1; }.settings-section.appearance { grid-template-columns: minmax(210px, .72fr) minmax(260px, 1fr); }.settings-section.appearance dl { grid-column: 2; }
-.command-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 15px 11px; }.command-row button { border-color: var(--border); padding: 6px 8px; color: var(--text-muted); background: rgba(7, 18, 29, .52); font-size: 10px; }.command-row button:hover:not(:disabled) { color: var(--accent-bright); background: var(--surface-hover); }.switcher-item { grid-template-columns: 38px minmax(0, 1fr) auto; }.switcher-item .repository-visual { width: 32px; }.switcher-modal { border-color: var(--border-strong); border-radius: var(--radius); background: #0d1b2b; }.switcher-item:hover:not(:disabled), .switcher-item.active { border-color: rgba(117, 209, 204, .36); background: rgba(117, 209, 204, .1); }
-
@media (prefers-reduced-motion: reduce) {
- *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
+ *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
-@media (max-width: 1180px) { .dashboard-layout, .dashboard-layout.lower { grid-template-columns: 1fr; }.repository-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.workspace-hero { grid-template-columns: minmax(0, 1fr) 160px; }.workspace-hero .detail-actions { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }.workspace-hero .detail-actions > button:first-child { flex: 0 0 auto; }.settings-section { grid-template-columns: minmax(210px, .7fr) minmax(240px, 1fr); }.settings-section > button { grid-column: 2; justify-self: start; } }
-@media (max-width: 760px) { .app-header, .page-content, .global-banner { width: min(100% - 28px, 1500px); }.app-header { grid-template-columns: auto 1fr; }.brand-lockup-copy small { display: none; }.global-nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -2px; scrollbar-width: none; -ms-overflow-style: none; }.global-nav::-webkit-scrollbar { display: none; }.header-actions { justify-content: end; }.dashboard-hero { min-height: 180px; padding: 24px; }.dashboard-hero::after, .portfolio-signal { display: none; }.dashboard-health-strip { grid-template-columns: repeat(2, 1fr); }.dashboard-layout { gap: 13px; }.repository-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.workspace-hero { grid-template-columns: 1fr; gap: 14px; }.workspace-identity > div:first-child { display: block; }.workspace-score { justify-items: start; }.workspace-score small { text-align: left; }.workspace-visual { width: 100%; max-width: 250px; min-height: 150px; }.dependency-metrics { grid-template-columns: repeat(2, 1fr); }.settings-section, .settings-section.appearance { grid-template-columns: 1fr; gap: 14px; }.settings-section dl, .settings-section > button, .settings-section .local-form, .settings-section .local-result, .settings-section.appearance dl { grid-column: auto; }.timeline-event { grid-template-columns: 14px 40px minmax(0, 1fr) auto; }.queue-empty { grid-template-columns: 1fr; gap: 10px; }.queue-empty .brand-svg { display: none; } }
-@media (max-width: 470px) { .page-content { padding-top: 23px; }.dashboard-hero { padding: 20px; }.dashboard-hero h1 { font-size: 31px; }.health-strip-segment { min-height: 87px; padding: 14px; }.health-strip-segment strong { font-size: 24px; }.repository-grid { grid-template-columns: 1fr; }.portfolio-matrix { grid-template-columns: repeat(8, 1fr); }.matrix-cell { font-size: 7px; }.toolbar-footer { align-items: flex-start; flex-wrap: wrap; }.view-toggle { order: -1; }.workspace-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.workspace-facts > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.timeline-event { grid-template-columns: 12px 35px minmax(0, 1fr); }.timeline-event b { display: none; }.dependency-metrics { grid-template-columns: 1fr 1fr; }.settings-section { padding: 17px; } }
-/* v1.3 portfolio command deck ------------------------------------------------ */
-.cockpit-page { gap: 15px; }
+/* ---------- Refinement layer: icons, gauges and motion ---------- */
+body { background:
+ radial-gradient(900px 420px at 78% -180px, rgba(129, 144, 255, .11), transparent 70%),
+ radial-gradient(700px 360px at 10% -220px, rgba(62, 207, 142, .05), transparent 70%),
+ var(--bg); background-attachment: fixed; }
+.app-header { background: rgba(14, 16, 21, .72); }
+.sidebar { background: linear-gradient(180deg, rgba(129, 144, 255, .035), transparent 240px), var(--bg-raised); }
-.dashboard-readiness-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--border); }.readiness-rail-segment { display: grid; justify-items: start; min-height: 92px; border: 0; border-radius: 0; padding: 14px 19px; color: var(--text); background: rgba(11, 25, 40, .91); text-align: left; }.readiness-rail-segment:hover:not(:disabled) { border: 0; background: linear-gradient(135deg, rgba(117, 209, 204, .16), rgba(19, 42, 61, .9)); }.readiness-rail-segment > span { color: var(--text-subtle); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }.readiness-rail-segment strong { margin: 3px 0; font-size: 27px; letter-spacing: -.07em; }.readiness-rail-segment small { color: var(--text-muted); font-size: 10px; }.readiness-rail-segment small b { margin-left: 5px; color: var(--accent); font-size: 14px; }.readiness-rail-segment.blocked strong { color: var(--blocked); }.readiness-rail-segment.warnings strong { color: var(--warning); }.readiness-rail-segment.ready strong { color: var(--ready); }.readiness-rail-segment.all strong { color: var(--accent-bright); }
-.cockpit-focus-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); gap: 15px; }.dashboard-section { border-color: rgba(132, 160, 193, .18); background: linear-gradient(135deg, rgba(13, 29, 46, .9), rgba(10, 22, 37, .82)); }.attention-section { padding: 19px; }.attention-list { gap: 3px; }.attention-row { grid-template-columns: 25px 49px minmax(0, 1fr) auto; gap: 10px; min-height: 58px; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; }.attention-row:hover:not(:disabled), .attention-row:focus-visible { border-color: rgba(117, 209, 204, .36); background: rgba(117, 209, 204, .065); }.attention-rank { color: var(--text-subtle); font-size: 9px; font-weight: 750; letter-spacing: .08em; }.attention-row .repository-visual.compact { width: 46px; height: 46px; }.attention-copy { min-width: 0; }.attention-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.attention-copy small { overflow: hidden; color: var(--text-muted); font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }.attention-copy em { display: block; margin-top: 3px; color: var(--text-subtle); font-size: 9px; font-style: normal; }.attention-row b { color: var(--blocked); font-size: 22px; }.next-move { position: relative; display: grid; align-content: start; overflow: hidden; padding: 21px; background: linear-gradient(145deg, rgba(18, 47, 59, .88), rgba(9, 22, 38, .96)); }.next-move::after { position: absolute; right: -45px; bottom: -75px; width: 190px; height: 190px; border: 1px solid rgba(117, 209, 204, .15); border-radius: 50%; box-shadow: 0 0 0 28px rgba(117, 209, 204, .025), 0 0 0 58px rgba(117, 209, 204, .018); content: ''; pointer-events: none; }.next-move > * { position: relative; z-index: 1; }.next-move h2 { margin: 6px 0 14px; overflow: hidden; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }.next-move-action { display: grid; grid-template-columns: 122px minmax(0, 1fr); align-items: center; gap: 13px; width: 100%; border: 1px solid rgba(117, 209, 204, .18); padding: 10px; color: var(--text); background: rgba(5, 17, 29, .38); text-align: left; }.next-move-action:hover:not(:disabled) { border-color: var(--accent); background: rgba(10, 35, 49, .76); }.next-move-action .repository-visual { min-height: 94px; }.next-move-action span { min-width: 0; }.next-move-action strong, .next-move-action small, .next-move-action b { display: block; }.next-move-action strong { color: var(--accent-bright); font-size: 24px; letter-spacing: -.07em; }.next-move-action small { margin-top: 5px; color: var(--text-muted); font-size: 10px; line-height: 1.45; }.next-move-action b { margin-top: 11px; color: var(--accent); font-size: 10px; }
-.portfolio-atlas { padding: 20px; }.atlas-heading { align-items: end; }.atlas-field { position: relative; overflow: hidden; border: 1px solid rgba(132, 160, 193, .14); border-radius: 13px; background: radial-gradient(ellipse at 70% 0, rgba(77, 166, 175, .1), transparent 45%), rgba(5, 16, 27, .52); }.atlas-contours { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }.atlas-contours path { fill: none; stroke: rgba(117, 209, 204, .12); stroke-width: 1; }.atlas-contours path:nth-child(2) { stroke: rgba(233, 187, 113, .1); stroke-dasharray: 4 6; }.atlas-contours path:nth-child(3) { stroke: rgba(237, 113, 136, .12); }.atlas-bands { position: relative; z-index: 1; display: grid; gap: 1px; background: rgba(135, 174, 200, .1); }.atlas-band { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 96px; background: rgba(8, 21, 35, .84); }.atlas-band > header { display: grid; align-content: center; gap: 3px; padding: 14px 17px; border-right: 1px solid rgba(135, 174, 200, .1); background: linear-gradient(90deg, rgba(16, 34, 51, .74), transparent); }.atlas-band > header span { color: var(--text-subtle); font-size: 9px; font-weight: 720; letter-spacing: .06em; text-transform: uppercase; }.atlas-band > header strong { color: var(--text); font-size: 28px; letter-spacing: -.07em; }.atlas-band > header small { color: var(--text-muted); font-size: 9px; line-height: 1.25; }.atlas-band.blocked > header strong { color: var(--blocked); }.atlas-band.warnings > header strong { color: var(--warning); }.atlas-band.ready > header strong { color: var(--ready); }.atlas-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(57px, 1fr)); align-content: center; gap: 6px; margin: 0; padding: 10px; list-style: none; }.atlas-repository { position: relative; display: grid; align-content: space-between; width: 100%; min-width: 0; height: 58px; overflow: hidden; border: 1px solid rgba(149, 184, 207, .16); border-radius: 8px; padding: 7px; color: var(--text); background: linear-gradient(145deg, rgba(29, 55, 75, .8), rgba(13, 29, 45, .82)); text-align: left; }.atlas-repository::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.07), transparent 55%); content: ''; pointer-events: none; }.atlas-repository:hover:not(:disabled), .atlas-repository:focus-visible { z-index: 2; border-color: var(--accent); background: linear-gradient(145deg, rgba(46, 96, 110, .94), rgba(13, 40, 53, .98)); box-shadow: 0 0 0 3px rgba(117, 209, 204, .12), 0 10px 20px rgba(0, 0, 0, .24); transform: translateY(-2px); }.atlas-repository-name, .atlas-repository-health { position: relative; z-index: 1; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }.atlas-repository-name { color: rgba(244, 250, 255, .84); font-size: 9px; font-weight: 770; letter-spacing: .04em; }.atlas-repository-health { align-self: end; color: var(--text-muted); font-size: 11px; font-weight: 700; }.atlas-repository > i { position: absolute; z-index: 1; bottom: 5px; left: 7px; width: var(--signal-strength); max-width: calc(100% - 14px); height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px rgba(117, 209, 204, .45); }.atlas-band.blocked .atlas-repository > i { background: var(--blocked); box-shadow: 0 0 8px rgba(237, 113, 136, .42); }.atlas-band.warnings .atlas-repository > i { background: var(--warning); box-shadow: 0 0 8px rgba(233, 187, 113, .38); }.atlas-band.ready .atlas-repository > i { background: var(--ready); box-shadow: 0 0 8px rgba(100, 211, 155, .38); }.atlas-repository.stale { border-style: dashed; }.atlas-repository.scanning::after { position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 5px; content: ''; animation: atlas-scan 1.35s var(--ease) infinite; }.atlas-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 11px 1px 0; color: var(--text-subtle); font-size: 9px; }.atlas-legend span { display: inline-flex; align-items: center; gap: 5px; }.atlas-legend i { width: 14px; height: 2px; border-radius: 2px; background: var(--accent); }.atlas-legend .blocked { background: var(--blocked); }.atlas-legend .stale { height: 6px; border: 1px dashed var(--text-subtle); background: transparent; }.atlas-legend .scanning { width: 7px; height: 7px; border: 1px solid var(--accent); border-radius: 50%; background: transparent; }.portfolio-atlas[data-density='dense'] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }.portfolio-atlas[data-density='dense'] .atlas-repository { height: 45px; padding: 5px; }.portfolio-atlas[data-density='dense'] .atlas-repository-name { font-size: 8px; }.portfolio-atlas[data-density='compact'] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(28px, 1fr)); gap: 3px; }.portfolio-atlas[data-density='compact'] .atlas-repository { height: 31px; padding: 4px; border-radius: 5px; }.portfolio-atlas[data-density='compact'] .atlas-repository-name { font-size: 7px; }.portfolio-atlas[data-density='compact'] .atlas-repository-health { display: none; }.portfolio-atlas[data-density='compact'] .atlas-repository > i { bottom: 3px; left: 4px; max-width: calc(100% - 8px); }
-.dashboard-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .85fr); gap: 15px; }.dashboard-bottom-grid .dashboard-section { padding: 18px; }.activity-rail-item { border-radius: 8px; }.pinned-tile { grid-template-columns: 46px minmax(0, 1fr) auto; }.pinned-tile b { color: var(--accent); }.repository-visual { border-color: rgba(140, 187, 207, .15); color: #8aaac7; background: radial-gradient(ellipse at 70% 20%, rgba(93, 159, 181, .18), transparent 58%), #091827; }.repository-visual.state-ready { color: var(--ready); }.repository-visual.state-warnings { color: var(--warning); }.repository-visual.state-blocked { color: var(--blocked); }.repository-visual svg { overflow: hidden; }.visual-wash { opacity: .75; }.visual-link { transition: stroke-opacity var(--motion) var(--ease); }.visual-contour { transform-origin: center; }.repository-visual:not(.compact):hover .contour-one { animation: visual-drift 2.8s var(--ease) infinite alternate; }.repository-visual:not(.compact):hover .visual-link { stroke-opacity: .95; }.visual-node { transform-origin: center; transition: opacity var(--motion) var(--ease); }.visual-node.hot { animation: visual-node-breathe 2.7s var(--ease) infinite; }.visual-caption { position: absolute; top: 9px; left: 10px; display: flex; gap: 5px; align-items: center; }.visual-caption i { border: 1px solid currentColor; border-radius: 99px; padding: 2px 4px; color: currentColor; font-size: 7px; font-style: normal; font-weight: 760; letter-spacing: .09em; }.visual-caption b { color: rgba(238, 247, 255, .76); font-size: 8px; font-weight: 650; }.repository-visual.compact .visual-health-line, .repository-visual.compact .visual-contour { opacity: .65; }.workspace-visual { min-height: 132px; }.workspace-visual .visual-caption { top: 11px; left: 12px; }.workspace-visual .visual-caption b { font-size: 9px; }.repository-tile .repository-visual { min-height: 124px; }.repository-tile-main:hover .repository-visual { box-shadow: 0 14px 24px rgba(0, 0, 0, .18); }
-@keyframes atlas-scan { 0% { opacity: .8; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.06); } } @keyframes visual-drift { to { transform: translateX(4px); } } @keyframes visual-node-breathe { 50% { opacity: .7; } }
-@media (max-width: 1180px) { .cockpit-focus-grid, .dashboard-bottom-grid { grid-template-columns: 1fr; }.next-move { min-height: 180px; }.atlas-band { grid-template-columns: 158px minmax(0, 1fr); } }
-@media (max-width: 760px) { .dashboard-readiness-rail { grid-template-columns: repeat(2, 1fr); }.readiness-rail-segment { min-height: 78px; padding: 12px; }.readiness-rail-segment strong { font-size: 23px; }.cockpit-focus-grid { gap: 12px; }.attention-section, .next-move, .portfolio-atlas, .dashboard-bottom-grid .dashboard-section { padding: 15px; }.next-move-action { grid-template-columns: 105px minmax(0, 1fr); }.atlas-band { grid-template-columns: 1fr; }.atlas-band > header { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 9px; border-right: 0; border-bottom: 1px solid rgba(135, 174, 200, .1); padding: 11px 13px; }.atlas-band > header strong { grid-row: 1 / 3; grid-column: 2; align-self: center; }.atlas-band > header small { grid-column: 1; }.atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(49px, 1fr)); padding: 8px; }.atlas-legend { gap: 8px; }.dashboard-bottom-grid { gap: 12px; }.workspace-visual { max-width: none; } }
-@media (max-width: 470px) { .attention-row { grid-template-columns: 20px 42px minmax(0, 1fr) auto; gap: 7px; padding: 7px 3px; }.attention-row .repository-visual.compact { width: 40px; height: 40px; }.attention-copy small { white-space: normal; }.attention-copy em { display: none; }.next-move-action { grid-template-columns: 88px minmax(0, 1fr); }.next-move-action .repository-visual { min-height: 76px; }.atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; }.atlas-repository { height: 48px; padding: 5px; }.atlas-repository-name { font-size: 8px; }.atlas-legend { display: grid; }.portfolio-atlas[data-density='compact'] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(23px, 1fr)); } }
-@media (prefers-reduced-motion: reduce) { .atlas-repository, .visual-link, .visual-node, .repository-visual, .next-move-action { transition: none !important; }.atlas-repository.scanning::after, .repository-visual:not(.compact):hover .contour-one, .visual-node.hot { animation: none !important; }.atlas-repository:hover:not(:disabled), .atlas-repository:focus-visible { transform: none; } }
+.panel, .section-card, .kpi-card, .metric-grid article, .summary-strip > div, .insight-card, .settings-section, .workspace-hero, .repository-tile {
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1px 2px rgba(0, 0, 0, .2);
+}
-/* v1.4 remediation cockpit: decision provenance, layered surfaces and quiet technical motion. */
-.cockpit-page { gap: 18px; }
-.dashboard-readiness-rail { gap: 6px; overflow: visible; border: 0; border-radius: 0; background: transparent; }.readiness-rail-segment { position: relative; overflow: hidden; min-height: 99px; border: 1px solid rgba(132, 160, 193, .16); border-radius: 15px; background: linear-gradient(145deg, rgba(16, 35, 52, .88), rgba(8, 20, 34, .88)); box-shadow: inset 0 1px rgba(255,255,255,.025); }.readiness-rail-segment::after { position: absolute; right: 12px; bottom: 11px; width: 30px; height: 1px; background: currentColor; content: ''; opacity: .34; transform: rotate(-38deg); transform-origin: right; }.readiness-rail-segment:hover:not(:disabled) { border-color: rgba(117, 209, 204, .42); border-radius: 15px; box-shadow: 0 13px 24px rgba(0, 0, 0, .18); transform: translateY(-2px); }.readiness-rail-segment.blocked { color: var(--blocked); }.readiness-rail-segment.warnings { color: var(--warning); }.readiness-rail-segment.ready { color: var(--ready); }.readiness-rail-segment.all { color: var(--accent); }.readiness-rail-segment > span, .readiness-rail-segment small { color: var(--text-subtle); }.readiness-rail-segment strong { color: currentColor !important; }
-.cockpit-focus-grid { align-items: stretch; gap: 18px; }.dashboard-section { border-radius: 18px; box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 15px 35px rgba(0, 0, 0, .1); }.attention-section { position: relative; overflow: hidden; padding: 22px; background: linear-gradient(145deg, rgba(15, 34, 52, .94), rgba(8, 20, 33, .91)); }.attention-section::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(var(--blocked), rgba(237, 113, 136, 0)); content: ''; opacity: .78; }.attention-list { gap: 5px; margin-top: 7px; }.attention-row { position: relative; grid-template-columns: 26px 52px minmax(0, 1fr) auto; min-height: 66px; overflow: hidden; border-color: rgba(132, 160, 193, .07); padding: 8px 10px; background: linear-gradient(90deg, rgba(7, 18, 30, .44), transparent); }.attention-row::before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 99px; background: var(--blocked); content: ''; opacity: .55; }.attention-row:hover:not(:disabled), .attention-row:focus-visible { border-color: rgba(117, 209, 204, .34); background: linear-gradient(90deg, rgba(117, 209, 204, .1), rgba(24, 52, 65, .12)); }.attention-copy { display: grid; align-content: center; gap: 3px; }.attention-copy small { line-height: 1.35; }.attention-context { display: flex; align-items: center; gap: 7px; min-width: 0; }.attention-context i, .next-move-context i { max-width: 116px; overflow: hidden; border: 1px solid rgba(117, 209, 204, .2); border-radius: 999px; padding: 2px 5px; color: var(--accent-bright); background: rgba(117, 209, 204, .07); font-size: 8px; font-style: normal; font-weight: 720; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }.attention-context em { overflow: hidden; margin: 0; color: var(--text-subtle); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.attention-score { display: grid; justify-items: end; align-content: center; gap: 3px; }.attention-score b { color: var(--blocked); font-size: 23px; }.attention-score small { color: var(--text-subtle); font-size: 8px; white-space: nowrap; }
-.next-move { border-color: rgba(117, 209, 204, .25); background: radial-gradient(ellipse at 84% 8%, rgba(77, 185, 178, .22), transparent 44%), linear-gradient(150deg, rgba(18, 52, 64, .96), rgba(8, 19, 33, .98)); }.next-move::before { position: absolute; top: 0; right: 0; width: 52%; height: 1px; background: linear-gradient(90deg, transparent, rgba(117, 209, 204, .72)); content: ''; }.next-move-action { border-radius: 13px; background: linear-gradient(125deg, rgba(5, 19, 30, .6), rgba(23, 50, 62, .35)); box-shadow: inset 0 1px rgba(255,255,255,.035); }.next-move-action:hover:not(:disabled) { box-shadow: 0 17px 28px rgba(0, 0, 0, .2), inset 0 1px rgba(255,255,255,.05); }.next-move-context { display: grid; gap: 5px; margin-top: 10px; color: var(--text-muted); font-size: 9px; font-style: normal; line-height: 1.4; }.next-move-context i { width: fit-content; }
-.portfolio-atlas { padding: 22px; background: linear-gradient(145deg, rgba(13, 31, 48, .92), rgba(7, 18, 30, .9)); }.atlas-field { border-radius: 19px; background: radial-gradient(ellipse at 78% 0, rgba(77, 166, 175, .17), transparent 47%), radial-gradient(ellipse at 12% 100%, rgba(105, 80, 140, .09), transparent 49%), rgba(4, 15, 26, .74); }.atlas-bands { gap: 10px; padding: 10px; background: transparent; }.atlas-band { grid-template-columns: 196px minmax(0, 1fr); min-height: 104px; overflow: hidden; border: 1px solid rgba(144, 184, 207, .12); border-radius: 14px; background: linear-gradient(90deg, rgba(13, 34, 50, .92), rgba(5, 17, 29, .62)); }.atlas-band > header { position: relative; gap: 4px; overflow: hidden; border-right: 1px solid rgba(135, 174, 200, .1); padding: 16px 17px 15px 21px; background: linear-gradient(100deg, rgba(20, 49, 66, .92), rgba(12, 29, 43, .22)); }.atlas-lane-beacon { position: absolute; top: 16px; left: 10px; width: 3px; height: 32px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 17px currentColor; }.atlas-band.blocked .atlas-lane-beacon { color: var(--blocked); background: var(--blocked); }.atlas-band.warnings .atlas-lane-beacon { color: var(--warning); background: var(--warning); }.atlas-band.ready .atlas-lane-beacon { color: var(--ready); background: var(--ready); }.atlas-band > header strong { font-size: 31px; }.atlas-river { position: relative; min-width: 0; overflow: hidden; }.atlas-river::before { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: linear-gradient(90deg, rgba(117, 209, 204, .04), rgba(117, 209, 204, .25), rgba(117, 209, 204, .03)); content: ''; }.atlas-tiles { position: relative; grid-template-columns: repeat(auto-fill, minmax(61px, 1fr)); gap: 8px; padding: 13px 14px; }.atlas-repository { height: 62px; border-radius: 12px; background: linear-gradient(150deg, rgba(35, 69, 87, .86), rgba(10, 26, 42, .92)); box-shadow: inset 0 1px rgba(255,255,255,.045), 0 7px 12px rgba(0,0,0,.12); transform: translateY(calc((var(--signal-phase) - 3) * 1px)); transition: transform var(--motion) var(--ease), border-color var(--motion) var(--ease), background var(--motion) var(--ease), box-shadow var(--motion) var(--ease); }.atlas-repository::before { background: linear-gradient(135deg, rgba(255,255,255,.11), transparent 46%); }.atlas-repository-orbit { position: absolute; top: 8px; right: 7px; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; opacity: .18; }.atlas-repository-orbit::after { position: absolute; top: 2px; right: -2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; content: ''; }.atlas-repository:hover:not(:disabled), .atlas-repository:focus-visible { border-color: currentColor; box-shadow: 0 0 0 3px rgba(117, 209, 204, .11), 0 16px 24px rgba(0, 0, 0, .28); transform: translateY(-4px) scale(1.035); }.atlas-repository-name { padding-right: 12px; font-size: 9px; }.atlas-repository > i { height: 3px; }.portfolio-atlas[data-density='dense'] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(47px, 1fr)); gap: 5px; padding: 10px; }.portfolio-atlas[data-density='dense'] .atlas-repository { height: 49px; border-radius: 9px; }.portfolio-atlas[data-density='compact'] .atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 3px; padding: 8px; }.portfolio-atlas[data-density='compact'] .atlas-repository { height: 33px; border-radius: 6px; transform: none; }.portfolio-atlas[data-density='compact'] .atlas-repository-orbit { display: none; }
-.repository-visual { border-radius: 14px; background: radial-gradient(ellipse at 78% 18%, rgba(105, 193, 187, .18), transparent 54%), linear-gradient(140deg, #0b2031, #081624); box-shadow: inset 0 1px rgba(255, 255, 255, .045); }.visual-gridline { stroke-dasharray: 2 5; }.visual-orbit { transform-origin: center; }.visual-core-beacon { filter: drop-shadow(0 0 5px currentColor); }.repository-visual:not(.compact):hover .orbit-one { animation: visual-orbit-spin 8s linear infinite; }.repository-visual:not(.compact):hover .orbit-two { animation: visual-orbit-spin 12s linear infinite reverse; }.workspace-hero { position: relative; isolation: isolate; border-color: rgba(132, 184, 207, .22); border-radius: 22px; background: radial-gradient(ellipse at 72% 15%, rgba(84, 177, 174, .17), transparent 39%), linear-gradient(120deg, rgba(16, 40, 56, .97), rgba(10, 23, 38, .97)); box-shadow: 0 24px 54px rgba(0,0,0,.18); }.workspace-hero::before { position: absolute; z-index: 0; top: -65px; right: 130px; width: 230px; height: 230px; border: 1px solid rgba(117, 209, 204, .1); border-radius: 50%; box-shadow: 0 0 0 28px rgba(117, 209, 204, .02); content: ''; }.workspace-hero > * { position: relative; z-index: 1; }.workspace-score { min-width: 100px; padding: 12px 0; border-right: 1px solid rgba(132, 184, 207, .13); }.workspace-score strong { text-shadow: 0 0 20px rgba(117, 209, 204, .25); }.workspace-visual { border-color: rgba(117, 209, 204, .26); box-shadow: 0 16px 30px rgba(0,0,0,.2); }.repository-tile { border-radius: 16px; background: linear-gradient(145deg, rgba(17, 37, 55, .92), rgba(8, 19, 32, .9)); }.repository-tile-main:hover:not(:disabled) { background: radial-gradient(ellipse at 80% 10%, rgba(117,209,204,.12), transparent 50%); }
-@keyframes visual-orbit-spin { to { transform: rotate(360deg); } }
-@media (max-width: 1180px) { .atlas-band { grid-template-columns: 168px minmax(0, 1fr); } }
-@media (max-width: 760px) { .dashboard-readiness-rail { gap: 7px; }.readiness-rail-segment:hover:not(:disabled) { transform: none; }.attention-section { padding: 17px; }.attention-row { grid-template-columns: 20px 44px minmax(0, 1fr) auto; min-height: 62px; gap: 8px; }.attention-score small { display: none; }.attention-context em { font-size: 8px; }.atlas-bands { gap: 7px; padding: 7px; }.atlas-band { grid-template-columns: 1fr; }.atlas-band > header { padding: 12px 14px 12px 19px; }.atlas-lane-beacon { top: 14px; left: 9px; height: 25px; }.atlas-tiles { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 5px; padding: 10px; }.atlas-repository { height: 50px; border-radius: 9px; transform: none; }.workspace-score { border-right: 0; border-bottom: 1px solid rgba(132, 184, 207, .13); }.workspace-hero::before { right: -45px; }.next-move-context { font-size: 8px; } }
-@media (prefers-reduced-motion: reduce) { .readiness-rail-segment, .atlas-repository { transition: none !important; }.repository-visual:not(.compact):hover .orbit-one, .repository-visual:not(.compact):hover .orbit-two { animation: none !important; }.atlas-repository:hover:not(:disabled), .atlas-repository:focus-visible { transform: none; } }
+/* Primary actions */
+.page-heading-actions > button:not(.ghost), .detail-actions > button:first-child, .local-form button, .empty-state > button {
+ border-color: transparent;
+ background: linear-gradient(180deg, #8492ff, var(--accent-strong));
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .3), 0 0 0 1px rgba(101, 116, 245, .4);
+}
+.page-heading-actions > button:not(.ghost):hover:not(:disabled), .detail-actions > button:first-child:hover:not(:disabled), .local-form button:hover:not(:disabled), .empty-state > button:hover:not(:disabled) {
+ border-color: transparent;
+ background: linear-gradient(180deg, #96a2ff, #7383ff);
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 18px rgba(101, 116, 245, .35), 0 0 0 1px rgba(129, 144, 255, .5);
+}
-.overview-intelligence { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: 14px; }.change-brief > .muted { margin: 14px 0 2px; font-size: 11px; }.change-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px -18px -18px; border-top: 1px solid var(--border); background: var(--border); }.change-grid span { display: grid; gap: 4px; padding: 12px; color: var(--text-subtle); background: rgba(7, 17, 28, .28); font-size: 9px; text-transform: uppercase; }.change-grid b { color: var(--accent-bright); font-size: 17px; letter-spacing: -.04em; text-transform: none; }.top-findings-list { display: grid; gap: 2px; }.top-findings-list > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-radius: 7px; padding: 7px 4px; }.top-findings-list > div:hover { background: rgba(117, 209, 204, .055); }.top-findings-list strong, .top-findings-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.top-findings-list strong { color: var(--text); font-size: 11px; }.top-findings-list small { margin-top: 2px; color: var(--text-subtle); font-size: 9px; }.top-findings-list b { color: var(--blocked); font-size: 11px; }
-.architecture-workspace { padding: 0; overflow: hidden; }.architecture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding: 12px 15px; color: var(--text-subtle); font-size: 10px; }.architecture-toolbar label { width: min(360px, 100%); }.architecture-toolbar input { min-height: 35px; }.architecture-main { display: grid; grid-template-columns: minmax(0, 1fr) 230px; min-height: 590px; }.architecture-workspace .architecture-canvas { height: auto; min-height: 590px; border: 0; border-radius: 0; }.architecture-inspector { border-left: 1px solid var(--border); padding: 17px; background: rgba(5, 14, 24, .35); }.architecture-inspector h3 { margin: 6px 0; color: var(--text); font-size: 15px; }.architecture-inspector > code { display: block; margin-bottom: 16px; overflow-wrap: anywhere; color: var(--accent-bright); font-size: 10px; }.architecture-inspector p { color: var(--text-muted); font-size: 11px; line-height: 1.5; }.architecture-inspector dl { display: grid; gap: 8px; margin: 0; }.architecture-inspector dl > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 7px; }.architecture-inspector dt { color: var(--text-subtle); font-size: 10px; }.architecture-inspector dd { margin: 0; color: var(--text); font-size: 11px; }.react-flow__node.arch-selected { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(117, 209, 204, .14), 0 10px 28px rgba(0, 0, 0, .3) !important; }.react-flow__edge.animated .react-flow__edge-path { stroke: var(--accent) !important; }
-@media (max-width: 760px) { .overview-intelligence { grid-template-columns: 1fr; }.change-grid { grid-template-columns: 1fr 1fr; }.architecture-main { grid-template-columns: 1fr; }.architecture-workspace .architecture-canvas { min-height: 460px; }.architecture-inspector { min-height: 160px; border-top: 1px solid var(--border); border-left: 0; }.architecture-toolbar { align-items: stretch; flex-direction: column; }.architecture-toolbar label { width: 100%; } }
+/* Sidebar active indicator */
+.global-nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px rgba(129, 144, 255, .7); }
+.live-dot.ok { animation: live 2.4s ease-in-out infinite; }
+@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .45); } 50% { box-shadow: 0 0 0 5px rgba(62, 207, 142, 0); } }
-/* v1.5: compact remediation queue driven only by retained backend evidence. */
-.remediation-center { padding: 19px; background: linear-gradient(135deg, rgba(15, 38, 53, .94), rgba(8, 20, 34, .9)); }.remediation-live { color: var(--accent-bright); font-size: 9px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }.remediation-list { display: grid; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }.remediation-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; border: 1px solid rgba(132, 160, 193, .12); border-radius: 11px; padding: 11px; color: var(--text); background: rgba(5, 17, 29, .34); text-align: left; transition: border-color var(--motion) var(--ease), background var(--motion) var(--ease); }.remediation-row:hover:not(:disabled), .remediation-row:focus-visible { border-color: rgba(117, 209, 204, .42); background: rgba(117, 209, 204, .075); }.remediation-priority { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(237, 113, 136, .34); border-radius: 50%; color: var(--blocked); background: rgba(237, 113, 136, .09); font-size: 11px; font-weight: 800; }.remediation-copy { display: grid; min-width: 0; gap: 3px; }.remediation-copy strong, .remediation-copy small, .remediation-copy em, .remediation-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.remediation-copy strong { font-size: 12px; }.remediation-copy small { color: var(--accent-bright); font-size: 9px; text-transform: capitalize; }.remediation-copy em { color: var(--text-muted); font-size: 10px; font-style: normal; }.remediation-copy b { color: var(--text-subtle); font-size: 9px; font-weight: 500; }.remediation-arrow { color: var(--accent); font-size: 18px; }.remediation-row:hover .remediation-arrow { transform: translateX(2px); }
-@media (max-width: 760px) { .remediation-center { padding: 15px; }.remediation-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 9px; padding: 9px; }.remediation-priority { width: 31px; height: 31px; }.remediation-copy b { display: none; } }
-.repository-table th { position: static; }
-.repository-table tbody tr { scroll-margin-top: 150px; }
+/* Entry motion */
+.page-content > * { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
+.page-content > *:nth-child(2) { animation-delay: .04s; }
+.page-content > *:nth-child(3) { animation-delay: .08s; }
+.page-content > *:nth-child(4) { animation-delay: .12s; }
+.page-content > *:nth-child(5) { animation-delay: .16s; }
+.page-content > *:nth-child(n + 6) { animation-delay: .2s; }
+.kpi-grid > * { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
+.kpi-grid > *:nth-child(2) { animation-delay: .05s; }
+.kpi-grid > *:nth-child(3) { animation-delay: .1s; }
+.kpi-grid > *:nth-child(4) { animation-delay: .15s; }
+@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
+
+/* KPI cards: status accent and glow */
+.kpi-card { --tone: var(--accent); position: relative; overflow: hidden; isolation: isolate; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
+.kpi-card.blocked { --tone: var(--bad); }
+.kpi-card.warnings { --tone: var(--warn); }
+.kpi-card.ready { --tone: var(--ok); }
+.kpi-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--tone), transparent 85%); opacity: .9; }
+.kpi-card::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 68%); opacity: .7; transition: opacity .25s ease, transform .25s ease; }
+.kpi-card:hover:not(:disabled) { border-color: color-mix(in srgb, var(--tone) 45%, var(--border)); transform: translateY(-2px); }
+.kpi-card:hover::after { opacity: 1; transform: scale(1.12); }
+.kpi-card strong { background: linear-gradient(180deg, #fff, #c9cfdb); -webkit-background-clip: text; background-clip: text; color: transparent; }
+.distribution-bar i { transform-origin: left; animation: grow .9s cubic-bezier(.2, .7, .2, 1) .2s both; }
+@keyframes grow { from { transform: scaleX(0); } }
+
+/* Project icons */
+.repo-avatar { position: relative; overflow: hidden; border-radius: var(--radius); }
+.repo-avatar-sm { border-radius: var(--radius-sm); }
+.repo-avatar-xl { width: 56px; height: 56px; border-radius: var(--radius-lg); font-size: 18px; }
+.repo-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 16%; object-fit: contain; transition: opacity .25s ease; }
+.repo-avatar.has-icon { border-color: var(--border-strong); background: linear-gradient(180deg, #232a35, #191e27); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
+.repo-avatar.has-icon::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 6px; height: 6px; border: 1px solid var(--surface); border-radius: 50%; background: var(--unknown); }
+.repo-avatar-sm.has-icon::after { right: 1px; bottom: 1px; width: 5px; height: 5px; }
+.repo-avatar.has-icon.blocked::after { background: var(--bad); }
+.repo-avatar.has-icon.warnings::after { background: var(--warn); }
+.repo-avatar.has-icon.ready::after { background: var(--ok); }
+.repo-avatar.scanning { animation: scan-ring 1.6s ease-in-out infinite; }
+@keyframes scan-ring { 0%, 100% { box-shadow: 0 0 0 1px rgba(129, 144, 255, .5); } 50% { box-shadow: 0 0 0 4px rgba(129, 144, 255, .12); } }
+
+/* Health gauge */
+.health-ring { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--unknown); }
+.health-ring svg { position: absolute; inset: 0; overflow: visible; }
+.health-ring-track { stroke: var(--surface-3); }
+.health-ring-value { stroke: currentColor; animation: ring-draw 1s cubic-bezier(.2, .7, .2, 1) both; }
+.health-ring.blocked { color: var(--bad); }
+.health-ring.warnings { color: var(--warn); }
+.health-ring.ready { color: var(--ok); }
+.health-ring:not(.unknown) .health-ring-value { filter: drop-shadow(0 0 3px color-mix(in srgb, currentColor 55%, transparent)); }
+.health-ring b { position: relative; color: var(--text); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
+.health-ring.unknown b { color: var(--muted); }
+@keyframes ring-draw { from { stroke-dashoffset: var(--ring-length); } }
+.workspace-score { gap: 4px; justify-items: center; text-align: center; }
+.workspace-score .health-ring b { font-size: 24px; letter-spacing: -.03em; }
+.next-move-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; width: 100%; }
+.next-move-meta > span:nth-child(2) { display: grid; min-width: 0; }
+.next-move-meta strong { color: var(--text); font-size: 13.5px; }
+.next-move-meta small { color: var(--muted); font-size: 12px; }
+.next-move-meta .health-ring b { font-size: 15px; }
+.health-cell { display: inline-flex; align-items: center; gap: 10px; }
+.workspace-identity { justify-content: flex-start; }
+.workspace-identity > div:nth-child(2) { flex: 1; min-width: 0; }
+.tile-heading > span { flex: 1; }
+
+/* Interactive rows */
+.attention-row, .compact-row, .remediation-row, .timeline-event, .queue-row, .scan-run-row, .finding-summary { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
+.remediation-arrow { transition: transform .15s ease, color .15s ease; }
+.remediation-row:hover:not(:disabled) { transform: translateX(2px); border-color: rgba(129, 144, 255, .35); }
+.remediation-row:hover .remediation-arrow { color: var(--accent-text); transform: translateX(2px); }
+.repository-tile { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
+.repository-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
+
+/* Health map cells */
+.atlas-repository { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
+.atlas-repository:hover:not(:disabled) { z-index: 2; transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 24px color-mix(in srgb, var(--tone) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--tone) 45%, transparent); }
+.atlas-repository::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tone); opacity: .65; transform-origin: left; transform: scaleX(calc(var(--health) / 100)); }
+
+/* Tabs */
+.detail-tabs a { position: relative; transition: color .15s ease; }
+.detail-tabs a.active { border-bottom-color: transparent; }
+.detail-tabs a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); box-shadow: 0 0 10px rgba(129, 144, 255, .8); }
+
+/* Workspace hero glow */
+.workspace-hero { position: relative; isolation: isolate; }
+.workspace-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(520px 220px at 0% 0%, rgba(129, 144, 255, .12), transparent 70%); pointer-events: none; }
+.workspace-hero .menu-popover { z-index: 60; }
+.visual-wash { rx: 4px; }
+.workspace-hero:has(.action-menu[open]) { z-index: 25; }
+
+/* ---------- Review pass: history chart, grid tiles, graph theme ---------- */
+.trend-chart { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 220px auto; gap: 8px 10px; height: auto; overflow: visible; padding: 0; }
+.trend-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--subtle); font-size: 11px; font-variant-numeric: tabular-nums; text-align: right; }
+.trend-plot { position: relative; min-width: 0; }
+.trend-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
+.trend-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
+.trend-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(129, 144, 255, .45)); }
+.trend-area { animation: rise .6s ease both; }
+.trend-marker { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(129, 144, 255, .25); }
+.trend-marker b { position: absolute; right: 12px; bottom: 8px; border-radius: var(--radius-sm); padding: 1px 6px; color: var(--text); background: var(--surface-3); font-size: 12px; font-variant-numeric: tabular-nums; }
+.trend-hits { position: absolute; inset: 0; display: flex; }
+.trend-hits span { flex: 1; cursor: default; }
+.trend-hits span:hover { background: linear-gradient(180deg, transparent, rgba(129, 144, 255, .08)); }
+.trend-dates { grid-column: 2; display: flex; justify-content: space-between; color: var(--subtle); font-size: 11px; }
+.trend-delta { border-radius: var(--radius-sm); padding: 2px 8px; color: var(--text-2); background: var(--surface-3); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
+
+.repository-tile-main { gap: 12px; min-height: 172px; padding: 16px; align-content: start; }
+.tile-heading { justify-content: flex-start; gap: 12px; padding-right: 36px; }
+.tile-heading > .tile-title { display: grid; flex: 1; min-width: 0; }
+.tile-heading strong { font-size: 14px; }
+.tile-description { display: -webkit-box; min-height: 38px; overflow: hidden; color: var(--muted); font-size: 12.5px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
+.tile-meta { gap: 12px; margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; }
+.tile-time { flex: 1; color: var(--subtle); text-align: right; }
+.tile-pin { top: 14px; right: 14px; width: 28px; min-height: 28px; border-color: transparent; background: transparent; }
+.repository-tile.blocked { border-top: 2px solid rgba(243, 107, 107, .55); }
+.repository-tile.warnings { border-top: 2px solid rgba(242, 177, 60, .55); }
+.repository-tile.ready { border-top: 2px solid rgba(62, 207, 142, .55); }
+
+.react-flow {
+ --xy-background-color-default: var(--bg-raised);
+ --xy-background-pattern-dots-color-default: #2b3240;
+ --xy-edge-stroke-default: #4a5568;
+ --xy-minimap-background-color-default: var(--surface);
+ --xy-minimap-mask-background-color-default: rgba(8, 10, 14, .62);
+ --xy-minimap-mask-stroke-color-default: var(--accent);
+ --xy-minimap-mask-stroke-width-default: 2;
+ --xy-minimap-node-background-color-default: #3a4252;
+ --xy-minimap-node-stroke-color-default: transparent;
+ --xy-controls-button-background-color-default: var(--surface-2);
+ --xy-controls-button-background-color-hover-default: var(--surface-3);
+ --xy-controls-button-color-default: var(--text-2);
+ --xy-controls-button-color-hover-default: var(--text);
+ --xy-controls-button-border-color-default: var(--border);
+ --xy-attribution-background-color-default: transparent;
+}
+.react-flow__minimap { border-color: var(--border-strong); }
+.switcher-modal { grid-template-rows: auto auto auto minmax(0, 1fr) auto; overflow: hidden; }
+.trend-chart { align-items: stretch; }
+.tile-heading > .repo-avatar { flex: 0 0 auto; }
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 9781eab..8dad90c 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -8,6 +8,9 @@ export default defineConfig(({ mode }) => {
return {
plugins: [react()],
+ // The Architecture view is lazy-loaded; pre-bundle React Flow so the dev server never
+ // re-optimizes and reloads mid-session when that chunk is first requested.
+ optimizeDeps: { include: ['@xyflow/react'] },
server: {
port: 5174,
proxy: {