.family-tree-client-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 10000;
}

.family-tree-client-modal {
  position: fixed;
  left: 5vw;
  top: 5vh;
  width: 90vw;
  height: 90vh;
  min-width: 90vw;
  min-height: 90vh;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 10001;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
  box-sizing: border-box;
}

.family-tree-client-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #ddd;
  background: #f8f8f8;
  box-sizing: border-box;
}

.family-tree-client-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.family-tree-client-modal-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.family-tree-client-modal-body {
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.family-tree-client-root {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  box-sizing: border-box;
  background: #fff;
}

.family-tree-client-status {
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem 0.25rem 0.75rem;
}

.family-tree-client-status.is-error {
  color: #a40000;
}

.family-tree-client-root .family-tree-actions {
  padding: 0.5rem 0.75rem 0 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.family-tree-client-root .family-tree-actions button {
  padding: 0.7rem 1rem;
  border: 1px solid #888;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.family-tree-client-network {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-top: 1px solid #ddd;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
