.empty[hidden] {
  display: none !important;
}

.node-guide {
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff9f1;
  color: var(--muted);
  font-size: .75rem;
}

.node-guide summary {
  cursor: pointer;
  color: var(--rust);
  font-weight: 800;
}

.node-guide div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 7px;
}

.node-guide b {
  color: #512e21;
}

.agent-card {
  width: min(410px, calc(100% - 30px));
  background: #fffaf1f2;
}

.agent-card p {
  margin: 8px 0;
}

.agent-card .agent-purpose {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8e2d1;
}

.language-switch {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: 20px;
  display: flex;
  padding: 4px;
  border: 1px solid #e2b99f;
  border-radius: 999px;
  background: #fffaf3e8;
  box-shadow: 0 8px 25px #74351e20;
  backdrop-filter: blur(10px);
}

.language-switch button {
  min-width: 42px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: #80503b;
  background: transparent;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
}

.language-switch button.active {
  color: #fffaf3;
  background: #bd5532;
}

.node-roster {
  margin-top: 24px;
  padding: 24px;
}

.roster-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.roster-head h2 {
  margin: .2rem 0;
  font: 700 2rem Georgia, serif;
}

.roster-head p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.node-roster table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  text-align: left;
}

.node-roster th {
  position: sticky;
  top: 0;
  padding: 10px 12px;
  color: #78402b;
  background: #f7dfcf;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.node-roster td {
  max-width: 310px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  font-size: .8rem;
}

.node-roster tbody tr {
  cursor: pointer;
  transition: background .15s ease;
}

.node-roster tbody tr:hover {
  background: #fff0e4;
}

.node-roster tr.inactive {
  opacity: .58;
  background: #eee5df;
}

.node-roster td b,
.node-roster td small {
  display: block;
}

.node-roster td small {
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 700px) {
  .language-switch { top: 9px; right: 9px; }
  .node-roster { padding: 17px 12px; }
  .roster-head { align-items: flex-start; flex-direction: column; }
}
