.tsa-registry {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #e2e8f0;
}

.tsa-registry-login {
  width: min(420px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  text-align: center;
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.5);
}

.tsa-registry-login p {
  margin-bottom: 1rem;
}

.tsa-registry-login__form {
  display: flex;
  gap: 0.5rem;
}

.tsa-registry-login__form input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.5rem 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
}

.tsa-registry-login__form button {
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.6);
  background: rgba(79, 70, 229, 0.4);
  color: #f8fafc;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.tsa-registry-login__status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.tsa-registry-login__status[data-state="error"] { color: #f87171; }
.tsa-registry-login__status[data-state="info"] { color: #38bdf8; }

.tsa-registry-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.tsa-registry-tree {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  overflow: auto;
}

.tsa-registry-tree__nodes,
.tsa-registry-tree__children {
  list-style: none;
  margin: 0;
  padding-left: 0.6rem;
}

.tsa-registry-tree__label {
  border: none;
  background: transparent;
  color: inherit;
  padding: 0.2rem 0.3rem;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.tsa-registry-tree__label.is-active,
.tsa-registry-tree__label:hover {
  background: rgba(99, 102, 241, 0.35);
}

.tsa-registry-list {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tsa-registry-list__header {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tsa-registry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  overflow: auto;
}

.tsa-registry-table th,
.tsa-registry-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tsa-registry-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.15);
}

.tsa-registry-menu {
  position: fixed;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 9999;
}

.tsa-registry-menu.is-open {
  display: flex;
}

.tsa-registry-menu button {
  border: none;
  background: transparent;
  color: #f8fafc;
  text-align: left;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.tsa-registry-menu button:hover {
  background: rgba(99, 102, 241, 0.35);
}

@media (max-width: 720px) {
  .tsa-registry-layout {
    grid-template-columns: 1fr;
  }
}
