.track-page .main-content {
  padding: 24px 0 36px;
}

.track-shell {
  width: min(1120px, 96vw);
  margin: 0 auto;
}

.track-inner {
  border: 1px solid #dfe6f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.track-title {
  font-size: 24px;
  color: #1f2937;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.track-actions input {
  width: min(300px, 78vw);
  border: 1px solid #d5dce8;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.track-actions button {
  border: 1px solid #0f4d8a;
  border-radius: 8px;
  background: #0f4d8a;
  color: #ffffff;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}

.track-actions button:hover {
  background: #0b3e70;
}

.track-status {
  min-height: 22px;
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
}

.track-status.error {
  color: #b42318;
}

.track-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(420px, 1.5fr) minmax(220px, 1fr);
  gap: 12px;
}

.tree-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  min-height: 60vh;
  background: #fcfdff;
}

.tree-panel h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1f2937;
}

.tree-root ul {
  margin-left: 18px;
}

.tree-muted {
  color: #6b7280;
}

.tree-node {
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  background: #ffffff;
  margin: 7px 0;
}

.tree-head {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  color: #243244;
  font-weight: 600;
}

.tree-head::-webkit-details-marker {
  display: none;
}

.tree-head::before {
  content: "▸";
  color: #4b5563;
  margin-right: 6px;
}

.tree-node[open] > .tree-head::before {
  content: "▾";
}

.tree-meta {
  font-weight: 500;
  color: #4b5563;
  font-size: 12px;
}

.tree-children {
  margin-left: 18px;
  padding: 0 10px 10px;
}

.tree-leaf {
  margin: 6px 0;
  list-style: none;
}

.tree-tts-button {
  width: 100%;
  border: 1px solid #d6e2f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #1f3b62;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 7px 10px;
  cursor: pointer;
}

.tree-tts-button:hover {
  background: #edf4ff;
  border-color: #b7d0f3;
}

.tree-tts-button:focus-visible {
  outline: 2px solid #0f4d8a;
  outline-offset: 2px;
}

.tree-summary .row {
  display: flex;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: #ffffff;
}

@media (max-width: 920px) {
  .track-grid {
    grid-template-columns: 1fr;
  }
}
