.appendices-intro {
  margin-bottom: 1.75rem;
}

.appendices-intro p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.appendices-page-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.appendices-sidebar h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.appendix-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.appendix-list-button {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.appendix-list-button:hover {
  background: #e9ebf6;
  border-color: #cfd3e8;
}

.appendix-list-button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.appendix-detail {
  min-width: 0;
}

.appendix-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.appendix-header {
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.appendix-title {
  color: var(--primary);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.9rem;
}

.appendix-notes {
  display: grid;
  gap: 0.5rem;
}

.appendix-note {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.appendix-table-wrap {
  overflow-x: auto;
}

.appendix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.appendix-table th,
.appendix-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.appendix-table th {
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.95rem;
}

.appendix-table td {
  line-height: 1.55;
}

.appendix-table tbody tr:hover {
  background: #fafaff;
}

.appendix-role-name {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.appendix-value {
  color: var(--text);
}

.appendix-empty {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .appendices-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .appendix-title {
    font-size: 1.35rem;
  }

  .appendix-header {
    padding: 1.1rem 1rem 0.9rem;
  }

  .appendix-table th,
  .appendix-table td {
    padding: 0.75rem 0.8rem;
  }
}