/* Details third column, minimal P-I fill: header (name + close) over a
   scrolling body of Input/Output code sections. Panel width/squeeze belongs
   to layout; this fills whatever the column gives. */

.root {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-left: 1px solid var(--dsw-alias-border-l2);
  background: var(--dsw-alias-bg-base);
}

/* figma RightSidebar header frame (I54:42735;43:36451): pad 14/12/12/12, gap 8. */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
}

/* figma I54:42735;43:41479: 14/20 wt500. */
.title {
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--dsw-alias-label-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--dsw-alias-label-secondary);
  cursor: pointer;
}

.close:hover {
  background: var(--dsw-alias-interactive-bg-hover);
}

.body {
  flex: 1;
  min-height: 0;
  padding: 12px 16px;
  overflow-y: auto;
}

.empty {
  padding: 8px 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--dsw-alias-label-tertiary);
}

.section {
  margin-bottom: 16px;
}

.sectionLabel {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--dsw-alias-label-secondary);
}

/* figma Code-block (I54:42735;43:41429): r12, pad 16, mono 13/22. */
.code {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--dsw-alias-markdown-code-block);
  font-family: var(--ds-font-family-code);
  font-size: 13px;
  line-height: 22px;
  color: var(--dsw-alias-label-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.code[data-error] {
  color: var(--dsw-alias-state-error-primary);
}
