.project-auth {
  padding: 22px;
  border-radius: var(--card-radius);
  border: 1px solid var(--yma-line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 250, 246, 0.96)),
    radial-gradient(circle at top left, rgba(137, 169, 255, 0.08), transparent 50%);
  box-shadow: var(--card-shadow);
  margin-bottom: 14px;
}

.section-heading {
  justify-content: flex-end;
}

.login-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.login-grid input,
.login-grid textarea,
.login-grid select {
  border: 1px solid var(--yma-line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--yma-surface-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.block {
  width: 100%;
}

.tree-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
}

.tree-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--yma-line-soft);
  background: var(--yma-surface);
  border-radius: var(--inner-radius);
  padding: 12px 14px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.tree-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow);
}

.tree-item.active {
  background: var(--black);
  color: var(--white);
}

.tree-item small {
  color: var(--gray-500);
  display: block;
}

.tree-item.active small {
  color: #ddd;
}

.editor-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.save-state {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--gray-500);
}

.save-state.error {
  color: var(--danger);
}

.save-state.ok {
  color: var(--success);
}

.page-title-input {
  flex: 1;
  border: 1px solid var(--yma-line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 18px;
  font-weight: 600;
}

.page-content-input {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--yma-line);
  border-radius: 14px;
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tool-btn {
  border: 1px solid var(--yma-line-soft);
  background: var(--yma-surface);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tool-btn:hover {
  border-color: var(--gray-400);
}

.rich-editor {
  overflow: auto;
}

.rich-editor:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

.rich-editor h1,
.rich-editor h2,
.rich-editor h3 {
  margin-top: 0.8em;
  margin-bottom: 0.35em;
}

.rich-editor p {
  margin: 0.6em 0;
}

.timeline-view {
  margin-top: 14px;
}

.timeline-view h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

#timeline-grid {
  display: grid;
  gap: 8px;
}

.tl-card {
  border: 1px solid var(--yma-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: var(--yma-paper);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.tl-head strong {
  font-size: 14px;
}

.tl-points {
  margin: 8px 0 0;
  padding-left: 16px;
}

.tl-status {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-status span {
  font-size: 11px;
  border: 1px solid var(--yma-line-soft);
  border-radius: 999px;
  padding: 3px 8px;
  text-transform: capitalize;
  background: var(--yma-surface);
}

#truth-list ul,
#users-list ul {
  margin: 0;
  padding-left: 18px;
}

#truth-list li,
#users-list li {
  margin-bottom: 8px;
  color: var(--gray-700);
}
