.structure-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr);
  align-items: center;
  gap: 32px;
  margin-bottom: 18px;
  border-left: 5px solid var(--accent);
}

.github-panel {
  margin-bottom: 18px;
  border-top: 4px solid var(--good);
}

.github-heading,
.github-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.sync-state {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  white-space: nowrap;
}

.github-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.github-field {
  display: grid;
  align-content: start;
  gap: 7px;
  font-weight: 700;
}

.github-field small,
.sync-meta dt,
.sync-state small {
  color: var(--muted);
  font-weight: 400;
}

.check-field {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.check-field input {
  width: auto;
  min-height: auto;
  grid-row: 1;
}

.check-field span {
  grid-column: 2;
}

.check-field small {
  grid-column: 1 / -1;
}

.github-form .form-actions {
  grid-column: 1 / -1;
}

.sync-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
}

.sync-meta div {
  display: grid;
  gap: 4px;
}

.sync-meta dd {
  margin: 0;
  font-weight: 700;
}

.sync-error {
  padding: 12px;
  border-radius: 8px;
  background: #fae0df;
  color: var(--danger) !important;
}

.structure-panel pre {
  margin: 0;
  padding: 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #f4f6f1;
  font: 500 .88rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow: auto;
}

.transfer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.export-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .structure-panel,
  .transfer-grid {
    grid-template-columns: 1fr;
  }

  .export-panel {
    display: grid;
  }

  .github-heading,
  .github-footer,
  .sync-meta {
    display: grid;
  }

  .github-form {
    grid-template-columns: 1fr;
  }

  .github-form .form-actions {
    grid-column: auto;
  }

  .sync-state {
    justify-items: start;
  }
}
