/* Header Decoder — специфика поверх tools-shell.css */

.mg-hd__verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-ui);
  background: var(--mg-white);
}

.mg-hd__verdict-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mg-hd__verdict-badge--ok {
  background: #e8f5e9;
  color: #1b5e20;
}

.mg-hd__verdict-badge--warn {
  background: #fff8e1;
  color: #8a5a00;
}

.mg-hd__verdict-badge--fail {
  background: #fdecea;
  color: #b42318;
}

.mg-hd__verdict-badge--neutral {
  background: var(--mg-cream);
  color: var(--mg-muted);
}

.mg-hd__verdict-text {
  margin: 0;
  flex: 1 1 240px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.mg-hd__block {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--mg-border);
  border-radius: var(--mg-radius-ui);
  background: var(--mg-white);
}

.mg-hd__block-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mg-hd__meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mg-hd__meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.4;
}

.mg-hd__meta-key {
  color: var(--mg-muted);
  font-weight: 600;
}

.mg-hd__meta-val {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--mg-tool-mono);
  font-size: 13px;
}

.mg-hd__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-hd__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--mg-border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mg-hd__pill--pass {
  border-color: #a5d6a7;
  background: #e8f5e9;
  color: #1b5e20;
}

.mg-hd__pill--fail,
.mg-hd__pill--softfail {
  border-color: #f5c2c0;
  background: #fdecea;
  color: #b42318;
}

.mg-hd__pill--neutral,
.mg-hd__pill--none,
.mg-hd__pill--temperror,
.mg-hd__pill--permerror {
  border-color: var(--mg-border);
  background: var(--mg-cream);
  color: #5c5c5c;
}

.mg-hd__auth-detail {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mg-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--mg-tool-mono);
}

.mg-hd__nodes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--mg-border);
}

.mg-hd__node {
  position: relative;
  padding: 0 0 18px 20px;
}

.mg-hd__node:last-child {
  padding-bottom: 0;
}

.mg-hd__node::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mg-blue-link);
  border: 2px solid var(--mg-white);
  box-sizing: border-box;
}

.mg-hd__node-num {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mg-muted);
}

.mg-hd__node-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.mg-hd__node-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mg-muted);
  overflow-wrap: anywhere;
}

.mg-hd__node-raw {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: var(--mg-cream);
  border-radius: var(--mg-radius);
  font-family: var(--mg-tool-mono);
  font-size: 12px;
  line-height: 1.4;
  color: #444;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mg-hd__tips-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.5;
}

.mg-hd__tips-list li + li {
  margin-top: 8px;
}

.mg-hd__report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.mg-hd__copy-status {
  font-size: 13px;
  font-weight: 600;
  color: #1b5e20;
}

.mg-hd__step code,
.mg-hd__feature code {
  font-size: 0.92em;
}

@media (max-width: 800px) {
  .mg-hd__meta-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
