:root {
  color: #17202a;
  background: #f7f4ef;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
}
body {
  margin: 0;
}
.page {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 32px;
}
.header {
  max-width: 920px;
  margin-bottom: 28px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #59656f;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 8px;
  font-size: 2.25rem;
  letter-spacing: 0;
}
h2 {
  font-size: 1.1rem;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: 0;
}
h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.path,
.muted {
  color: #59656f;
}
.summaryGrid,
.profileList {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 28px;
}
.statusPanel,
.profile {
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdfa;
  padding: 16px;
}
.status {
  color: #0f766e;
  font-weight: 700;
  text-transform: capitalize;
}
.profileIdentity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.identityLabel {
  margin-bottom: 4px;
  color: #59656f;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.identityBadge {
  border: 1px solid #b6d6d0;
  border-radius: 999px;
  color: #0f766e;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
}
.traceBadge {
  border-color: #d7c77d;
  color: #6f5b00;
}
.profileId {
  color: #334155;
  word-break: break-word;
}
.profileForm {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.profileForm label {
  display: grid;
  gap: 6px;
  color: #59656f;
  font-weight: 700;
}
.profileForm input,
.profileForm textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  color: #17202a;
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
}
.profileForm textarea {
  font-family:
    SFMono-Regular,
    Consolas,
    Liberation Mono,
    monospace;
  resize: vertical;
}
.profileForm [role="alert"] {
  margin-bottom: 0;
  color: #b42318;
  font-weight: 700;
}
.profileActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profileActions button {
  border: 1px solid #17202a;
  border-radius: 6px;
  background: #17202a;
  color: #fffdfa;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}
.profileActions button + button {
  border-color: #b42318;
  background: #fffdfa;
  color: #b42318;
}
.profileActions button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.traceRebuild {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.traceRebuild label {
  display: grid;
  gap: 6px;
  color: #59656f;
  font-weight: 700;
}
.traceRebuild input {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #d8d2c8;
  border-radius: 6px;
  color: #17202a;
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
}
.traceRebuild [role="alert"] {
  margin-bottom: 0;
  color: #b42318;
  font-weight: 700;
}
.traceRebuild button {
  justify-self: start;
  border: 1px solid #17202a;
  border-radius: 6px;
  background: #17202a;
  color: #fffdfa;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}
.traceRebuild button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.rebuildReport {
  margin-bottom: 28px;
}
.traceFileList {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.traceFile {
  border-top: 1px solid #e8e0d4;
  padding-top: 12px;
}
.traceStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #59656f;
  font-weight: 700;
}
.traceSpanList {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}
.traceSpanList p {
  margin-bottom: 0;
}
.sectionHeading,
.traceMeta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sectionHeading span {
  color: #59656f;
  font-weight: 700;
}
.mono,
code {
  font-family:
    SFMono-Regular,
    Consolas,
    Liberation Mono,
    monospace;
}
dl {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}
dl div {
  display: grid;
  grid-template-columns: minmax(80px, 120px) 1fr;
  gap: 10px;
}
dt {
  color: #59656f;
}
dd {
  margin: 0;
}
@media (max-width: 640px) {
  .page {
    padding: 20px;
  }
  h1 {
    font-size: 1.8rem;
  }
}
