/* AtlasShare — shared styles (Atlas v2 design language) */

:root {
  /* Atlas v2 tokens */
  --bg:          #050505;
  --bg-side:     #0A0A0A;
  --bg-elev:     rgba(255,255,255,0.04);
  --surface:     #0A0A0A;
  --surface-2:   rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.18);
  --fg:          #E8E8E8;
  --fg-mute:     rgba(255,255,255,0.63);
  --fg-faint:    rgba(255,255,255,0.43);
  --text:        #E8E8E8;
  --text-muted:  rgba(255,255,255,0.63);
  --text-dim:    rgba(255,255,255,0.43);
  --accent:      #4DDDA8;
  --accent-hover:#6FE6BB;
  --accent-press:#3CC994;
  --attn:        #88BBDC;
  --danger:      #ff6b6b;
  --success:     #4DDDA8;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --font-body:   'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --font-pixel:  'Silkscreen', monospace;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: var(--font-body);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.30, 1);

  --sidebar-w: 236px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input { font-family: inherit; font-size: inherit; }

/* --- Login page ----------------------------------------------------- */

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(77, 142, 255, 0.08), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.login-brand .mark {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}
.login-brand .name {
  font-weight: 600;
  letter-spacing: 0.2px;
}
.login-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}
.login-sub {
  color: var(--text-muted);
  margin: 0 0 22px;
  font-size: 13px;
}
.field {
  display: block;
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, background 0.12s;
}
.field input:focus {
  border-color: var(--accent);
  background: #1d2027;
}
/* DESIGN.md §7 — Buttons. Solid white = primary, hairline = secondary. */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 120ms;
}
.btn:hover,
.btn-primary:hover { filter: brightness(0.92); }
.btn:active,
.btn-primary:active { filter: brightness(0.84); }
.btn:disabled,
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.btn-secondary:hover,
.btn-ghost:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.20); color: var(--fg); }
.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: var(--danger);
}
.login-foot {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

/* ===================================================================
 * Portal shell — Atlas v2 design language
 * =================================================================== */

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  height: 100vh;
}
.layout.sidebar-collapsed { grid-template-columns: 64px 1fr; }

/* ---------- Sidebar (opaque, flat nav) ---------- */
.sidebar {
  background: var(--bg-side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  position: relative;
  z-index: 4;
  overflow: hidden;
}

.sb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-mark {
  width: 22px; height: 22px;
  background: url('atlas-logo.png') center / contain no-repeat;
  filter: grayscale(1) brightness(1.05) contrast(1.15);
  opacity: 0.92;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sb-collapse {
  color: var(--fg-faint);
  font-size: 18px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 120ms;
}
.sb-collapse:hover { color: var(--fg); }

.nav {
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex; align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--fg-mute);
  background: transparent;
  border: 1px solid transparent;
  text-align: left; width: 100%;
  transition: color 120ms, background 120ms, border-color 120ms;
  position: relative;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.nav-item:hover { color: var(--fg); }
.nav-item:focus-visible { outline: 1px solid rgba(255,255,255,0.25); outline-offset: 1px; }
.nav-item.active {
  color: var(--fg);
  background: var(--bg-elev);
  border-color: rgba(255,255,255,0.10);
}
.nav-icon { width: 15px; height: 15px; color: currentColor; flex-shrink: 0; }
.nav-label {
  flex: 1;
  display: flex; align-items: baseline; gap: 6px;
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.badge.soon {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 8.5px;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-family: var(--font-pixel);
}

.sb-foot {
  padding-top: 16px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.status-line {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--fg-faint);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.status-line .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-faint);
}
.status-line .dot.ok { background: var(--accent); }
.status-line .dot.err { background: var(--danger); }
.sb-signout {
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 8px 6px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 120ms;
}
.sb-signout:hover { color: var(--fg); }

.layout.sidebar-collapsed .brand-name,
.layout.sidebar-collapsed .nav-label,
.layout.sidebar-collapsed .sb-collapse,
.layout.sidebar-collapsed .status-line span:last-child,
.layout.sidebar-collapsed .sb-signout { display: none; }
.layout.sidebar-collapsed .sb-head { justify-content: center; padding: 0 0 28px; }
.layout.sidebar-collapsed .nav-item { justify-content: center; }
.layout.sidebar-collapsed .status-line { justify-content: center; padding: 0; }

/* ---------- Main pane (with atmospheric backdrop + topbar + content) ---------- */
.main {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  position: relative;
  /* No background — the fixed .bg-stack at body level shows through. DESIGN.md §6 */
}

/* DESIGN.md §4 — grass-green backdrop, 5 blobs, fixed wrapper */
.bg-stack {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-layer {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;             /* MANDATORY perf rule — see DESIGN.md */
}
.bg-forest { width: 900px; height: 900px; background: radial-gradient(circle, rgba(30,80,55,0.65),  transparent 65%); top: -10%; left: -8%;   animation: floatA 130s ease-in-out infinite; }
.bg-olive  { width: 760px; height: 760px; background: radial-gradient(circle, rgba(60,140,95,0.32), transparent 60%); top:  35%; left: 30%;  animation: floatB 160s ease-in-out infinite; }
.bg-sage   { width: 620px; height: 620px; background: radial-gradient(circle, rgba(180,140,40,0.22),transparent 60%); top:  8%;  right: 12%; animation: floatC 180s ease-in-out infinite; }
.bg-warm   { width: 480px; height: 480px; background: radial-gradient(circle, rgba(220,170,50,0.18),transparent 60%); bottom: 6%; right: 18%; animation: floatD 200s ease-in-out infinite; }
.bg-deep   { width: 700px; height: 700px; background: radial-gradient(circle, rgba(0,0,0,0.85),     transparent 60%); bottom: -12%; left: 20%; animation: floatE 220s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate( 120px, -50px) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-100px,  80px) scale(0.93); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(  80px, 100px) scale(1.06); } }
@keyframes floatD { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate( -60px,-100px) scale(1.05); } }
@keyframes floatE { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(  70px, -60px) scale(1.04); } }

/* ---------- Top bar ---------- */
.top-bar {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
}

.proj-crumb {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.crumb-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  flex-shrink: 0;
}
.crumb-name {
  font-size: 13.5px; font-weight: 500; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 280px;
}
.crumb-meta {
  font-size: 12.5px; color: var(--fg-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.top-spacer { flex: 1; }

/* shared liquid-glass surface — search pill + user pill */
.top-search,
.top-user {
  position: relative;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 8px 24px rgba(0,0,0,0.32);
  border-radius: 999px;
  overflow: hidden;
}
.top-search::before,
.top-user::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(110% 80% at var(--gs-spec-x, 20%) var(--gs-spec-y, 5%), rgba(255,255,255, var(--gs-spec-alpha, 0.25)), transparent 55%);
  pointer-events: none;
}
.top-search > *,
.top-user > * { position: relative; z-index: 1; }

.top-search {
  --gs-spec-x: 15%; --gs-spec-y: 0%; --gs-spec-alpha: 0.22;
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  color: var(--fg-mute); font-size: 12.5px;
  min-width: 240px;
  transition: color 120ms;
}
.top-search:hover { color: var(--fg); }
.top-search input {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 12.5px;
  min-width: 0;
}
.top-search input::placeholder { color: var(--fg-faint); }
.top-search .kbd {
  margin-left: auto;
  padding: 1px 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  font-size: 10px; color: var(--fg);
  font-family: var(--font-pixel);
  opacity: 0.7;
}

.top-user {
  --gs-spec-x: 15%; --gs-spec-y: 0%; --gs-spec-alpha: 0.24;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
}
.top-user-mark {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.30);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  flex-shrink: 0;
  text-transform: uppercase;
}
.top-user-text { display: flex; flex-direction: column; line-height: 1.1; align-items: flex-start; }
.top-user-name { font-size: 12.5px; color: var(--fg); }
.top-user-handle {
  font-size: 9.5px; color: var(--fg);
  margin-top: 2px;
  font-family: var(--font-pixel);
  letter-spacing: 0.06em;
  opacity: 0.65;
  text-transform: uppercase;
}

.icon-btn {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 8px;
  color: var(--fg-mute);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 120ms, background 120ms;
}
.icon-btn:hover { color: var(--fg); background: rgba(255,255,255,0.06); }
.mobile-only { display: none; }
@media (max-width: 720px) {
  .mobile-only { display: flex; }
}

/* ---------- Content region (scrollable below topbar) ---------- */
.content-region {
  position: relative; z-index: 2;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.content {
  padding: 24px 48px 30px;                      /* match atlas chat-scroll padding exactly */
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Empty state (Atlas v2 pattern) ---------- */
.empty-state {
  max-width: 640px;
  margin: auto;
  padding: 80px 0;
  text-align: center;
}
.empty-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.65;
  margin-bottom: 14px;
}
.empty-state h1, .empty-state h2 {
  font-family: var(--font-body);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--fg);
  line-height: 1.1;
  margin: 0 0 18px;                          /* reset browser default margin-top — was adding 0.67em phantom space */
}
.empty-state h1 em { font-style: italic; font-weight: 300; font-size: 0.8em; }
.empty-state h1 strong { font-weight: 700; }
.empty-state h2 { font-size: 44px; }
.empty-state p {
  font-size: 14.5px;
  color: var(--fg);
  opacity: 0.65;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}

.dot-label {
  font-family: var(--font-pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════════
   DESIGN.md §7 — Banners (status with content, form-based state)
   ════════════════════════════════════════════════════════════════════ */
.banner {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 26px;
  background: rgba(18,22,30,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  border-radius: 18px;
}
.banner.done    { border-color: rgba(255,255,255,0.22); }
.banner.active  { border-color: rgba(255,255,255,0.32); }
.banner.pending { border-style: dashed; opacity: 0.78; }
.banner-label {
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--attn);
  opacity: 0.85;
  margin-bottom: 10px;
}
.banner-body h3 { font-size: 18px; font-weight: 500; color: var(--fg); margin-bottom: 6px; }
.banner-body p  { font-size: 13px; color: var(--fg-mute); line-height: 1.55; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   DESIGN.md §7 — Pills (form-based state, no color-as-meaning)
   ════════════════════════════════════════════════════════════════════ */
.pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
}
.pill.done    { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.28); }
.pill.active  { background: transparent; border-color: rgba(255,255,255,0.28); }
.pill.active::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  box-shadow: 0 0 8px rgba(77,221,168,0.6);
}
.pill.pending { background: transparent; border-style: dashed; color: var(--fg-mute); }
.pill.staged  { background: transparent; border-style: dashed;
                color: var(--attn); border-color: rgba(136,187,220,0.40); }

/* ════════════════════════════════════════════════════════════════════
   DESIGN.md §7 — Section heading + count
   ════════════════════════════════════════════════════════════════════ */
.section-head-pixel {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 14px; margin-bottom: 4px;
  padding: 0 4px;
}
.section-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-count {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════════════════════════
   DESIGN.md §9 — Visually-hidden utility (form labels)
   ════════════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════════════════════════════
   DESIGN.md §9 — Accessibility block (mandatory on every page)
   ════════════════════════════════════════════════════════════════════ */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(0,0,0,0.6),
    0 0 0 4px var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-layer { animation: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .top-search, .top-user {
    background: rgba(15,18,25,0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .top-search::before, .top-user::before { display: none; }
}

@media (prefers-contrast: more) {
  :root {
    --fg-mute:  rgba(255,255,255,0.85);
    --fg-faint: rgba(255,255,255,0.65);
    --border:   rgba(255,255,255,0.28);
    --border-2: rgba(255,255,255,0.40);
  }
}

/* ---------- Home dashboard ---------- */
/* Home hero — Atlas Portal v2 spec (atlas/web/static/v2/atlas.css served at /v2/):
     .empty-state: max-width 640px, margin auto, padding 80px 0, text-align center
     .empty-tag:  11px pixel font, opacity 0.65, margin-bottom 14px
     h1:          64px Urbanist 300, letter-spacing -0.025em, line-height 1.1
     h1 em:       italic, 0.8em, weight 300
     h1 strong:   weight 700
     p:           14.5px, opacity 0.65, max-width 460px, line-height 1.6
   Only deviation: 40px bottom padding (vs Atlas's 80px) — dashboard data follows below. */
/* Hero: atlas v2 padding 80/80 — bottom 80 alone isn't enough breathing room before
   the projects section, so add an extra gap via margin-bottom for chat-page vibes. */
.empty-state.home-hero { padding: 80px 0; margin-bottom: 56px; }

/* Info-group — outer container wrapping the projects grid (mirrors Atlas
   .cluster-group from brain-mockup.css). Reads as: bubble → tiles. */
.info-group {
  position: relative;
  padding: 18px;
  background: rgba(18,22,30,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 18px 48px rgba(0,0,0,0.26);
  overflow: hidden;
  margin-bottom: 18px;
}
.info-group-link {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-decoration: none;
  transition: color 120ms;
}
.info-group-link:hover { color: var(--accent); }
.info-group .projects-grid { position: relative; z-index: 0; }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
}
/* Cluster-card style — Atlas brain-mockup.css spec adopted from synthesis page.
   Solid dark panel + subtle border + inset highlights + soft depth shadow. */
.stat-tile {
  background: rgba(22,28,38,0.68);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 10px 28px rgba(0,0,0,0.26);
  transition: border-color 120ms, background 120ms;
}
.stat-tile:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(28,34,44,0.74);
}
.stat-value {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 9px;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
}

.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 880px) {
  .home-two-col { grid-template-columns: 1fr; }
}
.content-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.content-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.content-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.content-sub {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.content-head .link, .link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}
.content-head .link:hover { color: var(--accent-hover); }
.muted { color: var(--text-muted); font-size: 12px; font-weight: 400; }

/* ---------- Placeholder ---------- */
.placeholder {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.placeholder-icon { font-size: 32px; margin-bottom: 8px; }
.placeholder-body { font-size: 13px; max-width: 480px; margin: 0 auto; }

/* Cards — Atlas brain-mockup.css cluster-card spec: solid dark panel,
   subtle border, inset highlights, soft depth shadow. Adopted from synthesis page. */
.card,
.dash-card {
  background: rgba(22,28,38,0.68);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  padding: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 10px 28px rgba(0,0,0,0.26);
}
.dash-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.dash-card.stretch { grid-column: 1 / -1; }
.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.dash-card-head h2 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg);
}
.dash-card-body {
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Project grid ---------- */
/* Projects panel — adapted from Atlas Portal apps-drawer tile pattern.
   Square tiles, full-bleed cover, glass background, blurred bottom mask
   for legibility, Urbanist title + pixel-font subtitle overlaid at bottom. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.proj-card {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 100%),
    rgba(0,0,0,0.10);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 10px 24px rgba(0,0,0,0.25);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.proj-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(110% 60% at 50% 0%, rgba(255,255,255,0.16), transparent 60%);
  pointer-events: none;
  z-index: 2;
}
/* bottom gradient removed — replaced by .proj-glass caption strip */
.proj-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -1px 0 rgba(0,0,0,0.25),
    0 18px 36px rgba(0,0,0,0.40);
}

/* full-bleed cover image, slightly desaturated for chrome consistency */
.proj-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(1.40) contrast(1.15) brightness(1.02);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}
.proj-thumb-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.proj-thumb.fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  background: linear-gradient(135deg, rgba(30,80,55,0.4), rgba(60,140,95,0.2));
}

/* DESIGN.md §5 System B — real Apple liquid-glass via kube.io feDisplacementMap filter.
   Refracts the cover image behind the plate like a curved lens.
   CRITICAL: NO saturate/brightness/blur in the CSS chain (causes color banding per DESIGN.md).
   Just the url(#liquid-glass) filter + form (border, gradient, inset highlights). */
.proj-glass-plate {
  position: absolute;
  top: 5%; left: 5%; right: 5%; bottom: 5%;
  border-radius: 18px;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.08) 0%,
    rgba(255,255,255,0.02) 50%,
    rgba(255,255,255,0.06) 100%);
  backdrop-filter: url(#liquid-glass);
  -webkit-backdrop-filter: url(#liquid-glass);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 8px 20px rgba(0,0,0,0.32);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  z-index: 2;
  overflow: hidden;
}
.proj-glass-plate::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(110% 80% at 15% 0%, rgba(255,255,255,0.20), transparent 55%);
  pointer-events: none;
}
.proj-glass-plate > * { position: relative; z-index: 1; }

/* Cover-star badge (manual cover indicator) */
.cover-star {
  position: absolute;
  top: 12px; right: 12px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--accent);
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  z-index: 3;
}

/* Name + sub flow inside the .proj-glass-plate at the bottom */
.proj-name {
  display: block;
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.15;
  color: rgba(255,255,255,0.96);
  margin: 0 0 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.proj-sub {
  display: block;
  font-family: var(--font-pixel);
  font-size: 9.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-sub .muted { color: rgba(255,255,255,0.55); font-size: inherit; }

/* ---------- Status pills (F4 — Approvals) ---------- */
/* Status pills — DESIGN.md §3 + §7 form-based state (no color-as-meaning).
   pending  = active state    (pulsing accent dot, transparent fill, solid hairline)
   approved = done state      (filled white tint, heavier border)
   needs_changes = staged     (dashed border, attn-cyan, dimmed)
   loading  = inert           (dim text)
   unset    = empty           (dashed border, faint text) */
.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--fg);
  white-space: nowrap;
}
.status-pill.loading  { color: var(--fg-faint); opacity: 0.5; }
.status-pill.unset    { background: transparent; border-style: dashed; color: var(--fg-faint); }
.status-pill.pending  { background: transparent; border-color: rgba(255,255,255,0.28); }
.status-pill.pending::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  box-shadow: 0 0 8px rgba(77,221,168,0.6);
}
.status-pill.approved { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.28); }
.status-pill.needs_changes {
  background: transparent;
  border-style: dashed;
  color: var(--attn);
  border-color: rgba(136,187,220,0.40);
}
.status-pill.on-thumb {
  position: absolute;
  bottom: 6px;
  right: 6px;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}
.status-select:focus, .status-select:hover { border-color: var(--accent); }

/* Make asset overlay accommodate the new bottom-right pill */
.asset-card { position: relative; }

/* Version badge on asset cards — form-based (pixel-font, white-tinted, hairline) */
.asset-version {
  font-family: var(--font-pixel);
  font-size: 11px;
  background: rgba(0,0,0,0.65);
  color: var(--fg);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Face scan progress */
.fs-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.fs-bar {
  width: 100%;
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.fs-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
}
.fs-stats {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.fs-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.fs-matches .tag-chip span {
  background: rgba(0,0,0,0.3);
  padding: 0 6px;
  border-radius: 999px;
  font-family: var(--mono);
  margin-left: 4px;
}

/* Face box overlays on preview image */
.face-overlay-host {
  position: relative;
  display: inline-block;
}
.face-box {
  position: absolute;
  border: 2px solid rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  border-radius: 4px;
  pointer-events: auto;
  z-index: 5;
}
.face-box.auto { border-color: rgba(20, 184, 166, 0.9); border-style: dashed; }
.face-box.clickable { border-color: var(--accent); cursor: pointer; }
.face-box.clickable:hover { background: rgba(77,221,168,0.12); }
.face-label {
  position: absolute;
  bottom: 100%;
  left: -2px;
  background: rgba(244, 114, 182, 0.95);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px 4px 0 0;
  white-space: nowrap;
}
.face-box.auto .face-label { background: rgba(20, 184, 166, 0.95); }
.face-box.clickable .face-label { background: rgba(77,221,168,0.85); color: var(--bg); }
.face-label em { font-style: normal; opacity: 0.8; font-weight: 400; }
.face-x {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: grid; place-items: center;
}
.face-x:hover { background: rgba(239, 68, 68, 0.9); }

/* Auto-tags in modal */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
/* Tag chips — form-based (no color-as-meaning). Auto-tag = dashed, person = solid with leading dot. */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.20);
  border-radius: 999px;
  color: var(--fg-mute);
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms, background 120ms, border-color 120ms;
}
.tag-chip:hover { color: var(--fg); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.32); }
.tag-chip.person {
  background: rgba(255,255,255,0.04);
  border-style: solid;
  border-color: rgba(255,255,255,0.22);
  color: var(--fg);
}
.tag-chip.person::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg);
  margin-right: 4px;
  flex-shrink: 0;
}
.tag-chip.person a { color: var(--fg); text-decoration: none; }
.tag-chip.person:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }
.tag-chip-x {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}
.tag-chip-x:hover { color: white; }
.tag-add-person {
  display: inline-flex;
}
.tag-add-person input {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--text);
  outline: none;
  width: 140px;
}
.tag-add-person input:focus {
  border-style: solid;
  border-color: rgba(244, 114, 182, 0.6);
  outline: none;
  box-shadow: none;
}
/* Suppress the browser's default red ":invalid" styling — our input has no
   validation constraints, so any red glow is a spurious browser default. */
.tag-add-person input:invalid,
.tag-add-person input:focus:invalid {
  box-shadow: none;
  outline: none;
}
.tag-add-person input::placeholder { color: var(--text-dim); }

/* Version chips in modal */
.version-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.version-bar-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-right: 2px;
}
/* Version chips — form-based. Inactive: faint outline. Active: white-tinted, pulsing accent dot. */
.version-chip {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--fg-mute);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 120ms, background 120ms, border-color 120ms;
}
.version-chip:hover { color: var(--fg); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.32); }
.version-chip.active {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.32);
  color: var(--fg);
}
.version-chip.active::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(77,221,168,0.6);
}

/* Documents list */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: background 120ms, border-color 120ms;
}
.doc-row:hover { background: rgba(255,255,255,0.06); border-color: var(--border-2); }
.doc-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--mono);
}
/* Doc icons — form-based (white tint, glyph carries the kind) */
.doc-icon.kind-pdf,
.doc-icon.kind-doc { background: rgba(255,255,255,0.06); color: var(--fg); }
.doc-meta { min-width: 0; }
.doc-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-folder { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-side { text-align: right; }
.doc-size { font-size: 13px; color: var(--text); }
.doc-date { font-size: 11px; color: var(--text-dim); }

/* Pending tiles on Home — apps-drawer style, same shell as project tiles
   but smaller. Grid auto-fits to the .pending-group container width. */
.pending-group { padding: 14px; }
.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.pending-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 100%),
    rgba(0,0,0,0.10);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 0 rgba(0,0,0,0.15),
    0 8px 20px rgba(0,0,0,0.22);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.pending-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.36),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 14px 32px rgba(0,0,0,0.36);
}
.pending-tile::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 2;
}
.pending-thumb {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(1.30) contrast(1.12) brightness(1.02);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}
.pending-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.30) 75%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,0.30) 75%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}
.pending-tile .pending-name {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 26px;
  font-family: 'Urbanist', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255,255,255,0.96);
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pending-tile .pending-sub {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 10px;
  font-family: var(--font-pixel);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Open Inbox tile — CTA variant, no thumb, centered arrow */
.pending-tile.open-inbox-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(165deg, rgba(77,221,168,0.16) 0%, rgba(77,221,168,0.04) 100%),
    rgba(0,0,0,0.20);
  border-color: rgba(77,221,168,0.32);
}
.pending-tile.open-inbox-tile::after { display: none; }
.pending-tile.open-inbox-tile .open-inbox-icon {
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
  text-shadow: 0 0 12px rgba(77,221,168,0.45);
}
.pending-tile.open-inbox-tile .pending-name {
  position: static;
  text-align: center;
  font-size: 12px;
  color: var(--fg);
  margin: 0;
}
.pending-tile.open-inbox-tile .pending-sub {
  position: static;
  margin-top: 4px;
  color: var(--accent);
  text-align: center;
}

/* Duplicate clusters (AI-3) */
.dup-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.dup-controls input[type=range] { width: 200px; vertical-align: middle; }
#dup-threshold-val { font-family: var(--mono); color: var(--text); }
.dup-cluster {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.dup-cluster-head {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.dup-cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.dup-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 120ms, background 120ms;
}
.dup-card:hover { border-color: var(--border-2); background: rgba(255,255,255,0.06); }
.dup-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #0a0c10; }
.dup-card-name {
  padding: 4px 6px;
  font-size: 10px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Activity feed */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.activity-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  font-size: 13px;
  transition: background 120ms, border-color 120ms;
}
.activity-row:hover { background: rgba(255,255,255,0.06); border-color: var(--border-2); }
.activity-icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 50%;
  font-size: 12px;
}
/* Activity icons — form-based, no color-as-meaning. Icon glyph carries the distinction. */
.activity-icon[data-action="approval"],
.activity-icon[data-action="comment"],
.activity-icon[data-action="download"] {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
}
.activity-icon[data-action="view"]     { background: var(--surface-2); color: var(--text-muted); }
.activity-line { min-width: 0; }
.activity-user { font-weight: 500; }
.activity-verb { color: var(--text-muted); margin: 0 4px; }
.activity-asset { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.activity-folder { font-size: 11px; color: var(--text-dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-time { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

/* Inbox list */
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inbox-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s, border-color 0.12s;
}
.inbox-row:hover { background: var(--surface-2); border-color: var(--border-strong); }
.inbox-meta { min-width: 0; }
.inbox-name { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-path { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-time { font-size: 12px; color: var(--text-dim); }

/* ---------- Project Detail (F2) ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 6px;
  margin-left: -8px;
  transition: background 0.12s, color 0.12s;
}
.back-link:hover { background: var(--surface-2); color: var(--text); }
.back-link svg { flex-shrink: 0; }

.proj-detail-head { align-items: flex-start; }
.proj-detail-actions { display: flex; gap: 10px; align-items: center; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.chip:hover { background: rgba(255,255,255,0.04); color: var(--fg); border-color: rgba(255,255,255,0.32); }
/* Section chips — form-based active state (white tint + leading accent dot per DESIGN.md pill spec) */
.chip.active {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.28);
  color: var(--fg);
}
.chip.active::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(77,221,168,0.6);
  flex-shrink: 0;
}
.chip-count {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10px;
  color: var(--fg-mute);
}
.chip.active .chip-count {
  background: rgba(255,255,255,0.12);
  border-color: transparent;
  color: var(--fg);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.asset-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 120ms, border-color 120ms;
}
.asset-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-2);
}
.asset-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0a0c10;
  overflow: hidden;
}
.asset-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Video thumb gets a subtle play overlay so user knows it's a video */
.asset-thumb.video::after { content: ''; }
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}
.thumb-fallback[data-kind="image"] { background: linear-gradient(135deg, #1a2030 0%, #0e1117 100%); }
.thumb-fallback[data-kind="video"] { background: linear-gradient(135deg, #2a1a3a 0%, #0e1117 100%); color: #c4b5fd; }
.thumb-fallback[data-kind="audio"] { background: linear-gradient(135deg, #3a2a1a 0%, #0e1117 100%); color: #fbbf24; }
.thumb-fallback[data-kind="pdf"]   { background: linear-gradient(135deg, #3a1a1a 0%, #0e1117 100%); color: #fca5a5; }
.thumb-fallback[data-kind="doc"]   { background: linear-gradient(135deg, #1a2a3a 0%, #0e1117 100%); color: #a8c5ff; }
.thumb-fallback[data-kind="raw"]   { background: linear-gradient(135deg, #0e2c2a 0%, #0e1117 100%); color: #5eead4; }
.thumb-fallback[data-kind="other"] { background: linear-gradient(135deg, #1f2229 0%, #0e1117 100%); }
.thumb-ext-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--mono);
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-transform: uppercase;
}
.asset-overlay {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: calc(100% - 12px);
}
.asset-kind {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}
/* Asset-kind badges — form-based, neutral fill, text glyph carries kind. */
.asset-kind.kind-image,
.asset-kind.kind-video,
.asset-kind.kind-audio {
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--fg);
}
.asset-kind.kind-pdf   { background: rgba(239, 68, 68, 0.85); }
.asset-kind.kind-raw   { background: rgba(20, 184, 166, 0.85); }
.asset-section {
  font-size: 9px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 500;
}
.asset-name {
  padding: 6px 8px;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-top: 1px solid var(--border);
}
.asset-more {
  grid-column: 1 / -1;
  text-align: center;
  padding: 16px;
}

/* ---------- Files header tweaks (no separate topbar anymore) ---------- */
.files-head { display: block; }
.files-head .crumbs { padding: 0 0 12px; }
.files-head .toolbar { padding: 0 0 12px; }
.files-head .filelist { margin: 0; }

/* ===================================================================
 * Legacy portal-shell / topbar (no longer used; keep for safety)
 * =================================================================== */
.btn-block { width: 100%; }

/* --- Portal layout -------------------------------------------------- */

.portal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-left .mark {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
}
.topbar-left .title {
  font-weight: 600;
  font-size: 15px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}
.user-chip .avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6aa0ff, #c084fc);
  display: grid; place-items: center;
  color: white; font-size: 11px; font-weight: 600;
}

.crumbs {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}
.crumbs a {
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
}
.crumbs a:hover { background: var(--surface-2); color: var(--text); }
.crumbs .sep { color: var(--text-dim); }
.crumbs .current { color: var(--text); font-weight: 500; padding: 4px 8px; }

.toolbar {
  padding: 0 20px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  flex: 1;
  max-width: 320px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
}
.search input:focus { border-color: var(--accent); }
.search .icon {
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* File list */

.filelist {
  margin: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.filelist-head {
  display: grid;
  grid-template-columns: 1fr 110px 170px 120px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.filelist-row {
  display: grid;
  grid-template-columns: 1fr 110px 170px 120px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  cursor: pointer;
  transition: background 0.08s;
}
.filelist-row:last-child { border-bottom: none; }
.filelist-row:hover { background: var(--surface-2); }
/* Selected rows — form-based (no side-stripe per DESIGN.md §11). White tint + hairline border. */
.filelist-row.selected {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}
.filelist-row.selected:hover { background: rgba(255,255,255,0.10); }
.filelist-row.multi-selected {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}
.filelist-row.multi-selected:hover { background: rgba(255,255,255,0.14); }
.filelist-row.selected.multi-selected { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); }

/* Selection toolbar (Files view) */
.selection-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 999px;
}
.sel-count {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-right: 4px;
}

/* Project Detail — raw folder name secondary subtitle */
.proj-raw-name { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.filelist-row .name {
  display: flex; align-items: center; gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filelist-row .icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
}
.filelist-row.folder .icon { color: var(--accent); }
.filelist-row .size,
.filelist-row .date {
  color: var(--text-muted);
  font-size: 13px;
}
.filelist-row .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.icon-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}
.empty .icon { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }

.loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Preview modal */

/* DESIGN.md §7 — modals = FLAT surface (content layer, no glass). */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
  justify-items: center;
  z-index: 100;
  padding: 24px 12px;
  animation: backIn 150ms ease-out both;
}
.modal {
  background: var(--bg-side);                      /* flat — DESIGN.md HIG rule */
  border: 1px solid var(--border-2);
  border-radius: 20px;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  grid-column: 2;
  animation: modalIn 220ms var(--ease-out-expo) both;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes backIn  { from { opacity: 0; } to { opacity: 1; } }
.modal-nav {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
}
.modal-nav:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.18); }
.modal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.modal-nav.prev { grid-column: 1; }
.modal-nav.next { grid-column: 3; }
.modal-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60ch;
  display: inline-block;
  vertical-align: middle;
}
.modal-counter {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  vertical-align: middle;
}
.modal-foot {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.kbd-hint {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kbd-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-actions { display: flex; gap: 8px; }
.modal-main {
  flex: 1;
  display: flex;
  min-height: 0;     /* allow inner scrolling */
}
.modal-body {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0c10;
  min-height: 300px;
}

/* --- Comments panel (B2 wireframe) ------------------------------------ */
.comments-panel {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.comments-panel.hidden { display: none; }
.comments-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.comments-count {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.empty-small {
  padding: 24px 16px;
  color: var(--text-dim);
  text-align: center;
  font-size: 12px;
}
.comment {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
}
.comment.resolved { opacity: 0.55; }
.comment-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.comment-avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  display: grid; place-items: center;
  color: var(--fg);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.comment-user { font-weight: 500; color: var(--text); }
.comment-time {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 11px;
}
.comment-text {
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-acts {
  display: flex;
  gap: 4px;
  margin-left: 6px;
}
.comment-act {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 4px;
  cursor: pointer;
}
.comment-act:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.tc-jump {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--fg);
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  cursor: pointer;
  margin-left: 4px;
  letter-spacing: 0.06em;
  transition: background 120ms, border-color 120ms;
}
.tc-jump:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.32); color: var(--fg); }
.comments-compose {
  border-top: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.comments-compose textarea {
  width: 100%;
  resize: vertical;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.comments-compose textarea:focus { border-color: var(--accent); }
.comments-compose-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comments-tc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
.modal-body img,
.modal-body video {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}
.modal-body iframe {
  width: 100%;
  height: 80vh;
  border: none;
  background: white;
}
.modal-body .unsupported {
  padding: 48px;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 800px) {
  .layout { grid-template-columns: 56px 1fr; }
  .sidebar-brand .title,
  .nav-item span:not(.badge),
  .sidebar-foot .user-chip span:not(.avatar),
  .sidebar-foot .btn { display: none; }
  .nav-item { justify-content: center; padding: 8px; }
  .badge.soon { display: none; }
  .content { padding: 16px 14px; }
}
@media (max-width: 700px) {
  .filelist-head,
  .filelist-row {
    grid-template-columns: 1fr 80px 80px;
  }
  .filelist-head .date,
  .filelist-row .date { display: none; }
  .modal-backdrop { grid-template-columns: 40px 1fr 40px; padding: 12px 6px; }
  .modal-nav { width: 36px; height: 36px; }
  .modal-main { flex-direction: column; }
  .comments-panel { width: 100%; max-height: 260px; border-left: none; border-top: 1px solid var(--border); }
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
}
