/* Home command-center refinements.
   Loaded after the legacy global stylesheet so this file can tighten the
   Workspace Home surface without expanding app.css further. */

.app-shell .resize-handle {
  background:
    linear-gradient(
      90deg,
      transparent 0,
      var(--border) 45%,
      var(--border) 55%,
      transparent 100%
    );
  position: relative;
  z-index: 20;
}

.app-shell .resize-handle::before {
  height: 34px;
  width: 8px;
  opacity: 0.85;
}

.nav-add > .topbar-button {
  height: 42px;
}

.nav-add > .topbar-button .lucide-icon {
  margin-right: 0;
}

.workspace-home {
  gap: 10px;
}

.workspace-home .ws-governance-note {
  margin: 0;
}

.workspace-home .ws-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace-home .ws-status-strip .ws-metric {
  min-height: 0;
  flex: 1 1 180px;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 9px;
  border-radius: var(--r-sm);
}

.workspace-home .ws-status-strip .ws-metric .ws-metric-label {
  font-size: 10px;
}

.workspace-home .ws-status-strip .ws-metric .ws-metric-num {
  font-size: 17px;
  line-height: 1;
}

.workspace-home .ws-status-strip .ws-metric .ws-metric-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-home .ws-focus-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 8px;
}

.workspace-home .ws-focus-grid .ws-panel {
  border-radius: var(--r-sm);
  padding: 10px 12px;
  gap: 6px;
}

.workspace-home .ws-panel-compact {
  min-height: 0;
}

.workspace-home .ws-inventory-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.workspace-home .ws-inventory-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
}

.workspace-home .ws-inventory-item:hover {
  border-color: var(--ledger-line-strong, var(--text-dim));
}

.workspace-home .ws-inventory-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-dim);
}

.workspace-home .ws-inventory-num {
  font-weight: 600;
  font-size: 15px;
}

.home-search-actions {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .workspace-home .ws-status-strip .ws-metric,
  .workspace-home .ws-inventory-item {
    flex: 1 1 100%;
  }
}
